Part 3: Frameworks and architecture

The framework landscape

Pick the thinnest layer that solves your real constraint, and keep an exit door open

BuilderLeaderSoloClaude12 min read

In short

Name the constraint first, then pick the thinnest layer that solves it, and keep an exit door open.

Key ideas

  • Frameworks differ in what they make easy and what they make you own; no framework is a strong default for workflows and short agents
  • Climb (own loop, light SDK, graph framework, cloud platform) only when a named constraint forces you
  • MCP tools, durable engines, OpenTelemetry traces and your eval suite are your lock-in hedge

A summary only. The reasoning, examples, checklist and what to do on Monday are in the chapter. Read it in the book

4

rungs: own loop, light SDK, graph framework, cloud platform

2 days

to evaluate a new framework on your own task

Inside the chapter

  1. 1The map: eight families
  2. 2Comparison table
  3. 3The decision guide
  4. 4Lock-in and the exit strategy
  5. 5Evaluate a new framework in two days

Try it: the two-day evaluation

Keep an exit door open before the roadmap depends on a framework.

Two-day evaluation: what is your exit test?

Show the answers
  1. A. The demo works by the end of day two A demo proves the happy path, not that you can leave.
  2. B. It has the most GitHub stars Popularity is not a constraint. Name the constraint the framework solves.
  3. C. Swap the framework behind your runner seam and re-run your eval set (Best answer) Correct: if the plain-loop runner passes the same evals, lock-in is contained and you know your exit cost.
  4. D. The vendor promises long-term support A promise is not a test. Pre-1.0 with breaking minors sends it back to the protocol.

Go further: free on this site

Questions readers asked about this chapter, a 5-question self-check with explanations, and every source it cites.

Questions readers ask (3)

3 questions. Open one to read the answer.

Can I mix frameworks, for example a graph runtime outside and a light SDK inside the nodes?

Yes, if each concern has one owner. Two layers that both persist and both retry break: a crash replays a step in one, resumes it in the other, and side effects run twice. Keep one trace id across both and test with the Day 1 failure injection.

Is a pre-1.0 SDK acceptable in production?

Yes, with conditions. Pre-1.0 means minors may break: the OpenAI Agents SDK went from 0.14 to 0.26 by November 2026 (PyPI). Accept it if you pin exact versions, keep it behind a seam, run regression evals on upgrades and budget upgrade time. Refuse it when you cannot afford that upkeep, or when the SDK owns your durable state. A stated promise like LangGraph's "no breaking changes until 2.0" (LangChain) lowers the cost.

Should multi-agent features drive the choice?

Rarely. Most production agents are single agents with a few tools, and a supervisor (Chapter 7) is a short loop calling agents as tools, writable on any rung. Choose for durability, pauses, language and observability; a framework picked for its crew demo pushes you toward more agents than needed.

Answered in the book, not repeated here: See Chapter 6, Lock-in and the exit strategy; See Chapter 6, Which family?; See Chapter 6, Evaluate a new framework in two days

Self-check (5)

Score: 0 / 5 (0 answered)

  1. Question 1 of 5

    Chapter 1's production study found that most in-depth case-study teams built on direct API calls, while most surveyed practitioners use a framework. What is the most accurate reading?

    Show the answer

    Answer: B.

    The case-study figure is a signal about the most advanced teams, not a majority rule, since the wider survey points the other way (Chapter 1 has the numbers). Token prices do not depend on whether a framework makes the call.

  2. Question 2 of 5

    A Python process branches on risk, waits up to five days for human approval and must stay model-agnostic. Which choice fits best?

    Show the answer

    Answer: D.

    Explicit branching, long pauses and human approvals are the case for a graph or typed framework on a durable engine. Crews hide control flow, smolagents has no durability built in, and the AI SDK is TypeScript-first.

  3. Question 3 of 5

    You combine a durable workflow engine for orchestration with a light SDK agent inside each step. What is the main thing that can go wrong?

    Show the answer

    Answer: A.

    The rule is one owner per concern; two layers that both retry and both resume can replay a step in one and resume it in the other. Tools as MCP servers or plain functions can be called from both, and one trace id can span both.

  4. Question 4 of 5

    Which of these is NOT a good reason to re-run the two-day framework evaluation?

    Show the answer

    Answer: C.

    The chapter says to re-evaluate on triggers tied to your own constraint, releases, license or upkeep cost. A launch post or trend says nothing about your task, failure modes or exit cost.

  5. Question 5 of 5

    You plan to switch model providers and your framework supports both. What should you do first?

    Show the answer

    Answer: B.

    A framework hides API differences, not behavior differences in tool calling, structured output, caching and prompt sensitivity. A gateway helps with keys and failover but does not make two models behave alike.

