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.Documentation Index
Fetch the complete documentation index at: https://docs.definable.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.