Guides
Build Agents
Create agents with tools and instructions.
Run Agents
Execute agents sync, async, and with streaming.
Configure Agents
Control retries, limits, compression, and tracing.
Key Concepts
| Concept | What it does |
|---|---|
| Tools | Functions the agent can call to take actions |
| Knowledge | RAG pipeline for grounding responses in documents |
| Memory | Persistent session history across conversations |
| Thinking | Reasoning phase before generating responses |
| Middleware | Composable wrappers for logging, retries, metrics |
| Tracing | Structured event export for debugging |
| Security | Tool policies, rate limiting, prompt injection detection |
| Evaluation | Accuracy, performance, and reliability testing |
Beyond Single Agents
Usage Examples
Agent with Tools
Multiple tools with parallel execution.
Agent with Knowledge
RAG-grounded responses from documents.
Agent with Memory
Persistent memory across conversations.
Structured Output
Return typed Pydantic models.
Streaming
Stream tokens in real time.