Frameworks provide ready-made loops, state stores, tool connections, tracing, and handoffs.
They can save engineering time. They do not decide whether your product needs an agent, make unsafe tools safe, or repair poor retrieval.
The small loop from the previous lessons can be written without a framework:
think → act → observe → remember → repeat
The difficult production work sits around it:
Frameworks package some of this work.
The session presents this 2026 landscape:
| Framework | What changed or stands out | Ecosystem |
|---|---|---|
| Microsoft Agent Framework 1.0 | Semantic Kernel and AutoGen brought into one runtime in April 2026 | Azure / .NET |
| OpenAI Agents SDK | Handoffs, guardrails, and tracing as first-class parts | OpenAI |
| Claude Agent SDK | Hierarchical subagents, MCP-native design, safety-first defaults | Anthropic |
| Google ADK | Hierarchical agent trees, built-in development UI, A2A support | Google Cloud |
| Pydantic AI v2 | Typed inputs and outputs, model-agnostic; v2 stable in June 2026 | Python-first |
| Strands, Mastra, Agno | AWS-native, TypeScript-native, and lightweight open-source choices | AWS / TypeScript / OSS |
Framework names and versions change quickly. The architecture from this chapter changes much more slowly.
| Stage | Request it can handle | System capability | What changed |
|---|---|---|---|
| LLM | "What is the capital of France?" | Language generation | Nothing external |
| RAG | "What is our international travel policy?" | Retrieve, then generate | External knowledge |
| Assistant | "I am in Paris next week — what does it allow?" | Knowledge plus context | State across turns |
| Tool-using assistant | "Find flights to Paris." | Calls an external service | It can act |
| Agent | "Plan my trip within policy and ₹80,000." | Retrieval, tools, state, decisions | It chooses the order |
| Multi-agent | "Plan the trip, meetings, and expenses." | Coordinated specialists | The task is decomposed |
Nothing below is thrown away. The agent still chunks documents, creates embeddings, retrieves policy, maintains conversation context, and calls tools.
The dividing line is task completion, not intelligence.
If the full flowchart can be drawn before the request arrives, build a workflow.
Use an agent when the next step genuinely depends on what just happened.
The core can fit in a few lines:
while not done and within_budget:
action = choose_next_action(state)
observation = run_allowed_tool(action)
state = remember(state, observation)
Frameworks make the surrounding state, tooling, and operations easier. They do not change the basic loop.
Retrieval becomes a tool the agent can call, skip, repeat, and verify.
This also raises the stakes of retrieval quality. A weak chunk is no longer only a weak answer source; it may shape a real action.
Reliable agents need:
Do not begin with a multi-agent framework.
Choose frameworks for operational fit, keep the core architecture portable, and remember that state, controls, and task success matter more than the SDK name.