Overview
In this tutorial, you’ll build a researcher agent that:- Takes a research query
- Searches the web for information
- Summarizes the findings
Step 1: Create the Agent File
Createagents/researcher.py:
Step 2: Create a Tool
Createtools/web_tools.py:
Step 3: Set Environment Variables
Add to your.env file:
Step 4: Run the Agent
Option A: Local Run (Fastest)
Option B: As a Worker
Start the worker:Step 5: Understand the Output
You should see output like:Understanding Agent Configuration
Let’s break down the agent configuration:Core Parameters
LLM Configuration
Execution Control
Adding More Tools
Add additional tools to your agent:Advanced: Custom Instructions
Add custom instructions to guide agent behavior:Testing Your Agent
Test with different queries:Next Steps
Agent Configuration
Learn all agent configuration options
Tool Development
Create more sophisticated tools
Agent Authoring
Best practices for agent design
MCP Integration
Connect to MCP servers
Troubleshooting
Agent Not Found
Ensure your agent file is in theagents/ directory and properly imported.
Tool Errors
Check that:- Tool is properly decorated with
@tool - Parameters match the schema
- API keys are set in
.env
LLM Errors
Verify:- API key is valid
- Model name is correct
- Network connectivity
Next Steps
- Agent Configuration - Complete configuration reference
- Tool Development - Build custom tools
- Agent Authoring - Design patterns
- Playground - Use the dashboard