Flashcard: what is an 'agent runtime' and what does it do?
The agent runtime is the deterministic code around the LLM that drives the loop, executes tools, manages state, enforces budgets, and emits traces. LangGraph, CrewAI, AutoGen, and the OpenAI Agents SDK are runtimes.
Picture a chess engine paired with a robot arm. The engine picks the move, but the arm is what actually slides the piece across the board, hits the clock, and writes down the move on the scoresheet. The engine alone is just numbers on a screen; the arm alone has no idea what to play. The agent runtime is the robot arm and the scoresheet and the clock and the rulebook, all rolled into one. The LLM only ever says what should happen next. The runtime is the part that actually makes it happen, keeps notes, watches the time, and decides when the game is over. Frameworks like LangGraph and CrewAI ship as ready-made runtimes so you do not have to build the arm yourself.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define the runtime as the deterministic layer around the LLM, list the five responsibilities (loop, tools, state, budgets, observability), explain why each must live there rather than in the model, and name two or three production runtimes with their distinguishing topologies.
Real products, models, and research that use this idea.
- LangGraph: the runtime is a typed state graph; you declare nodes for the model and each tool, and the framework drives the loop with explicit edges and recursion limits.
- CrewAI: the runtime coordinates multiple role-playing agents (planner, researcher, writer) with built-in delegation and shared memory.
- AutoGen: the runtime treats agents as participants in a conversation, with message passing as the control primitive and a group-chat manager driving turn order.
- OpenAI Agents SDK and Anthropic's MCP-aware tooling: SDK-level runtimes that expose tool calling, handoffs, and tracing as building blocks for custom loops.
What an interviewer would ask next. Try answering before peeking at the approach.
QIf the model is stateless across calls, how does an agent remember what it did three turns ago?
QWhy are permission checks placed in the runtime rather than the system prompt?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Calling the runtime 'just glue' or 'plumbing'. The runtime owns budgets, state, retries, validation, and observability; most agent reliability work happens in the harness, not the prompt.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.