Artificial intelligence (AI) stack
The AI stack that agents need
An agent needs more than a model. It needs a route to your systems, a memory of your documents, tests, logs, permissions and somewhere to run.
Published 28 November 2026
Why the first agentic process is slow
Early agentic processes are slow partly because the stack has to be built first. The first agentic process carries the cost of building this stack. A forward-deployed engineer builds each layer inside your team, on your accounts, alongside the first process, so that later processes can reuse it.
The second process starts with the gateway, tests, logs, permissions and hosting in place, so the engineer builds only what is new. That is QuantSpark’s view; no survey we found measures the difference.
- First process: the engineer builds the layers with it.
- Later processes: they reuse the layers.
- Process
- Engineer
- Builds
- Reuses
The engineer builds the eight layers with the first process; later processes reuse them.
What two surveys found
Both surveys found layers often missing or thin. Neither measures how long building them takes.
57%
said their current AI governance was weak
15%
had automatic circuit breakers for runaway agents
Gartner, survey of 298 leaders in the United States and the United Kingdom in June and July 2026, published 16 November 2026.
89%
had observability for their agents
52%
ran offline evaluations
LangChain, its own survey of 1,340 people, 18 November to 2 December 2025, published 12 June 2026. LangChain makes agent tools.
The eight layers
Each example links to its own documentation, opened on 28 November 2026. Companies are in alphabetical order, with no recommendation.
| Layer | What it does | Examples |
|---|---|---|
| Models and gateways | Picks the model for each task and routes every request, with budgets and fallbacks. | Models: open-weight models and each platform’s models. Gateways: LiteLLM. |
| Orchestration and agent frameworks | Runs the agent’s steps, hands work between agents and keeps long tasks alive. | From model and cloud companies: Strands Agents (from Amazon), Claude Agent SDK (software development kit, from Anthropic), Agent Development Kit (from Google), Agent Framework (from Microsoft) and Agents SDK (from OpenAI). Independent: LangGraph and Temporal (for long-running work). |
| Retrieval and memory | Finds the right documents and remembers earlier work, within each person’s access. | Search indexes, open source: pgvector and Qdrant. Managed: the hosting platforms’ memory services. |
| Tools and connectors | Lets the agent read and act in company systems, and run code safely. | Open standards: Model Context Protocol and AGENTS.md (instructions for coding agents). Code sandboxes: E2B. From vendors: each platform’s own connectors. |
| Evaluation | Tests the agent against known answers before release and after every change. | Open source: Inspect (from the United Kingdom’s AI Security Institute) and Langfuse. From vendors: Amazon Bedrock AgentCore Evaluations, evaluation in Gemini Enterprise Agent Platform (formerly Vertex AI) and evaluation in Microsoft Foundry (formerly Azure AI Foundry). |
| Observability | Records every step, its cost and its result. | Open standard and open source: OpenTelemetry’s conventions for generative AI and Langfuse. From vendors: Bedrock AgentCore observability, Google’s agent platform observability, LangSmith (from LangChain) and Microsoft Foundry tracing. |
| Guardrails and identity | Checks inputs and outputs, gives each agent its own identity and least access, and stops runaway agents. | Top 10 risk lists, from the Open Worldwide Application Security Project: agentic applications and language model applications. Open to run yourself: Llama Guard 4 (open-weight, from Meta) and NeMo Guardrails (open source, from NVIDIA). From vendors: Amazon Bedrock Guardrails, Google Model Armor and Microsoft Foundry guardrails. Agent identities: AgentCore Identity, Google Agent Identity and Microsoft Entra Agent ID. |
| Deployment | Hosts the agent and, where chosen, the model. | Managed agent hosting: Bedrock AgentCore Runtime, Google Agent Runtime and Microsoft Foundry Agent Service. Serving open-weight models, open source: vLLM, SGLang, Ollama and llama.cpp. Serving, from a vendor: NVIDIA NIM. |
Which layers each level needs
Every level touches all eight layers. What changes is who provides each one.
Scroll sideways to see the whole figure
Level 1: the vendor supplies six layers. Level 2: the engineer sets up six. Level 3: the engineer builds seven. Levels 4 and 5: all eight.
| Layer | Level 1: Use | Level 2: Connect | Level 3: Build | Level 4: Ship | Level 5: Operate |
|---|---|---|---|---|---|
| Models and gateways | The assistant you license (comes with the assistant) | Admin and data-location settings (set up by the engineer) | A model chosen per task by test (set up by the engineer) | Gateway with fallback and cost per task (built and run in your team) | Policy on which work runs on which model (built and run in your team) |
| Orchestration and agent frameworks | The vendor’s own features (comes with the assistant) | The vendor’s agent builder (set up by the engineer) | One single-task agent (built and run in your team) | Multi-step agents that recover (built and run in your team) | One standard across teams (built and run in your team) |
| Retrieval and memory | Files inside the assistant (comes with the assistant) | Connectors to document stores (set up by the engineer) | A tested index for one tool (built and run in your team) | Index that refreshes and enforces access (built and run in your team) | A knowledge layer for the business (built and run in your team) |
| Tools and connectors | Built-in tools (comes with the assistant) | Read-only connections (set up by the engineer) | Write actions a person approves (built and run in your team) | Hosted servers, sign-in, sandboxes (built and run in your team) | A catalogue of approved connectors (built and run in your team) |
| Evaluation | Spot checks and a prompt library (set up by the engineer) | Answers checked against the source (set up by the engineer) | At least 20 known answers (built and run in your team) | Automated tests on every release (built and run in your team) | A policy for model changes (built and run in your team) |
| Observability | The vendor’s usage reports (comes with the assistant) | Connector audit logs (comes with the assistant) | A record of each run (built and run in your team) | Tracing, dashboards and alerts (built and run in your team) | Value reporting to the board (built and run in your team) |
| Guardrails and identity | A rule on what data AI may see (set up by the engineer) | Least-privilege tokens, rotated (set up by the engineer) | Exceptions routed to a person (built and run in your team) | Agent identities and circuit breakers (built and run in your team) | A register of every agent (built and run in your team) |
| Deployment | Hosted by the vendor (comes with the assistant) | Vendor hosting and a small connector (comes with the assistant) | A simple service on your cloud (built and run in your team) | Production hosting and releases (built and run in your team) | Platform ownership and support (built and run in your team) |
- Comes with the assistant
- Set up by the engineer
- Built and run in your team
At level 3, Build, an AI agent engineer builds the first single-task agent and most of the stack. At level 4, Ship, an AI production engineer runs all eight layers in production. At level 5, Operate, an AI operating partner sets one standard per layer across the business.
What each stage decides
Each of QuantSpark’s four stages decides or builds part of every layer.
| Layer | Prepare | Plan | Pilot | Productionise |
|---|---|---|---|---|
| Models and gateways | List what is already licensed | A model per use case, and its test | Run the test; one route for requests | Fallbacks, budgets, cost per task |
| Orchestration and agent frameworks | None needed | Vendor features or a framework | One agent, simplest design | Long-running, recoverable agents |
| Retrieval and memory | Find where the knowledge lives | Choose the sources | One tested index | Refresh, access control, memory |
| Tools and connectors | List systems and interfaces | Choose the route per system | Read-only connectors | Write actions, sign-in, sandboxes |
| Evaluation | Agree what a right answer is | Measure, baseline and target | A test set of known answers | Automated tests on every release |
| Observability | None needed | Decide what to record | A record of each run | Dashboards, alerts, value reports |
| Guardrails and identity | Set the data rule | Agree access and approvals | Least-privilege tokens; exceptions to a person | Agent identities, checks, circuit breakers |
| Deployment | Confirm the accounts you own | Vendor hosting or your own cloud | A simple hosted service | Production hosting and support |
Open standards keep your choices open
Microsoft’s and Amazon’s agent hosting both accept agents built with other companies’ frameworks, so the choice of framework need not fix the choice of cloud (Microsoft Learn and Amazon, read 28 November 2026). Google’s Agent Runtime also hosts agents built with LangGraph, LangChain, AG2 or LlamaIndex (Google Cloud, read 28 November 2026).
The Model Context Protocol is the open standard for linking an agent to company systems. The Agent2Agent protocol, an open standard for agents that hand work to each other, joined the Linux Foundation’s Agentic AI Foundation on 17 August 2026 (Agentic AI Foundation).
Go deeper
- Open-weight models for business: when to use them and how to run them.
- AI models and platforms: what each platform offers, with dates.
Find out which layers you already have.
Book a call