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.
| Layer | What it does | Examples |
|---|---|---|
| Foundation models | The LLM "brain" | GPT, Claude, Gemini, Llama, Qwen |
| Vector databases | Store and search embeddings | Pinecone, Qdrant, Weaviate, pgvector |
| Memory layers | Long-term memory for agents | Mem0, Zep, Letta |
| Embeddings & rerankers | Turn text into vectors; re-order search results | Cohere, Voyage AI, BGE, Jina AI |
| Code sandboxes | Run AI-written code safely, isolated from your systems | E2B, Daytona, Modal |
| Agent runtime | Host, scale and manage agents in production | Amazon Bedrock AgentCore, Vertex AI Agent Engine, Azure AI Foundry Agent Service, Kubernetes |
Try it yourself
About 10 minFill in the stack
- Pick an agent idea.
- For each layer in this lesson (model, database, memory, reranker, sandbox, runtime), write what you'd use, or not needed yet.
- 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.