Agent Configuration
Copy page
Learn how to configure your agents
Agents are the core building blocks of our framework, designed to be both powerful individual workers and collaborative team members in multi-agent systems. Through the framework's agent graph architecture, each agent can seamlessly delegate tasks, share context, and work together using structured data components.
Creating an Agent
Every agent needs a unique identifier, and clear prompt that define its behavior:
Agent Options
The framework supports rich agent configuration. Here are the options you can configure:
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Yes | Stable agent identifier used for consistency and persistence |
name | string | Yes | Human-readable name for the agent |
description | string | Yes | Brief description of the agent's purpose and capabilities |
prompt | string | Yes | Detailed behavior guidelines and system prompt for the agent |
models | object | No | AI model settings with separate settings for base, structuredOutput, and summarizer models |
tools | object | No | MCP tools that the agent can use. See MCP Servers for details |
dataComponents | array | No | Structured output components for rich, interactive responses. See Data Components for details |
artifactComponents | array | No | Components for handling tool or agent outputs. See Artifact Components for details |
canTransferTo | function | No | Function returning array of agents this agent can transfer to. See Transfer Relationships for details |
canDelegateTo | function | No | Function returning array of agents this agent can delegate to. See Delegation Relationships for details |
Model Settings
The models
object allows you to configure different models for different tasks, each with their own provider options:
Model Types
base
: Primary model used for conversational text generation and reasoningstructuredOutput
: Model used for structured JSON output only (falls back to base if not configured and nothing to inherit)summarizer
: Model used for summaries and status updates (falls back to base if not configured and nothing to inherit)
Default Models
When no model settings are configured at any level (project, graph, or agent), the system uses these defaults:
- Default base model:
anthropic/claude-4-sonnet-20250514
- Default structured output model:
openai/gpt-4.1-mini-2025-04-14
- Default summarizer model:
openai/gpt-4.1-nano-2025-04-14
Required API Keys: For the system defaults to work properly, you need both:
ANTHROPIC_API_KEY
(for the base model)OPENAI_API_KEY
(for structured output and summarizer models)
Provider Options
Each model settings can include providerOptions
with provider-specific settings:
temperature
: Response creativity (0.0-1.0)maxTokens
: Maximum response lengthtimeout
: Request timeout in milliseconds (e.g.,30000
for 30 seconds)- Provider-specific options vary by provider
Inheritance
If no models
settings are specified, the agent will inherit the models settings from its agent graph, which may inherit from the project settings.
Graph Prompt Integration
Agents automatically receive any graph-level prompt configuration in addition to their individual prompt:
The graphPrompt
is injected into each agent's system prompt, providing consistent context and behavior guidelines across all agents in the graph.