AI/LLM orchestration frameworks are the infrastructure layer that transforms isolated large language models into coordinated, production-ready agentic systems. These frameworks emerged to solve the fundamental challenge of building reliable multi-step workflows where AI agents must reason, plan, remember, delegate, recover from failures, and collaborate — capabilities that simple prompt-response patterns cannot provide. In 2026, the field consolidated around stateful graph-based architectures (LangGraph, Google ADK), multi-agent role systems (CrewAI, AG2), type-safe validation patterns (Pydantic AI), and lightweight code-first agents (smolagents), each optimized for distinct production use cases. The critical shift is from "prompting LLMs" to programming agent systems — treating orchestration as a software engineering discipline with observability, error handling, state management, and deterministic control flow.
What This Cheat Sheet Covers
This topic spans 12 focused tables and 110 indexed concepts, 104 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Major Orchestration Frameworks
These are the libraries you'll actually choose between, and they cluster into a few camps — graph-based engines like LangGraph for explicit stateful control, role-based systems like CrewAI and AG2 for collaborating agents, type-safe single-agent tools like Pydantic AI, and the vendor SDKs from OpenAI, Microsoft, and Google. Read the rows less as a ranking and more as a map of trade-offs between control, ergonomics, and ecosystem.
| Framework | Example | Description | |
|---|---|---|---|
from langgraph.graph import StateGraphgraph = StateGraph(State)graph.add_node("research", research_node)graph.add_edge("research", "write") | • Graph-based workflow engine for building stateful, cyclic agent flows with explicit state management • supports branching, loops, human-in-the-loop, and checkpointing • most adopted multi-agent framework in 2026; optimized for complex multi-step reasoning. | ||
crew = Crew( agents=[researcher, writer], tasks=[research_task, write_task], process=Process.sequential) | • Role-based multi-agent framework where agents collaborate through defined roles and responsibilities • supports sequential, hierarchical, and consensual process types • fastest path from idea to working multi-agent prototype. | ||
agent = Agent( model="gpt-4o", tools=[search_tool])response = agent.run("query") | • Production SDK from OpenAI replacing experimental Swarm (released March 2025) • built-in primitives: handoffs, guardrails, and end-to-end tracing • clean, opinionated handoff pattern; optimized for OpenAI models. | ||
agent = AssistantAgent( name="assistant", instructions="You are helpful")session = AgentSession() | • Unified successor to AutoGen and Semantic Kernel (GA target Q1 2026) • production-grade orchestration with session state, telemetry, agent skills, and enterprise features • optimized for .NET and Python; five built-in orchestration patterns. | ||
agent = Agent( name="MyAgent", model=gemini_model)agent.add_tool(SearchTool()) | • Google's modular agent framework (released April 2025) optimized for Gemini • native support for A2A cross-framework protocol and multimodal inputs • hierarchical agent tree; production integrations with GitHub, MongoDB, Jira. | ||
agent = Agent( model="openai:gpt-4o", result_type=MyModel)result = agent.run_sync(prompt) | • Type-safe agent framework with Pydantic validation for structured outputs • FastAPI-style ergonomics; model-agnostic; best-in-class Python IDE support • minimal abstraction for developers prioritizing correctness and type safety. | ||
assistant = AssistantAgent( name="assistant", llm_config=cfg)user_proxy.run(assistant, message="...").process() | • Community-maintained continuation of AutoGen v0.2 (renamed from AutoGen, fork managed by AG2AI organization) • supports group chat, swarm orchestration, CaptainAgent for auto team assembly, RAG, and code execution • Apache 2.0 license; 50k+ GitHub stars. | ||
agent = CodeAgent( tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())result = agent.run("task") | • Hugging Face's lightweight code-first agent framework — agent logic fits in ~1,000 lines • CodeAgent writes Python directly (loops, conditionals) enabling natural composability• model-agnostic; runs any HuggingFace Hub, OpenAI, or local model. | ||
from metagpt.software_company import generate_reporepo = generate_repo( "Create a 2048 game") | • Software company simulation framework where agents hold roles (PM, Architect, Engineer, QA) • takes one-line requirement, outputs PRDs, designs, code, and tests • Code = SOP(Team) philosophy; 60k+ GitHub stars. | ||
agent = new Agent({ name: "assistant", tools: [searchTool]})await agent.generate(input) | • TypeScript-first framework for web developers • unified workspace API for filesystem, sandbox execution, and search • built-in observability and streaming; by the Gatsby team. | ||
workflow = Workflow()async def retrieve(ctx, query): return index.query(query) | • Event-driven agent workflows with async, multi-step orchestration • purpose-built for data-grounded RAG-first agents • tight integration with vector indexes and retrieval; best when agent's primary job is querying private knowledge. | ||
pipeline = Pipeline()pipeline.add_node(retriever)pipeline.add_node(llm, inputs=["retriever"])result = pipeline.run(query) | • Document-centric orchestration optimized for RAG, QA, and knowledge extraction • node-based pipelines with strong document processing and retrieval capabilities. | ||
retriever = dspy.Retrieve(k=5)generator = dspy.ChainOfThought()compiled = dspy.Teleprompter()(pipeline) | • Declarative prompt optimization framework that treats prompts as code • automatically optimizes instructions and few-shot examples via compilation • eliminates manual prompt engineering. | ||
kernel = Kernel()kernel.add_plugin(MyPlugin())result = await kernel.invoke_prompt( "Generate summary") | • Plugin-based orchestration for integrating LLMs with enterprise services • function-calling abstraction with filters and telemetry • functionality merging into Microsoft Agent Framework, but maintained standalone. | ||
user = UserProxyAgent(name="user")assistant = AssistantAgent( name="assistant")user.initiate_chat(assistant) | • Original conversational multi-agent framework by Microsoft Research • superseded: Microsoft's v0.4+ is evolving into Microsoft Agent Framework; the community v0.2 lineage continues as AG2 • legacy codebases still widespread. |