Prerequisites
Before you begin, make sure you have:- An API key from a model provider (e.g., Anthropic, OpenAI)
Step 1: Install dependencies
Step 2: Set up your API keys
Step 3: Create a search tool
Step 4: Create a deep agent
Step 5: Run the agent
What happened?
Your deep agent automatically:- Planned its approach: Used the built-in
write_todos
tool to break down the research task - Conducted research: Called the
internet_search
tool to gather information - Managed context: Used file system tools (
write_file
,read_file
) to offload large search results - Spawned subagents (if needed): Delegated complex subtasks to specialized subagents
- Synthesized a report: Compiled findings into a coherent response
Next steps
Now that you’ve built your first deep agent:- Customize your agent: Learn about customization options, including custom system prompts, tools, and subagents.
- Understand middleware: Dive into the middleware architecture that powers deep agents.
- Add long-term memory: Enable persistent memory across conversations.
- Deploy to production: Learn about deployment options for LangGraph applications.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers. See how