Framework Atlas · Free
Watch one weather agent run in five frameworks: the loop stays the same, only the names change.
Press Play to watch it run, or step through with ← →. Then switch to Practice and run it yourself.
# Google ADK (Python). Install: pip install google-adk
# Needs GOOGLE_API_KEY in the environment (see the ADK Python quickstart).
import asyncio
from google.adk.agents.llm_agent import Agent
from google.adk.runners import Runner
from google.adk.sessions import InMemorySessionService
from google.genai import types
APP_NAME = "weather_app"
USER_ID = "1234"
SESSION_ID = "session1234"
def get_weather(city: str) -> dict:
"""Returns the current weather in a specified city."""
if city.lower() == "chennai":
return {"status": "success", "city": city, "report": "31 C, humid"}
return {"status": "error", "error_message": f"No weather data for {city}."}
root_agent = Agent(
model='gemini-flash-latest',
name='weather_agent',
description="Tells the current weather in a specified city.",
instruction="You are a helpful assistant that tells the weather in cities. Use the 'get_weather' tool for this purpose.",
tools=[get_weather],
)
# Session and Runner
session_service = InMemorySessionService()
session = asyncio.run(
session_service.create_session(app_name=APP_NAME, user_id=USER_ID, session_id=SESSION_ID)
)
runner = Runner(agent=root_agent, app_name=APP_NAME, session_service=session_service)
# Agent Interaction
content = types.Content(role='user', parts=[types.Part(text="What's the weather in Chennai?")])
events = runner.run(user_id=USER_ID, session_id=SESSION_ID, new_message=content)
for event in events:
if event.is_final_response() and event.content and event.content.parts:
print(event.content.parts[0].text)Nothing yet. Press Play.
An open-source, code-first toolkit for building, evaluating and deploying agents.
Needs GOOGLE_API_KEY in the environment.
Choose it when
Each example follows that framework's own documentation and uses the model its docs use. Swap in any model you have access to.
Press Play to watch it run, or step through with ← →. Then switch to Practice and run it yourself.
# LangGraph: pip install -U langgraph langchain langchain-anthropic ; needs ANTHROPIC_API_KEY set
import operator
from typing import Literal
from typing_extensions import TypedDict, Annotated
from langchain.tools import tool
from langchain.chat_models import init_chat_model
from langchain.messages import AnyMessage, HumanMessage, SystemMessage, ToolMessage
from langgraph.graph import StateGraph, START, END
@tool
def get_weather(city: str) -> str:
"""Get the current weather for `city`."""
return "31 C, humid" if city.lower() == "chennai" else f"No weather data for {city}."
model = init_chat_model("claude-sonnet-4-6", temperature=0)
tools = [get_weather]
tools_by_name = {tool.name: tool for tool in tools}
model_with_tools = model.bind_tools(tools)
class MessagesState(TypedDict):
messages: Annotated[list[AnyMessage], operator.add]
def llm_call(state: dict):
system = SystemMessage(content="You are a helpful assistant that reports the weather.")
return {"messages": [model_with_tools.invoke([system] + state["messages"])]}
def tool_node(state: dict):
result = []
for tool_call in state["messages"][-1].tool_calls:
observation = tools_by_name[tool_call["name"]].invoke(tool_call["args"])
result.append(ToolMessage(content=observation, tool_call_id=tool_call["id"]))
return {"messages": result}
def should_continue(state: MessagesState) -> Literal["tool_node", END]:
return "tool_node" if state["messages"][-1].tool_calls else END
agent_builder = StateGraph(MessagesState)
agent_builder.add_node("llm_call", llm_call)
agent_builder.add_node("tool_node", tool_node)
agent_builder.add_edge(START, "llm_call")
agent_builder.add_conditional_edges("llm_call", should_continue, ["tool_node", END])
agent_builder.add_edge("tool_node", "llm_call")
weather_agent = agent_builder.compile()
messages = weather_agent.invoke({"messages": [HumanMessage(content="What's the weather in Chennai?")]})
messages["messages"][-1].pretty_print()Nothing yet. Press Play.
LangChain
A low-level orchestration framework and runtime for long-running, stateful agents.
Needs ANTHROPIC_API_KEY in the environment (the quickstart's model).
Choose it when
Each example follows that framework's own documentation and uses the model its docs use. Swap in any model you have access to.
Press Play to watch it run, or step through with ← →. Then switch to Practice and run it yourself.
# CrewAI. Install the CLI: uv tool install crewai
# Needs the model provider's API key in the environment (see CrewAI LLM setup).
from crewai import Agent, Task, Crew
from crewai.tools import tool
@tool("get_weather")
def get_weather(city: str) -> str:
"""Get the current weather for a city."""
if city.lower() == "chennai":
return "31 C, humid"
return f"No weather data for {city}."
weather_agent = Agent(
role="Weather Assistant",
goal="Answer questions about the current weather in a city",
backstory="A careful assistant that always checks the weather tool before answering.",
llm="gpt-6-luna",
tools=[get_weather],
verbose=True,
)
weather_task = Task(
description="What's the weather in Chennai?",
expected_output="One sentence stating the temperature and conditions in Chennai.",
agent=weather_agent,
)
crew = Crew(
agents=[weather_agent],
tasks=[weather_task],
verbose=True,
)
result = crew.kickoff()
print(result.raw)Nothing yet. Press Play.
CrewAI
An open-source framework built around Crews of role-based agents and event-driven Flows.
Needs your model provider's API key in the environment.
Choose it when
Each example follows that framework's own documentation and uses the model its docs use. Swap in any model you have access to.
Press Play to watch it run, or step through with ← →. Then switch to Practice and run it yourself.
# Microsoft Agent Framework (Python). Install: pip install agent-framework-foundry azure-identity
# Sign in with `az login`; replace project_endpoint and model with your Foundry values.
import asyncio
from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential
def get_weather(city: str) -> str:
"""Get the weather for a given city."""
if city.lower() == "chennai":
return "31 C, humid"
return f"No weather data for {city}."
weather_agent = Agent(
client=FoundryChatClient(
project_endpoint="https://your-foundry-service.services.ai.azure.com/api/projects/your-foundry-project",
model="gpt-5.4-mini",
credential=AzureCliCredential(),
),
name="weather_agent",
instructions="You are a helpful assistant. Use get_weather to answer weather questions.",
tools=[get_weather],
)
async def main():
# Non-streaming: get the complete response at once
result = await weather_agent.run("What's the weather in Chennai?")
print(f"Agent: {result}")
asyncio.run(main())Nothing yet. Press Play.
Microsoft
Microsoft's framework for agents and multi-agent workflows, the successor to AutoGen and Semantic Kernel.
Needs az login and your Microsoft Foundry project endpoint.
Choose it when
Each example follows that framework's own documentation and uses the model its docs use. Swap in any model you have access to.
Press Play to watch it run, or step through with ← →. Then switch to Practice and run it yourself.
# OpenAI Agents SDK. Install: pip install openai-agents
# Needs OPENAI_API_KEY in the environment (see the Agents SDK quickstart).
import asyncio
from agents import Agent, Runner
from agents.decorators import tool
@tool
def get_weather(city: str) -> str:
"""returns weather info for the specified city."""
if city.lower() == "chennai":
return "31 C, humid"
return f"No weather data for {city}."
weather_agent = Agent(
name="weather_agent",
instructions="Answer weather questions clearly. Use get_weather when it helps.",
model="gpt-5-nano",
tools=[get_weather],
)
async def main():
result = await Runner.run(
weather_agent,
"What's the weather in Chennai?",
)
print(result.final_output)
if __name__ == "__main__":
asyncio.run(main())Nothing yet. Press Play.
OpenAI
A lightweight package with very few abstractions for building agentic apps.
Needs OPENAI_API_KEY in the environment.
Choose it when
Each example follows that framework's own documentation and uses the model its docs use. Swap in any model you have access to.
Try Practice on two frameworks: the clicks are the same.
Translation
Concept 01 / 09
ADK
Agent / LlmAgentLangGraph
Compiled StateGraph (no agent class)CrewAI
Agent (role, goal, backstory)Agent Framework
Agent, with a chat clientAgents SDK
Agent| Concept | ADK | LangGraph | CrewAI | Agent Framework | Agents SDK |
|---|---|---|---|---|---|
| AgentA model plus instructions and tools | Agent / LlmAgent | Compiled StateGraph (no agent class) | Agent (role, goal, backstory) | Agent, with a chat client | Agent |
| ToolA function the model can ask for | Function tools (FunctionTool) | @tool, model.bind_tools | @tool decorator or BaseTool | Function tools (@tool or plain function) | Function tools |
| Conversation stateWhat is remembered inside one chat | Session and State | Checkpointers (thread-scoped) | Flow state, Memory | AgentSession | Sessions |
| Long-term memoryWhat is remembered across chats | Memory (MemoryService) | Stores (cross-thread) | Memory class | Context providers | Agent memory (sandbox agents only) |
| Handing work to another agentMulti-agent delegation | sub_agents, AgentTool | Handoffs / subagents patterns | allow_delegation, hierarchical process | Handoff orchestration, agents as tools | Handoffs, Agent.as_tool() |
| Fixed workflowSteps in an order you decide, not the model | Graph-based workflows | Graph API: state, nodes, edges | Flows (@start, @listen) | Workflows (WorkflowBuilder) | Not built in: orchestrate in code |
| Human in the loopPause and ask a person | RequestInput node, Tool Confirmation | Interrupts: interrupt(), Command | human_input on Task, @human_feedback | Tool approval, ctx.request_info() | needs_approval, RunState |
| Tracing and evaluationSee what happened, check quality | Traces (OpenTelemetry), adk eval | LangSmith Observability | CrewAI Tracing, crewai test | Observability (OpenTelemetry), Evaluation | Tracing (built in) |
| Deployment in the docsWhere the docs tell you to run it | Agent Runtime, Cloud Run, GKE | LangSmith Cloud / Agent Server | CrewAI AMP | Foundry Hosted Agents, self-hosting | Not built in |
Start here
Q1Already tied to a cloud?
Q2What matters most?
Start with
Answer a question, follow the line.
Head to head
Microsoft has archived AutoGen: its repository says it is no longer actively maintained and that new users should start with Microsoft Agent Framework, which Microsoft describes as the next generation of both AutoGen and Semantic Kernel. There is an official AutoGen migration guide. AG2 is a separate, community-run fork of AutoGen with its own roadmap.
Names, commands and code were checked against each project's official documentation on 21 November 2026. These projects change quickly, so check the docs before you rely on a detail.
StepAgent is independent and is not affiliated with any of these projects. Want to go deep on one? The ADK course has 61 animated lessons.