Contents

Agents

Agent Types

View as:

Code Labs - 01: Agent Types

Build single agents from scratch across three complexity levels in all four frameworks. Each level adds a new capability layer on top of the previous.

Back to Overview: Agents · Back to Concepts: Agent Fundamentals · Agent Patterns


Complexity Progression

Level 1: Simple           Level 2: Intermediate      Level 3: Complex
─────────────────         ─────────────────────       ────────────────────
ReAct loop                + Memory                    + Planning
Tool binding              + Multi-tool                + Reflection
Basic Gemini call         + Structured output         + Streaming

Labs by Framework and Level

Google ADK

LevelFileWhat You Learn
SimpleADK/01-simple/agent.ipynbReAct agent, tool binding, Gemini model config
IntermediateADK/02-intermediate/agent.ipynbSession memory, multi-tool orchestration, output schema
ComplexADK/03-complex/agent.ipynbPlanning steps, self-reflection, streaming response
Real-worldADK/vertex-ai-real-world/agent.ipynbProduction ADK on Vertex AI with live APIs

LangChain

LevelFileWhat You Learn
SimpleLangChain/01-simple/agent.ipynbLCEL chain, tool calling, message history
IntermediateLangChain/02-intermediate/agent.ipynbConversationBufferMemory, multi-tool routing
ComplexLangChain/03-complex/agent.ipynbPlan-and-execute, output parsers, callbacks
Real-worldLangChain/real-world/agent.ipynbTavily web search, live data integration

LangGraph

LevelFileWhat You Learn
SimpleLangGraph/01-simple/agent.ipynbGraph nodes, edges, StateGraph, basic tool call
IntermediateLangGraph/02-intermediate/agent.ipynbCheckpointer memory, conditional edges, tool router
ComplexLangGraph/03-complex/agent.ipynbSubgraphs, reflection loop, streaming events
Real-worldLangGraph/real-world/agent.ipynbStateful conversation with web retrieval

CrewAI

LevelFileWhat You Learn
SimpleCrewAI/01-simple/agent.ipynbAgent + Task + Crew, role assignment
IntermediateCrewAI/02-intermediate/agent.ipynbShared crew memory, multi-tool agents
ComplexCrewAI/03-complex/agent.ipynbSequential task chaining, delegation, callbacks
Real-worldCrewAI/real-world/agent.ipynbResearch crew with live web tools

Framework Comparison at Each Level

CapabilityADKLangChainLangGraphCrewAI
Tool binding@tool decorator@tool + bind_toolsToolNodeAgent tools list
MemorySession serviceConversationBufferCheckpointerCrew memory
State modelSession dictMessage listTypedDict graph stateShared crew context
Streamingstream_query.stream().stream_events()Callback handlers

Getting Started

# Start with the simplest ADK notebook
jupyter notebook 05-Agents/CodeLabs/01-Agent-Types/ADK/01-simple/agent.ipynb

# Or LangChain if you prefer
jupyter notebook 05-Agents/CodeLabs/01-Agent-Types/LangChain/01-simple/agent.ipynb

After completing all four simple agents, compare: same task, four different approaches. The differences in state management, tool binding, and model calls become immediately apparent.


What to Read Alongside


Next: Architecture Patterns

Once you've built single agents, move to 02 - Architecture Patterns to see how multiple agents coordinate.