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.

FIG. 01Built with the first process, reused by the next
  1. First process: the engineer builds the layers with it.
  2. 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.

Infrastructure and operations leaders

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.

People building agents

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.

The eight layers, what each does, and examples.
LayerWhat it doesExamples
Models and gatewaysPicks 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 frameworksRuns 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 memoryFinds 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 connectorsLets 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.

EvaluationTests 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).

ObservabilityRecords 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 identityChecks 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.

DeploymentHosts 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.

FIG. 02The eight layers at each level

Scroll sideways to see the whole figure

The eight layers at each levelLevel 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.1 Use2 Connect3 Build4 Ship5 OperateModels and gatewaysThe assistant youlicenseAdmin anddata-location settingsA model chosen pertask by testGateway with fallbackand cost per taskPolicy on which workruns on which modelOrchestration andagent frameworksThe vendor’s ownfeaturesThe vendor’s agentbuilderOne single-task agentMulti-step agents thatrecoverOne standard acrossteamsRetrieval and memoryFiles inside theassistantConnectors to documentstoresA tested index for onetoolIndex that refreshesand enforces accessA knowledge layer forthe businessTools and connectorsBuilt-in toolsRead-only connectionsWrite actions a personapprovesHosted servers,sign-in, sandboxesA catalogue ofapproved connectorsEvaluationSpot checks and aprompt libraryAnswers checkedagainst the sourceAt least 20 knownanswersAutomated tests onevery releaseA policy for modelchangesObservabilityThe vendor’s usagereportsConnector audit logsA record of each runTracing, dashboardsand alertsValue reporting to theboardGuardrails andidentityA rule on what data AImay seeLeast-privilegetokens, rotatedExceptions routed to apersonAgent identities andcircuit breakersA register of everyagentDeploymentHosted by the vendorVendor hosting and asmall connectorA simple service onyour cloudProduction hosting andreleasesPlatform ownership andsupport

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.

The eight layers at each level, and who provides each one
LayerLevel 1: UseLevel 2: ConnectLevel 3: BuildLevel 4: ShipLevel 5: Operate
Models and gatewaysThe 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 frameworksThe 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 memoryFiles 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 connectorsBuilt-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)
EvaluationSpot 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)
ObservabilityThe 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 identityA 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)
DeploymentHosted 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.

The four stages against the eight layers.
LayerPreparePlanPilotProductionise
Models and gatewaysList what is already licensedA model per use case, and its testRun the test; one route for requestsFallbacks, budgets, cost per task
Orchestration and agent frameworksNone neededVendor features or a frameworkOne agent, simplest designLong-running, recoverable agents
Retrieval and memoryFind where the knowledge livesChoose the sourcesOne tested indexRefresh, access control, memory
Tools and connectorsList systems and interfacesChoose the route per systemRead-only connectorsWrite actions, sign-in, sandboxes
EvaluationAgree what a right answer isMeasure, baseline and targetA test set of known answersAutomated tests on every release
ObservabilityNone neededDecide what to recordA record of each runDashboards, alerts, value reports
Guardrails and identitySet the data ruleAgree access and approvalsLeast-privilege tokens; exceptions to a personAgent identities, checks, circuit breakers
DeploymentConfirm the accounts you ownVendor hosting or your own cloudA simple hosted serviceProduction 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

Find out which layers you already have.

Book a call