id: string

The ID of the agent.

minLength0
instructions: string | null

Custom instructions appended to the agent’s default base instructions.

minLength0
model: string

The model used by the agent.

minLength0
multi_agent: MultiAgentConfig { enabled, max_concurrent_subagents }

Configuration for creating and coordinating subagents.

enabled: boolean

Whether subagent tools are enabled. Defaults to false.

max_concurrent_subagents: number | null

Maximum number of subagents that may run concurrently, or null when disabled. Defaults to 6 when enabled.

formatint64
minimum1
maximum4294967295
name: string | null

The reusable agent’s name when the session was created, or null if no name was saved. Later changes to the agent’s name do not affect this value.

minLength0
reasoning: AgentReasoning { effort, summary }

The agent’s reasoning configuration.

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

The requested reasoning effort, or null when the model selects its own default.

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

The requested reasoning summary format, or null when summaries are disabled.

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 effective service-tier policy for model requests. Defaults to auto.

One of the following:
"auto"
"default"
"flex"
"priority"
"fast"
"ultrafast"
text: AgentText { format, verbosity }

Configuration for text generated by the agent.

format: TextFormat

The effective output format. Defaults to ordinary text.

One of the following:
TextFormatResourceText { type }

Generates ordinary text without a structured-output constraint.

type: "text"

The type of the object. Always text.

TextFormatResourceJSONSchema { schema, type }

Constrains generated text to a JSON Schema.

schema: Record<string, unknown>

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 produced by the agent. Defaults to medium.

One of the following:
"low"
"medium"
"high"
tools: Array<AgentTool>

Tools available to the agent.

minItems0
maxItems2000
One of the following:
AgentToolResourceFunction { defer_loading, description, name, 3 more }

A function defined by the application.

defer_loading: boolean

Whether the function is deferred and discovered through tool search.

description: string

A description of what the function does.

minLength0
name: string

The name of the function.

minLength0
parameters: Record<string, unknown>

A JSON Schema object describing the function’s arguments.

type: "function"

The type of the object. Always function.

async?: boolean

Whether the agent continues without waiting for the function result.

AgentToolResourceProgrammaticToolCalling { enabled, type }

Enables calling tools from model-generated code.

enabled: boolean

Whether tools can be called from model-generated code.

type: "programmatic_tool_calling"

The type of the object. Always programmatic_tool_calling.

AgentToolResourceMcp { allowed_tools, connection_origin, credential_id, 5 more }

Tools provided by a remote MCP server.

allowed_tools: Array<string> | null

The MCP tools the agent may call.

minItems0
maxItems2000
connection_origin: "service" | "environment"

Where outbound MCP HTTP connections originate.

One of the following:
"service"
"environment"
credential_id: string | null

The attached vault credential selected for this MCP server, if any. Optional when exactly one attached credential matches the server URL.

minLength0
request_metadata: Record<string, unknown>

Metadata included with requests to this MCP server.

required: boolean

Whether this MCP server must initialize before the first turn.

server_label: string

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

minLength0
transport: McpTransport

The transport used to connect to the MCP server.

One of the following:
McpTransportResourceHTTP { server_url, type }

Connects to an MCP server over HTTP.

server_url: string

The URL of the MCP server.

minLength0
type: "http"

The type of the object. Always http.

McpTransportResourceStdio { args, command, cwd, 2 more }

Starts an MCP server as a local process.

args: Array<string>

Arguments passed to the MCP server command.

minItems0
maxItems2000
command: string

The command used to start the MCP server.

minLength0
cwd: string

The working directory used to start the MCP server.

minLength0
env_vars: Array<string>

Environment variable names inherited from the execution environment.

minItems0
maxItems2000
type: "stdio"

The type of the object. Always stdio.

type: "mcp"

The type of the object. Always mcp.

AgentToolResourceWebSearch { allowed_domains, context_size, location, 2 more }

Web search.

allowed_domains: Array<string> | null

Allowed search domains, or null when the search is unrestricted.

minItems0
maxItems2000
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 | null

Approximate location used to localize search results, if provided.

city: string | null

The city name.

minLength0
country: string | null

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

minLength0
region: string | null

The region or state name.

minLength0
timezone: string | null

The IANA timezone, such as America/Los_Angeles.

minLength0
mode: "disabled" | "cached" | "live"

The source used for web search results.

One of the following:
"disabled"
"cached"
"live"
type: "web_search"

The type of the object. Always web_search.

AgentToolResourceComputerUse { include_screenshots, type }

Browser use in an OpenAI-hosted session.

include_screenshots: boolean

Whether computer tool outputs include screenshots.

type: "computer_use"

The type of the object. Always computer_use.

AgentToolResourceAutomations { type }

Lets the agent manage its own scheduled wakeups.

type: "automations"

The type of the object. Always automations.

compaction?: Compaction { async }

The effective context compaction settings.

async: boolean

Whether context is compacted in the background. Defaults to true.

experimental?: Experimental { time_awareness }

The effective experimental settings for the agent.

time_awareness: boolean

Whether the model receives periodic current-time reminders.