Sources

Sources cited

  • PyPI, langgraph (package page), accessed November 2026. pypi.org
  • LangChain, LangChain and LangGraph Agent Frameworks Reach v1.0 Milestones, October 2025. langchain.com
  • PyPI, langchain (package page), accessed November 2026. pypi.org
  • LangChain, October 2026 newsletter, October 2026. langchain.com
  • OpenAI, The next evolution of the Agents SDK, April 2026 (2026-04-15 entry). openai.com
  • PyPI, openai-agents (PyPI project page), November 2026 (2026-04-15 entry). pypi.org
  • OpenAI, Deprecations, November 2026 (2026-08-26 entry). developers.openai.com
  • OpenAI, Introducing the Agents API, September 2026. openai.com
  • Anthropic, Agent SDK overview (Claude Code documentation), accessed November 2026. code.claude.com
  • PyPI, claude-agent-sdk (package page), accessed November 2026. pypi.org
  • PyPI, google-adk (PyPI project page), May 2026 (2026-05-19 entry). pypi.org
  • Google, Why we built ADK 2.0, July 2026 (2026-05-19 entry). developers.googleblog.com
  • Google Cloud (Karl Weinmeister), One Agent Development Kit, five languages, October 2026. cloud.google.com
  • Microsoft (Shawn Henry), Microsoft Agent Framework Version 1.0, April 2026. devblogs.microsoft.com
  • Microsoft, The Microsoft Agent Framework Harness is now released, July 2026 (2026-07-22 entry). devblogs.microsoft.com
  • Visual Studio Magazine (David Ramel), Microsoft Ships Production-Ready Agent Framework 1.0 for .NET and Python, April 2026. visualstudiomagazine.com
  • Strands Agents, Interrupts (documentation), accessed November 2026. strandsagents.com
  • PyPI, strands-agents (package page), accessed November 2026. pypi.org
  • PyPI, pydantic-ai (package page), accessed November 2026. pypi.org
  • Pydantic, Restate (Pydantic AI durable execution documentation), accessed November 2026. pydantic.dev
  • PyPI, smolagents (package page), accessed November 2026. pypi.org
  • PyPI, agno (package page), accessed November 2026. pypi.org
  • AI SDK docs, Building Agents (v7), accessed November 2026. ai-sdk.dev
  • Vercel, AI SDK 7.0 migration guide (AI SDK docs), accessed November 2026. ai-sdk.dev
  • Vercel, AI SDK 7 is now available, June 2026. vercel.com
  • Mastra, Announcing Mastra 1.0!, January 2026. mastra.ai
  • Mastra, Suspend and resume (workflows docs), accessed November 2026. mastra.ai
  • Mastra, mastra-ai/mastra (GitHub repository), accessed November 2026. github.com
  • PyPI, crewai (package page), accessed November 2026. pypi.org
  • CrewAI docs, Changelog, accessed November 2026 (October 2026 entry). docs.crewai.com
  • PyPI, llama-index-workflows (package page), accessed November 2026. pypi.org
  • PyPI, dspy (package page), accessed November 2026. pypi.org
  • Strands Agents, Traces (observability documentation), accessed November 2026. strandsagents.com
  • LlamaIndex, Observability (Workflows documentation), accessed November 2026. developers.llamaindex.ai
  • AI SDK, DevTools (documentation), accessed November 2026. ai-sdk.dev
  • DBOS, DBOS (product site and FAQ), accessed November 2026. dbos.dev
  • Temporal, You don't need to build a new reliability system for every AI Framework, October 2026. temporal.io
  • Linux Foundation, Agentic AI Foundation announces four new projects: Agent Skills, Open Responses, OpenEnv and OpenSandbox, October 2026 (2026-10-22 entry). linuxfoundation.org
  • Anthropic, Building effective agents, December 2024. anthropic.com
  • OpenAI, Reasoning models (API docs), accessed November 2026. developers.openai.com
  • OpenAI, Assistants API migration guide (API docs), accessed November 2026. developers.openai.com
  • OpenTelemetry, Semantic conventions for GenAI agent and framework spans (status: Development), accessed November 2026. github.com
  • OpenAI, API changelog, accessed November 2026 (2026-10-30 entry). developers.openai.com
  • Pydantic, Pydantic AI changelog, November 2026 (2026-06-23 entry). pydantic.dev

Further reading

  • Harrison Chase, How to think about agent frameworks, April 2025. langchain.com
  • Dex Horthy and HumanLayer, 12-Factor Agents, accessed November 2026. github.com
  • Chip Huyen, Agents, January 2025. huyenchip.com
  • Temporal (Tom Wheeler), The definitive guide to Durable Execution, May 2025. temporal.io