Skip to content
Inference Academy

Agent frameworks compared, and when to use none

What every agent framework actually provides, the main design families (graph, handoff, typed, role-based, code-writing), how LangGraph, the OpenAI Agents SDK, PydanticAI, CrewAI, smolagents and others map onto them, a decision checklist, and why a plain loop is often the right answer.

By

15 min · verified 2026-111 animated diagramPro
Share

There are dozens of agent frameworks and new ones every month. They look different, but they all wrap the same loop you built in local agents: ask the model, run the tool it requests, append the result, repeat until it answers or a limit trips. This lesson gives you a way to compare them on what they add around that loop, so you can choose quickly and switch later if you need to.

#What a framework adds to the loop

Capability What it means When you need it
Tool plumbing Schemas from type hints, argument validation, MCP client support Almost always; easy to write yourself for a few tools
State and memory A typed state object passed between steps; short and long-term memory Multi-step tasks, multi-turn assistants
Durable execution Checkpoint after each step; resume after a crash or a human approval Long runs, approvals, background jobs
Control flow Explicit graphs, branches, loops, parallel steps Processes with known structure
Multi-agent patterns Handoffs between specialised agents, supervisors Large tool sets, clearly separated roles
Guardrails Input and output checks that can stop a run Anything user-facing
Tracing A record of every model call, tool call, token count and latency Debugging and evaluation, always
Streaming Token and event streams to the UI Interactive apps (streaming UX)

If you only need the first row, you probably do not need a framework.

Pro content

Keep reading with Inference Academy Pro

Unlock the rest of this lesson, including 1 animated diagram, plus every advanced lesson, hands-on lab, the larger playground models and completion certificates.

Still to come in this lesson

  1. Five design families
  2. A decision checklist
  3. Small local models change the answer
  4. The plain-loop baseline
  5. Common mistakes
  6. Exercises

You will be able to answer

  • What is the irreducible core of every agent framework?
  • Your process has fixed steps with one decision point and must be easy to audit. What fits best?
  • Why does durable state (checkpointing) matter for long agent runs?
  • What is a 'code agent' (as in smolagents)?
  • Which question should come first when choosing a framework?