Provider configuration is now expressed through the polymorphic Model field.
The previous Config core.ProviderConfig field has been removed.
System instructions that define the agent's personality, behavior, and constraints.
These instructions guide how the agent interprets tasks and generates responses.
Best practices:
Be clear and specific about the agent's role
Define boundaries and ethical guidelines
Include domain-specific knowledge or constraints
Use markdown formatting for better structure
max_iterations
integer
Maximum number of reasoning iterations the agent can perform.
The agent may self-correct and refine its response across multiple iterations
to improve accuracy and address complex multi-step problems.
Default:5 iterations
Trade-offs:
Higher values enable more thorough problem-solving and self-correction
Each iteration consumes additional tokens and increases response latency
Configure based on task complexity, accuracy requirements, and cost constraints
mcps
array
Model Context Protocol (MCP) server configurations.
MCPs provide standardized interfaces for extending agent capabilities
with external services and data sources through protocol-based communication.
"read-write": Full access to read and modify memory
"read-only": Can only read existing memory entries
model
object
Model selects which LLM model to use.
Supports two forms:
string: a model ID to be resolved via the ResourceStore (e.g. "openai-gpt-4o-mini")
object: an inline core.ProviderConfig with provider/model/params
During compile/link, string refs are resolved and merged with inline
fields following project precedence rules. Defaults are filled from the
project when neither ref nor inline identity is provided.
resource
string
Resource identifier for the autoloader system (must be "agent").
This field enables automatic discovery and registration of agent configurations.
tools
array
Tools available to the agent for extending its capabilities.
When tools are defined, the agent automatically has toolChoice set to "auto",
enabling autonomous tool selection and invocation during task execution.
Tool types supported:
File system operations (read, write, list)
API integrations (HTTP requests, webhooks)
Data processing utilities (parsing, transformation)
Custom business logic (TypeScript/JavaScript execution)
Tools are referenced by ID and can be shared across multiple agents.
with
object
Default input parameters passed to the agent on every invocation.
These values are merged with runtime inputs, with runtime values taking precedence.