Runtime Config

Field-by-field specification for runtime configuration used in multi-agent execution, derived from the backend runtime models.

circle-info

Looking for operational guidance? This page is a technical reference focused on field specifications. For endpoint usage, see the REST API: Agentsarrow-up-right and SDK usage patterns in the Python SDK Referencearrow-up-right.

Schema: RuntimeConfig

Runtime configuration for multi-agent execution. Supports global configurations and agent-specific overrides keyed directly by agent UUID. Runtime merges are shallow: agent-level overrides replace entire sibling objects rather than deep-merging nested structures.

Supported Fields

Field
Type
Constraints / Notes

object

Optional. Keys must be tool UUIDs; values must be objects.

object

Optional. Keys must be MCP UUIDs; values must be objects.

object

Optional. Top-level agent configuration.

<agent_uuid>

Optional. Each additional top-level key must be a valid UUID string.

Unknown top-level keys that are not valid UUIDs raise a validation error. Agent IDs are validated for proper UUID format.

Global Configuration Structures

MCP Configs

{
  "mcp_configs": {
    "mcp-uuid-1": {
      "authentication": {
        "type": "custom-header",
        "headers": {
          "Authorization": "Bearer <token>"
        }
      }
    }
  }
}

Tool Configs

Agent Config

Schema: AgentSpecificConfig

Configuration specific to an individual agent. These objects have the same shape as the global fields in RuntimeConfig. When supplied, they override the corresponding global settings for that agent.

Field
Type
Constraints
Description

object

Keys must be valid UUIDs

Tool configurations keyed by tool UUID

object

Keys must be valid UUIDs

MCP configurations keyed by MCP UUID

object

Additional properties allowed

Agent-specific configuration (e.g., tool_output_sharing, recursion limits)

Validation Rules

Structure Validation

  • tool_configs, mcp_configs, and agent_config must be objects when provided.

  • Additional top-level keys must be valid UUID strings. Their values must be objects conforming to AgentSpecificConfig.

  • Unknown non-UUID keys raise Unknown top-level key '<key>' in runtime_config.

  • Invalid UUID keys raise Invalid UUID: <agent_id>.

Configuration Precedence

1

Agent-specific overrides take precedence

Agent-specific overrides (top-level UUID keys) take precedence over global configuration.

2

Global fallback

When an override omits a field, the global configuration is used.

3

Shallow merges only

Merges are shallow: overriding an object replaces the global object for that agent.

Tool Config Filtering

Tool configuration dictionaries are validated so each value is an object. Additional filtering (e.g., matching tool_configs keys to stored agent tools) occurs during agent validation.

Examples

Global Configuration Only

Global and Agent-Specific Overrides

Usage in AgentRunRequest

The runtime_config field in AgentRunRequest accepts this schema and automatically supplants legacy top-level tool_configs and mcp_configs fields.

Legacy requests that still provide the deprecated top-level tool_configs/mcp_configs are automatically converted to runtime_config on ingest, but new integrations should send the new structure directly.

Common Validation Errors

chevron-rightCommon Validation Errors and Causeshashtag
Error
Cause

Unknown top-level key '<key>' in runtime_config

Top-level key is neither a known global field nor a valid UUID

Configuration must be a dictionary

tool_configs or mcp_configs is not a dictionary

Configuration value for '<key>' must be a dictionary

Value in tool_configs or mcp_configs is not a dictionary

Agent config for '<agent_id>' must be a dictionary

Agent-specific configuration is not a dictionary

Invalid UUID: <agent_id>

Agent ID is not a valid UUID format

Migration from Legacy Format

circle-exclamation

Legacy Format (Deprecated)