Configuration fields
This reference covers config.yaml fields, defaults, and merge rules. See configuration basics and models for first-time model setup.
Use strict YAML 1.2. Comments and multiline strings are allowed. Unknown fields, duplicate keys, anchors, aliases, merge keys, explicit tags, invalid types, and nonfinite numbers are rejected. Relative paths resolve from the declaring file's directory and ~/ expands. dataagent.output_root only accepts absolute or ~/ paths.
Top level
| Field | Default | Meaning |
|---|---|---|
schema_version |
4 | Only accepted product schema version |
dataagent |
See below | Model, limits, hooks, inputs, and entry |
models |
Required | Model ID to connection mapping. Must contain the selected model |
plugins |
enabled: [], paths: [] |
Enabled IDs and extra candidate paths |
server |
See below | Execution deadline and listen settings for both servers; only serve-a2a accepts --host/--port overrides. Web and deploy use the listen fields |
semantic |
Omitted | No semantic client is created when omitted |
a2a |
Omitted | Agent Card and outbound agents |
dataagent
| Field | Default | Constraint |
|---|---|---|
model |
"primary" |
Key in models |
limits.model_calls_per_agent |
128 | Positive integer, model loop limit per agent per invocation |
limits.tool_calls_per_agent |
128 | Positive integer, tool call limit per agent per invocation |
loop_detection.enabled |
true |
Detect repeated text and stagnant tool loops |
loop_detection.ignored_tools |
[] |
Full registered names to exclude from tool-loop detection |
hooks |
[] |
Grouped or flat declarations, appended across layers |
input_workspaces |
[] |
Read-only inputs. Empty does not create directories |
output_root |
null |
Absolute or ~/ output root for new sessions. The default is <home>/outputs. Adds <user>/<thread>/. Existing sessions keep their directory. See outputs |
entry |
Omitted | Name matching [a-z][a-z0-9_-]{0,63} of an enabled compiled subagent. Otherwise use the Deep Agents root. See entry mode |
Rename older dataagent.workspaces to dataagent.input_workspaces. Each item has a unique name matching [A-Za-z0-9][A-Za-z0-9_-]{0,127}, a unique resolved path to a readable existing directory, and read_only: true.
Set entry in the selected product YAML. Omitting it assembles the default Deep Agents root. Restart after a change. Extension refresh retains it. /healthz reports the value or null; a bad name fails first graph assembly with HTTP 409. Entry wrappers omit product hooks, model/tool call limits, ignored-tool middleware, and input workspaces. The host timeout still applies.
Repetition and loop detection
Local repetition and tool-loop detection are enabled by default. On the first tool-loop hit, the model gets one chance to change its approach. A second hit stops the run. Use ignored_tools for intentional polling. Compiled entry graphs, compiled subagents, and the built-in general-purpose without a plugin override only use text detection.
dataagent:
loop_detection:
enabled: true
ignored_tools:
- jobs__get_statusSet enabled: false to disable both checks. Restart the server or recreate the SDK agent after changing settings. A text hit or a second tool-loop hit raises LoopDetectedError in the SDK and sends LOOP_DETECTED in the REST stream. Completed operations are not replayed. See the execution implementation for thresholds and middleware placement.
models.<id>
| Field | Default | Constraint |
|---|---|---|
provider |
"openai" |
For OpenAI-compatible providers |
name |
Required | Nonempty provider model name. May use $env{...} |
base_url |
Required | Nonempty API root, usually ending in /v1 |
api_key |
Required | Nonempty, preferably $env{LLM_API_KEY} |
timeout_seconds |
300 (5 minutes) | Positive finite number. Sets the model SDK’s HTTP request timeout. REST/AG-UI and inbound A2A execution also use server.run_timeout_seconds |
max_retries |
2 | Nonnegative HTTP retries in addition to the first request. 0 disables retries |
temperature |
Omitted | Number from 0 to 2 |
max_tokens |
Omitted | Positive integer |
extra_body |
{} |
Passed to Chat Completions |
Models use Chat Completions with use_responses_api=False. There is no response_format field. Optional sampling, token, and extra body settings are passed only when configured. Startup expands the default model's environment values. Other models use the startup environment snapshot on first get_model. See environment precedence.
plugins
The selected product YAML supplies enabled and paths, both defaulting to []. Explicit enabled IDs are unique, and requires adds dependencies. Each extra candidate path names one plugin directory. config defaults to {} and merges by plugin ID. The plugin validates its own values. An enabled ID matches exactly one candidate whose directory name agrees with .plugin.yaml.
server
The npm launcher, Web proxy, and TUI without arguments read the explicit YAML or Home YAML.
At startup, ./deploy.sh start resolves the same address, recording the hostname as listen.apiHost and port as ports.api in storage/run/deployment.json; later tui, status, and doctor use that address. On first deploy, when Home has no config.yaml, the full configuration is created from the template; in new and existing files alike, only the selected host and port are written, and unparsable YAML is not overwritten. Run start or restart again to record subsequent address changes.
| Field | Default | Constraint |
|---|---|---|
host |
"127.0.0.1" |
Bind address, such as 127.0.0.1 or 0.0.0.0 |
port |
8790 | Integer from 1 to 65535. Occupied ports fail startup |
run_timeout_seconds |
900 (15 minutes) | Positive finite number. Bounds REST/AG-UI event execution and inbound A2A agent ainvoke |
Each Server execution starts a new deadline, including when it resumes after HITL. Model retries and tool waits count toward it. Time spent waiting for a human answer does not. Inbound A2A queueing, session preparation, and checkpoint settlement are outside the execution deadline. Direct Python SDK callers control their own deadline.
When upgrading existing YAML, remove dataagent.limits.timeout_seconds. Move the Server execution deadline to server.run_timeout_seconds. Configuration loading rejects the old key.
Tools use their own timeouts. Shell commands default to 120 seconds and accept a per-command execute timeout. MCP uses its adapter’s transport defaults. A2A supports a per-peer HTTP timeout.
a2a
card.name and card.description default to DataAgent and must be nonblank when present. The selected product YAML supplies remote_agents, which defaults to []. Unique IDs register outbound tools and do not control inbound routes.
| Remote field | Default | Constraint |
|---|---|---|
id |
Required | [a-z][a-z0-9_-]{0,63}; tool name is a2a__<id> |
url |
Required | Service root beginning with HTTP or HTTPS |
description |
"" |
Empty uses the default tool description |
auth_token |
Omitted | Bearer token, redacted from errors |
timeout_seconds |
900 |
HTTP timeout for calls to this peer. Calls made during a Server Run count toward its execution deadline |
Remote contexts are separated by local thread. See A2A.
semantic
| Field | Default | Constraint |
|---|---|---|
base_url |
Required | Nonblank; normalized to /api/semantic/v1 |
username, password |
Omitted | Nonempty pair |
timeout_seconds |
30 | Positive finite number |
semantic_scenario |
Omitted | Scenario name sent as X-Semantic-Scenario except on health requests |
tls.verify_server |
false |
With no client certificate or cipher configuration, false disables server certificate verification |
tls.ca_file |
Omitted | CA file when verification is enabled |
tls.client_cert, tls.client_key |
Omitted | Must be provided together |
tls.ciphers |
Omitted | Nonempty value passed to SSL set_ciphers |
Merging
This section summarizes the rules. The complete worked example lists each file, dependency order, final parameters, and value origins.
File selection
| Item | Rule |
|---|---|
| Product YAML | Explicit --config selects one file, otherwise use Home config.yaml |
| Fields omitted by explicit product YAML | Fill with program defaults. Home configuration fields do not participate |
| Environment file | Explicit --env-file selects one file, otherwise use Home .env, independently of --config |
| Environment references | Nonempty process values override the selected file, applying to $env{NAME} references |
| Plugin candidates | Built-in, Home, and plugins.paths locate plugins. Distinct real directories for one enabled ID cause an error |
Load and overlay order
Read plugin selection from the product file, then recursively resolve requires in enabled-list order. Visit dependencies in manifest order, load them before their dependents, and process each ID once. If app requires base, apply configuration in this order:
base/.plugin.yaml params
→ base defaults_file
→ app/.plugin.yaml params
→ app defaults_file
→ selected product YAML
→ fill still-missing product defaultsparams contributes only to the current plugin's plugins.config.<id>. A defaults_file allows only plugins.config, for example defaults for the plugin and its dependencies. It cannot contain product schema_version, models, server, or plugin selection fields. Plugin factories separately fill omitted business parameters using their parameter models.
Merge rules by value type
| Value | Merge rule |
|---|---|
| Omitted field | Inherit an earlier value. Apply a field default only if still missing |
| Object | Merge recursively. Updating format.delimiter retains an existing format.header |
{} |
Contribute zero fields to an existing object, retaining its keys |
| Ordinary list | Replace the whole list. [] clears it. Elements are not merged by ID |
Scalar, including valid false and 0 |
A later value replaces an earlier value |
null |
An explicit null value, accepted only where the field allows it |
dataagent.hooks, plugins.config.<id>.run_hooks.before_run, and after_run |
Append in source order, retain duplicates, and add zero entries for an empty list |
The generic merge function applies the object rule. Normal product startup selects one product YAML. Manifest hooks declarations are independent extension resources. Other business lists named hooks use ordinary replacement.
Resolution timing and paths
Non-models values expand environment references and validate as each layer is loaded. Missing variables, invalid types, and unknown fields can fail before later overrides. The expansion timing for models fields is described under model fields.
Product plugin paths and inputs resolve from the selected YAML directory. Manifest resources and workflow Hook paths declared in manifest params or defaults_file resolve from the declaring plugin root. Manifest resources must remain inside that root. Plugins interpret ordinary business path strings.