One agent in seven frameworks: CrewAI, Agent Framework, OpenAI, Claude, ADK and more
Seven popular agent frameworks outside the LangChain family, one small agent, and the code that builds it in each. Five of the versions were run offline against current releases with a scripted model, so you can see exactly what each framework asks of you and where they really differ.
- Reading time
- 14 min
- Sections
- 8
- Code examples
- 8
- Tables
- 1
- Sources
- 9
- Published
- 23 Nov 2026
- What changed
- Five framework releases in one week
- Why it matters
- The core loop is a commodity.
- What to do
- Shortlist by constraints
Most agent frameworks now share the same core: a model, tools defined from Python functions, instructions, and a loop that runs until the model stops calling tools. What differs is everything around that loop: how tools are declared, how the model is plugged in, how state and sessions work, and what the framework adds for multi-agent work, safety and deployment. Comparing feature lists rarely shows this. Building the same small agent in each framework does.
This article builds one agent, an order-status assistant with a single tool, in seven frameworks outside the LangChain family: CrewAI, Microsoft Agent Framework, the OpenAI Agents SDK, the Claude Agent SDK, Google's Agent Development Kit (ADK), LlamaIndex and Hugging Face smolagents. For five of them the agent was run offline by replacing the model with a scripted one through the framework's own extension point. That is also a practical skill: it is how you write fast, repeatable tests for an agent. For a broader map that includes LangChain and LangGraph, see our frameworks overview.
What happened
Five framework releases in one week (12 to 20 November 2026)
Every framework in this comparison except smolagents shipped a release in the past two weeks. Microsoft Agent Framework 1.26.0 was published on 12 November 2026, LlamaIndex 0.14.26 on 13 November, OpenAI Agents SDK 0.25.0 on 18 November, CrewAI 1.15.44 on 19 November, and both Google ADK 2.15.0 and Claude Agent SDK 0.2.187 on 20 November. smolagents is at 1.26.0, released on 29 May 2026. All code below was tested against these exact versions.
AutoGen is archived; Microsoft Agent Framework is the successor
The AutoGen repository now states that AutoGen "is now archived and no longer maintained by Microsoft" and advises against production use. It recommends Microsoft Agent Framework for new projects and links to a migration guide. The last autogen-agentchat release on PyPI is 0.7.5 from September 2025. The Agent Framework README describes it as "the enterprise-ready successor to AutoGen" with a production-ready 1.0 release.
The test agent and the testing trick
Every version uses the same tool:
def get_order_status(order_id: str) -> str:
"""Return the shipping status of an order."""
return {"1042": "delivered", "2077": "in transit"}.get(order_id, "unknown")
And every offline run uses the same two-turn script: on the first model call, return a tool call for get_order_status with order_id="1042"; on the second, read the tool result and answer "Order 1042 is delivered." Each framework has a different place to plug that script in, and finding it tells you a lot about the framework's design. Think of it as a crash-test dummy: the car is real, only the driver is replaced, so you test the framework's loop, tool execution and message handling without paying for or waiting on a model.
The seven frameworks, one by one
Microsoft Agent Framework 1.26.0
Agents wrap a chat client. Tools are functions marked with @tool. To run offline you subclass BaseChatClient, implement _inner_get_response, and mix in FunctionInvocationLayer, which is the component that executes tool calls and loops.
# pip install agent-framework==1.26.0
import asyncio
from agent_framework import Agent, BaseChatClient, ChatResponse, Content, FunctionInvocationLayer, Message, tool
@tool
def get_order_status(order_id: str) -> str:
"""Return the shipping status of an order."""
return {"1042": "delivered", "2077": "in transit"}.get(order_id, "unknown")
class ScriptedClient(FunctionInvocationLayer, BaseChatClient):
"""Turn 1: request the tool. Turn 2: answer from the tool result."""
async def _get(self, messages):
results = [c for m in messages for c in m.contents if c.type == "function_result"]
if not results:
content = Content.from_function_call("call_1", "get_order_status", arguments={"order_id": "1042"})
else:
content = Content.from_text(f"Order 1042 is {results[-1].result}.")
return ChatResponse(messages=[Message("assistant", [content])])
def _inner_get_response(self, *, messages, stream, options, **kwargs):
return self._get(messages)
agent = Agent(ScriptedClient(), instructions="Answer order questions.", name="support", tools=[get_order_status])
result = asyncio.run(agent.run("Where is order 1042?"))
print(result.text)
for m in result.messages:
print(" ", m.role, [c.type for c in m.contents])
Order 1042 is delivered.
assistant ['function_call']
tool ['function_result']
assistant ['text']
The message list makes the loop visible: a function call, a tool message with the result, then the answer. The framework also ships orchestration builders for sequential, concurrent, group chat, handoff and Magentic layouts, plus graph-based workflows. Provider support comes through separate packages such as agent-framework-openai and agent-framework-anthropic. See the Microsoft Agent Framework page.
OpenAI Agents SDK 0.25.0
An Agent has name, instructions, tools, handoffs, model and guardrail fields. Tools are wrapped with @function_tool, and Runner.run(agent, input, max_turns=...) drives the loop. To run offline you implement the Model interface's get_response, returning a ModelResponse whose output contains either a ResponseFunctionToolCall or a ResponseOutputMessage, which are the Responses API item types. The core of the scripted model:
class ScriptedModel(Model):
async def get_response(self, system_instructions, input, model_settings, tools, output_schema,
handoffs, tracing, *, previous_response_id=None, conversation_id=None, prompt=None):
self.turn += 1
if self.turn == 1:
out = [ResponseFunctionToolCall(type="function_call", id="fc_1", call_id="call_1",
name="get_order_status", arguments='{"order_id": "1042"}')]
else:
result = next(i["output"] for i in input if isinstance(i, dict) and i.get("type") == "function_call_output")
out = [ResponseOutputMessage(type="message", id="msg_1", role="assistant", status="completed",
content=[ResponseOutputText(type="output_text", text=f"Order 1042 is {result}.", annotations=[])])]
return ModelResponse(output=out, usage=Usage(requests=1, input_tokens=100, output_tokens=20, total_tokens=120), response_id=None)
With Agent(..., model=ScriptedModel()) and set_tracing_disabled(True), the run printed "Order 1042 is delivered." and three new items: tool_call_item, tool_call_output_item and message_output_item. The SDK's distinctive features are first-class handoffs, input and output guardrails, sessions and built-in tracing. See the OpenAI Agents SDK page.
Google ADK 2.15.0
ADK's LlmAgent takes name, model, instruction and tools, and plain Python functions become tools automatically. Runs go through a Runner with a session service; InMemoryRunner bundles one for local use. To run offline you subclass BaseLlm and implement generate_content_async, yielding LlmResponse objects built from google.genai types:
class ScriptedLlm(BaseLlm):
async def generate_content_async(self, llm_request, stream=False):
last = llm_request.contents[-1].parts[0]
if last.function_response is None:
part = types.Part(function_call=types.FunctionCall(name="get_order_status", args={"order_id": "1042"}))
else:
part = types.Part(text=f"Order 1042 is {last.function_response.response['result']}.")
yield LlmResponse(content=types.Content(role="model", parts=[part]))
The event stream printed three events from the support agent: a call with {'order_id': '1042'}, a result {'result': 'delivered'} and the text answer. ADK wraps a plain string return value as {"result": ...}, which is worth knowing when you write prompts that refer to tool output. ADK also logged that token usage metadata was missing, which is expected for a scripted model. Its strengths are the event and session model, sub_agents for composition and close integration with Google Cloud deployment. See Google ADK.
CrewAI 1.15.44
CrewAI is built around roles and tasks: an Agent has a role, goal and backstory; a Task has a description and expected_output; a Crew runs tasks with a Process such as sequential. The constructor validates model names, so an unknown string fails unless the LiteLLM extra is installed. To run offline you subclass BaseLLM and implement call. Returning False from supports_function_calling makes CrewAI use its text protocol:
class ScriptedLLM(BaseLLM):
turn: int = 0
def supports_function_calling(self) -> bool:
return False # use the text-based Action / Final Answer protocol
def call(self, messages, tools=None, callbacks=None, available_functions=None, **kwargs):
self.turn += 1
if self.turn == 1:
return 'Thought: I need the order status.\nAction: get_order_status\nAction Input: {"order_id": "1042"}'
return "Thought: I now know the final answer.\nFinal Answer: Order 1042 is delivered."
crew.kickoff(inputs={"order_id": "1042"}).raw returned "Order 1042 is delivered." The {order_id} placeholder in the task description is filled from inputs. CrewAI suits teams that think in roles and handoffs of work products; its Flows feature adds event-driven control when crews are not enough. See CrewAI.
smolagents 1.26.0
smolagents has two agent types: ToolCallingAgent, which uses JSON tool calls, and CodeAgent, which writes Python code as its actions. Tools use the @tool decorator and need an Args: section in the docstring, from which the input schema is built. The agent finishes by calling a built-in final_answer tool. To run offline you subclass Model and implement generate, returning a ChatMessage with tool_calls. The scripted run returned "Order 1042 is delivered." after two action steps: one for get_order_status and one for final_answer. The CodeAgent approach can cut the number of steps for multi-tool tasks but needs a sandbox for safe execution. See smolagents.
LlamaIndex 0.14.26
LlamaIndex agents live in llama_index.core.agent.workflow. FunctionAgent uses native tool calling and ReActAgent uses text reasoning; both take tools, llm and system_prompt, and plain functions become FunctionTools. Agents can name others in can_handoff_to for multi-agent workflows. Constructing FunctionAgent(tools=[get_order_status], llm=MockFunctionCallingLLM(), ...) worked offline and registered the tool under its function name; a full run needs a model that returns tool calls. LlamaIndex is strongest when the agent's main job is retrieval over your documents. See LlamaIndex.
Claude Agent SDK 0.2.187
The Claude Agent SDK is different in kind. It drives the same agent harness as Claude Code through the Claude Code CLI, so the agent arrives with file, shell and search tools, permission modes and hooks. Custom tools are defined with @tool(name, description, schema), bundled into an in-process MCP server with create_sdk_mcp_server, and allowed by name:
@tool("get_order_status", "Return the shipping status of an order.", {"order_id": str})
async def get_order_status(args):
status = {"1042": "delivered", "2077": "in transit"}.get(args["order_id"], "unknown")
return {"content": [{"type": "text", "text": status}]}
orders = create_sdk_mcp_server(name="orders", version="1.0.0", tools=[get_order_status])
options = ClaudeAgentOptions(system_prompt="Answer order questions.", mcp_servers={"orders": orders},
allowed_tools=["mcp__orders__get_order_status"], max_turns=5)
The tool handler and options were tested offline; query(prompt=..., options=options) needs the CLI and an API key. Note the tool naming convention mcp__<server>__<tool>. ClaudeAgentOptions also exposes permission_mode, can_use_tool, hooks and max_budget_usd. See the Claude Agent SDK page and MCP.
Continue learning
How this article connects
10 pages link to or from it. Drag to turn, click a dot to open it.
What the offline runs revealed
Running the same script through five loops exposed differences that documentation rarely states.
Tool results are wrapped differently. ADK turned the plain string "delivered" into {"result": "delivered"} before the model saw it. The OpenAI Agents SDK passed it as the output of a function_call_output item. Agent Framework stored it in a function_result content on a tool message. CrewAI fed it back as an observation in its text protocol. If your prompts or evaluators refer to tool output, check the exact shape each framework produces.
The end of the loop is signalled differently. Four of the frameworks stop when the model replies with text and no tool call. smolagents instead expects the model to call a built-in final_answer tool, so a model that simply replies with text behaves differently there. CrewAI looks for a Final Answer: line when it uses its text protocol.
Every run took two model calls. One call to request the tool and one to answer, in all five frameworks. The loops add no hidden model calls for this simple case. That changes once you add planning, memory extraction, guardrails or delegation, which is why traces matter when comparing cost.
Install footprints vary a lot. Installing agent-framework 1.26.0 pulled in 31 packages whose names start with agent-framework, one per provider or integration, while smolagents and the OpenAI Agents SDK are single packages with a handful of dependencies. CrewAI brought its own pinned versions of shared libraries, which is where the openai conflict came from.
Model validation happens at different times. CrewAI checked the model name when the agent was constructed and failed early for an unknown provider. The others accepted any model object or string and would only fail on the first call. Early validation is friendlier in development but gets in the way of tests unless you use a custom LLM class, as above.
Side by side
| Framework | Tool declaration | Model plug-in point | Multi-agent primitive | Best fit |
|---|---|---|---|---|
| Microsoft Agent Framework | @tool |
BaseChatClient |
Orchestration builders, workflows | Enterprise and Azure stacks, AutoGen migrations |
| OpenAI Agents SDK | @function_tool |
Model.get_response |
handoffs, as_tool() |
Lean Python agents on Responses-style APIs |
| Google ADK | Plain functions | BaseLlm |
sub_agents |
Gemini and Google Cloud deployments |
| CrewAI | @tool (crewai.tools) |
BaseLLM.call |
Crews, tasks, processes | Role-based task pipelines |
| smolagents | @tool with Args: docstring |
Model.generate |
Managed agents | Small, hackable agents; code actions |
| LlamaIndex | Plain functions | LLM classes | can_handoff_to |
Retrieval-heavy agents |
| Claude Agent SDK | @tool plus SDK MCP server |
Claude Code CLI | Subagents | Agents that need files, shell and coding tools |
What it means in practice
The core loop is a commodity. Choose a framework for what surrounds it: the model providers you need, the deployment target, how it handles state and approvals, and how easy it is to test. The scripted-model technique used here is a good selection test in itself. If you cannot replace the model in an afternoon, you will struggle to write fast regression tests later.
Also weigh the team, not only the code. A framework your engineers can read end to end, debug in a trace and patch when needed is worth more than one with a longer feature list. Small teams often do best with the leanest SDK that meets their constraints, adding orchestration only when a real workflow demands it.
Keep your tools framework-neutral. In this comparison the business logic lived in one plain function, and each framework needed only a thin wrapper. Exposing tools through MCP goes further, because most of these frameworks can consume MCP servers directly.
What to do now
- Shortlist by constraints. Start from required model providers, hosting and language, then compare only frameworks that fit.
- Build the same small agent. Implement one real tool in two or three candidates and compare the code you had to write.
- Write a scripted-model test. Use each framework's model extension point to run the agent offline in CI.
- Keep tools in plain functions. Wrap them per framework, or serve them over MCP, so switching costs stay low.
- Plan the AutoGen migration. If you run AutoGen, follow Microsoft's migration guide to Agent Framework.
- Check approval and limit features. Confirm each candidate supports step limits, human approval and cost caps you need.
- Pin versions. Several of these SDKs release weekly; pin exact versions and upgrade on purpose.
- Compare traces, not claims. Run the same task in each candidate and compare model calls, tokens and the exact prompts sent.
Risks and open questions
Fast release cycles break code. Most of these frameworks shipped within the last two weeks, and pre-1.0 SDKs such as the OpenAI Agents SDK can change APIs between minor versions.
Abstractions hide prompts. Role-based frameworks build long prompts from your fields; read the final prompt in traces before trusting behaviour.
Dependency conflicts are real. While preparing this article, installing CrewAI and the OpenAI Agents SDK in one environment produced conflicting requirements for the openai package. Separate environments or services avoid this.
Vendor gravity. Each SDK works with many models, but defaults, tracing and deployment favour the vendor's own platform.
Watch next: how quickly AutoGen users move to Agent Framework, whether agent SDKs converge on MCP and A2A for tools and inter-agent calls, and whether the OpenAI Agents SDK reaches a 1.0 stability promise.
Frequently asked questions
Which agent framework is best?
None is best for every case. The OpenAI Agents SDK and smolagents are lean, Agent Framework and ADK are strong for their clouds, CrewAI suits role-based pipelines, LlamaIndex suits retrieval-heavy agents, and the Claude Agent SDK suits agents that work with files and shells. Pick by constraints, then test.
Is AutoGen still maintained?
No. Its repository says AutoGen is archived and no longer maintained by Microsoft, and recommends Microsoft Agent Framework for new projects. A migration guide is linked from the README.
How can I test an agent without calling a model?
Replace the model through the framework's extension point with a scripted one that returns fixed tool calls and answers. This article did that for five frameworks, which lets you test tool wiring and loop logic in CI.
Can I switch frameworks later?
Yes, if your tools are plain functions or MCP servers and your prompts live outside framework-specific classes. In this comparison the shared tool function needed only a decorator or wrapper per framework.
What is the difference between ToolCallingAgent and CodeAgent in smolagents?
A ToolCallingAgent emits JSON tool calls, like most frameworks. A CodeAgent writes Python code that calls tools, which can combine several actions in one step but needs a sandbox to run safely.
Summary
The same one-tool agent was built in seven frameworks and run offline in five of them with a scripted model plugged in through each framework's own interface: BaseChatClient in Agent Framework, Model.get_response in the OpenAI Agents SDK, BaseLlm in ADK, BaseLLM.call in CrewAI and Model.generate in smolagents. The loops are alike; tool declaration, state, multi-agent primitives and deployment differ. AutoGen is now archived in favour of Microsoft Agent Framework. Choose by constraints, keep tools framework-neutral, and test every agent offline before it ever meets a real model.
Sources
- Code GitHub: Microsoft Agent Framework README
- Code GitHub: AutoGen README
- Code PyPI: openai-agents
- Code PyPI: google-adk
- Code PyPI: crewai
- Code PyPI: smolagents
- Code PyPI: llama-index
- Code PyPI: claude-agent-sdk
- Code PyPI: agent-framework
Cite this article
Kelahmet, Ö. C. (2026, November 23). One agent in seven frameworks: CrewAI, Agent Framework, OpenAI, Claude, ADK and more. Özer Cem KELAHMET. https://www.ozercemkelahmet.com/articles/one-agent-seven-frameworks-compared
BibTeX
@online{kelahmet2026agent,
author = {Kelahmet, {\"O}zer Cem},
title = {{One agent in seven frameworks: CrewAI, Agent Framework, OpenAI, Claude, ADK and more}},
year = {2026},
month = {nov},
url = {https://www.ozercemkelahmet.com/articles/one-agent-seven-frameworks-compared}
}Version historyfirst version
- Published
Factual corrections are listed here with what changed. Wording and formatting edits are not listed.