id: string

The ID of the reusable agent.

minLength0
created_at: number

The Unix timestamp, in seconds, when the agent was created.

formatint64
instructions: string | null

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

minLength0
metadata: Record<string, string>

Custom string key-value pairs attached to the agent.

model: string

The requested model name used for inference.

minLength0
multi_agent: MultiAgentConfig { enabled, max_concurrent_subagents }

The resolved configuration for creating and coordinating subagents.

name: string | null

A human-readable name for the agent, or null if it is unnamed.

minLength0
object: "agent"

The object type. Always agent.

reasoning: AgentReasoning { effort, summary }

The resolved reasoning configuration, including the model default for an omitted effort.

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

The resolved service-tier policy used for model requests.

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

The resolved configuration for text generated by the agent.

tools: Array<PersistedAgentTool>

Tools available to the agent.

minItems0
maxItems2000
One of the following:
PersistedAgentToolResourceFunction { 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.

PersistedAgentToolResourceToolSearch { type }

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

type: "tool_search"

The type of the object. Always tool_search.

PersistedAgentToolResourceProgrammaticToolCalling { 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.

PersistedAgentToolResourceMcp { allowed_tools, connection_origin, credential_id, 5 more }

Tools provided by a remote MCP server without stored credentials.

allowed_tools: Array<string> | null

The MCP tools the agent may call, or null when all server tools are allowed.

minItems0
maxItems2000
connection_origin: "service" | "environment"

Where outbound MCP HTTP connections originate.

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

The vault credential selected for this MCP server, if any.

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

The credential-free transport used to connect to the MCP server.

type: "mcp"

The type of the object. Always mcp.

PersistedAgentToolResourceWebSearch { 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.

PersistedAgentToolResourceComputerUse { 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.

PersistedAgentToolResourceAutomations { type }

Lets the agent manage its own scheduled wakeups.

type: "automations"

The type of the object. Always automations.

updated_at: number

The Unix timestamp, in seconds, when the agent was last updated.

formatint64
compaction?: Compaction { async }

The effective context compaction settings.

async: boolean

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

experimental?: Experimental { time_awareness }

The effective experimental settings for the agent.

time_awareness: boolean

Whether the model receives periodic current-time reminders.