Core Concepts
Before building with agents, it helps to have clear mental models for the key pieces. Think of these concepts like understanding the parts of a car before you learn to drive.
The three-layer mental model
Every AI agent system has three layers:
βββββββββββββββββββββββββββββββββββ
β YOUR APPLICATION β β What users see and interact with
βββββββββββββββββββββββββββββββββββ€
β AGENT HARNESS β β Orchestration, memory, tools, routing
βββββββββββββββββββββββββββββββββββ€
β AI MODEL β β The reasoning engine (Claude, GPT, etc.)
βββββββββββββββββββββββββββββββββββYou don't have to build all three yourself β that's what the tools in this cookbook are for. But understanding what lives at each layer makes you dramatically better at both using and building agent systems.