The agent build stack

Under every production agent sits a stack of components. You don't need all of them on day one, but it helps to know what each layer does.

Everyday analogy

A restaurant needs more than a chef: a pantry (vector database), a recipe notebook (memory layer), a tasting spoon (reranker), a separate prep area for risky work (sandbox), and the building itself (runtime).

Example

A support agent might use Claude as the model, pgvector inside the existing Postgres database, Cohere for reranking, Mem0 for customer memory, an E2B sandbox to run code safely, and a managed cloud runtime to host it.

☁️ Runtimewhere the agent runs📦 Sandboxsafe space for risky work🔀 Rerankersbest results first🗂️ Memory layerremembers users🗄️ Vector databaseyour knowledge🧠 Foundation modelthe brain
The layers under a production agent.
LayerWhat it doesExamples
Foundation modelsThe LLM "brain"GPT, Claude, Gemini, Llama, Qwen
Vector databasesStore and search embeddingsPinecone, Qdrant, Weaviate, pgvector
Memory layersLong-term memory for agentsMem0, Zep, Letta
Embeddings & rerankersTurn text into vectors; re-order search resultsCohere, Voyage AI, BGE, Jina AI
Code sandboxesRun AI-written code safely, isolated from your systemsE2B, Daytona, Modal
Agent runtimeHost, scale and manage agents in productionAmazon Bedrock AgentCore, Vertex AI Agent Engine, Azure AI Foundry Agent Service, Kubernetes

Try it yourself

About 10 min

Fill in the stack

  1. Pick an agent idea.
  2. For each layer in this lesson (model, database, memory, reranker, sandbox, runtime), write what you'd use, or not needed yet.
  3. Count how many layers you actually need on day one.

What you should see: Most first agents need far fewer layers than the diagrams suggest.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectBuild an AI workflow that summarises feedback for youAbout 75 min · No coding needed · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.