Quick Start
Create your first agent in just a few lines:Core Concepts
Agent Configuration
Every agent has three key components:- name: Identifies your agent
- model: The LLM to use (supports any LiteLLM model)
- instructions: System prompt that defines agent behavior
Model Selection
A bare name goes to OpenAI. Aprovider/model-name string is routed through LiteLLM:
base_url. The model string is then passed through as that provider spells it:
Model Settings
Customize model behavior withModelSettings:
Running Agents
Synchronous Execution
For simple, blocking execution:Async Execution
For better performance and concurrent operations:Batch Processing
Process multiple prompts concurrently:Conversation Context
Maintain conversation history with message format:Agent from Markdown
Create agents from markdown files with frontmatter:Advanced Features
Fallback Models
Automatically retry with fallback models on rate limits or errors:Structured Outputs
Get typed responses with Pydantic models:Durable Runs
Give the agent a store and every step is written to disk, so another process can finish an interrupted run:Agent Skills
Skills are folders of instructions and scripts that agents load dynamically:Thinking Mode
Get the agent’s reasoning process:Best Practices
Next Steps
- Learn how to add custom tools to your agents
- Set up streaming responses for real-time output
- Serve your agent as an API
- Enable observability for production monitoring
