Features
Agent Composition
Build modular agents with specific roles and capabilities
Tool Integration
Compatible with Vercel AI SDK tools
Handoffs
Agents can delegate to specialized agents automatically
Structured Output
Type-safe responses with Zod schemas
Streaming
Real-time streaming responses
Context Sharing
Type-safe state passed between agents
Quick Example
Use Cases
Research & Writing
Build agents that research topics, gather information, and produce detailed reports:- Planner Agent - Generates search queries
- Research Agent - Executes searches and summarizes findings
- Writer Agent - Synthesizes research into cohesive reports
Customer Support
Create specialized agents for different support scenarios:- Triage Agent - Routes requests to appropriate specialists
- Billing Agent - Handles payment and subscription issues
- Technical Agent - Provides technical troubleshooting
Data Analysis
Coordinate agents for complex data workflows:- SQL Agent - Queries databases
- Analysis Agent - Processes and interprets results
- Visualization Agent - Creates charts and dashboards
Core Concepts
Agents
Agents are autonomous units with a language model, instructions, and optional tools. Each agent has a specific role and capabilities.
Tools
Tools extend agent capabilities by allowing them to interact with external systems, APIs, or perform computations.
Handoffs
Handoffs enable agents to transfer control to specialized agents when needed, creating a coordination hierarchy.
AI Model Providers
Works with any model provider supported by the Vercel AI SDK:Next Steps
Installation
Install @deepagents/agent in your project
Basic Agent
Create your first agent
Tools
Integrate tools with agents
Multi-Agent
Build multi-agent systems