compaction: Compaction{ async}

Context compaction settings. Omit to keep the current settings. A supplied object replaces the settings; null or an empty object enables background compaction.

async: bool

Whether to compact context in the background. Omission or null defaults to true. Set to false to use blocking compaction. Background compaction may increase token usage.

experimental: Experimental{ time_awareness}

Experimental settings to merge by key. Omitted settings keep their current values.

time_awareness: bool

Whether to give the model periodic current-time reminders. Omit to keep the current setting.

instructions: String

Additional instructions appended to the agent’s default base instructions. Omit to leave unchanged.

minLength0
maxLength1048576
model: String

The model to use for the agent. The requested model name is preserved.

minLength0
maxLength1048576
multi_agent: MultiAgentConfigParam { enabled, max_concurrent_subagents }

Configuration for creating and coordinating subagents.

enabled: bool

Whether subagent tools are enabled.

max_concurrent_subagents: Integer

Maximum number of subagents that may run concurrently. Defaults to 6.

formatint64
minimum1
maximum4294967295
reasoning: AgentReasoningParam { effort, summary }

Configuration for model reasoning. Omit to keep the current settings; pass null to reset to the model’s default effort.

effort: :none | :minimal | :low | 4 more

The amount of reasoning effort the model should use. Omission lets the model select it.

One of the following:
:none
:minimal
:low
:medium
:high
:xhigh
:max
summary: :concise | :detailed | :auto

Controls whether the response includes a reasoning summary.

One of the following:
:concise

Returns a concise reasoning summary when supported.

:detailed

Returns a detailed reasoning summary when supported.

:auto

Automatically selects the most detailed summary supported by the model.

service_tier: :auto | :default | :flex | 3 more

The service tier used for model requests.

One of the following:
:auto

Selects the service tier automatically.

:default

Uses the default service tier.

:flex

Uses the flex service tier.

:priority

Uses the priority service tier.

:fast

Uses the fast service tier.

:ultrafast

Uses the ultrafast service tier.

text: AgentTextParam { format_, verbosity }

Configuration for text generated by the agent.

The output format. Omission uses ordinary text ({"type": "text"}).

One of the following:
class Text { type }

Generates ordinary text without a structured-output constraint.

type: :text

The type of the object. Always text.

class JSONSchema { schema, type }

Constrains generated text to a JSON Schema.

schema: Hash[Symbol, untyped]

The JSON Schema that generated text must match.

type: :json_schema

The type of the object. Always json_schema.

verbosity: :low | :medium | :high

The amount of text the model should produce. Defaults to medium, matching Responses.

One of the following:
:low

Produces less text.

:medium

Uses the default amount of text.

:high

Produces more text.

tools: Array[AgentToolParam]

Tools available to the agent. Omit to inherit, or pass null to clear them. The resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON.

minItems0
maxItems16384
One of the following:
class Function { description, name, parameters, 3 more }

A function defined by the application.

description: String

A description of what the function does.

minLength0
maxLength1048576
name: String

The name of the function.

minLength0
maxLength1048576
parameters: Hash[Symbol, untyped]

A JSON Schema object describing the function’s arguments.

type: :function

The type of the object. Always function.

async: bool

Whether the agent continues without waiting for the function result. Defaults to false.

defer_loading: bool

Whether this function is deferred and discovered through tool search. Defaults to false.

class ToolSearch { type }

Discovers deferred function tools and loads them into the model context.

type: :tool_search

The type of the object. Always tool_search.

class ProgrammaticToolCalling { type, enabled }

Enables calling tools from model-generated code.

type: :programmatic_tool_calling

The type of the object. Always programmatic_tool_calling.

enabled: bool

Whether tools can be called from model-generated code. Defaults to true.

class Mcp { server_label, transport, type, 5 more }

Tools provided by a remote MCP server.

server_label: String

A label used to identify the MCP server in tool calls.

minLength0
maxLength1048576

The transport used to connect to the MCP server.

One of the following:
class HTTP { server_url, type, authorization, headers }

Connects to an MCP server over HTTP.

server_url: String

The URL of the MCP server.

minLength0
maxLength1048576
type: :http

The type of the object. Always http.

authorization: String

The authorization value sent to the MCP server, if any.

minLength0
maxLength1048576
headers: Hash[Symbol, String]

Additional HTTP headers sent to the MCP server.

class Stdio { command, cwd, type, 3 more }

Starts an MCP server as a local process.

command: String

The command used to start the MCP server.

minLength0
maxLength1048576
cwd: String

The working directory used to start the MCP server.

minLength0
maxLength1048576
type: :stdio

The type of the object. Always stdio.

args: Array[String]

Arguments passed to the MCP server command.

minItems0
maxItems16384
env: Hash[Symbol, String]

Environment variables set for the MCP server process.

env_vars: Array[String]

Environment variable names to inherit from the selected execution environment.

minItems0
maxItems16384
type: :mcp

The type of the object. Always mcp.

allowed_tools: Array[String]

The MCP tools the agent may call. All server tools are allowed when omitted.

minItems0
maxItems16384
connection_origin: :service | :environment

Selects where outbound MCP HTTP connections originate. Omitted or service uses the Managed Agents service network; environment uses the session’s selected environment.

One of the following:
:service

Uses the Managed Agents service network.

:environment

Uses the session’s execution environment.

credential_id: String

The attached vault credential used to authenticate this MCP server. Optional when exactly one attached credential matches the server URL.

minLength0
maxLength1048576
request_metadata: Hash[Symbol, untyped]

Metadata included with requests to this MCP server.

required: bool

Whether this MCP server must initialize before the first turn. Defaults to false.

class WebSearch { type, allowed_domains, context_size, 2 more }

Web search.

type: :web_search

The type of the object. Always web_search.

allowed_domains: Array[String]

Domains the search may include.

minItems0
maxItems16384
context_size: :low | :medium | :high

The amount of search context made available to the model. Defaults to medium.

One of the following:
:low
:medium
:high
location: Location{ city, country, region, timezone}

Approximate location used to localize search results.

city: String

The city name.

minLength0
maxLength1048576
country: String

The two-letter ISO country code, such as US.

minLength0
maxLength1048576
region: String

The region or state name.

minLength0
maxLength1048576
timezone: String

The IANA timezone, such as America/Los_Angeles.

minLength0
maxLength1048576
mode: :disabled | :cached | :live

The source used for web search results. Defaults to live.

One of the following:
:disabled

Disables web search.

:cached

Uses cached search results.

:live

Searches the live web.

class ComputerUse { type, include_screenshots }

Browser use in an OpenAI-hosted session.

type: :computer_use

The type of the object. Always computer_use.

include_screenshots: bool

Whether computer tool outputs include screenshots. Defaults to false.

class Automations { type }

Lets the agent manage its own scheduled wakeups.

type: :automations

The type of the object. Always automations.