Skip to main content
Agents are a stateful control loop around a stateless model. The model reasons and calls tools in a loop, guided by instructions. Add memory, knowledge, tools, guardrails, and middleware as needed.

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

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.

Resources