model: Optional[str]

The model for subsequent turns. Omit to keep the current model.

minLength0
maxLength1048576
reasoning: Optional[AgentReasoning]

Reasoning settings to update. Omit to keep the current effort.

effort: Optional[Literal["none", "minimal", "low", 4 more]]

Omit to keep the current effort. Null selects the model’s default effort.

One of the following:
"none"
"minimal"
"low"
"medium"
"high"
"xhigh"
"max"
service_tier: Optional[Literal["auto", "default", "flex", 3 more]]

Omit to keep the current tier. Null resets it to auto.

  • 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.
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.

tools: Optional[Iterable[AgentToolParam]]

Replaces the session tools. Functions and MCP servers change on the next model call. Built-in tools change by the next turn. Omit to keep the current tools, or pass null or an empty array to clear them.

minItems0
maxItems16384
One of the following:
class AgentToolConfigParamFunction: …

A function defined by the application.

description: str

A description of what the function does.

minLength0
maxLength1048576
name: str

The name of the function.

minLength0
maxLength1048576
parameters: Dict[str, object]

A JSON Schema object describing the function’s arguments.

type: Literal["function"]

The type of the object. Always function.

async_: Optional[bool]

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

defer_loading: Optional[bool]

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

class AgentToolConfigParamToolSearch: …

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

type: Literal["tool_search"]

The type of the object. Always tool_search.

class AgentToolConfigParamProgrammaticToolCalling: …

Enables calling tools from model-generated code.

type: Literal["programmatic_tool_calling"]

The type of the object. Always programmatic_tool_calling.

enabled: Optional[bool]

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

class AgentToolConfigParamMcp: …

Tools provided by a remote MCP server.

server_label: str

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 McpTransportConfigParamHTTP: …

Connects to an MCP server over HTTP.

server_url: str

The URL of the MCP server.

minLength0
maxLength1048576
type: Literal["http"]

The type of the object. Always http.

authorization: Optional[str]

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

minLength0
maxLength1048576
headers: Optional[Dict[str, str]]

Additional HTTP headers sent to the MCP server.

class McpTransportConfigParamStdio: …

Starts an MCP server as a local process.

command: str

The command used to start the MCP server.

minLength0
maxLength1048576
cwd: str

The working directory used to start the MCP server.

minLength0
maxLength1048576
type: Literal["stdio"]

The type of the object. Always stdio.

args: Optional[List[str]]

Arguments passed to the MCP server command.

minItems0
maxItems16384
env: Optional[Dict[str, str]]

Environment variables set for the MCP server process.

env_vars: Optional[List[str]]

Environment variable names to inherit from the selected execution environment.

minItems0
maxItems16384
type: Literal["mcp"]

The type of the object. Always mcp.

allowed_tools: Optional[List[str]]

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

minItems0
maxItems16384
connection_origin: Optional[Literal["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: Optional[str]

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

minLength0
maxLength1048576
request_metadata: Optional[Dict[str, object]]

Metadata included with requests to this MCP server.

required: Optional[bool]

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

class AgentToolConfigParamWebSearch: …

Web search.

type: Literal["web_search"]

The type of the object. Always web_search.

allowed_domains: Optional[List[str]]

Domains the search may include.

minItems0
maxItems16384
context_size: Optional[Literal["low", "medium", "high"]]

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

One of the following:
"low"
"medium"
"high"
location: Optional[AgentToolConfigParamWebSearchLocation]

Approximate location used to localize search results.

city: Optional[str]

The city name.

minLength0
maxLength1048576
country: Optional[str]

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

minLength0
maxLength1048576
region: Optional[str]

The region or state name.

minLength0
maxLength1048576
timezone: Optional[str]

The IANA timezone, such as America/Los_Angeles.

minLength0
maxLength1048576
mode: Optional[Literal["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 AgentToolConfigParamComputerUse: …

Browser use in an OpenAI-hosted session.

type: Literal["computer_use"]

The type of the object. Always computer_use.

include_screenshots: Optional[bool]

Whether computer tool outputs include screenshots. Defaults to false.

class AgentToolConfigParamAutomations: …

Lets the agent manage its own scheduled wakeups.

type: Literal["automations"]

The type of the object. Always automations.