Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Appendix G — Framework Rosetta Stone

Frameworks implement the book’s boxes. They do not redefine them. Map concepts first; pick a library second. APIs drift — verify against current docs before production. [VERIFY]

Concept map

Book conceptTypical framework / product feature
Control loopAgent runner / executor loop
FSM / graphLangGraph nodes & edges; workflow DAGs
Tools + schemasOpenAI / Anthropic tool calling; framework “tools”
MCP server/clientMCP SDKs; gateway products
Policy-as-codeUsually custom — rarely first-class
Checkpoint / resumeLangGraph checkpointers; Temporal workflows
Memory storeFramework “memory” modules; often vector-centric — impose your types
OrchestratorCrew-style roles; or plain workflow engine
A2AA2A SDKs / task brokers — org boundary only
TracesOpenTelemetry integrations; vendor observability
Eval harnessOften bolt-on — keep evals/ yours
HITLInterrupt / approval nodes; external queues
Workers / queuesCelery, Temporal, cloud queues, custom lease workers
Model routingGateways (litellm-style, vendor routers)

LangGraph-shaped mapping (illustrative)

ShopOpsLangGraph-ish
AgentFSM statusNode + conditional edges
checkpoint rowCheckpointer blob
Policy denyEdge to escalate / awaiting_approval before tool node
Ledger appendSide-effecting node writing to your log — not chat

Do not let “the graph” hide authz. Gates remain code.

OpenAI Agents SDK / vendor runners (illustrative)

BookRunner
Tool registryRegistered tools
SessionsConversation/session objects ≈ working context — still add typed state
GuardrailsPartial overlap with policy; keep hard compliance in your engine

Temporal / durable execution

BookTemporal
Long-running caseWorkflow
Tool callActivity
HITL waitSignal / update
At-least-onceActivity retries + idempotency keys you still own

Anti-patterns when using frameworks

  1. Framework = security — never.
  2. Vector memory default — override with typed controller.
  3. Multi-agent roleplay templates — justify with Ch 15 criteria.
  4. Hidden prompts — pin and version visible artifacts.
  5. Eval skipped because the demo UI looks good.

Late-binding policy

This appendix intentionally avoids pinning minor version APIs. When you adopt a framework:

  1. Write the twelve-step design (Ch 50) without naming the library.
  2. Map each artifact to a framework feature.
  3. Implement a spike that preserves policy tests from ring-0/1.
  4. Document escape hatches where the framework cannot express a gate.

References

  • Official LangGraph / Agents SDK / Temporal / MCP / A2A docs — [VERIFY URLs at time of use]
  • Cross-links: Ch 7–8, 16, 31–32, 47, 50