Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. /v1/chat/completions and /v1/messages serve the same models in the other two dialects.
An account API key. Send it as Authorization: Bearer <key>.
Headers
x-naga-routing-strategy
enum<string>
The routing strategy when the body names none. An unknown name is ignored. A NagaAI extension.
The order in which NagaAI tries providers at the same price: reliability best recent success rate, balanced speed among near-best success, latency first token, throughput tokens per second, cache providers that read a cached prefix. A NagaAI extension.
Available options:
reliability,
balanced,
latency,
throughput,
cache
Body
application/json
The OpenAI-compatible Responses request. The gateway takes an unrecognized key and drops it, and keeps nothing between requests.
model
string
required
The model to run, named by an id or alias from NagaAI's catalog. An entry without the chat.completions capability draws a refusal.
input
List of input items · object[]string
required
The prompt: one string, or the conversation as typed items, oldest first. Required.
One entry of the input list, chosen by its type. Six of twenty-six tags do something.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 7
Option 8
Option 9
Option 10
Option 11
Option 12
Option 13
Option 14
Option 15
Option 16
Option 17
Option 18
Option 19
Option 20
Option 21
Option 22
Option 23
Option 24
Option 25
Option 26
Option 27
Hide child attributes
input.role
enum<string>
required
Whose turn this is, and what it may carry.
Available options:
user,
assistant,
system,
developer
input.type
enum<string>
required
The tag that selects this branch: type is message.
Available options:
message
input.content
List of content parts · object[]string
What the turn says. The gateway refuses a message without it.
One entry of a message's content. The role decides which types it admits.
Option 1
Option 2
Option 3
Option 4
Option 5
Hide child attributes
input.content.text
string
required
The text of this part.
input.content.type
enum<string>
required
The tag that selects this branch: type is input_text.
Available options:
input_text
input.content.cache_control
any
input.content.prompt_cache_breakpoint
any
input.name
string | null
A name for the speaker. The gateway drops it.
input.id
string | null
An identifier for this item. The gateway looks nothing up by it.
input.status
string | null
The lifecycle state a replayed item carried, never acted on.
input.phase
enum<string> | null
Whether an assistant turn is commentary or the final answer.
Available options:
commentary,
final_answer
routing
object
How NagaAI picks the providers for this request: strategy reorders them, max_price removes the dearer ones and can fail the request. A NagaAI extension.
Hide child attributes
routing.strategy
enum<string>
Which provider NagaAI tries first among those at the same price. Absent: the x-naga-routing-strategy header, the key's default, the workspace's, else NagaAI's choice.
Available options:
reliability,
balanced,
latency,
throughput,
cache
routing.max_price
object
The most one unit of each named meter may cost. Absent: no price limit.
Hide child attributes
routing.max_price.token
stringnumber
Credits per token, either direction, without a meter of its own. A non-negative decimal, as a string or a number.
routing.max_price.input_token
stringnumber
Credits per prompt token without a meter of its own. A non-negative decimal, as a string or a number.
routing.max_price.output_token
stringnumber
Credits per output token without a meter of its own. A non-negative decimal, as a string or a number.
routing.max_price.cached_input_token
stringnumber
Credits per prompt token read from cache. A non-negative decimal, as a string or a number.
routing.max_price.cache_write_input_token
stringnumber
Credits per prompt token written to cache. A non-negative decimal, as a string or a number.
routing.max_price.cache_write_1h_input_token
stringnumber
Credits per prompt token cached for one hour. A non-negative decimal, as a string or a number.
routing.max_price.input_text_token
stringnumber
Credits per prompt text token. A non-negative decimal, as a string or a number.
routing.max_price.output_text_token
stringnumber
Credits per output text token. A non-negative decimal, as a string or a number.
routing.max_price.input_audio_token
stringnumber
Credits per input audio token. A non-negative decimal, as a string or a number.
routing.max_price.output_audio_token
stringnumber
Credits per output audio token. A non-negative decimal, as a string or a number.
routing.max_price.input_image_token
stringnumber
Credits per input image token. A non-negative decimal, as a string or a number.
routing.max_price.output_image_token
stringnumber
Credits per output image token. A non-negative decimal, as a string or a number.
routing.max_price.input_audio_hour
stringnumber
Credits per hour of input audio. A non-negative decimal, as a string or a number.
routing.max_price.output_audio_hour
stringnumber
Credits per hour of output audio. A non-negative decimal, as a string or a number.
routing.max_price.input_text_character
stringnumber
Credits per input text character. A non-negative decimal, as a string or a number.
routing.max_price.output_text_character
stringnumber
Credits per output text character. A non-negative decimal, as a string or a number.
routing.max_price.input_text_search
stringnumber
Credits per rerank search. A non-negative decimal, as a string or a number.
routing.max_price.output_image_image
stringnumber
Credits per delivered picture. A non-negative decimal, as a string or a number.
routing.max_price.request
stringnumber
Credits per request: the fee a request pays once. A non-negative decimal, as a string or a number.
routing.max_price.output_video_second
stringnumber
Credits per second of video. A non-negative decimal, as a string or a number.
routing.max_price.output_video_megapixel_second
stringnumber
Credits per megapixel-second of upscaled video. A non-negative decimal, as a string or a number.
Example:
{ "output_token": "0.000005" }
routing.precision
enum<string>[]
The weight precisions the model may be served in. Absent: any.
Minimum array length: 1
A weight precision a provider serves a model in, as it publishes it.
Available options:
int4,
int8,
fp4,
mxfp4,
nvfp4,
fp6,
fp8,
mxfp8,
fp16,
bf16,
fp32
service_tier
enum<string>
flex sends the request only to providers at the model's base price in GET /v1/models, and fails it when none can serve it. Any other value, an unknown one included, or none: any provider, at its price.
Available options:
auto,
default,
flex,
scale,
priority
models
string[] | null
Fallback models, tried in order when model cannot answer: none of its providers served it, or the request does not fit it. At most 3; the answer's model names the one that answered, and only that one is billed. A NagaAI extension in OpenRouter's shape.
Maximum array length: 3
instructions
string | null
A system instruction put ahead of the conversation.
max_output_tokens
integer<int64> | null
The ceiling on generated tokens, reasoning included. At least 1, and the gateway raises it where the reasoning budget would not fit.
Required range: x >= 1
temperature
number<double> | null
How much randomness goes into the reply, between 0 and 2. A provider may still refuse a value this range allows.
Required range: 0 <= x <= 2
top_p
number<double> | null
The sampling cut-off, between 0 and 1, and an alternative to temperature.
Required range: 0 <= x <= 1
tools
object[] | null
The tools the model may call. web_search and web_search_preview are the only hosted ones the gateway runs; other types travel no further.
One entry of tools[], chosen by its type. Five of the eighteen types reach the model; the gateway drops the other thirteen.
Option 1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 7
Option 8
Option 9
Option 10
Option 11
Option 12
Option 13
Option 14
Option 15
Option 16
Option 17
Option 18
Hide child attributes
tools.type
enum<string>
required
The tag that selects this branch: type is function.
Available options:
function
tools.name
string | null
What the model calls the function by.
tools.description
string | null
What the function does, written for the model. Falls back to function.description.
tools.parameters
object | null
The arguments the function accepts, as a JSON Schema, compiled at intake.
Hide child attributes
tools.parameters.{key}
any
tools.strict
boolean | null
Whether the model follows parameters exactly.
tools.function
object | null
The same declaration written the chat-style way; the flat keys win.
Hide child attributes
tools.function.name
string
required
What the model calls the function by. Required, and non-empty.
Minimum string length: 1
tools.function.description
string | null
What the function does, written for the model to choose by.
tools.function.parameters
object | null
The arguments the function accepts, as a JSON Schema.
Hide child attributes
tools.function.parameters.{key}
any
tools.function.strict
boolean | null
Whether the model follows the parameter schema exactly.
tool_choice
enum<string>Function tool · objectFunction tool, chat-style · objectAllowed tools · objectHosted web search · objectAccepted and dropped tool · object
Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.
Available options:
auto,
none,
required
parallel_tool_calls
boolean | null
Whether the model may return several tool calls in one turn. It reaches only some providers.
truncation
enum<string> | null
What to do when the conversation outgrows the model's context window. auto lets NagaAI drop whole turns from its middle, keeping the system prompt, the first and the latest turn; disabled, the default, refuses it with context_length_exceeded.
Available options:
auto,
disabled
reasoning
object | null
How much reasoning to do, and what summary of it comes back.
Hide child attributes
reasoning.effort
enum<string> | null
How much reasoning to spend before answering. The gateway maps the step onto whatever scale the provider offers, and drops it where there is none.
Available options:
none,
minimal,
low,
medium,
high,
xhigh,
max
reasoning.summary
enum<string> | null
Which summary of its own reasoning to ask the model for. Absent, generate_summary stands in for it.
Available options:
concise,
detailed,
auto
reasoning.generate_summary
enum<string> | null
The older spelling of summary, read only when summary is absent.
Available options:
concise,
detailed,
auto
text
object | null
The shape of the reply, and how long it should run.
Hide child attributes
text.format
object | null
The shape the reply must take.
Hide child attributes
text.format.type
enum<string>
required
Which of the three formats the reply takes.
Available options:
text,
json_object,
json_schema
text.format.name
string | null
A short name for the schema. Required if type is json_schema.
text.format.description
string | null
What the schema is for, written for the model.
text.format.schema
object | null
The JSON Schema the reply is built to. Required if type is json_schema.
Hide child attributes
text.format.schema.{key}
any
text.format.strict
boolean | null
Whether the model is held to the schema exactly.
text.verbosity
enum<string> | null
How long the reply should run.
Available options:
low,
medium,
high
stream
boolean
Whether the reply arrives incrementally as the model writes it. An explicit null draws a refusal.
cache_control
object | null
Automatic prompt caching: one breakpoint on the last input piece that can be cached, moving forward as the conversation grows. A NagaAI extension in OpenRouter's shape.
Hide child attributes
cache_control.type
enum<string>
required
Always ephemeral.
Available options:
ephemeral
cache_control.ttl
enum<string> | null
5m or 1h. Absent means 5m.
Available options:
5m,
1h
prompt_cache_key
string | null
Groups requests that share a prompt prefix, so they reach the same prompt cache. At most 64 characters. NagaAI passes it to the providers that document it and drops it at the rest.
Maximum string length: 64
prompt_cache_retention
enum<string> | null
How long OpenAI keeps the cached prefix on models before GPT-5.6: in_memory or 24h. NagaAI drops a value the model does not take, and drops the field at providers that do not document it.
Available options:
in_memory,
24h
prompt_cache_options
object | null
OpenAI's prompt-cache options. mode: "explicit" caches only the parts that carry a breakpoint, and NagaAI drops a top-level cache_control beside it; implicit, OpenAI's default, changes nothing.
Hide child attributes
prompt_cache_options.mode
enum<string> | null
explicit caches only the parts that carry a breakpoint, and NagaAI drops a top-level cache_control beside it. implicit is OpenAI's default and changes nothing.
Available options:
implicit,
explicit
prompt_cache_options.ttl
enum<string> | null
Accepted; every prefix is written at the provider's default lifetime.
Available options:
30m,
12h
Response
The response. application/json carries one response object; text/event-stream carries the event-typed lifecycle frames.
A response: the non-streaming body, and the snapshot every lifecycle frame carries.
instructions
string | null
required
The system instructions the turn ran with, or null.
tools
any[]
required
The tools the model was offered, in the shape the gateway took them.
tool_choice
any
required
How the model was told to choose among them.
temperature
any
required
The sampling temperature the turn ran with; 1 when the request set none.
top_p
any
required
The sampling cut-off the turn ran with; 1 when the request set none.
parallel_tool_calls
boolean
required
Whether the model could call several tools at once.
metadata
any
required
The metadata the request sent, echoed back unchanged. The gateway drops it upstream.
text
any
required
The output-format settings the turn ran with.
truncation
any
required
What was to happen if the conversation outgrew the context window.
max_output_tokens
integer<int64> | null
required
The ceiling on generated tokens the turn ran with, or null.
id
string
required
This response's identifier, repeated on every frame. No handle to resume from.
object
enum<string>
required
What kind of object this is. Always response.
Available options:
response
created_at
integer<int64>
required
When the response was created, in seconds since the Unix epoch.
One item the model produced, addressed by output_index.
Message item
Reasoning item
Synthesized reasoning item
Function call item
Function call output item
Web search call item
Image generation call item
Image generation call, added view
Hide child attributes
output.type
enum<string>
required
What kind of item this is. Always message.
Available options:
message
output.id
string
required
The item's identifier, quoted by every stream frame about it.
output.status
enum<string>
required
Whether the item is still unfinished.
Available options:
in_progress,
completed,
incomplete
output.role
enum<string>
required
Who the message is from. assistant on anything the model produced.
Available options:
user,
assistant,
system,
developer,
tool
output.content
object[]
required
The message itself: output_text parts, or a refusal part.
output.phase
enum<string>
Which pass of a two-pass answer this message is.
Available options:
commentary,
final_answer
error
object | null
required
What went wrong, or null when nothing did.
Hide child attributes
error.code
string
required
A machine-readable code for the failure, never empty.
error.message
string
required
What went wrong, in prose meant to be read.
incomplete_details
object | null
required
Why the turn stopped short, or null.
Hide child attributes
incomplete_details.reason
enum<string>
required
What cut the turn short.
Available options:
max_output_tokens,
content_filter,
tool_use_required,
upstream_timeout,
upstream_disconnect,
gateway_cancelled,
other
usage
object | null
required
What the request cost in tokens, or null while the turn runs.
Hide child attributes
usage.input_tokens
integer<int64>
required
Tokens of the prompt, cached ones included.
usage.input_tokens_details
object
required
The split of input_tokens the provider reported.
Hide child attributes
usage.input_tokens_details.cached_tokens
integer<int64>
required
How many prompt tokens the provider served from its own cache. 0 when it reported none.
usage.input_tokens_details.audio_tokens
integer<int64> | null
How many prompt tokens were audio. A NagaAI extension, present only when the provider split them out.
usage.input_tokens_details.cache_write_tokens
integer<int64> | null
How many prompt tokens were written to the provider's cache, billed at the cache-write rate. Counted inside input_tokens; present only when the request wrote to the cache.
usage.output_tokens
integer<int64>
required
Tokens the model generated, reasoning and image tokens included.
usage.output_tokens_details
object
required
The split of output_tokens the provider reported.
Hide child attributes
usage.output_tokens_details.reasoning_tokens
integer<int64>
required
How many generated tokens the model spent reasoning. 0 when the provider reported none.
usage.output_tokens_details.image_tokens
integer<int64> | null
How many generated tokens were image output. A NagaAI extension.
usage.total_tokens
integer<int64>
required
The provider's own total for the request, reported as received.
model
string | null
required
The model that answered, by its id in the NagaAI catalog.
reasoning
any
The reasoning settings the turn ran with.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"NagaAI Documentation","colors":{"primary":"#5a5ae5","light":"#8893fa","dark":"#5351da"},"logo":{"light":"https://mintcdn.com/nagaai-60f8697b/3Tc2Ajidq18FPFoC/static/img/logo-light.svg?fit=max\u0026auto=format\u0026n=3Tc2Ajidq18FPFoC\u0026q=85\u0026s=18d579338bd90baa596e41e2e2322393","dark":"https://mintcdn.com/nagaai-60f8697b/3Tc2Ajidq18FPFoC/static/img/logo-dark.svg?fit=max\u0026auto=format\u0026n=3Tc2Ajidq18FPFoC\u0026q=85\u0026s=f4927df5611f5a22c6984a3e7b91b6a0"},"favicon":"https://mintcdn.com/nagaai-60f8697b/nbl1KDrtw3_cqedh/static/img/favicon.ico?fit=max\u0026auto=format\u0026n=nbl1KDrtw3_cqedh\u0026q=85\u0026s=a8361945277b5cce4de483745aa5c21c","api":{"params":{"expanded":"all"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["python","javascript","curl","go"],"prefill":true},"url":"full"},"appearance":{"default":"system"},"background":{"color":{"light":"#ffffff","dark":"#09090b"}},"navbar":{"links":[{"href":"https://naga.ac/models","label":"Models"},{"href":"https://naga.ac/pricing","label":"Pricing"},{"href":"https://naga.ac/playground","label":"Playground"}],"primary":{"type":"button","label":"Dashboard","href":"https://naga.ac/dashboard"}},"footer":{"socials":{"discord":"https://discord.naga.ac","github":"https://github.com/naga-ai-hub","x":"https://x.com/NagaAIProject","reddit":"https://www.reddit.com/r/NagaAI"},"links":[{"header":"Community","items":[{"label":"Status","href":"https://status.naga.ac"},{"label":"Blog","href":"https://naga.ac/blog"},{"label":"Support","href":"https://discord.naga.ac"}]},{"header":"Resources","items":[{"label":"Models","href":"https://naga.ac/models"},{"label":"Playground","href":"https://naga.ac/playground"},{"label":"Chat","href":"https://chat.naga.ac"}]},{"header":"Legal","items":[{"label":"Privacy","href":"https://naga.ac/legal/privacy"},{"label":"Terms","href":"https://naga.ac/legal/terms"}]}]},"fonts":{"family":"Geist"},"styling":{"codeblocks":{"theme":{"light":"github-light-default","dark":"github-dark-dimmed"}},"latex":true},"contextual":{"options":["copy","view","download-spec","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nagaai-60f8697b","hasAudioNarration":false,"actualSubdomain":"nagaai-60f8697b","customDomains":["docs.naga.ac"],"gitSource":{"type":"github","owner":"naga-ai-hub","repo":"naga-ai","deployBranch":"master","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6afff8e862a3bc10271d2724","clientVersion":"0.0.4248","searchFilterCounts":[{"language":"default","tag":"Docs","count":35},{"language":"default","tag":"API Reference","count":25},{"language":"default","tag":"Endpoints","count":24},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Integrations","count":13},{"language":"default","tag":"Account","count":11},{"language":"default","tag":"Coding agents","count":8},{"language":"default","tag":"How NagaAI works","count":5},{"language":"default","tag":"API Keys","count":5},{"language":"default","tag":"Get started","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/responses/create-a-response","slug":"/api-reference/responses/create-a-response","pageMetadata":{"title":"Create a response","description":"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. `/v1/chat/completions` and `/v1/messages` serve the same models in the other two dialects.","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/responses","href":"/api-reference/responses/create-a-response","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. \", _jsx(_components.code, {\n children: \"/v1/chat/completions\"\n }), \" and \", _jsx(_components.code, {\n children: \"/v1/messages\"\n }), \" serve the same models in the other two dialects.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light-default","dark":"github-dark-dimmed"}},"config":{},"pageMetadata":{"title":"Create a response","description":"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. `/v1/chat/completions` and `/v1/messages` serve the same models in the other two dialects.","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/responses","href":"/api-reference/responses/create-a-response","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Responses"],"summary":"Create a response","description":"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. `/v1/chat/completions` and `/v1/messages` serve the same models in the other two dialects.","operationId":"create_response","externalDocs":{"url":"https://platform.openai.com/docs/api-reference/responses","description":"The OpenAI reference for this dialect."},"parameters":["782c4709-418d-412a-a69e-61beb9ebdbc3"],"requestBody":"4afc8e60-cc8a-4437-b818-d69623209bd8","responses":{"200":"3423c7a6-cb61-43bb-80f7-9831f24d436b","400":"d1080474-9f05-45a0-8f78-2ac59e0e1613","401":"720d684f-944d-4df9-93bd-255015842c6c","402":"acb75953-4c45-4911-9ddd-f8815f3fc7c1","403":"9ca2eff1-5386-4eb6-937c-e0dfde84b260","404":"2badf6c0-6c32-405a-bac5-f2733252cf92","408":"eec06f9b-b977-47bb-822a-bce8b597f787","410":"b3635fc2-cc5d-462f-acb0-0c10fe1b189d","413":"63d836bd-11eb-415b-8917-94dfb366ef43","422":"5458a815-4ce9-419a-a22e-c1f2be472038","429":"619399b2-dd04-4ec5-b12d-0231ee7756b9","500":"ce1ec9d8-80ae-4f72-832c-67c319d95efb","503":"fec82e1a-7772-4baf-8817-bed311e0d9c9"},"security":["d274f4da-6adc-4256-8ac2-d5c42746d3ed","d581c85a-d45c-45d8-981e-2f7201967f5c"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl https://api.naga.ac/v1/responses \\\n -H \"Authorization: Bearer $NAGA_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"openai/gpt-6.1-sol\",\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"say hi\"\n }\n ]\n }\n ]\n}'"},{"lang":"python","label":"openai-python","source":"import os\nfrom openai import OpenAI\n\nclient = OpenAI(\n api_key=os.environ[\"NAGA_API_KEY\"],\n base_url=\"https://api.naga.ac/v1\",\n)\n\nresult = client.responses.create(\n model=\"openai/gpt-6.1-sol\",\n input=[\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"say hi\"\n }\n ]\n }\n ],\n)\nprint(result)\n"},{"lang":"javascript","label":"openai-node","source":"import OpenAI from \"openai\";\n\nconst client = new OpenAI({\n apiKey: process.env.NAGA_API_KEY,\n baseURL: \"https://api.naga.ac/v1\",\n});\n\nconst result = await client.responses.create({\n model: \"openai/gpt-6.1-sol\",\n input: [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"say hi\"\n }\n ]\n }\n ],\n});\nconsole.log(result);\n"}],"x-mcp":{"name":"naga_create_response","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"method":"post","type":"path","servers":["ddee1100-762b-4028-ac39-d54cdb9aa21e"],"path":"/v1/responses","baseUrlOptions":["https://api.naga.ac"],"title":"Create a response","codeSamples":[{"label":"curl","lang":"bash","source":"curl https://api.naga.ac/v1/responses \\\n -H \"Authorization: Bearer $NAGA_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"openai/gpt-6.1-sol\",\n \"input\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"say hi\"\n }\n ]\n }\n ]\n}'"},{"label":"openai-python","lang":"python","source":"import os\nfrom openai import OpenAI\n\nclient = OpenAI(\n api_key=os.environ[\"NAGA_API_KEY\"],\n base_url=\"https://api.naga.ac/v1\",\n)\n\nresult = client.responses.create(\n model=\"openai/gpt-6.1-sol\",\n input=[\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"say hi\"\n }\n ]\n }\n ],\n)\nprint(result)\n"},{"label":"openai-node","lang":"javascript","source":"import OpenAI from \"openai\";\n\nconst client = new OpenAI({\n apiKey: process.env.NAGA_API_KEY,\n baseURL: \"https://api.naga.ac/v1\",\n});\n\nconst result = await client.responses.create({\n model: \"openai/gpt-6.1-sol\",\n input: [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"input_text\",\n \"text\": \"say hi\"\n }\n ]\n }\n ],\n});\nconsole.log(result);\n"}],"requestExampleLanguages":["python","javascript","bash","go"],"requiredOnlyExamples":true,"requestExampleType":"codeSamples","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.model":"openai/gpt-6.1-sol","body.input.oneOf.0.items.0.oneOf.0.role":"user","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.text":"say hi","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.type":"input_text"},{"body.model":"openai/gpt-6.1-sol","body.input.oneOf.0.items.0.oneOf.0.role":"user","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.text":"Plan a 3-step refactor.","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.type":"input_text","body.reasoning.oneOf.0.effort.oneOf.0":"medium","body.reasoning.oneOf.0.summary.oneOf.0":"auto"},{"body.model":"openai/gpt-6.1-sol","body.input.oneOf.0.items.0.oneOf.0.role":"user","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.text":"say hi","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.type":"input_text","body.stream":true},{"body.model":"openai/gpt-6.1-sol","body.input.oneOf.0.items.0.oneOf.0.role":"user","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.text":"weather in NYC and SF","body.input.oneOf.0.items.0.oneOf.0.content.oneOf.0.items.0.oneOf.0.type":"input_text","body.tools.oneOf.0.items.0.oneOf.0.type":"function","body.tools.oneOf.0.items.0.oneOf.0.name.oneOf.0":"get_weather","body.tools.oneOf.0.items.0.oneOf.0.parameters.oneOf.0.type":"object","body.tools.oneOf.0.items.0.oneOf.0.parameters.oneOf.0.properties":{"city":{"type":"string"}},"body.parallel_tool_calls.oneOf.0":true}],"urlDisplay":"full"},"dependencies":{"parameters":{"782c4709-418d-412a-a69e-61beb9ebdbc3":{"name":"x-naga-routing-strategy","in":"header","description":"The routing strategy when the body names none. An unknown name is ignored. A NagaAI extension.","required":false,"schema":{"type":"string","description":"The routing strategy when the body names none. An unknown name is ignored. A NagaAI extension.\nThe order in which NagaAI tries providers at the same price: `reliability` best recent success rate, `balanced` speed among near-best success, `latency` first token, `throughput` tokens per second, `cache` providers that read a cached prefix. A NagaAI extension.","enum":["reliability","balanced","latency","throughput","cache"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"The OpenAI-compatible Responses request. The gateway takes an unrecognized key and drops it, and keeps nothing between requests.","required":["model","input"],"properties":{"model":{"type":"string","description":"The model to run, named by an id or alias from NagaAI's catalog. An entry without the `chat.completions` capability draws a refusal.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"input":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","role"],"properties":{"role":{"type":"string","description":"Whose turn this is, and what it may carry.","enum":["user","assistant","system","developer"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `message`.","enum":["message"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"content":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of a message's `content`. The role decides which types it admits.","required":["type","text"],"properties":{"text":{"type":"string","description":"The text of this part.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_text`.","enum":["input_text"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.0.cache_control","typeLabel":"any"},"prompt_cache_breakpoint":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.0.prompt_cache_breakpoint","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of a message's `content`. The role decides which types it admits.","required":["type","text"],"properties":{"text":{"type":"string","description":"The text the model produced.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.text","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `output_text`.","enum":["output_text"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"annotations":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.annotations.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.annotations.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The citations attached to this text; three tags count.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.annotations.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},"description":"The citations attached to this text; three tags count.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.annotations.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.annotations","typeLabel":"object[] | null"},"logprobs":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.logprobs.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.logprobs.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The token probabilities of the original reply. The gateway drops them.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.logprobs.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},"description":"The token probabilities of the original reply. The gateway drops them.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.logprobs.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1.logprobs","typeLabel":"object[] | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of a message's `content`. The role decides which types it admits.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_image`.","enum":["input_image"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"image_url":{"oneOf":[{"type":"string","description":"Where the image lives, inline under 20 MiB or by URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.image_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the image lives, inline under 20 MiB or by URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.image_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.file_id","typeLabel":"string | null"},"detail":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2.detail","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One entry of a message's `content`. The role decides which types it admits.","required":["type","input_audio"],"properties":{"input_audio":{"type":"object","description":"The audio and its encoding; nine encodings count, seven a NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.3.input_audio.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.3.input_audio","typeLabel":"object"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_audio`.","enum":["input_audio"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"One entry of a message's `content`. The role decides which types it admits.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_file`.","enum":["input_file"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"filename":{"oneOf":[{"type":"string","description":"The name the file reaches the model under.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.filename.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name the file reaches the model under.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.filename","typeLabel":"string | null"},"file_data":{"oneOf":[{"type":"string","description":"The file inline under 20 MiB, or an `http(s)` URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_data.oneOf.0","typeLabel":"string"},{"type":"null","description":"The file inline under 20 MiB, or an `http(s)` URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_data.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_data","typeLabel":"string | null"},"file_url":{"oneOf":[{"type":"string","description":"An `http(s)` URL naming the file; this slot takes no `data:` URI.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"An `http(s)` URL naming the file; this slot takes no `data:` URI.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.file_id","typeLabel":"string | null"},"input_file":{"oneOf":[{"type":"object","description":"The same four file keys nested in one object. A NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.input_file.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.input_file.oneOf.0","typeLabel":"object"},{"type":"null","description":"The same four file keys nested in one object. A NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.input_file.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.input_file.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4.input_file","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"List of content parts","description":"What the turn says. The gateway refuses a message without it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.0","typeLabel":"List of content parts · object[]"},{"type":"string","title":"Plain text","description":"What the turn says. The gateway refuses a message without it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.1","typeLabel":"string"},{"type":"null","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content.oneOf.2","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.content","typeLabel":"List of content parts · object[] | string | null"},"name":{"oneOf":[{"type":"string","description":"A name for the speaker. The gateway drops it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"A name for the speaker. The gateway drops it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"id":{"oneOf":[{"type":"string","description":"An identifier for this item. The gateway looks nothing up by it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for this item. The gateway looks nothing up by it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"The lifecycle state a replayed item carried, never acted on.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The lifecycle state a replayed item carried, never acted on.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.status","typeLabel":"string | null"},"phase":{"oneOf":[{"type":"string","description":"Whether an assistant turn is commentary or the final answer.","enum":["commentary","final_answer"],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.phase.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.phase.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0.phase","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","call_id","name"],"properties":{"call_id":{"type":"string","description":"The identifier a matching `function_call_output` repeats. The gateway refuses an empty string.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.call_id","typeLabel":"string"},"name":{"type":"string","description":"The name of the function the model asked to run.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `function_call`.","enum":["function_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"arguments":{"type":"string","description":"The arguments the model produced, as a JSON string. Absent means `\"\"`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.arguments","typeLabel":"string"},"id":{"oneOf":[{"type":"string","description":"An identifier for the call item, distinct from `call_id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for the call item, distinct from `call_id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"The lifecycle state this call carried. The gateway never acts on it.","enum":["in_progress","completed","incomplete"],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.status","typeLabel":"enum\u003cstring> | null"},"namespace":{"oneOf":[{"type":"string","description":"The `namespace` tool the function belongs to, when it came from one.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.namespace.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `namespace` tool the function belongs to, when it came from one.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.namespace.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1.namespace","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","call_id"],"properties":{"call_id":{"type":"string","description":"The `call_id` of the `function_call` this answers.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.call_id","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `function_call_output`.","enum":["function_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"output":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of a function call output, narrower than a message's content.","required":["type","text"],"properties":{"text":{"type":"string","description":"The text of this part.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_text`.","enum":["input_text"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.0.cache_control","typeLabel":"any"},"prompt_cache_breakpoint":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.0.prompt_cache_breakpoint","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of a function call output, narrower than a message's content.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_image`.","enum":["input_image"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"image_url":{"oneOf":[{"type":"string","description":"Where the image lives, inline under 20 MiB or by URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.image_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the image lives, inline under 20 MiB or by URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.image_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.file_id","typeLabel":"string | null"},"detail":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1.detail","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of a function call output, narrower than a message's content.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_file`.","enum":["input_file"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"filename":{"oneOf":[{"type":"string","description":"The name the file reaches the model under.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.filename.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name the file reaches the model under.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.filename","typeLabel":"string | null"},"file_data":{"oneOf":[{"type":"string","description":"The file inline under 20 MiB, or an `http(s)` URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_data.oneOf.0","typeLabel":"string"},{"type":"null","description":"The file inline under 20 MiB, or an `http(s)` URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_data.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_data","typeLabel":"string | null"},"file_url":{"oneOf":[{"type":"string","description":"An `http(s)` URL naming the file; this slot takes no `data:` URI.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"An `http(s)` URL naming the file; this slot takes no `data:` URI.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.file_id","typeLabel":"string | null"},"input_file":{"oneOf":[{"type":"object","description":"The same four file keys nested in one object. A NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.0","typeLabel":"object"},{"type":"null","description":"The same four file keys nested in one object. A NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2.input_file","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"List of output parts","description":"What the function returned. Absent means the empty string.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.0","typeLabel":"List of output parts · object[]"},{"type":"string","title":"Plain text","description":"What the function returned. Absent means the empty string.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output.oneOf.1","typeLabel":"string"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.output","typeLabel":"List of output parts · object[] | string"},"id":{"oneOf":[{"type":"string","description":"An identifier for the output item, distinct from `call_id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for the output item, distinct from `call_id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"The lifecycle state this result carried. The gateway never acts on it.","enum":["in_progress","completed","incomplete"],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2.status","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `reasoning`.","enum":["reasoning"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"An identifier for this reasoning block, matched against a sibling call.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for this reasoning block, matched against a sibling call.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.id","typeLabel":"string | null"},"content":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.content.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The reasoning text, as `reasoning_text` entries. Absent means an empty array.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.content.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},"description":"The reasoning text, as `reasoning_text` entries. Absent means an empty array.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.content.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.content","typeLabel":"object[] | null"},"summary":{"oneOf":[{"type":"array","items":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.summary.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.summary.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The reasoning summary, as `summary_text` entries. Its absence draws a refusal.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.summary.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},"description":"The reasoning summary, as `summary_text` entries. Its absence draws a refusal.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.summary","typeLabel":"object[] | null"},"encrypted_content":{"oneOf":[{"type":"string","description":"The opaque continuation token, sent back unchanged and never decoded here.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The opaque continuation token, sent back unchanged and never decoded here.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.encrypted_content","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"The lifecycle state this block carried. The gateway never acts on it.","enum":["in_progress","completed","incomplete"],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.status.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.status","typeLabel":"enum\u003cstring> | null"},"format":{"oneOf":[{"type":"string","description":"Which model family issued these continuation tokens. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which model family issued these continuation tokens. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.format","typeLabel":"string | null"},"signature":{"oneOf":[{"type":"string","description":"A second slot for the same continuation token. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.signature.oneOf.0","typeLabel":"string"},{"type":"null","description":"A second slot for the same continuation token. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.signature.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3.signature","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `image_generation_call`.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"An identifier for this item, matched by a sibling `reasoning` item's `id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for this item, matched by a sibling `reasoning` item's `id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"The state the generation carried, taken as given.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state the generation carried, taken as given.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.status","typeLabel":"string | null"},"result":{"oneOf":[{"type":"string","description":"The image as bare base64, under 20 MiB, and an alternative to `url`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.result.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image as bare base64, under 20 MiB, and an alternative to `url`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.result","typeLabel":"string | null"},"created_by":{"oneOf":[{"type":"string","description":"What created the item. The gateway drops it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.created_by.oneOf.0","typeLabel":"string"},{"type":"null","description":"What created the item. The gateway drops it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.created_by.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.created_by","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Where the image lives when the request carried no bytes.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the image lives when the request carried no bytes.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.url","typeLabel":"string | null"},"mime_type":{"oneOf":[{"type":"string","description":"The media type of the bytes in `result`. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The media type of the bytes in `result`. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4.mime_type","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","id"],"properties":{"id":{"type":"string","description":"The id of the item being pointed at, never resolved.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.5.id","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `item_reference`.","enum":["item_reference"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_call`.","enum":["web_search_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"An identifier for this item. Nothing is resolved by it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for this item. Nothing is resolved by it.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.id","typeLabel":"string | null"},"status":{"oneOf":[{"type":"string","description":"The state the search carried, taken as given.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.status.oneOf.0","typeLabel":"string"},{"type":"null","description":"The state the search carried, taken as given.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.status.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.status","typeLabel":"string | null"},"action":{"oneOf":[{"type":"object","description":"What the search did. Three `type` shapes pass: `search`, `open_page` and `find_in_page`.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.action.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.action.oneOf.0","typeLabel":"object"},{"type":"null","description":"What the search did. Three `type` shapes pass: `search`, `open_page` and `find_in_page`.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.action.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.action.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6.action","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `file_search_call`.","enum":["file_search_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_call`.","enum":["computer_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_call_output`.","enum":["computer_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `code_interpreter_call`.","enum":["code_interpreter_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell_call`.","enum":["local_shell_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell_call_output`.","enum":["local_shell_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell_call`.","enum":["shell_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell_call_output`.","enum":["shell_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch_call`.","enum":["apply_patch_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch_call_output`.","enum":["apply_patch_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp_list_tools`.","enum":["mcp_list_tools"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.17","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp_approval_request`.","enum":["mcp_approval_request"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.18.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.18","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp_approval_response`.","enum":["mcp_approval_response"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.19.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.19","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp_call`.","enum":["mcp_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.20.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.20","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","call_id"],"properties":{"call_id":{"type":"string","description":"The identifier a matching `tool_search_output` repeats.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.21.call_id","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search_call`.","enum":["tool_search_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.21.type","typeLabel":"enum\u003cstring>"},"arguments":{"description":"The search the model asked for, as an object.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.21.arguments","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.21","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","call_id"],"properties":{"call_id":{"type":"string","description":"The `call_id` of the search this answers.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.call_id","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search_output`.","enum":["tool_search_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.type","typeLabel":"enum\u003cstring>"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `function`.","enum":["function"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"What the model calls the function by.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the model calls the function by.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model. Falls back to `function.description`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the function does, written for the model. Falls back to `function.description`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.parameters","typeLabel":"object | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows `parameters` exactly.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model follows `parameters` exactly.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.strict","typeLabel":"boolean | null"},"function":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0.function","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search`.","enum":["web_search"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.filters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.filters.oneOf.0","typeLabel":"object"},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.filters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.filters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.filters","typeLabel":"object | null"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.user_location","typeLabel":"object | null"},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.external_web_access.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.external_web_access.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.external_web_access","typeLabel":"boolean | null"},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.max_uses.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.max_uses","typeLabel":"integer\u003cint64> | null"},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.blocked_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.blocked_domains","typeLabel":"string[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.defer_loading","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1.strict","typeLabel":"boolean | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_2025_08_26`.","enum":["web_search_2025_08_26"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.filters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.filters.oneOf.0","typeLabel":"object"},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.filters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.filters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.filters","typeLabel":"object | null"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.user_location","typeLabel":"object | null"},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.external_web_access.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.external_web_access.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.external_web_access","typeLabel":"boolean | null"},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.max_uses.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.max_uses","typeLabel":"integer\u003cint64> | null"},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.blocked_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.blocked_domains","typeLabel":"string[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.defer_loading","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2.strict","typeLabel":"boolean | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview`.","enum":["web_search_preview"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview_2025_03_11`.","enum":["web_search_preview_2025_03_11"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4.user_location","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","vector_store_ids"],"properties":{"vector_store_ids":{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.vector_store_ids.items.[INDEX]","typeLabel":"string"},"description":"Which stores would be searched, named by id. Required.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.vector_store_ids","typeLabel":"string[]"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `file_search`.","enum":["file_search"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"filters":{"description":"A condition results would satisfy.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.filters","typeLabel":"any"},"max_num_results":{"oneOf":[{"type":"integer","format":"int64","description":"How many passages the search would return at most.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.max_num_results.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many passages the search would return at most.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.max_num_results.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.max_num_results","typeLabel":"integer\u003cint64> | null"},"ranking_options":{"oneOf":[{"type":"object","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.0","typeLabel":"object"},{"type":"null","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5.ranking_options","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","display_height","display_width","environment"],"properties":{"display_height":{"type":"number","format":"double","description":"How tall the virtual display would be.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.6.display_height","typeLabel":"number\u003cdouble>"},"display_width":{"type":"number","format":"double","description":"How wide the virtual display would be.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.6.display_width","typeLabel":"number\u003cdouble>"},"environment":{"type":"any","description":"Which kind of machine would be driven.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.6.environment","typeLabel":"any"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_use_preview`.","enum":["computer_use_preview"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","container"],"properties":{"container":{"type":"any","description":"Which sandbox the code would run in.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.7.container","typeLabel":"any"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `code_interpreter`.","enum":["code_interpreter"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","server_label"],"properties":{"server_label":{"type":"string","description":"A short name for the server. Required.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_label","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp`.","enum":["mcp"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"allowed_tools":{"description":"Which of the server's tools the model could call.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.allowed_tools","typeLabel":"any"},"authorization":{"oneOf":[{"type":"string","description":"An OAuth access token for the server.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.authorization.oneOf.0","typeLabel":"string"},{"type":"null","description":"An OAuth access token for the server.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.authorization.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.authorization","typeLabel":"string | null"},"connector_id":{"oneOf":[{"type":"string","description":"Which first-party connector to use instead of a URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.connector_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which first-party connector to use instead of a URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.connector_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.connector_id","typeLabel":"string | null"},"headers":{"oneOf":[{"type":"object","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.headers.oneOf.0.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.headers.oneOf.0","typeLabel":"object"},{"type":"null","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.headers.oneOf.1.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.headers","typeLabel":"object | null"},"require_approval":{"description":"Which of the server's tools would need approval.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.require_approval","typeLabel":"any"},"server_description":{"oneOf":[{"type":"string","description":"Free text about the server, meant for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free text about the server, meant for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_description","typeLabel":"string | null"},"server_url":{"oneOf":[{"type":"string","description":"Where the server lives.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the server lives.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8.server_url","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `image_generation`.","enum":["image_generation"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"background":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.background","typeLabel":"any"},"input_fidelity":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.input_fidelity","typeLabel":"any"},"input_image_mask":{"oneOf":[{"type":"object","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.0","typeLabel":"object"},{"type":"null","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.input_image_mask","typeLabel":"object | null"},"model":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.model","typeLabel":"any"},"moderation":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.moderation","typeLabel":"any"},"output_compression":{"oneOf":[{"type":"number","format":"double","description":"How hard the produced file would be compressed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.output_compression.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How hard the produced file would be compressed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.output_compression.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.output_compression","typeLabel":"number\u003cdouble> | null"},"output_format":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.output_format","typeLabel":"any"},"partial_images":{"oneOf":[{"type":"number","format":"double","description":"How many half-finished frames would be streamed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.partial_images.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How many half-finished frames would be streamed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.partial_images.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.partial_images","typeLabel":"number\u003cdouble> | null"},"quality":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.quality","typeLabel":"any"},"size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9.size","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell`.","enum":["local_shell"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell`.","enum":["shell"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch`.","enum":["apply_patch"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The name the model would call the tool by.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom`.","enum":["custom"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"What the tool is for, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the tool is for, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.description","typeLabel":"string | null"},"format":{"oneOf":[{"type":"object","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.format.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.format.oneOf.0","typeLabel":"object"},{"type":"null","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.format.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13.format","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer`.","enum":["computer"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search`.","enum":["tool_search"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"execution":{"oneOf":[{"type":"string","description":"Who runs the search. Only `client` is carried; `server` is dropped.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.execution.oneOf.0","typeLabel":"string"},{"type":"null","description":"Who runs the search. Only `client` is carried; `server` is dropped.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.execution.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.execution","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the search does, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the search does, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15.parameters","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The group's name; a member is offered as `\u003cnamespace>__\u003cname>`.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `namespace`.","enum":["namespace"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"What the group is for, which the gateway does not forward.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the group is for, which the gateway does not forward.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16.description","typeLabel":"string | null"},"tools":{"type":"array","items":{"$circularRef":"58bdf672-b259-4090-9d7d-a916577b80e7"},"description":"The members: `function` and `custom` tools.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16.tools","typeLabel":"array"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `skills`.","enum":["skills"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX].oneOf.17","typeLabel":"object"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools.items.[INDEX]","typeLabel":"object"},"description":"The loaded tools, in the shape of `tools[]` entries.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22.tools","typeLabel":"object[]"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.22","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","tools"],"properties":{"tools":{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `function`.","enum":["function"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"What the model calls the function by.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the model calls the function by.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model. Falls back to `function.description`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the function does, written for the model. Falls back to `function.description`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.parameters","typeLabel":"object | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows `parameters` exactly.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model follows `parameters` exactly.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.strict","typeLabel":"boolean | null"},"function":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0.function","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search`.","enum":["web_search"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.filters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.filters.oneOf.0","typeLabel":"object"},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.filters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.filters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.filters","typeLabel":"object | null"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.user_location","typeLabel":"object | null"},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.external_web_access.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.external_web_access.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.external_web_access","typeLabel":"boolean | null"},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.max_uses.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.max_uses","typeLabel":"integer\u003cint64> | null"},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.blocked_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.blocked_domains","typeLabel":"string[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.defer_loading","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1.strict","typeLabel":"boolean | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_2025_08_26`.","enum":["web_search_2025_08_26"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.filters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.filters.oneOf.0","typeLabel":"object"},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.filters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.filters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.filters","typeLabel":"object | null"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.user_location","typeLabel":"object | null"},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.external_web_access.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the search may reach the live web.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.external_web_access.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.external_web_access","typeLabel":"boolean | null"},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.max_uses.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.max_uses","typeLabel":"integer\u003cint64> | null"},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.blocked_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.blocked_domains","typeLabel":"string[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.defer_loading","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2.strict","typeLabel":"boolean | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview`.","enum":["web_search_preview"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview_2025_03_11`.","enum":["web_search_preview_2025_03_11"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.search_context_size","typeLabel":"any"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4.user_location","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","vector_store_ids"],"properties":{"vector_store_ids":{"type":"array","items":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.vector_store_ids.items.[INDEX]","typeLabel":"string"},"description":"Which stores would be searched, named by id. Required.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.vector_store_ids","typeLabel":"string[]"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `file_search`.","enum":["file_search"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"filters":{"description":"A condition results would satisfy.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.filters","typeLabel":"any"},"max_num_results":{"oneOf":[{"type":"integer","format":"int64","description":"How many passages the search would return at most.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.max_num_results.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many passages the search would return at most.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.max_num_results.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.max_num_results","typeLabel":"integer\u003cint64> | null"},"ranking_options":{"oneOf":[{"type":"object","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.0","typeLabel":"object"},{"type":"null","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.ranking_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5.ranking_options","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","display_height","display_width","environment"],"properties":{"display_height":{"type":"number","format":"double","description":"How tall the virtual display would be.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.6.display_height","typeLabel":"number\u003cdouble>"},"display_width":{"type":"number","format":"double","description":"How wide the virtual display would be.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.6.display_width","typeLabel":"number\u003cdouble>"},"environment":{"type":"any","description":"Which kind of machine would be driven.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.6.environment","typeLabel":"any"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_use_preview`.","enum":["computer_use_preview"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","container"],"properties":{"container":{"type":"any","description":"Which sandbox the code would run in.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.7.container","typeLabel":"any"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `code_interpreter`.","enum":["code_interpreter"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","server_label"],"properties":{"server_label":{"type":"string","description":"A short name for the server. Required.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_label","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp`.","enum":["mcp"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"allowed_tools":{"description":"Which of the server's tools the model could call.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.allowed_tools","typeLabel":"any"},"authorization":{"oneOf":[{"type":"string","description":"An OAuth access token for the server.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.authorization.oneOf.0","typeLabel":"string"},{"type":"null","description":"An OAuth access token for the server.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.authorization.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.authorization","typeLabel":"string | null"},"connector_id":{"oneOf":[{"type":"string","description":"Which first-party connector to use instead of a URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.connector_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which first-party connector to use instead of a URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.connector_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.connector_id","typeLabel":"string | null"},"headers":{"oneOf":[{"type":"object","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.headers.oneOf.0.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.headers.oneOf.0","typeLabel":"object"},{"type":"null","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.headers.oneOf.1.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.headers","typeLabel":"object | null"},"require_approval":{"description":"Which of the server's tools would need approval.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.require_approval","typeLabel":"any"},"server_description":{"oneOf":[{"type":"string","description":"Free text about the server, meant for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free text about the server, meant for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_description","typeLabel":"string | null"},"server_url":{"oneOf":[{"type":"string","description":"Where the server lives.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the server lives.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8.server_url","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `image_generation`.","enum":["image_generation"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"background":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.background","typeLabel":"any"},"input_fidelity":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.input_fidelity","typeLabel":"any"},"input_image_mask":{"oneOf":[{"type":"object","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.0","typeLabel":"object"},{"type":"null","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.input_image_mask.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.input_image_mask","typeLabel":"object | null"},"model":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.model","typeLabel":"any"},"moderation":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.moderation","typeLabel":"any"},"output_compression":{"oneOf":[{"type":"number","format":"double","description":"How hard the produced file would be compressed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.output_compression.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How hard the produced file would be compressed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.output_compression.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.output_compression","typeLabel":"number\u003cdouble> | null"},"output_format":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.output_format","typeLabel":"any"},"partial_images":{"oneOf":[{"type":"number","format":"double","description":"How many half-finished frames would be streamed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.partial_images.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How many half-finished frames would be streamed.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.partial_images.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.partial_images","typeLabel":"number\u003cdouble> | null"},"quality":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.quality","typeLabel":"any"},"size":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9.size","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell`.","enum":["local_shell"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell`.","enum":["shell"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch`.","enum":["apply_patch"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The name the model would call the tool by.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom`.","enum":["custom"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"What the tool is for, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the tool is for, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.description","typeLabel":"string | null"},"format":{"oneOf":[{"type":"object","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.format.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.format.oneOf.0","typeLabel":"object"},{"type":"null","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.format.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13.format","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer`.","enum":["computer"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search`.","enum":["tool_search"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"execution":{"oneOf":[{"type":"string","description":"Who runs the search. Only `client` is carried; `server` is dropped.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.execution.oneOf.0","typeLabel":"string"},{"type":"null","description":"Who runs the search. Only `client` is carried; `server` is dropped.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.execution.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.execution","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the search does, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the search does, written for the model.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15.parameters","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The group's name; a member is offered as `\u003cnamespace>__\u003cname>`.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `namespace`.","enum":["namespace"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"What the group is for, which the gateway does not forward.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the group is for, which the gateway does not forward.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16.description","typeLabel":"string | null"},"tools":{"type":"array","items":{"$circularRef":"58bdf672-b259-4090-9d7d-a916577b80e7"},"description":"The members: `function` and `custom` tools.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16.tools","typeLabel":"array"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `skills`.","enum":["skills"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX].oneOf.17","typeLabel":"object"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools.items.[INDEX]","typeLabel":"object"},"description":"The declarations, in the shape of `tools[]` entries.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.tools","typeLabel":"object[]"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `additional_tools`.","enum":["additional_tools"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.type","typeLabel":"enum\u003cstring>"},"id":{"oneOf":[{"type":"string","description":"The item id, which the gateway does not read.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The item id, which the gateway does not read.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.id","typeLabel":"string | null"},"role":{"oneOf":[{"type":"string","description":"The role the declarations are attributed to, which the gateway does not read.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.role.oneOf.0","typeLabel":"string"},{"type":"null","description":"The role the declarations are attributed to, which the gateway does not read.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.role.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23.role","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.23","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `compaction`.","enum":["compaction"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.24.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.24","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","call_id","name"],"properties":{"call_id":{"type":"string","description":"The identifier a matching `custom_tool_call_output` repeats.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.call_id","typeLabel":"string"},"name":{"type":"string","description":"The name of the custom tool the model called.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom_tool_call`.","enum":["custom_tool_call"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.type","typeLabel":"enum\u003cstring>"},"input":{"type":"string","description":"The string the model wrote for the tool.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.input","typeLabel":"string"},"namespace":{"oneOf":[{"type":"string","description":"The `namespace` tool the custom tool belongs to, when it came from one.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.namespace.oneOf.0","typeLabel":"string"},{"type":"null","description":"The `namespace` tool the custom tool belongs to, when it came from one.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.namespace.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.namespace","typeLabel":"string | null"},"id":{"oneOf":[{"type":"string","description":"An identifier for the call item, distinct from `call_id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.id.oneOf.0","typeLabel":"string"},{"type":"null","description":"An identifier for the call item, distinct from `call_id`.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25.id","typeLabel":"string | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.25","typeLabel":"object"},{"type":"object","description":"One entry of the input list, chosen by its `type`. Six of twenty-six tags do something.","required":["type","call_id","output"],"properties":{"call_id":{"type":"string","description":"The `call_id` of the call this answers.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.call_id","typeLabel":"string"},"output":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of a function call output, narrower than a message's content.","required":["type","text"],"properties":{"text":{"type":"string","description":"The text of this part.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_text`.","enum":["input_text"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.0.cache_control","typeLabel":"any"},"prompt_cache_breakpoint":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.0.prompt_cache_breakpoint","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of a function call output, narrower than a message's content.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_image`.","enum":["input_image"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"image_url":{"oneOf":[{"type":"string","description":"Where the image lives, inline under 20 MiB or by URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.image_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the image lives, inline under 20 MiB or by URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.image_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.image_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.file_id","typeLabel":"string | null"},"detail":{"type":"any","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1.detail","typeLabel":"any"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of a function call output, narrower than a message's content.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `input_file`.","enum":["input_file"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"filename":{"oneOf":[{"type":"string","description":"The name the file reaches the model under.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.filename.oneOf.0","typeLabel":"string"},{"type":"null","description":"The name the file reaches the model under.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.filename.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.filename","typeLabel":"string | null"},"file_data":{"oneOf":[{"type":"string","description":"The file inline under 20 MiB, or an `http(s)` URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_data.oneOf.0","typeLabel":"string"},{"type":"null","description":"The file inline under 20 MiB, or an `http(s)` URL.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_data.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_data","typeLabel":"string | null"},"file_url":{"oneOf":[{"type":"string","description":"An `http(s)` URL naming the file; this slot takes no `data:` URI.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"An `http(s)` URL naming the file; this slot takes no `data:` URI.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_url","typeLabel":"string | null"},"file_id":{"oneOf":[{"type":"string","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The id of a file uploaded earlier.","uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.file_id","typeLabel":"string | null"},"input_file":{"oneOf":[{"type":"object","description":"The same four file keys nested in one object. A NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.0","typeLabel":"object"},{"type":"null","description":"The same four file keys nested in one object. A NagaAI extension.","additionalProperties":{"oneOf":[{}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.input_file.oneOf.1","typeLabel":"null"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2.input_file","typeLabel":"object | null"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"List of output parts","description":"What the tool returned: a string or content parts.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.0","typeLabel":"List of output parts · object[]"},{"type":"string","title":"Plain text","description":"What the tool returned: a string or content parts.","isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.output","typeLabel":"List of output parts · object[] | string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom_tool_call_output`.","enum":["custom_tool_call_output"],"isRequired":true,"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"input.oneOf.0.items.[INDEX].oneOf.26","typeLabel":"object"}],"uniqueKey":"input.oneOf.0.items.[INDEX]","typeLabel":"object"},"title":"List of input items","description":"The prompt: one string, or the conversation as typed items, oldest first. Required.","isRequired":true,"uniqueKey":"input.oneOf.0","typeLabel":"List of input items · object[]"},{"type":"string","title":"Plain text","description":"The prompt: one string, or the conversation as typed items, oldest first. Required.","isRequired":true,"uniqueKey":"input.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"input","typeLabel":"List of input items · object[] | string"},"routing":{"type":"object","description":"How NagaAI picks the providers for this request: `strategy` reorders them, `max_price` removes the dearer ones and can fail the request. A NagaAI extension.","properties":{"strategy":{"type":"string","description":"Which provider NagaAI tries first among those at the same price. Absent: the `x-naga-routing-strategy` header, the key's default, the workspace's, else NagaAI's choice.","enum":["reliability","balanced","latency","throughput","cache"],"uniqueKey":"routing.strategy","typeLabel":"enum\u003cstring>"},"max_price":{"type":"object","description":"The most one unit of each named meter may cost. Absent: no price limit.","example":{"output_token":"0.000005"},"properties":{"token":{"oneOf":[{"type":"string","description":"Credits per token, either direction, without a meter of its own. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per token, either direction, without a meter of its own. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.token","typeLabel":"string | number"},"input_token":{"oneOf":[{"type":"string","description":"Credits per prompt token without a meter of its own. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per prompt token without a meter of its own. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_token","typeLabel":"string | number"},"output_token":{"oneOf":[{"type":"string","description":"Credits per output token without a meter of its own. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per output token without a meter of its own. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_token","typeLabel":"string | number"},"cached_input_token":{"oneOf":[{"type":"string","description":"Credits per prompt token read from cache. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.cached_input_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per prompt token read from cache. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.cached_input_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.cached_input_token","typeLabel":"string | number"},"cache_write_input_token":{"oneOf":[{"type":"string","description":"Credits per prompt token written to cache. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.cache_write_input_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per prompt token written to cache. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.cache_write_input_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.cache_write_input_token","typeLabel":"string | number"},"cache_write_1h_input_token":{"oneOf":[{"type":"string","description":"Credits per prompt token cached for one hour. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.cache_write_1h_input_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per prompt token cached for one hour. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.cache_write_1h_input_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.cache_write_1h_input_token","typeLabel":"string | number"},"input_text_token":{"oneOf":[{"type":"string","description":"Credits per prompt text token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_text_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per prompt text token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_text_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_text_token","typeLabel":"string | number"},"output_text_token":{"oneOf":[{"type":"string","description":"Credits per output text token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_text_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per output text token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_text_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_text_token","typeLabel":"string | number"},"input_audio_token":{"oneOf":[{"type":"string","description":"Credits per input audio token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_audio_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per input audio token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_audio_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_audio_token","typeLabel":"string | number"},"output_audio_token":{"oneOf":[{"type":"string","description":"Credits per output audio token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_audio_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per output audio token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_audio_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_audio_token","typeLabel":"string | number"},"input_image_token":{"oneOf":[{"type":"string","description":"Credits per input image token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_image_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per input image token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_image_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_image_token","typeLabel":"string | number"},"output_image_token":{"oneOf":[{"type":"string","description":"Credits per output image token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_image_token.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per output image token. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_image_token.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_image_token","typeLabel":"string | number"},"input_audio_hour":{"oneOf":[{"type":"string","description":"Credits per hour of input audio. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_audio_hour.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per hour of input audio. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_audio_hour.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_audio_hour","typeLabel":"string | number"},"output_audio_hour":{"oneOf":[{"type":"string","description":"Credits per hour of output audio. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_audio_hour.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per hour of output audio. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_audio_hour.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_audio_hour","typeLabel":"string | number"},"input_text_character":{"oneOf":[{"type":"string","description":"Credits per input text character. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_text_character.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per input text character. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_text_character.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_text_character","typeLabel":"string | number"},"output_text_character":{"oneOf":[{"type":"string","description":"Credits per output text character. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_text_character.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per output text character. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_text_character.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_text_character","typeLabel":"string | number"},"input_text_search":{"oneOf":[{"type":"string","description":"Credits per rerank search. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_text_search.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per rerank search. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.input_text_search.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.input_text_search","typeLabel":"string | number"},"output_image_image":{"oneOf":[{"type":"string","description":"Credits per delivered picture. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_image_image.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per delivered picture. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_image_image.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_image_image","typeLabel":"string | number"},"request":{"oneOf":[{"type":"string","description":"Credits per request: the fee a request pays once. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.request.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per request: the fee a request pays once. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.request.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.request","typeLabel":"string | number"},"output_video_second":{"oneOf":[{"type":"string","description":"Credits per second of video. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_video_second.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per second of video. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_video_second.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_video_second","typeLabel":"string | number"},"output_video_megapixel_second":{"oneOf":[{"type":"string","description":"Credits per megapixel-second of upscaled video. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_video_megapixel_second.oneOf.0","typeLabel":"string"},{"type":"number","description":"Credits per megapixel-second of upscaled video. A non-negative decimal, as a string or a number.","minimum":0,"uniqueKey":"routing.max_price.output_video_megapixel_second.oneOf.1","typeLabel":"number"}],"uniqueKey":"routing.max_price.output_video_megapixel_second","typeLabel":"string | number"}},"additionalProperties":false,"uniqueKey":"routing.max_price","typeLabel":"object"},"precision":{"type":"array","items":{"type":"string","description":"A weight precision a provider serves a model in, as it publishes it.","enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32"],"uniqueKey":"routing.precision.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"The weight precisions the model may be served in. Absent: any.","minItems":1,"uniqueKey":"routing.precision","typeLabel":"enum\u003cstring>[]"}},"additionalProperties":false,"uniqueKey":"routing","typeLabel":"object"},"service_tier":{"type":"string","description":"`flex` sends the request only to providers at the model's base `price` in `GET /v1/models`, and fails it when none can serve it. Any other value, an unknown one included, or none: any provider, at its price.","enum":["auto","default","flex","scale","priority"],"uniqueKey":"service_tier","typeLabel":"enum\u003cstring>"},"models":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"models.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Fallback models, tried in order when `model` cannot answer: none of its providers served it, or the request does not fit it. At most 3; the answer's `model` names the one that answered, and only that one is billed. A NagaAI extension in OpenRouter's shape.","maxItems":3,"uniqueKey":"models.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Fallback models, tried in order when `model` cannot answer: none of its providers served it, or the request does not fit it. At most 3; the answer's `model` names the one that answered, and only that one is billed. A NagaAI extension in OpenRouter's shape.","maxItems":3,"uniqueKey":"models.oneOf.1","typeLabel":"null"}],"uniqueKey":"models","typeLabel":"string[] | null"},"instructions":{"oneOf":[{"type":"string","description":"A system instruction put ahead of the conversation.","uniqueKey":"instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"A system instruction put ahead of the conversation.","uniqueKey":"instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"instructions","typeLabel":"string | null"},"max_output_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"The ceiling on generated tokens, reasoning included. At least 1, and the gateway raises it where the reasoning budget would not fit.","minimum":1,"uniqueKey":"max_output_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The ceiling on generated tokens, reasoning included. At least 1, and the gateway raises it where the reasoning budget would not fit.","minimum":1,"uniqueKey":"max_output_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"max_output_tokens","typeLabel":"integer\u003cint64> | null"},"temperature":{"oneOf":[{"type":"number","format":"double","description":"How much randomness goes into the reply, between 0 and 2. A provider may still refuse a value this range allows.","maximum":2,"minimum":0,"uniqueKey":"temperature.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How much randomness goes into the reply, between 0 and 2. A provider may still refuse a value this range allows.","maximum":2,"minimum":0,"uniqueKey":"temperature.oneOf.1","typeLabel":"null"}],"uniqueKey":"temperature","typeLabel":"number\u003cdouble> | null"},"top_p":{"oneOf":[{"type":"number","format":"double","description":"The sampling cut-off, between 0 and 1, and an alternative to `temperature`.","maximum":1,"minimum":0,"uniqueKey":"top_p.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"The sampling cut-off, between 0 and 1, and an alternative to `temperature`.","maximum":1,"minimum":0,"uniqueKey":"top_p.oneOf.1","typeLabel":"null"}],"uniqueKey":"top_p","typeLabel":"number\u003cdouble> | null"},"tools":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `function`.","enum":["function"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"What the model calls the function by.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the model calls the function by.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model. Falls back to `function.description`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the function does, written for the model. Falls back to `function.description`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.parameters","typeLabel":"object | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows `parameters` exactly.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model follows `parameters` exactly.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.strict","typeLabel":"boolean | null"},"function":{"oneOf":[{"type":"object","description":"The same declaration written the chat-style way; the flat keys win.","required":["name"],"properties":{"name":{"type":"string","description":"What the model calls the function by. Required, and non-empty.","minLength":1,"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model to choose by.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the function does, written for the model to choose by.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The arguments the function accepts, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.parameters","typeLabel":"object | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows the parameter schema exactly.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model follows the parameter schema exactly.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0.strict","typeLabel":"boolean | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0.function","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search`.","enum":["web_search"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.filters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.filters.oneOf.0","typeLabel":"object"},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.filters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.filters.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.filters","typeLabel":"object | null"},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.search_context_size.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.search_context_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.search_context_size","typeLabel":"enum\u003cstring> | null"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.user_location","typeLabel":"object | null"},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.external_web_access.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the search may reach the live web.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.external_web_access.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.external_web_access","typeLabel":"boolean | null"},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.max_uses.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.max_uses","typeLabel":"integer\u003cint64> | null"},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.blocked_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.blocked_domains","typeLabel":"string[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.defer_loading","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1.strict","typeLabel":"boolean | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_2025_08_26`.","enum":["web_search_2025_08_26"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.filters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.filters.oneOf.0","typeLabel":"object"},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.filters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.filters.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.filters","typeLabel":"object | null"},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.search_context_size.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.search_context_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.search_context_size","typeLabel":"enum\u003cstring> | null"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.user_location","typeLabel":"object | null"},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.external_web_access.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the search may reach the live web.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.external_web_access.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.external_web_access","typeLabel":"boolean | null"},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.max_uses.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.max_uses","typeLabel":"integer\u003cint64> | null"},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.blocked_domains.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.blocked_domains","typeLabel":"string[] | null"},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_callers.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_callers.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_callers.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.allowed_callers","typeLabel":"string[] | null"},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.defer_loading.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.defer_loading.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.defer_loading","typeLabel":"boolean | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2.strict","typeLabel":"boolean | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview`.","enum":["web_search_preview"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.search_context_size.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.search_context_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.search_context_size","typeLabel":"enum\u003cstring> | null"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview_2025_03_11`.","enum":["web_search_preview_2025_03_11"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.search_context_size.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.search_context_size.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.search_context_size","typeLabel":"enum\u003cstring> | null"},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.user_location.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.user_location.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4.user_location","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","vector_store_ids"],"properties":{"vector_store_ids":{"type":"array","items":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.vector_store_ids.items.[INDEX]","typeLabel":"string"},"description":"Which stores would be searched, named by id. Required.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.vector_store_ids","typeLabel":"string[]"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `file_search`.","enum":["file_search"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"filters":{"description":"A condition results would satisfy.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.filters","typeLabel":"any"},"max_num_results":{"oneOf":[{"type":"integer","format":"int64","description":"How many passages the search would return at most.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.max_num_results.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many passages the search would return at most.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.max_num_results.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.max_num_results","typeLabel":"integer\u003cint64> | null"},"ranking_options":{"oneOf":[{"type":"object","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.ranking_options.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.ranking_options.oneOf.0","typeLabel":"object"},{"type":"null","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.ranking_options.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.ranking_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5.ranking_options","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","display_height","display_width","environment"],"properties":{"display_height":{"type":"number","format":"double","description":"How tall the virtual display would be.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.6.display_height","typeLabel":"number\u003cdouble>"},"display_width":{"type":"number","format":"double","description":"How wide the virtual display would be.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.6.display_width","typeLabel":"number\u003cdouble>"},"environment":{"type":"string","description":"Which kind of machine would be driven.","enum":["windows","mac","linux","ubuntu","browser"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.6.environment","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_use_preview`.","enum":["computer_use_preview"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","container"],"properties":{"container":{"oneOf":[{"type":"object","description":"Which sandbox the code would run in.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.7.container.oneOf.0.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.7.container.oneOf.0","typeLabel":"object"},{"type":"string","title":"Plain text","description":"Which sandbox the code would run in.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.7.container.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.7.container","typeLabel":"object | string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `code_interpreter`.","enum":["code_interpreter"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","server_label"],"properties":{"server_label":{"type":"string","description":"A short name for the server. Required.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_label","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp`.","enum":["mcp"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"allowed_tools":{"description":"Which of the server's tools the model could call.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.allowed_tools","typeLabel":"any"},"authorization":{"oneOf":[{"type":"string","description":"An OAuth access token for the server.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.authorization.oneOf.0","typeLabel":"string"},{"type":"null","description":"An OAuth access token for the server.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.authorization.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.authorization","typeLabel":"string | null"},"connector_id":{"oneOf":[{"type":"string","description":"Which first-party connector to use instead of a URL.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.connector_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which first-party connector to use instead of a URL.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.connector_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.connector_id","typeLabel":"string | null"},"headers":{"oneOf":[{"type":"object","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.headers.oneOf.0.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.headers.oneOf.0","typeLabel":"object"},{"type":"null","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.headers.oneOf.1.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.headers.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.headers","typeLabel":"object | null"},"require_approval":{"description":"Which of the server's tools would need approval.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.require_approval","typeLabel":"any"},"server_description":{"oneOf":[{"type":"string","description":"Free text about the server, meant for the model.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free text about the server, meant for the model.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_description","typeLabel":"string | null"},"server_url":{"oneOf":[{"type":"string","description":"Where the server lives.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where the server lives.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8.server_url","typeLabel":"string | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `image_generation`.","enum":["image_generation"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"background":{"oneOf":[{"type":"string","description":"Whether the background is see-through, filled, or the model's choice.","enum":["transparent","opaque","auto"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.background.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.background.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.background","typeLabel":"enum\u003cstring> | null"},"input_fidelity":{"oneOf":[{"type":"string","description":"How closely the result follows the supplied images.","enum":["high","low"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_fidelity.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_fidelity.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_fidelity","typeLabel":"enum\u003cstring> | null"},"input_image_mask":{"oneOf":[{"type":"object","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_image_mask.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_image_mask.oneOf.0","typeLabel":"object"},{"type":"null","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_image_mask.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_image_mask.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.input_image_mask","typeLabel":"object | null"},"model":{"oneOf":[{"type":"string","description":"Which image model would do the drawing.","enum":["gpt-image-1","gpt-image-1-mini"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.model.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.model.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.model","typeLabel":"enum\u003cstring> | null"},"moderation":{"oneOf":[{"type":"string","description":"How strictly what is drawn would be filtered.","enum":["auto","low"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.moderation.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.moderation.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.moderation","typeLabel":"enum\u003cstring> | null"},"output_compression":{"oneOf":[{"type":"number","format":"double","description":"How hard the produced file would be compressed.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.output_compression.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How hard the produced file would be compressed.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.output_compression.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.output_compression","typeLabel":"number\u003cdouble> | null"},"output_format":{"oneOf":[{"type":"string","description":"The file format the produced image would be encoded in.","enum":["png","webp","jpeg"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.output_format.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.output_format.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.output_format","typeLabel":"enum\u003cstring> | null"},"partial_images":{"oneOf":[{"type":"number","format":"double","description":"How many half-finished frames would be streamed.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.partial_images.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"null","format":"double","description":"How many half-finished frames would be streamed.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.partial_images.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.partial_images","typeLabel":"number\u003cdouble> | null"},"quality":{"oneOf":[{"type":"string","description":"How much rendering effort would go into the picture.","enum":["low","medium","high","auto"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.quality.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.quality.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.quality","typeLabel":"enum\u003cstring> | null"},"size":{"oneOf":[{"type":"string","description":"The pixel dimensions the picture would have.","enum":["1024x1024","1024x1536","1536x1024","auto"],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.size.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.size.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9.size","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell`.","enum":["local_shell"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell`.","enum":["shell"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch`.","enum":["apply_patch"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The name the model would call the tool by.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom`.","enum":["custom"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"What the tool is for, written for the model.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the tool is for, written for the model.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.description","typeLabel":"string | null"},"format":{"oneOf":[{"type":"object","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.format.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.format.oneOf.0","typeLabel":"object"},{"type":"null","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.format.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13.format","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer`.","enum":["computer"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search`.","enum":["tool_search"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"execution":{"oneOf":[{"type":"string","description":"Who runs the search. Only `client` is carried; `server` is dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.execution.oneOf.0","typeLabel":"string"},{"type":"null","description":"Who runs the search. Only `client` is carried; `server` is dropped.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.execution.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.execution","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the search does, written for the model.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the search does, written for the model.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.description","typeLabel":"string | null"},"parameters":{"oneOf":[{"type":"object","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.parameters.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.parameters.oneOf.0","typeLabel":"object"},{"type":"null","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.parameters.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15.parameters","typeLabel":"object | null"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The group's name; a member is offered as `\u003cnamespace>__\u003cname>`.","isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16.name","typeLabel":"string"},"type":{"type":"string","description":"The tag that selects this branch: `type` is `namespace`.","enum":["namespace"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"What the group is for, which the gateway does not forward.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the group is for, which the gateway does not forward.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16.description","typeLabel":"string | null"},"tools":{"type":"array","items":{"$circularRef":"58bdf672-b259-4090-9d7d-a916577b80e7"},"description":"The members: `function` and `custom` tools.","uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16.tools","typeLabel":"array"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.16","typeLabel":"object"},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `skills`.","enum":["skills"],"isRequired":true,"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.oneOf.0.items.[INDEX].oneOf.17","typeLabel":"object"}],"uniqueKey":"tools.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The tools the model may call. `web_search` and `web_search_preview` are the only hosted ones the gateway runs; other types travel no further.","uniqueKey":"tools.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"oneOf":[{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"name":{"oneOf":[{"type":"string","description":"What the model calls the function by."},{"type":"null","description":"What the model calls the function by."}]},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model. Falls back to `function.description`."},{"type":"null","description":"What the function does, written for the model. Falls back to `function.description`."}]},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows `parameters` exactly."},{"type":"null","description":"Whether the model follows `parameters` exactly."}]},"function":{"oneOf":[{"type":"object","description":"The same declaration written the chat-style way; the flat keys win.","required":["name"],"properties":{"name":{"type":"string","description":"What the model calls the function by. Required, and non-empty.","minLength":1},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model to choose by."},{"type":"null","description":"What the function does, written for the model to choose by."}]},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"The arguments the function accepts, as a JSON Schema.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows the parameter schema exactly."},{"type":"null","description":"Whether the model follows the parameter schema exactly."}]}}},{"type":"null"}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `function`.","enum":["function"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web."},{"type":"null","description":"Whether the search may reach the live web."}]},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension."},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension."}]},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."}]},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."}]},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension."},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension."}]},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search`.","enum":["web_search"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web."},{"type":"null","description":"Whether the search may reach the live web."}]},"max_uses":{"oneOf":[{"type":"integer","format":"int64","description":"How many searches one request may run. A NagaAI extension."},{"type":"null","format":"int64","description":"How many searches one request may run. A NagaAI extension."}]},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."},{"type":"null","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."}]},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."},{"type":"null","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."}]},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension."},{"type":"null","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension."}]},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_2025_08_26`.","enum":["web_search_2025_08_26"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview`.","enum":["web_search_preview"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview_2025_03_11`.","enum":["web_search_preview_2025_03_11"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","vector_store_ids"],"properties":{"vector_store_ids":{"type":"array","items":{"type":"string"},"description":"Which stores would be searched, named by id. Required."},"filters":{"description":"A condition results would satisfy."},"max_num_results":{"oneOf":[{"type":"integer","format":"int64","description":"How many passages the search would return at most."},{"type":"null","format":"int64","description":"How many passages the search would return at most."}]},"ranking_options":{"oneOf":[{"type":"object","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `file_search`.","enum":["file_search"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","display_height","display_width","environment"],"properties":{"display_height":{"type":"number","format":"double","description":"How tall the virtual display would be."},"display_width":{"type":"number","format":"double","description":"How wide the virtual display would be."},"environment":{"type":"string","description":"Which kind of machine would be driven.","enum":["windows","mac","linux","ubuntu","browser"]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_use_preview`.","enum":["computer_use_preview"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","container"],"properties":{"container":{"oneOf":[{"type":"object","description":"Which sandbox the code would run in.","additionalProperties":{"oneOf":[{}]}},{"type":"string","title":"Plain text","description":"Which sandbox the code would run in."}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `code_interpreter`.","enum":["code_interpreter"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","server_label"],"properties":{"server_label":{"type":"string","description":"A short name for the server. Required."},"allowed_tools":{"description":"Which of the server's tools the model could call."},"authorization":{"oneOf":[{"type":"string","description":"An OAuth access token for the server."},{"type":"null","description":"An OAuth access token for the server."}]},"connector_id":{"oneOf":[{"type":"string","description":"Which first-party connector to use instead of a URL."},{"type":"null","description":"Which first-party connector to use instead of a URL."}]},"headers":{"oneOf":[{"type":"object","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}},{"type":"null","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string"},"propertyNames":{"type":"string"}}]},"require_approval":{"description":"Which of the server's tools would need approval."},"server_description":{"oneOf":[{"type":"string","description":"Free text about the server, meant for the model."},{"type":"null","description":"Free text about the server, meant for the model."}]},"server_url":{"oneOf":[{"type":"string","description":"Where the server lives."},{"type":"null","description":"Where the server lives."}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp`.","enum":["mcp"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"background":{"oneOf":[{"type":"string","description":"Whether the background is see-through, filled, or the model's choice.","enum":["transparent","opaque","auto"]},{"type":"null"}]},"input_fidelity":{"oneOf":[{"type":"string","description":"How closely the result follows the supplied images.","enum":["high","low"]},{"type":"null"}]},"input_image_mask":{"oneOf":[{"type":"object","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"model":{"oneOf":[{"type":"string","description":"Which image model would do the drawing.","enum":["gpt-image-1","gpt-image-1-mini"]},{"type":"null"}]},"moderation":{"oneOf":[{"type":"string","description":"How strictly what is drawn would be filtered.","enum":["auto","low"]},{"type":"null"}]},"output_compression":{"oneOf":[{"type":"number","format":"double","description":"How hard the produced file would be compressed."},{"type":"null","format":"double","description":"How hard the produced file would be compressed."}]},"output_format":{"oneOf":[{"type":"string","description":"The file format the produced image would be encoded in.","enum":["png","webp","jpeg"]},{"type":"null"}]},"partial_images":{"oneOf":[{"type":"number","format":"double","description":"How many half-finished frames would be streamed."},{"type":"null","format":"double","description":"How many half-finished frames would be streamed."}]},"quality":{"oneOf":[{"type":"string","description":"How much rendering effort would go into the picture.","enum":["low","medium","high","auto"]},{"type":"null"}]},"size":{"oneOf":[{"type":"string","description":"The pixel dimensions the picture would have.","enum":["1024x1024","1024x1536","1536x1024","auto"]},{"type":"null"}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `image_generation`.","enum":["image_generation"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell`.","enum":["local_shell"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell`.","enum":["shell"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch`.","enum":["apply_patch"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The name the model would call the tool by."},"description":{"oneOf":[{"type":"string","description":"What the tool is for, written for the model."},{"type":"null","description":"What the tool is for, written for the model."}]},"format":{"oneOf":[{"type":"object","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom`.","enum":["custom"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer`.","enum":["computer"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"execution":{"oneOf":[{"type":"string","description":"Who runs the search. Only `client` is carried; `server` is dropped."},{"type":"null","description":"Who runs the search. Only `client` is carried; `server` is dropped."}]},"description":{"oneOf":[{"type":"string","description":"What the search does, written for the model."},{"type":"null","description":"What the search does, written for the model."}]},"parameters":{"oneOf":[{"type":"object","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}},{"type":"null","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}]},"propertyNames":{"type":"string"}}]},"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search`.","enum":["tool_search"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The group's name; a member is offered as `\u003cnamespace>__\u003cname>`."},"description":{"oneOf":[{"type":"string","description":"What the group is for, which the gateway does not forward."},{"type":"null","description":"What the group is for, which the gateway does not forward."}]},"tools":{"type":"array","items":{"$circularRef":"58bdf672-b259-4090-9d7d-a916577b80e7"},"description":"The members: `function` and `custom` tools."},"type":{"type":"string","description":"The tag that selects this branch: `type` is `namespace`.","enum":["namespace"]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `skills`.","enum":["skills"]}}}]},"description":"The tools the model may call. `web_search` and `web_search_preview` are the only hosted ones the gateway runs; other types travel no further.","uniqueKey":"tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools","typeLabel":"object[] | null"},"tool_choice":{"oneOf":[{"type":"string","title":"Mode","description":"Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.","enum":["auto","none","required"],"uniqueKey":"tool_choice.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","title":"Function tool","description":"Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.","required":["type","name"],"properties":{"type":{"type":"string","description":"Marks the choice as naming a function. Always `function`.","enum":["function"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"The function to force, spelled as in `tools[]`. The gateway refuses an empty string.","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.name","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"Function tool · object"},{"type":"object","title":"Function tool, chat-style","description":"Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.","required":["type","function"],"properties":{"type":{"type":"string","description":"Always `function`. The name's place tells the two forms apart.","enum":["function"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.2.type","typeLabel":"enum\u003cstring>"},"function":{"type":"object","description":"Carries the function name under `name`; every value must be a string.","additionalProperties":{"type":"string","uniqueKey":"tool_choice.oneOf.2.function.additionalProperties","typeLabel":"string"},"propertyNames":{"type":"string"},"isRequired":true,"uniqueKey":"tool_choice.oneOf.2.function","typeLabel":"object"}},"uniqueKey":"tool_choice.oneOf.2","typeLabel":"Function tool, chat-style · object"},{"type":"object","title":"Allowed tools","description":"Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.","required":["type","tools"],"properties":{"type":{"type":"string","description":"Marks the choice as an allowed set. Always `allowed_tools`.","enum":["allowed_tools"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"tools":{"type":"array","items":{"oneOf":[{"type":"object","title":"Function tool","description":"One tool of an allowed set: a function by name, or a tool by type.","required":["type","name"],"properties":{"type":{"type":"string","description":"Marks the choice as naming a function. Always `function`.","enum":["function"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","description":"The function to force, spelled as in `tools[]`. The gateway refuses an empty string.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.0.name","typeLabel":"string"}},"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.0","typeLabel":"Function tool · object"},{"type":"object","title":"Hosted or custom tool","description":"One tool of an allowed set: a function by name, or a tool by type.","required":["type"],"properties":{"type":{"type":"string","description":"Which tool the entry names; web search is the one the gateway keeps.","enum":["web_search","web_search_preview","web_search_preview_2025_03_11","custom","file_search","computer","computer_use_preview","computer_use","image_generation","code_interpreter","mcp","apply_patch","shell"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"The tool name for the families that carry one.","uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The tool name for the families that carry one.","uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.1.name","typeLabel":"string | null"}},"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX].oneOf.1","typeLabel":"Hosted or custom tool · object"}],"uniqueKey":"tool_choice.oneOf.3.tools.items.[INDEX]","typeLabel":"Function tool · object | Hosted or custom tool · object"},"description":"The tools the model may pick from. More than 128 served tools draws a refusal.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.tools","typeLabel":"(Function tool · object | Hosted or custom tool · object)[]"},"mode":{"oneOf":[{"type":"string","description":"How tightly the set binds: `auto` or `required`.","enum":["auto","required"],"uniqueKey":"tool_choice.oneOf.3.mode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"tool_choice.oneOf.3.mode.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice.oneOf.3.mode","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"Allowed tools · object"},{"type":"object","title":"Hosted web search","description":"Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.","required":["type"],"properties":{"type":{"type":"string","description":"Which of the three web-search spellings this names.","enum":["web_search","web_search_preview","web_search_preview_2025_03_11"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tool_choice.oneOf.4","typeLabel":"Hosted web search · object"},{"type":"object","title":"Accepted and dropped tool","description":"Which tool, if any, the model is to call. Naming a tool the gateway does not run reads as if the key were absent.","required":["type"],"properties":{"type":{"type":"string","description":"Which unserved tool family the choice names.","enum":["custom","file_search","computer","computer_use_preview","computer_use","image_generation","code_interpreter","mcp","apply_patch","shell"],"isRequired":true,"uniqueKey":"tool_choice.oneOf.5.type","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"The tool name for the families that carry one, read and discarded.","uniqueKey":"tool_choice.oneOf.5.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"The tool name for the families that carry one, read and discarded.","uniqueKey":"tool_choice.oneOf.5.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"tool_choice.oneOf.5.name","typeLabel":"string | null"}},"uniqueKey":"tool_choice.oneOf.5","typeLabel":"Accepted and dropped tool · object"},{"type":"null","uniqueKey":"tool_choice.oneOf.6","typeLabel":"null"}],"uniqueKey":"tool_choice","typeLabel":"enum\u003cstring> | Function tool · object | Function tool, chat-style · object | Allowed tools · object | Hosted web search · object | Accepted and dropped tool · object | null"},"parallel_tool_calls":{"oneOf":[{"type":"boolean","description":"Whether the model may return several tool calls in one turn. It reaches only some providers.","uniqueKey":"parallel_tool_calls.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model may return several tool calls in one turn. It reaches only some providers.","uniqueKey":"parallel_tool_calls.oneOf.1","typeLabel":"null"}],"uniqueKey":"parallel_tool_calls","typeLabel":"boolean | null"},"truncation":{"oneOf":[{"type":"string","description":"What to do when the conversation outgrows the model's context window. `auto` lets NagaAI drop whole turns from its middle, keeping the system prompt, the first and the latest turn; `disabled`, the default, refuses it with `context_length_exceeded`.","enum":["auto","disabled"],"uniqueKey":"truncation.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"truncation.oneOf.1","typeLabel":"null"}],"uniqueKey":"truncation","typeLabel":"enum\u003cstring> | null"},"reasoning":{"oneOf":[{"type":"object","description":"How much reasoning to do, and what summary of it comes back.","properties":{"effort":{"oneOf":[{"type":"string","description":"How much reasoning to spend before answering. The gateway maps the step onto whatever scale the provider offers, and drops it where there is none.","enum":["none","minimal","low","medium","high","xhigh","max"],"uniqueKey":"reasoning.oneOf.0.effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"reasoning.oneOf.0.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning.oneOf.0.effort","typeLabel":"enum\u003cstring> | null"},"summary":{"oneOf":[{"type":"string","description":"Which summary of its own reasoning to ask the model for. Absent, `generate_summary` stands in for it.","enum":["concise","detailed","auto"],"uniqueKey":"reasoning.oneOf.0.summary.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"reasoning.oneOf.0.summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning.oneOf.0.summary","typeLabel":"enum\u003cstring> | null"},"generate_summary":{"oneOf":[{"type":"string","description":"The older spelling of `summary`, read only when `summary` is absent.","enum":["concise","detailed","auto"],"uniqueKey":"reasoning.oneOf.0.generate_summary.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"reasoning.oneOf.0.generate_summary.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning.oneOf.0.generate_summary","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"reasoning.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"reasoning.oneOf.1","typeLabel":"null"}],"uniqueKey":"reasoning","typeLabel":"object | null"},"text":{"oneOf":[{"type":"object","description":"The shape of the reply, and how long it should run.","properties":{"format":{"oneOf":[{"type":"object","description":"The shape the reply must take.","required":["type"],"properties":{"type":{"type":"string","description":"Which of the three formats the reply takes.","enum":["text","json_object","json_schema"],"isRequired":true,"uniqueKey":"text.oneOf.0.format.oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"oneOf":[{"type":"string","description":"A short name for the schema. Required if `type` is `json_schema`.","uniqueKey":"text.oneOf.0.format.oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","description":"A short name for the schema. Required if `type` is `json_schema`.","uniqueKey":"text.oneOf.0.format.oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"text.oneOf.0.format.oneOf.0.name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"What the schema is for, written for the model.","uniqueKey":"text.oneOf.0.format.oneOf.0.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the schema is for, written for the model.","uniqueKey":"text.oneOf.0.format.oneOf.0.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"text.oneOf.0.format.oneOf.0.description","typeLabel":"string | null"},"schema":{"oneOf":[{"type":"object","description":"The JSON Schema the reply is built to. Required if `type` is `json_schema`.","additionalProperties":{"oneOf":[{}],"uniqueKey":"text.oneOf.0.format.oneOf.0.schema.oneOf.0.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"text.oneOf.0.format.oneOf.0.schema.oneOf.0","typeLabel":"object"},{"type":"null","description":"The JSON Schema the reply is built to. Required if `type` is `json_schema`.","additionalProperties":{"oneOf":[{}],"uniqueKey":"text.oneOf.0.format.oneOf.0.schema.oneOf.1.additionalProperties","typeLabel":"any"},"propertyNames":{"type":"string"},"uniqueKey":"text.oneOf.0.format.oneOf.0.schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"text.oneOf.0.format.oneOf.0.schema","typeLabel":"object | null"},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model is held to the schema exactly.","uniqueKey":"text.oneOf.0.format.oneOf.0.strict.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the model is held to the schema exactly.","uniqueKey":"text.oneOf.0.format.oneOf.0.strict.oneOf.1","typeLabel":"null"}],"uniqueKey":"text.oneOf.0.format.oneOf.0.strict","typeLabel":"boolean | null"}},"uniqueKey":"text.oneOf.0.format.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"text.oneOf.0.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"text.oneOf.0.format","typeLabel":"object | null"},"verbosity":{"oneOf":[{"type":"string","description":"How long the reply should run.","enum":["low","medium","high"],"uniqueKey":"text.oneOf.0.verbosity.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"text.oneOf.0.verbosity.oneOf.1","typeLabel":"null"}],"uniqueKey":"text.oneOf.0.verbosity","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"text.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"text.oneOf.1","typeLabel":"null"}],"uniqueKey":"text","typeLabel":"object | null"},"stream":{"type":"boolean","description":"Whether the reply arrives incrementally as the model writes it. An explicit `null` draws a refusal.","uniqueKey":"stream","typeLabel":"boolean"},"cache_control":{"oneOf":[{"type":"object","description":"Automatic prompt caching: one breakpoint on the last input piece that can be cached, moving forward as the conversation grows. A NagaAI extension in OpenRouter's shape.","required":["type"],"properties":{"type":{"type":"string","description":"Always `ephemeral`.","enum":["ephemeral"],"isRequired":true,"uniqueKey":"cache_control.oneOf.0.type","typeLabel":"enum\u003cstring>"},"ttl":{"oneOf":[{"type":"string","description":"`5m` or `1h`. Absent means `5m`.","enum":["5m","1h"],"uniqueKey":"cache_control.oneOf.0.ttl.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"cache_control.oneOf.0.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"cache_control.oneOf.0.ttl","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"cache_control.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"cache_control.oneOf.1","typeLabel":"null"}],"uniqueKey":"cache_control","typeLabel":"object | null"},"prompt_cache_key":{"oneOf":[{"type":"string","description":"Groups requests that share a prompt prefix, so they reach the same prompt cache. At most 64 characters. NagaAI passes it to the providers that document it and drops it at the rest.","maxLength":64,"uniqueKey":"prompt_cache_key.oneOf.0","typeLabel":"string"},{"type":"null","description":"Groups requests that share a prompt prefix, so they reach the same prompt cache. At most 64 characters. NagaAI passes it to the providers that document it and drops it at the rest.","maxLength":64,"uniqueKey":"prompt_cache_key.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_key","typeLabel":"string | null"},"prompt_cache_retention":{"oneOf":[{"type":"string","description":"How long OpenAI keeps the cached prefix on models before GPT-5.6: `in_memory` or `24h`. NagaAI drops a value the model does not take, and drops the field at providers that do not document it.","enum":["in_memory","24h"],"uniqueKey":"prompt_cache_retention.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"prompt_cache_retention.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_retention","typeLabel":"enum\u003cstring> | null"},"prompt_cache_options":{"oneOf":[{"type":"object","description":"OpenAI's prompt-cache options. `mode: \"explicit\"` caches only the parts that carry a breakpoint, and NagaAI drops a top-level `cache_control` beside it; `implicit`, OpenAI's default, changes nothing.","properties":{"mode":{"oneOf":[{"type":"string","description":"`explicit` caches only the parts that carry a breakpoint, and NagaAI drops a top-level `cache_control` beside it. `implicit` is OpenAI's default and changes nothing.","enum":["implicit","explicit"],"uniqueKey":"prompt_cache_options.oneOf.0.mode.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"prompt_cache_options.oneOf.0.mode.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_options.oneOf.0.mode","typeLabel":"enum\u003cstring> | null"},"ttl":{"oneOf":[{"type":"string","description":"Accepted; every prefix is written at the provider's default lifetime.","enum":["30m","12h"],"uniqueKey":"prompt_cache_options.oneOf.0.ttl.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"prompt_cache_options.oneOf.0.ttl.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_options.oneOf.0.ttl","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"prompt_cache_options.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"prompt_cache_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"prompt_cache_options","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"basic":{"title":"basic","summary":"A plain turn","value":{"model":"openai/gpt-6.1-sol","input":[{"role":"user","content":[{"type":"input_text","text":"say hi"}]}]}},"reasoning":{"title":"reasoning","summary":"Ask for a reasoning summary","value":{"model":"openai/gpt-6.1-sol","input":[{"role":"user","content":[{"type":"input_text","text":"Plan a 3-step refactor."}]}],"reasoning":{"effort":"medium","summary":"auto"}}},"streaming":{"title":"streaming","summary":"Stream the output items as they open and close","value":{"model":"openai/gpt-6.1-sol","input":[{"role":"user","content":[{"type":"input_text","text":"say hi"}]}],"stream":true}},"tool-call":{"title":"tool-call","summary":"Two functions called in parallel","value":{"model":"openai/gpt-6.1-sol","input":[{"role":"user","content":[{"type":"input_text","text":"weather in NYC and SF"}]}],"parallel_tool_calls":true,"tools":[{"type":"function","name":"get_weather","parameters":{"type":"object","properties":{"city":{"type":"string"}}}}]}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"3423c7a6-cb61-43bb-80f7-9831f24d436b":{"description":"The response. `application/json` carries one `response` object; `text/event-stream` carries the event-typed lifecycle frames.","headers":{"x-naga-dropped-tools":{"schema":{"type":"string"},"description":"Hosted tools from the request that did not run because no provider of the model could serve them right now, comma-separated: `web_search`. Absent when every requested tool was available. A NagaAI extension."},"x-naga-routing-strategy":{"schema":{"type":"string"},"description":"The routing strategy NagaAI applied to this request."}},"content":{"application/json":{"schema":{"type":"object","description":"A response: the non-streaming body, and the snapshot every lifecycle frame carries.","required":["id","object","created_at","status","output","error","incomplete_details","usage","model","instructions","tools","tool_choice","temperature","top_p","parallel_tool_calls","metadata","text","truncation","max_output_tokens"],"properties":{"instructions":{"oneOf":[{"type":"string","description":"The system instructions the turn ran with, or `null`.","isRequired":true,"uniqueKey":"instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"The system instructions the turn ran with, or `null`.","isRequired":true,"uniqueKey":"instructions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"instructions","typeLabel":"string | null"},"tools":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX]","typeLabel":"any"},"description":"The tools the model was offered, in the shape the gateway took them.","isRequired":true,"uniqueKey":"tools","typeLabel":"any[]"},"tool_choice":{"description":"How the model was told to choose among them.","isRequired":true,"uniqueKey":"tool_choice","typeLabel":"any"},"temperature":{"description":"The sampling temperature the turn ran with; `1` when the request set none.","isRequired":true,"uniqueKey":"temperature","typeLabel":"any"},"top_p":{"description":"The sampling cut-off the turn ran with; `1` when the request set none.","isRequired":true,"uniqueKey":"top_p","typeLabel":"any"},"parallel_tool_calls":{"type":"boolean","description":"Whether the model could call several tools at once.","isRequired":true,"uniqueKey":"parallel_tool_calls","typeLabel":"boolean"},"metadata":{"description":"The metadata the request sent, echoed back unchanged. The gateway drops it upstream.","isRequired":true,"uniqueKey":"metadata","typeLabel":"any"},"text":{"description":"The output-format settings the turn ran with.","isRequired":true,"uniqueKey":"text","typeLabel":"any"},"truncation":{"description":"What was to happen if the conversation outgrew the context window.","isRequired":true,"uniqueKey":"truncation","typeLabel":"any"},"max_output_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"The ceiling on generated tokens the turn ran with, or `null`.","isRequired":true,"uniqueKey":"max_output_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The ceiling on generated tokens the turn ran with, or `null`.","isRequired":true,"uniqueKey":"max_output_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"max_output_tokens","typeLabel":"integer\u003cint64> | null"},"id":{"type":"string","description":"This response's identifier, repeated on every frame. No handle to resume from.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","description":"What kind of object this is. Always `response`.","enum":["response"],"isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"created_at":{"type":"integer","format":"int64","description":"When the response was created, in seconds since the Unix epoch.","isRequired":true,"uniqueKey":"created_at","typeLabel":"integer\u003cint64>"},"status":{"type":"string","description":"Where the turn stands, as the provider named it.","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"output":{"type":"array","items":{"oneOf":[{"type":"object","title":"Message item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status","role","content"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `message`.","enum":["message"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.id","typeLabel":"string"},"status":{"type":"string","description":"Whether the item is still unfinished.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.status","typeLabel":"enum\u003cstring>"},"role":{"type":"string","description":"Who the message is from. `assistant` on anything the model produced.","enum":["user","assistant","system","developer","tool"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"type":"object","uniqueKey":"output.items.[INDEX].oneOf.0.content.items.[INDEX]","typeLabel":"object"},"description":"The message itself: `output_text` parts, or a `refusal` part.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.0.content","typeLabel":"object[]"},"phase":{"type":"string","description":"Which pass of a two-pass answer this message is.","enum":["commentary","final_answer"],"uniqueKey":"output.items.[INDEX].oneOf.0.phase","typeLabel":"enum\u003cstring>"}},"uniqueKey":"output.items.[INDEX].oneOf.0","typeLabel":"Message item · object"},{"type":"object","title":"Reasoning item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","summary","content"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `reasoning` — carried both by the model's own reasoning and by the item that carries another item's signature.","enum":["reasoning"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.id","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","uniqueKey":"output.items.[INDEX].oneOf.1.summary.items.[INDEX]","typeLabel":"object"},"description":"The reasoning as the model summarized it, `summary_text` part by part. Empty when the model reasoned without summarising.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.summary","typeLabel":"object[]"},"content":{"type":"array","items":{"type":"object","uniqueKey":"output.items.[INDEX].oneOf.1.content.items.[INDEX]","typeLabel":"object"},"description":"The reasoning as the model wrote it out, `reasoning_text` part by part. Empty for a model that returns only a summary.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.1.content","typeLabel":"object[]"},"encrypted_content":{"oneOf":[{"type":"string","description":"The reasoning in opaque form, replayed on a later turn.","uniqueKey":"output.items.[INDEX].oneOf.1.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reasoning in opaque form, replayed on a later turn.","uniqueKey":"output.items.[INDEX].oneOf.1.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.1.encrypted_content","typeLabel":"string | null"},"format":{"oneOf":[{"type":"string","description":"Which provider's encoding `encrypted_content` is in. Absent when the provider named none.","uniqueKey":"output.items.[INDEX].oneOf.1.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which provider's encoding `encrypted_content` is in. Absent when the provider named none.","uniqueKey":"output.items.[INDEX].oneOf.1.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.1.format","typeLabel":"string | null"}},"uniqueKey":"output.items.[INDEX].oneOf.1","typeLabel":"Reasoning item · object"},{"type":"object","title":"Synthesized reasoning item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","encrypted_content","summary"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `reasoning` — carried both by the model's own reasoning and by the item that carries another item's signature.","enum":["reasoning"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.2.id","typeLabel":"string"},"encrypted_content":{"type":"string","description":"The signature this frame carries, in opaque form.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.2.encrypted_content","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","uniqueKey":"output.items.[INDEX].oneOf.2.summary.items.[INDEX]","typeLabel":"object"},"description":"Always empty: a carrier has nothing to summarize.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.2.summary","typeLabel":"object[]"},"format":{"oneOf":[{"type":"string","description":"Which provider's encoding `encrypted_content` is in, learned from the reasoning of the same turn. Absent when no reasoning item of the turn named one.","uniqueKey":"output.items.[INDEX].oneOf.2.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which provider's encoding `encrypted_content` is in, learned from the reasoning of the same turn. Absent when no reasoning item of the turn named one.","uniqueKey":"output.items.[INDEX].oneOf.2.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.2.format","typeLabel":"string | null"}},"uniqueKey":"output.items.[INDEX].oneOf.2","typeLabel":"Synthesized reasoning item · object"},{"type":"object","title":"Function call item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","call_id","name","arguments","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `function_call`.","enum":["function_call"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.3.id","typeLabel":"string"},"call_id":{"type":"string","description":"The call's own identifier, repeated as `call_id` on the item carrying the result.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.3.call_id","typeLabel":"string"},"name":{"type":"string","description":"Which of your tools to call, by the name you declared it under.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.3.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to call it with, as JSON in a string. Valid JSON is not guaranteed.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.3.arguments","typeLabel":"string"},"status":{"type":"string","description":"Whether the call is fully written out.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.3.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"output.items.[INDEX].oneOf.3","typeLabel":"Function call item · object"},{"type":"object","title":"Function call output item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","call_id","output","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `function_call_output`.","enum":["function_call_output"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.4.id","typeLabel":"string"},"call_id":{"type":"string","description":"The `call_id` of the call this answers.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.4.call_id","typeLabel":"string"},"output":{"description":"The result itself: a string, or a list of content parts.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.4.output","typeLabel":"any"},"status":{"type":"string","description":"Whether the result is complete.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.4.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"output.items.[INDEX].oneOf.4","typeLabel":"Function call output item · object"},{"type":"object","title":"Web search call item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `web_search_call`.","enum":["web_search_call"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.5.id","typeLabel":"string"},"status":{"type":"string","description":"How the search is going.","enum":["in_progress","completed","incomplete","searching","failed"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.5.status","typeLabel":"enum\u003cstring>"},"action":{"type":"object","description":"What the search did: a query, a page opened, a page searched within.","uniqueKey":"output.items.[INDEX].oneOf.5.action","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","uniqueKey":"output.items.[INDEX].oneOf.5.results.items.[INDEX]","typeLabel":"object"},"description":"The pages the search returned, absent when the provider returned none. Published as bare objects, for the same reason as `action`.","uniqueKey":"output.items.[INDEX].oneOf.5.results","typeLabel":"object[]"}},"uniqueKey":"output.items.[INDEX].oneOf.5","typeLabel":"Web search call item · object"},{"type":"object","title":"Image generation call item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `image_generation_call` — carried both by a finished image and by the frame announcing one.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.6.id","typeLabel":"string"},"status":{"type":"string","description":"How the generation is going. Always `completed`: an image reaches you whole or not at all.","enum":["completed"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.6.status","typeLabel":"enum\u003cstring>"},"result":{"oneOf":[{"type":"string","description":"The image's bytes, base64-encoded. Absent when the provider returned a hosted image instead — then `url` carries it.","uniqueKey":"output.items.[INDEX].oneOf.6.result.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's bytes, base64-encoded. Absent when the provider returned a hosted image instead — then `url` carries it.","uniqueKey":"output.items.[INDEX].oneOf.6.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.6.result","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Where a hosted image is served from. Absent when the provider returned the bytes inline.","uniqueKey":"output.items.[INDEX].oneOf.6.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where a hosted image is served from. Absent when the provider returned the bytes inline.","uniqueKey":"output.items.[INDEX].oneOf.6.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.6.url","typeLabel":"string | null"},"mime_type":{"oneOf":[{"type":"string","description":"The image's media type. Absent when the provider named none.","uniqueKey":"output.items.[INDEX].oneOf.6.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's media type. Absent when the provider named none.","uniqueKey":"output.items.[INDEX].oneOf.6.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.6.mime_type","typeLabel":"string | null"}},"uniqueKey":"output.items.[INDEX].oneOf.6","typeLabel":"Image generation call item · object"},{"type":"object","title":"Image generation call, added view","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status","result"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `image_generation_call` — carried both by a finished image and by the frame announcing one.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, which the frame reporting it done repeats.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.7.id","typeLabel":"string"},"status":{"type":"string","description":"Always `in_progress`, which is what tells this announcement apart from the finished item.","enum":["in_progress"],"isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.7.status","typeLabel":"enum\u003cstring>"},"result":{"type":"null","description":"Always `null` here. The image's bytes arrive on the frame that reports the item done, so they travel exactly once per stream.","isRequired":true,"uniqueKey":"output.items.[INDEX].oneOf.7.result","typeLabel":"null"},"mime_type":{"oneOf":[{"type":"string","description":"The image's media type, when the provider named one this early.","uniqueKey":"output.items.[INDEX].oneOf.7.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's media type, when the provider named one this early.","uniqueKey":"output.items.[INDEX].oneOf.7.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.items.[INDEX].oneOf.7.mime_type","typeLabel":"string | null"}},"uniqueKey":"output.items.[INDEX].oneOf.7","typeLabel":"Image generation call, added view · object"}],"uniqueKey":"output.items.[INDEX]","typeLabel":"Message item · object | Reasoning item · object | Synthesized reasoning item · object | Function call item · object | Function call output item · object | Web search call item · object | Image generation call item · object | Image generation call, added view · object"},"description":"What the model produced, item by item, in order.","isRequired":true,"uniqueKey":"output","typeLabel":"(Message item · object | Reasoning item · object | Synthesized reasoning item · object | Function call item · object | Function call output item · object | Web search call item · object | Image generation call item · object | Image generation call, added view · object)[]"},"error":{"oneOf":[{"type":"object","description":"What went wrong, or `null` when nothing did.","required":["code","message"],"properties":{"code":{"type":"string","description":"A machine-readable code for the failure, never empty.","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong, in prose meant to be read.","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"incomplete_details":{"oneOf":[{"type":"object","description":"Why the turn stopped short, or `null`.","required":["reason"],"properties":{"reason":{"type":"string","description":"What cut the turn short.","enum":["max_output_tokens","content_filter","tool_use_required","upstream_timeout","upstream_disconnect","gateway_cancelled","other"],"isRequired":true,"uniqueKey":"incomplete_details.oneOf.0.reason","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"incomplete_details.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"incomplete_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"incomplete_details","typeLabel":"object | null"},"usage":{"oneOf":[{"type":"object","description":"What the request cost in tokens, or `null` while the turn runs.","required":["input_tokens","input_tokens_details","output_tokens","output_tokens_details","total_tokens"],"properties":{"input_tokens":{"type":"integer","format":"int64","description":"Tokens of the prompt, cached ones included.","isRequired":true,"uniqueKey":"usage.oneOf.0.input_tokens","typeLabel":"integer\u003cint64>"},"input_tokens_details":{"type":"object","description":"The split of `input_tokens` the provider reported.","required":["cached_tokens"],"properties":{"cached_tokens":{"type":"integer","format":"int64","description":"How many prompt tokens the provider served from its own cache. `0` when it reported none.","isRequired":true,"uniqueKey":"usage.oneOf.0.input_tokens_details.cached_tokens","typeLabel":"integer\u003cint64>"},"audio_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"How many prompt tokens were audio. A NagaAI extension, present only when the provider split them out.","uniqueKey":"usage.oneOf.0.input_tokens_details.audio_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many prompt tokens were audio. A NagaAI extension, present only when the provider split them out.","uniqueKey":"usage.oneOf.0.input_tokens_details.audio_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.oneOf.0.input_tokens_details.audio_tokens","typeLabel":"integer\u003cint64> | null"},"cache_write_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"How many prompt tokens were written to the provider's cache, billed at the cache-write rate. Counted inside `input_tokens`; present only when the request wrote to the cache.","uniqueKey":"usage.oneOf.0.input_tokens_details.cache_write_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many prompt tokens were written to the provider's cache, billed at the cache-write rate. Counted inside `input_tokens`; present only when the request wrote to the cache.","uniqueKey":"usage.oneOf.0.input_tokens_details.cache_write_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.oneOf.0.input_tokens_details.cache_write_tokens","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"usage.oneOf.0.input_tokens_details","typeLabel":"object"},"output_tokens":{"type":"integer","format":"int64","description":"Tokens the model generated, reasoning and image tokens included.","isRequired":true,"uniqueKey":"usage.oneOf.0.output_tokens","typeLabel":"integer\u003cint64>"},"output_tokens_details":{"type":"object","description":"The split of `output_tokens` the provider reported.","required":["reasoning_tokens"],"properties":{"reasoning_tokens":{"type":"integer","format":"int64","description":"How many generated tokens the model spent reasoning. `0` when the provider reported none.","isRequired":true,"uniqueKey":"usage.oneOf.0.output_tokens_details.reasoning_tokens","typeLabel":"integer\u003cint64>"},"image_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"How many generated tokens were image output. A NagaAI extension.","uniqueKey":"usage.oneOf.0.output_tokens_details.image_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many generated tokens were image output. A NagaAI extension.","uniqueKey":"usage.oneOf.0.output_tokens_details.image_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.oneOf.0.output_tokens_details.image_tokens","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"usage.oneOf.0.output_tokens_details","typeLabel":"object"},"total_tokens":{"type":"integer","format":"int64","description":"The provider's own total for the request, reported as received.","isRequired":true,"uniqueKey":"usage.oneOf.0.total_tokens","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"usage.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"usage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage","typeLabel":"object | null"},"model":{"oneOf":[{"type":"string","description":"The model that answered, by its id in the NagaAI catalog.","isRequired":true,"uniqueKey":"model.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model that answered, by its id in the NagaAI catalog.","isRequired":true,"uniqueKey":"model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"model","typeLabel":"string | null"},"reasoning":{"description":"The reasoning settings the turn ran with.","uniqueKey":"reasoning","typeLabel":"any"}},"uniqueKey":"","typeLabel":"object"},"examples":{"basic":{"title":"basic","summary":"One completed `response` object","value":{"id":"resp_01H8Zt4Qk9","object":"response","created_at":1774000000,"status":"completed","model":"openai/gpt-6.1-sol","output":[{"type":"message","id":"msg_1","status":"completed","role":"assistant","content":[{"type":"output_text","text":"hello world"}]}],"error":null,"incomplete_details":null,"usage":{"input_tokens":3,"input_tokens_details":{"cached_tokens":0},"output_tokens":2,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":5},"instructions":null,"tools":[],"tool_choice":"auto","temperature":1,"top_p":1,"parallel_tool_calls":true,"metadata":null,"text":{"format":{"type":"text"}},"truncation":"disabled","max_output_tokens":null}},"reasoning":{"title":"reasoning","summary":"A reasoning item precedes the message","value":{"id":"resp_01K2Rw8Nc4","object":"response","created_at":1774000000,"status":"completed","model":"openai/gpt-6.1-sol","output":[{"type":"reasoning","id":"rs_1","summary":[{"type":"summary_text","text":"first part"}],"content":[]},{"type":"message","id":"msg_1","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Here is the plan."}]}],"error":null,"incomplete_details":null,"usage":{"input_tokens":12,"input_tokens_details":{"cached_tokens":0},"output_tokens":80,"output_tokens_details":{"reasoning_tokens":64},"total_tokens":92},"instructions":null,"tools":[],"tool_choice":"auto","temperature":1,"top_p":1,"parallel_tool_calls":true,"metadata":null,"text":{"format":{"type":"text"}},"truncation":"disabled","max_output_tokens":null}},"tool-call":{"title":"tool-call","summary":"Two function calls, no message","value":{"id":"resp_01M5Pd7Vb2","object":"response","created_at":1774000000,"status":"completed","model":"openai/gpt-6.1-sol","output":[{"type":"function_call","id":"fc_1","call_id":"call_a","name":"get_weather","arguments":"{\"city\":\"NYC\"}","status":"completed"},{"type":"function_call","id":"fc_2","call_id":"call_b","name":"get_weather","arguments":"{\"city\":\"SF\"}","status":"completed"}],"error":null,"incomplete_details":null,"usage":{"input_tokens":12,"input_tokens_details":{"cached_tokens":0},"output_tokens":18,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":30},"instructions":null,"tools":[],"tool_choice":"auto","temperature":1,"top_p":1,"parallel_tool_calls":true,"metadata":null,"text":{"format":{"type":"text"}},"truncation":"disabled","max_output_tokens":null}}},"exampleType":"examples"},"text/event-stream":{"schema":{"oneOf":[{"type":"object","title":"Lifecycle frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["response","type","sequence_number"],"properties":{"response":{"type":"object","description":"The response as it stands at this point of the stream.","required":["id","object","created_at","status","output","error","incomplete_details","usage","model","instructions","tools","tool_choice","temperature","top_p","parallel_tool_calls","metadata","text","truncation","max_output_tokens"],"properties":{"instructions":{"oneOf":[{"type":"string","description":"The system instructions the turn ran with, or `null`.","isRequired":true,"uniqueKey":"oneOf.0.response.instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"The system instructions the turn ran with, or `null`.","isRequired":true,"uniqueKey":"oneOf.0.response.instructions.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.response.instructions","typeLabel":"string | null"},"tools":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.0.response.tools.items.[INDEX]","typeLabel":"any"},"description":"The tools the model was offered, in the shape the gateway took them.","isRequired":true,"uniqueKey":"oneOf.0.response.tools","typeLabel":"any[]"},"tool_choice":{"description":"How the model was told to choose among them.","isRequired":true,"uniqueKey":"oneOf.0.response.tool_choice","typeLabel":"any"},"temperature":{"description":"The sampling temperature the turn ran with; `1` when the request set none.","isRequired":true,"uniqueKey":"oneOf.0.response.temperature","typeLabel":"any"},"top_p":{"description":"The sampling cut-off the turn ran with; `1` when the request set none.","isRequired":true,"uniqueKey":"oneOf.0.response.top_p","typeLabel":"any"},"parallel_tool_calls":{"type":"boolean","description":"Whether the model could call several tools at once.","isRequired":true,"uniqueKey":"oneOf.0.response.parallel_tool_calls","typeLabel":"boolean"},"metadata":{"description":"The metadata the request sent, echoed back unchanged. The gateway drops it upstream.","isRequired":true,"uniqueKey":"oneOf.0.response.metadata","typeLabel":"any"},"text":{"description":"The output-format settings the turn ran with.","isRequired":true,"uniqueKey":"oneOf.0.response.text","typeLabel":"any"},"truncation":{"description":"What was to happen if the conversation outgrew the context window.","isRequired":true,"uniqueKey":"oneOf.0.response.truncation","typeLabel":"any"},"max_output_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"The ceiling on generated tokens the turn ran with, or `null`.","isRequired":true,"uniqueKey":"oneOf.0.response.max_output_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The ceiling on generated tokens the turn ran with, or `null`.","isRequired":true,"uniqueKey":"oneOf.0.response.max_output_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.response.max_output_tokens","typeLabel":"integer\u003cint64> | null"},"id":{"type":"string","description":"This response's identifier, repeated on every frame. No handle to resume from.","isRequired":true,"uniqueKey":"oneOf.0.response.id","typeLabel":"string"},"object":{"type":"string","description":"What kind of object this is. Always `response`.","enum":["response"],"isRequired":true,"uniqueKey":"oneOf.0.response.object","typeLabel":"enum\u003cstring>"},"created_at":{"type":"integer","format":"int64","description":"When the response was created, in seconds since the Unix epoch.","isRequired":true,"uniqueKey":"oneOf.0.response.created_at","typeLabel":"integer\u003cint64>"},"status":{"type":"string","description":"Where the turn stands, as the provider named it.","isRequired":true,"uniqueKey":"oneOf.0.response.status","typeLabel":"string"},"output":{"type":"array","items":{"oneOf":[{"type":"object","title":"Message item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status","role","content"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `message`.","enum":["message"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.id","typeLabel":"string"},"status":{"type":"string","description":"Whether the item is still unfinished.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.status","typeLabel":"enum\u003cstring>"},"role":{"type":"string","description":"Who the message is from. `assistant` on anything the model produced.","enum":["user","assistant","system","developer","tool"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.content.items.[INDEX]","typeLabel":"object"},"description":"The message itself: `output_text` parts, or a `refusal` part.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.content","typeLabel":"object[]"},"phase":{"type":"string","description":"Which pass of a two-pass answer this message is.","enum":["commentary","final_answer"],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0.phase","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.0","typeLabel":"Message item · object"},{"type":"object","title":"Reasoning item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","summary","content"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `reasoning` — carried both by the model's own reasoning and by the item that carries another item's signature.","enum":["reasoning"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.id","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.summary.items.[INDEX]","typeLabel":"object"},"description":"The reasoning as the model summarized it, `summary_text` part by part. Empty when the model reasoned without summarising.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.summary","typeLabel":"object[]"},"content":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.content.items.[INDEX]","typeLabel":"object"},"description":"The reasoning as the model wrote it out, `reasoning_text` part by part. Empty for a model that returns only a summary.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.content","typeLabel":"object[]"},"encrypted_content":{"oneOf":[{"type":"string","description":"The reasoning in opaque form, replayed on a later turn.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reasoning in opaque form, replayed on a later turn.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.encrypted_content","typeLabel":"string | null"},"format":{"oneOf":[{"type":"string","description":"Which provider's encoding `encrypted_content` is in. Absent when the provider named none.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which provider's encoding `encrypted_content` is in. Absent when the provider named none.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1.format","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.1","typeLabel":"Reasoning item · object"},{"type":"object","title":"Synthesized reasoning item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","encrypted_content","summary"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `reasoning` — carried both by the model's own reasoning and by the item that carries another item's signature.","enum":["reasoning"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.id","typeLabel":"string"},"encrypted_content":{"type":"string","description":"The signature this frame carries, in opaque form.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.encrypted_content","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.summary.items.[INDEX]","typeLabel":"object"},"description":"Always empty: a carrier has nothing to summarize.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.summary","typeLabel":"object[]"},"format":{"oneOf":[{"type":"string","description":"Which provider's encoding `encrypted_content` is in, learned from the reasoning of the same turn. Absent when no reasoning item of the turn named one.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which provider's encoding `encrypted_content` is in, learned from the reasoning of the same turn. Absent when no reasoning item of the turn named one.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2.format","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.2","typeLabel":"Synthesized reasoning item · object"},{"type":"object","title":"Function call item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","call_id","name","arguments","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `function_call`.","enum":["function_call"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3.id","typeLabel":"string"},"call_id":{"type":"string","description":"The call's own identifier, repeated as `call_id` on the item carrying the result.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3.call_id","typeLabel":"string"},"name":{"type":"string","description":"Which of your tools to call, by the name you declared it under.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to call it with, as JSON in a string. Valid JSON is not guaranteed.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3.arguments","typeLabel":"string"},"status":{"type":"string","description":"Whether the call is fully written out.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.3","typeLabel":"Function call item · object"},{"type":"object","title":"Function call output item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","call_id","output","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `function_call_output`.","enum":["function_call_output"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.4.id","typeLabel":"string"},"call_id":{"type":"string","description":"The `call_id` of the call this answers.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.4.call_id","typeLabel":"string"},"output":{"description":"The result itself: a string, or a list of content parts.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.4.output","typeLabel":"any"},"status":{"type":"string","description":"Whether the result is complete.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.4.status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.4","typeLabel":"Function call output item · object"},{"type":"object","title":"Web search call item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `web_search_call`.","enum":["web_search_call"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5.id","typeLabel":"string"},"status":{"type":"string","description":"How the search is going.","enum":["in_progress","completed","incomplete","searching","failed"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5.status","typeLabel":"enum\u003cstring>"},"action":{"type":"object","description":"What the search did: a query, a page opened, a page searched within.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5.action","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5.results.items.[INDEX]","typeLabel":"object"},"description":"The pages the search returned, absent when the provider returned none. Published as bare objects, for the same reason as `action`.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5.results","typeLabel":"object[]"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.5","typeLabel":"Web search call item · object"},{"type":"object","title":"Image generation call item","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `image_generation_call` — carried both by a finished image and by the frame announcing one.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.id","typeLabel":"string"},"status":{"type":"string","description":"How the generation is going. Always `completed`: an image reaches you whole or not at all.","enum":["completed"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.status","typeLabel":"enum\u003cstring>"},"result":{"oneOf":[{"type":"string","description":"The image's bytes, base64-encoded. Absent when the provider returned a hosted image instead — then `url` carries it.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.result.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's bytes, base64-encoded. Absent when the provider returned a hosted image instead — then `url` carries it.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.result","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Where a hosted image is served from. Absent when the provider returned the bytes inline.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where a hosted image is served from. Absent when the provider returned the bytes inline.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.url","typeLabel":"string | null"},"mime_type":{"oneOf":[{"type":"string","description":"The image's media type. Absent when the provider named none.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's media type. Absent when the provider named none.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6.mime_type","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.6","typeLabel":"Image generation call item · object"},{"type":"object","title":"Image generation call, added view","description":"One item the model produced, addressed by `output_index`.","required":["type","id","status","result"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `image_generation_call` — carried both by a finished image and by the frame announcing one.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, which the frame reporting it done repeats.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.id","typeLabel":"string"},"status":{"type":"string","description":"Always `in_progress`, which is what tells this announcement apart from the finished item.","enum":["in_progress"],"isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.status","typeLabel":"enum\u003cstring>"},"result":{"type":"null","description":"Always `null` here. The image's bytes arrive on the frame that reports the item done, so they travel exactly once per stream.","isRequired":true,"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.result","typeLabel":"null"},"mime_type":{"oneOf":[{"type":"string","description":"The image's media type, when the provider named one this early.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's media type, when the provider named one this early.","uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7.mime_type","typeLabel":"string | null"}},"uniqueKey":"oneOf.0.response.output.items.[INDEX].oneOf.7","typeLabel":"Image generation call, added view · object"}],"uniqueKey":"oneOf.0.response.output.items.[INDEX]","typeLabel":"Message item · object | Reasoning item · object | Synthesized reasoning item · object | Function call item · object | Function call output item · object | Web search call item · object | Image generation call item · object | Image generation call, added view · object"},"description":"What the model produced, item by item, in order.","isRequired":true,"uniqueKey":"oneOf.0.response.output","typeLabel":"(Message item · object | Reasoning item · object | Synthesized reasoning item · object | Function call item · object | Function call output item · object | Web search call item · object | Image generation call item · object | Image generation call, added view · object)[]"},"error":{"oneOf":[{"type":"object","description":"What went wrong, or `null` when nothing did.","required":["code","message"],"properties":{"code":{"type":"string","description":"A machine-readable code for the failure, never empty.","isRequired":true,"uniqueKey":"oneOf.0.response.error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong, in prose meant to be read.","isRequired":true,"uniqueKey":"oneOf.0.response.error.oneOf.0.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"oneOf.0.response.error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.response.error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.response.error","typeLabel":"object | null"},"incomplete_details":{"oneOf":[{"type":"object","description":"Why the turn stopped short, or `null`.","required":["reason"],"properties":{"reason":{"type":"string","description":"What cut the turn short.","enum":["max_output_tokens","content_filter","tool_use_required","upstream_timeout","upstream_disconnect","gateway_cancelled","other"],"isRequired":true,"uniqueKey":"oneOf.0.response.incomplete_details.oneOf.0.reason","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"oneOf.0.response.incomplete_details.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.response.incomplete_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.response.incomplete_details","typeLabel":"object | null"},"usage":{"oneOf":[{"type":"object","description":"What the request cost in tokens, or `null` while the turn runs.","required":["input_tokens","input_tokens_details","output_tokens","output_tokens_details","total_tokens"],"properties":{"input_tokens":{"type":"integer","format":"int64","description":"Tokens of the prompt, cached ones included.","isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens","typeLabel":"integer\u003cint64>"},"input_tokens_details":{"type":"object","description":"The split of `input_tokens` the provider reported.","required":["cached_tokens"],"properties":{"cached_tokens":{"type":"integer","format":"int64","description":"How many prompt tokens the provider served from its own cache. `0` when it reported none.","isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.cached_tokens","typeLabel":"integer\u003cint64>"},"audio_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"How many prompt tokens were audio. A NagaAI extension, present only when the provider split them out.","uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.audio_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many prompt tokens were audio. A NagaAI extension, present only when the provider split them out.","uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.audio_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.audio_tokens","typeLabel":"integer\u003cint64> | null"},"cache_write_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"How many prompt tokens were written to the provider's cache, billed at the cache-write rate. Counted inside `input_tokens`; present only when the request wrote to the cache.","uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.cache_write_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many prompt tokens were written to the provider's cache, billed at the cache-write rate. Counted inside `input_tokens`; present only when the request wrote to the cache.","uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.cache_write_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details.cache_write_tokens","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.input_tokens_details","typeLabel":"object"},"output_tokens":{"type":"integer","format":"int64","description":"Tokens the model generated, reasoning and image tokens included.","isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.output_tokens","typeLabel":"integer\u003cint64>"},"output_tokens_details":{"type":"object","description":"The split of `output_tokens` the provider reported.","required":["reasoning_tokens"],"properties":{"reasoning_tokens":{"type":"integer","format":"int64","description":"How many generated tokens the model spent reasoning. `0` when the provider reported none.","isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.output_tokens_details.reasoning_tokens","typeLabel":"integer\u003cint64>"},"image_tokens":{"oneOf":[{"type":"integer","format":"int64","description":"How many generated tokens were image output. A NagaAI extension.","uniqueKey":"oneOf.0.response.usage.oneOf.0.output_tokens_details.image_tokens.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"How many generated tokens were image output. A NagaAI extension.","uniqueKey":"oneOf.0.response.usage.oneOf.0.output_tokens_details.image_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.response.usage.oneOf.0.output_tokens_details.image_tokens","typeLabel":"integer\u003cint64> | null"}},"isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.output_tokens_details","typeLabel":"object"},"total_tokens":{"type":"integer","format":"int64","description":"The provider's own total for the request, reported as received.","isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0.total_tokens","typeLabel":"integer\u003cint64>"}},"isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"oneOf.0.response.usage.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.response.usage","typeLabel":"object | null"},"model":{"oneOf":[{"type":"string","description":"The model that answered, by its id in the NagaAI catalog.","isRequired":true,"uniqueKey":"oneOf.0.response.model.oneOf.0","typeLabel":"string"},{"type":"null","description":"The model that answered, by its id in the NagaAI catalog.","isRequired":true,"uniqueKey":"oneOf.0.response.model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.0.response.model","typeLabel":"string | null"},"reasoning":{"description":"The reasoning settings the turn ran with.","uniqueKey":"oneOf.0.response.reasoning","typeLabel":"any"}},"isRequired":true,"uniqueKey":"oneOf.0.response","typeLabel":"object"},"type":{"type":"string","description":"Which move this is. The last three end the stream.","enum":["response.created","response.queued","response.in_progress","response.completed","response.failed","response.incomplete"],"isRequired":true,"uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.0.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.0","typeLabel":"Lifecycle frame · object"},{"type":"object","title":"Output item frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["output_index","item","type","sequence_number"],"properties":{"output_index":{"type":"integer","format":"int64","description":"The item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.1.output_index","typeLabel":"integer\u003cint64>"},"item":{"oneOf":[{"type":"object","title":"Message item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","status","role","content"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `message`.","enum":["message"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.0.id","typeLabel":"string"},"status":{"type":"string","description":"Whether the item is still unfinished.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.0.status","typeLabel":"enum\u003cstring>"},"role":{"type":"string","description":"Who the message is from. `assistant` on anything the model produced.","enum":["user","assistant","system","developer","tool"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.0.role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.1.item.oneOf.0.content.items.[INDEX]","typeLabel":"object"},"description":"The message itself: `output_text` parts, or a `refusal` part.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.0.content","typeLabel":"object[]"},"phase":{"type":"string","description":"Which pass of a two-pass answer this message is.","enum":["commentary","final_answer"],"uniqueKey":"oneOf.1.item.oneOf.0.phase","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.0","typeLabel":"Message item · object"},{"type":"object","title":"Reasoning item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","summary","content"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `reasoning` — carried both by the model's own reasoning and by the item that carries another item's signature.","enum":["reasoning"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.1.id","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.1.item.oneOf.1.summary.items.[INDEX]","typeLabel":"object"},"description":"The reasoning as the model summarized it, `summary_text` part by part. Empty when the model reasoned without summarising.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.1.summary","typeLabel":"object[]"},"content":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.1.item.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"description":"The reasoning as the model wrote it out, `reasoning_text` part by part. Empty for a model that returns only a summary.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.1.content","typeLabel":"object[]"},"encrypted_content":{"oneOf":[{"type":"string","description":"The reasoning in opaque form, replayed on a later turn.","uniqueKey":"oneOf.1.item.oneOf.1.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reasoning in opaque form, replayed on a later turn.","uniqueKey":"oneOf.1.item.oneOf.1.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.1.encrypted_content","typeLabel":"string | null"},"format":{"oneOf":[{"type":"string","description":"Which provider's encoding `encrypted_content` is in. Absent when the provider named none.","uniqueKey":"oneOf.1.item.oneOf.1.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which provider's encoding `encrypted_content` is in. Absent when the provider named none.","uniqueKey":"oneOf.1.item.oneOf.1.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.1.format","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.1","typeLabel":"Reasoning item · object"},{"type":"object","title":"Synthesized reasoning item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","encrypted_content","summary"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `reasoning` — carried both by the model's own reasoning and by the item that carries another item's signature.","enum":["reasoning"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.2.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.2.id","typeLabel":"string"},"encrypted_content":{"type":"string","description":"The signature this frame carries, in opaque form.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.2.encrypted_content","typeLabel":"string"},"summary":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.1.item.oneOf.2.summary.items.[INDEX]","typeLabel":"object"},"description":"Always empty: a carrier has nothing to summarize.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.2.summary","typeLabel":"object[]"},"format":{"oneOf":[{"type":"string","description":"Which provider's encoding `encrypted_content` is in, learned from the reasoning of the same turn. Absent when no reasoning item of the turn named one.","uniqueKey":"oneOf.1.item.oneOf.2.format.oneOf.0","typeLabel":"string"},{"type":"null","description":"Which provider's encoding `encrypted_content` is in, learned from the reasoning of the same turn. Absent when no reasoning item of the turn named one.","uniqueKey":"oneOf.1.item.oneOf.2.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.2.format","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.2","typeLabel":"Synthesized reasoning item · object"},{"type":"object","title":"Function call item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","call_id","name","arguments","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `function_call`.","enum":["function_call"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3.id","typeLabel":"string"},"call_id":{"type":"string","description":"The call's own identifier, repeated as `call_id` on the item carrying the result.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3.call_id","typeLabel":"string"},"name":{"type":"string","description":"Which of your tools to call, by the name you declared it under.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3.name","typeLabel":"string"},"arguments":{"type":"string","description":"The arguments to call it with, as JSON in a string. Valid JSON is not guaranteed.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3.arguments","typeLabel":"string"},"status":{"type":"string","description":"Whether the call is fully written out.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.3","typeLabel":"Function call item · object"},{"type":"object","title":"Function call output item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","call_id","output","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `function_call_output`.","enum":["function_call_output"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.4.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.4.id","typeLabel":"string"},"call_id":{"type":"string","description":"The `call_id` of the call this answers.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.4.call_id","typeLabel":"string"},"output":{"description":"The result itself: a string, or a list of content parts.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.4.output","typeLabel":"any"},"status":{"type":"string","description":"Whether the result is complete.","enum":["in_progress","completed","incomplete"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.4.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.4","typeLabel":"Function call output item · object"},{"type":"object","title":"Web search call item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `web_search_call`.","enum":["web_search_call"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.5.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.5.id","typeLabel":"string"},"status":{"type":"string","description":"How the search is going.","enum":["in_progress","completed","incomplete","searching","failed"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.5.status","typeLabel":"enum\u003cstring>"},"action":{"type":"object","description":"What the search did: a query, a page opened, a page searched within.","uniqueKey":"oneOf.1.item.oneOf.5.action","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","uniqueKey":"oneOf.1.item.oneOf.5.results.items.[INDEX]","typeLabel":"object"},"description":"The pages the search returned, absent when the provider returned none. Published as bare objects, for the same reason as `action`.","uniqueKey":"oneOf.1.item.oneOf.5.results","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.5","typeLabel":"Web search call item · object"},{"type":"object","title":"Image generation call item","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","status"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `image_generation_call` — carried both by a finished image and by the frame announcing one.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.6.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, quoted by every stream frame about it.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.6.id","typeLabel":"string"},"status":{"type":"string","description":"How the generation is going. Always `completed`: an image reaches you whole or not at all.","enum":["completed"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.6.status","typeLabel":"enum\u003cstring>"},"result":{"oneOf":[{"type":"string","description":"The image's bytes, base64-encoded. Absent when the provider returned a hosted image instead — then `url` carries it.","uniqueKey":"oneOf.1.item.oneOf.6.result.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's bytes, base64-encoded. Absent when the provider returned a hosted image instead — then `url` carries it.","uniqueKey":"oneOf.1.item.oneOf.6.result.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.6.result","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Where a hosted image is served from. Absent when the provider returned the bytes inline.","uniqueKey":"oneOf.1.item.oneOf.6.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where a hosted image is served from. Absent when the provider returned the bytes inline.","uniqueKey":"oneOf.1.item.oneOf.6.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.6.url","typeLabel":"string | null"},"mime_type":{"oneOf":[{"type":"string","description":"The image's media type. Absent when the provider named none.","uniqueKey":"oneOf.1.item.oneOf.6.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's media type. Absent when the provider named none.","uniqueKey":"oneOf.1.item.oneOf.6.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.6.mime_type","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.6","typeLabel":"Image generation call item · object"},{"type":"object","title":"Image generation call, added view","description":"The item: a skeleton on `added`, the finished one on `done`.","required":["type","id","status","result"],"properties":{"type":{"type":"string","description":"What kind of item this is. Always `image_generation_call` — carried both by a finished image and by the frame announcing one.","enum":["image_generation_call"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.7.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"The item's identifier, which the frame reporting it done repeats.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.7.id","typeLabel":"string"},"status":{"type":"string","description":"Always `in_progress`, which is what tells this announcement apart from the finished item.","enum":["in_progress"],"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.7.status","typeLabel":"enum\u003cstring>"},"result":{"type":"null","description":"Always `null` here. The image's bytes arrive on the frame that reports the item done, so they travel exactly once per stream.","isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.7.result","typeLabel":"null"},"mime_type":{"oneOf":[{"type":"string","description":"The image's media type, when the provider named one this early.","uniqueKey":"oneOf.1.item.oneOf.7.mime_type.oneOf.0","typeLabel":"string"},{"type":"null","description":"The image's media type, when the provider named one this early.","uniqueKey":"oneOf.1.item.oneOf.7.mime_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.item.oneOf.7.mime_type","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"oneOf.1.item.oneOf.7","typeLabel":"Image generation call, added view · object"}],"isRequired":true,"uniqueKey":"oneOf.1.item","typeLabel":"Message item · object | Reasoning item · object | Synthesized reasoning item · object | Function call item · object | Function call output item · object | Web search call item · object | Image generation call item · object | Image generation call, added view · object"},"type":{"type":"string","description":"Whether the item is opening or finished.","enum":["response.output_item.added","response.output_item.done"],"isRequired":true,"uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.1.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.1","typeLabel":"Output item frame · object"},{"type":"object","title":"Content part frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["part","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.2.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.2.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.2.content_index","typeLabel":"integer\u003cint64>"},"part":{"description":"The part. Empty of text on `added`, complete on `done`.","isRequired":true,"uniqueKey":"oneOf.2.part","typeLabel":"any"},"type":{"type":"string","description":"Whether the part is opening or finished.","enum":["response.content_part.added","response.content_part.done"],"isRequired":true,"uniqueKey":"oneOf.2.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.2.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.2","typeLabel":"Content part frame · object"},{"type":"object","title":"Output text delta frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["delta","logprobs","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.3.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.3.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.3.content_index","typeLabel":"integer\u003cint64>"},"delta":{"type":"string","description":"The text to append. It can be a fragment of a word.","isRequired":true,"uniqueKey":"oneOf.3.delta","typeLabel":"string"},"logprobs":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.3.logprobs.items.[INDEX]","typeLabel":"any"},"description":"Always empty. The gateway returns no token log probabilities.","isRequired":true,"uniqueKey":"oneOf.3.logprobs","typeLabel":"any[]"},"type":{"type":"string","description":"Which move this is. Always `response.output_text.delta`.","enum":["response.output_text.delta"],"isRequired":true,"uniqueKey":"oneOf.3.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.3.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.3","typeLabel":"Output text delta frame · object"},{"type":"object","title":"Output text done frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["text","logprobs","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.4.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.4.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.4.content_index","typeLabel":"integer\u003cint64>"},"text":{"type":"string","description":"The whole text — every slice already sent, joined.","isRequired":true,"uniqueKey":"oneOf.4.text","typeLabel":"string"},"logprobs":{"type":"array","items":{"oneOf":[{}],"uniqueKey":"oneOf.4.logprobs.items.[INDEX]","typeLabel":"any"},"description":"Always empty, as on the delta frame.","isRequired":true,"uniqueKey":"oneOf.4.logprobs","typeLabel":"any[]"},"type":{"type":"string","description":"Which move this is. Always `response.output_text.done`.","enum":["response.output_text.done"],"isRequired":true,"uniqueKey":"oneOf.4.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.4.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.4","typeLabel":"Output text done frame · object"},{"type":"object","title":"Annotation frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["annotation_index","annotation","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.5.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.5.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.5.content_index","typeLabel":"integer\u003cint64>"},"annotation_index":{"type":"integer","format":"int64","description":"The annotation's position within that part's annotations, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.5.annotation_index","typeLabel":"integer\u003cint64>"},"annotation":{"description":"The annotation: what is cited and where it applies.","isRequired":true,"uniqueKey":"oneOf.5.annotation","typeLabel":"any"},"type":{"type":"string","description":"Which move this is. Always `response.output_text.annotation.added`.","enum":["response.output_text.annotation.added"],"isRequired":true,"uniqueKey":"oneOf.5.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.5.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.5","typeLabel":"Annotation frame · object"},{"type":"object","title":"Content delta frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["delta","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.6.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.6.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.6.content_index","typeLabel":"integer\u003cint64>"},"delta":{"type":"string","description":"The text to append.","isRequired":true,"uniqueKey":"oneOf.6.delta","typeLabel":"string"},"type":{"type":"string","description":"Which of the two this is — a slice of a refusal, or a slice of reasoning text.","enum":["response.refusal.delta","response.reasoning_text.delta"],"isRequired":true,"uniqueKey":"oneOf.6.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.6.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.6","typeLabel":"Content delta frame · object"},{"type":"object","title":"Reasoning text done frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["text","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.7.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.7.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.7.content_index","typeLabel":"integer\u003cint64>"},"text":{"type":"string","description":"The whole reasoning text — every slice already sent, joined.","isRequired":true,"uniqueKey":"oneOf.7.text","typeLabel":"string"},"type":{"type":"string","description":"Which move this is. Always `response.reasoning_text.done`.","enum":["response.reasoning_text.done"],"isRequired":true,"uniqueKey":"oneOf.7.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.7.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.7","typeLabel":"Reasoning text done frame · object"},{"type":"object","title":"Refusal done frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["refusal","type","sequence_number","item_id","output_index","content_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.8.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.8.output_index","typeLabel":"integer\u003cint64>"},"content_index":{"type":"integer","format":"int64","description":"The piece's position within the item's content, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.8.content_index","typeLabel":"integer\u003cint64>"},"refusal":{"type":"string","description":"The whole refusal — every slice already sent, joined.","isRequired":true,"uniqueKey":"oneOf.8.refusal","typeLabel":"string"},"type":{"type":"string","description":"Which move this is. Always `response.refusal.done`.","enum":["response.refusal.done"],"isRequired":true,"uniqueKey":"oneOf.8.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.8.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.8","typeLabel":"Refusal done frame · object"},{"type":"object","title":"Summary text delta frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["delta","type","sequence_number","item_id","output_index","summary_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.9.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.9.output_index","typeLabel":"integer\u003cint64>"},"summary_index":{"type":"integer","format":"int64","description":"The part's position within the item's summary, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.9.summary_index","typeLabel":"integer\u003cint64>"},"delta":{"type":"string","description":"The text to append.","isRequired":true,"uniqueKey":"oneOf.9.delta","typeLabel":"string"},"type":{"type":"string","description":"Which move this is. Always `response.reasoning_summary_text.delta`.","enum":["response.reasoning_summary_text.delta"],"isRequired":true,"uniqueKey":"oneOf.9.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.9.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.9","typeLabel":"Summary text delta frame · object"},{"type":"object","title":"Summary text done frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["text","type","sequence_number","item_id","output_index","summary_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.10.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.10.output_index","typeLabel":"integer\u003cint64>"},"summary_index":{"type":"integer","format":"int64","description":"The part's position within the item's summary, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.10.summary_index","typeLabel":"integer\u003cint64>"},"text":{"type":"string","description":"The whole summary text — every slice already sent, joined.","isRequired":true,"uniqueKey":"oneOf.10.text","typeLabel":"string"},"type":{"type":"string","description":"Which move this is. Always `response.reasoning_summary_text.done`.","enum":["response.reasoning_summary_text.done"],"isRequired":true,"uniqueKey":"oneOf.10.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.10.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.10","typeLabel":"Summary text done frame · object"},{"type":"object","title":"Summary part frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["part","type","sequence_number","item_id","output_index","summary_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.11.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.11.output_index","typeLabel":"integer\u003cint64>"},"summary_index":{"type":"integer","format":"int64","description":"The part's position within the item's summary, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.11.summary_index","typeLabel":"integer\u003cint64>"},"part":{"description":"The part. Empty of text on `added`, complete on `done`.","isRequired":true,"uniqueKey":"oneOf.11.part","typeLabel":"any"},"type":{"type":"string","description":"Whether the summary part is opening or finished.","enum":["response.reasoning_summary_part.added","response.reasoning_summary_part.done"],"isRequired":true,"uniqueKey":"oneOf.11.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.11.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.11","typeLabel":"Summary part frame · object"},{"type":"object","title":"Web search call frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["type","sequence_number","item_id","output_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.12.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.12.output_index","typeLabel":"integer\u003cint64>"},"type":{"type":"string","description":"Which move the search made.","enum":["response.web_search_call.in_progress","response.web_search_call.searching","response.web_search_call.completed"],"isRequired":true,"uniqueKey":"oneOf.12.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.12.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.12","typeLabel":"Web search call frame · object"},{"type":"object","title":"Function call arguments delta frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["delta","type","sequence_number","item_id","output_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.13.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.13.output_index","typeLabel":"integer\u003cint64>"},"delta":{"type":"string","description":"The next piece of the argument JSON; no piece is valid JSON alone.","isRequired":true,"uniqueKey":"oneOf.13.delta","typeLabel":"string"},"type":{"type":"string","description":"Which move this is. Always `response.function_call_arguments.delta`.","enum":["response.function_call_arguments.delta"],"isRequired":true,"uniqueKey":"oneOf.13.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.13.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.13","typeLabel":"Function call arguments delta frame · object"},{"type":"object","title":"Function call arguments done frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["name","arguments","type","sequence_number","item_id","output_index"],"properties":{"item_id":{"type":"string","description":"The `id` of the output item.","isRequired":true,"uniqueKey":"oneOf.14.item_id","typeLabel":"string"},"output_index":{"type":"integer","format":"int64","description":"That item's position in `output[]`, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.14.output_index","typeLabel":"integer\u003cint64>"},"name":{"type":"string","description":"Which of your tools is being called.","isRequired":true,"uniqueKey":"oneOf.14.name","typeLabel":"string"},"arguments":{"type":"string","description":"The whole argument JSON — every slice already sent, joined.","isRequired":true,"uniqueKey":"oneOf.14.arguments","typeLabel":"string"},"type":{"type":"string","description":"Which move this is. Always `response.function_call_arguments.done`.","enum":["response.function_call_arguments.done"],"isRequired":true,"uniqueKey":"oneOf.14.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.14.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.14","typeLabel":"Function call arguments done frame · object"},{"type":"object","title":"Error frame","description":"One frame of a streamed answer. There is no `[DONE]` sentinel; the stream ends after the terminal frame.","required":["code","message","param","type","sequence_number"],"properties":{"code":{"type":"string","description":"A machine-readable code for the failure. Falls back to the failure's class when the provider gave no code of its own.","isRequired":true,"uniqueKey":"oneOf.15.code","typeLabel":"string"},"message":{"type":"string","description":"What went wrong, in prose meant to be read.","isRequired":true,"uniqueKey":"oneOf.15.message","typeLabel":"string"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, or `null` when it is about none. The key is always present.","isRequired":true,"uniqueKey":"oneOf.15.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, or `null` when it is about none. The key is always present.","isRequired":true,"uniqueKey":"oneOf.15.param.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"oneOf.15.param","typeLabel":"string | null"},"type":{"type":"string","description":"Which move this is. Always `error` — the one frame of this dialect whose name is not `response.*`.","enum":["error"],"isRequired":true,"uniqueKey":"oneOf.15.type","typeLabel":"enum\u003cstring>"},"sequence_number":{"type":"integer","format":"int64","description":"This frame's position in the stream, counted from `0`.","isRequired":true,"uniqueKey":"oneOf.15.sequence_number","typeLabel":"integer\u003cint64>"}},"uniqueKey":"oneOf.15","typeLabel":"Error frame · object"}],"uniqueKey":"","typeLabel":"Lifecycle frame · object | Output item frame · object | Content part frame · object | Output text delta frame · object | Output text done frame · object | Annotation frame · object | Content delta frame · object | Reasoning text done frame · object | Refusal done frame · object | Summary text delta frame · object | Summary text done frame · object | Summary part frame · object | Web search call frame · object | Function call arguments delta frame · object | Function call arguments done frame · object | Error frame · object"},"examples":{"basic":{"title":"basic","summary":"A text delta of a streamed turn","value":{"type":"response.output_text.delta","item_id":"msg_1","output_index":0,"content_index":0,"delta":"hello","logprobs":[],"sequence_number":3}},"reasoning":{"title":"reasoning","summary":"A delta of the reasoning summary","value":{"type":"response.reasoning_summary_text.delta","item_id":"rs_1","output_index":0,"summary_index":0,"delta":"first part","sequence_number":4}},"tool-call":{"title":"tool-call","summary":"The function arguments arrive as a delta","value":{"type":"response.function_call_arguments.delta","item_id":"fc_1","output_index":0,"delta":"{\"city\":\"NYC\"}","sequence_number":5}}},"exampleType":"examples"}},"x-retry-safe":false,"exampleType":"examples"},"d1080474-9f05-45a0-8f78-2ac59e0e1613":{"description":"The request is malformed: a field failed its constraint, the body is not valid JSON, the model name is unknown, or no provider serves it within its price limit.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":false,"exampleType":"generated"},"720d684f-944d-4df9-93bd-255015842c6c":{"description":"The API key is missing, malformed, disabled, or does not belong to an account that may call this route.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid-api-key":{"title":"invalid-api-key","summary":"401 — the key is not one this gateway serves","value":{"error":{"type":"invalid_api_key","message":"The provided API key is invalid. Please ensure your API key is correct and active. You can find more information about obtaining a key on our website: https://naga.ac If you just created this key, wait a few minutes and try again."}}}},"exampleType":"examples"}},"x-retry-safe":false,"exampleType":"examples"},"acb75953-4c45-4911-9ddd-f8815f3fc7c1":{"description":"The account has run out of credits. Top up the balance and retry.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"insufficient-credits":{"title":"insufficient-credits","summary":"402 — the account has no credits left","value":{"error":{"type":"insufficient_quota","message":"More credits required to process this request. Visit https://naga.ac/dashboard/credits to add credits."}}}},"exampleType":"examples"}},"x-retry-safe":false,"exampleType":"examples"},"9ca2eff1-5386-4eb6-937c-e0dfde84b260":{"description":"The model policy of the organization or of the key's workspace does not allow this model, a spending limit is reached, or the content was blocked by the moderation policy.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":false,"exampleType":"generated"},"2badf6c0-6c32-405a-bac5-f2733252cf92":{"description":"The upstream provider reports that the addressed resource does not exist.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":false,"exampleType":"generated"},"eec06f9b-b977-47bb-822a-bce8b597f787":{"description":"The request body did not finish arriving within 15 minutes, or stalled for 60 seconds.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":true,"exampleType":"generated"},"b3635fc2-cc5d-462f-acb0-0c10fe1b189d":{"description":"The model is deprecated and no longer served. Pick a current one.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":false,"exampleType":"generated"},"63d836bd-11eb-415b-8917-94dfb366ef43":{"description":"The request body is larger than the 32 MiB this gateway accepts.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":false,"exampleType":"generated"},"5458a815-4ce9-419a-a22e-c1f2be472038":{"description":"The request was understood but its usage could not be metered, so it was not served.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":false,"exampleType":"generated"},"619399b2-dd04-4ec5-b12d-0231ee7756b9":{"description":"The account exceeded its rate limit. `Retry-After` carries the wait in seconds.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"How long to wait before retrying, in seconds."}},"content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"rate-limited":{"title":"rate-limited","summary":"429 — too many requests; `Retry-After` carries the wait","value":{"error":{"type":"rate_limit_exceeded","message":"Free model limit reached (100 requests per day and 10 per minute). Try again in 3s, or add credits at https://naga.ac/dashboard/credits to use paid models, which have no request limit."}}}},"exampleType":"examples"}},"x-retry-safe":true,"exampleType":"examples"},"ce1ec9d8-80ae-4f72-832c-67c319d95efb":{"description":"The gateway failed for a reason of its own. Report it — this status marks NagaAI's own bugs, never an upstream verdict.","content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":true,"exampleType":"generated"},"fec82e1a-7772-4baf-8817-bed311e0d9c9":{"description":"No upstream is available, or the gateway is shedding load. `Retry-After` carries the suggested wait.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"How long to wait before retrying, in seconds."}},"content":{"application/json":{"schema":{"type":"object","description":"`{\"error\": {…}}` — the body of every non-2xx answer outside `/v1/messages`.","required":["error"],"properties":{"error":{"type":"object","description":"The failure itself, and the envelope's only member.","required":["type","message"],"properties":{"type":{"type":"string","description":"The class of the failure; a provider's own class can reach you unchanged.","examples":["invalid_request_error","authentication_required","invalid_api_key","invalid_provisioning_key","invalid_session_token","disabled_api_key","disabled_provisioning_key","expired_api_key","credit_limit_exceeded","rate_limit_exceeded","model_deprecated","inappropriate_content","billing_metering_incomplete","billing_request_id_invalid","billing_writer_missing","server_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"message":{"type":"string","description":"The human-readable sentence shown to the caller.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"oneOf":[{"type":"string","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The finer-grained code, when the failure has one.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"},"param":{"oneOf":[{"type":"string","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","description":"The request field the failure is about, when it is about one.","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>"}}}},"exampleType":"generated"}},"x-retry-safe":true,"exampleType":"generated"}},"security":{"d274f4da-6adc-4256-8ac2-d5c42746d3ed":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An account API key. Send it as `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"bearerAuth"}},"d581c85a-d45c-45d8-981e-2f7201967f5c":{"xApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"An account API key. Send it as `x-api-key: \u003ckey>`, the header Anthropic-style clients use.","scopes":[],"schemeName":"xApiKeyAuth"}}},"servers":{"ddee1100-762b-4028-ac39-d54cdb9aa21e":{"url":"https://api.naga.ac","description":"Production"}},"schemas":{"58bdf672-b259-4090-9d7d-a916577b80e7":{"oneOf":[{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `function`.","enum":["function"],"isRequired":true},"name":{"oneOf":[{"type":"string","description":"What the model calls the function by."},{"type":"null","description":"What the model calls the function by."}]},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model. Falls back to `function.description`."},{"type":"null","description":"What the function does, written for the model. Falls back to `function.description`."}]},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"The arguments the function accepts, as a JSON Schema, compiled at intake.","additionalProperties":{"oneOf":[{}]}}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows `parameters` exactly."},{"type":"null","description":"Whether the model follows `parameters` exactly."}]},"function":{"oneOf":[{"type":"object","description":"The same declaration written the chat-style way; the flat keys win.","required":["name"],"properties":{"name":{"type":"string","description":"What the model calls the function by. Required, and non-empty.","minLength":1,"isRequired":true},"description":{"oneOf":[{"type":"string","description":"What the function does, written for the model to choose by."},{"type":"null","description":"What the function does, written for the model to choose by."}]},"parameters":{"oneOf":[{"type":"object","description":"The arguments the function accepts, as a JSON Schema.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"The arguments the function accepts, as a JSON Schema.","additionalProperties":{"oneOf":[{}]}}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the model follows the parameter schema exactly."},{"type":"null","description":"Whether the model follows the parameter schema exactly."}]}}},{"type":"null"}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search`.","enum":["web_search"],"isRequired":true},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]}}]},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}}]},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web."},{"type":"null","description":"Whether the search may reach the live web."}]},"max_uses":{"oneOf":[{"type":"integer","description":"How many searches one request may run. A NagaAI extension.","format":"int64"},{"type":"null","description":"How many searches one request may run. A NagaAI extension.","format":"int64"}]},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."},{"type":"null","description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."}]},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."},{"type":"null","description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."}]},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension."},{"type":"null","description":"Who may invoke the tool. A NagaAI extension."}]},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_2025_08_26`.","enum":["web_search_2025_08_26"],"isRequired":true},"filters":{"oneOf":[{"type":"object","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"Narrowing applied to the search; the top-level `allowed_domains` wins over it.","additionalProperties":{"oneOf":[{}]}}]},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}}]},"external_web_access":{"oneOf":[{"type":"boolean","description":"Whether the search may reach the live web."},{"type":"null","description":"Whether the search may reach the live web."}]},"max_uses":{"oneOf":[{"type":"integer","description":"How many searches one request may run. A NagaAI extension.","format":"int64"},{"type":"null","description":"How many searches one request may run. A NagaAI extension.","format":"int64"}]},"allowed_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."},{"type":"null","description":"Which domains results may come from. A NagaAI extension, exclusive with `blocked_domains`."}]},"blocked_domains":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."},{"type":"null","description":"Which domains results may not come from. A NagaAI extension, exclusive with `allowed_domains`."}]},"allowed_callers":{"oneOf":[{"type":"array","items":{"type":"string"},"description":"Who may invoke the tool. A NagaAI extension."},{"type":"null","description":"Who may invoke the tool. A NagaAI extension."}]},"defer_loading":{"oneOf":[{"type":"boolean","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."},{"type":"null","description":"Whether the tool stays out of the opening instructions. A NagaAI extension."}]},"strict":{"oneOf":[{"type":"boolean","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."},{"type":"null","description":"Whether the tool's inputs follow their schema exactly. A NagaAI extension."}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview`.","enum":["web_search_preview"],"isRequired":true},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `web_search_preview_2025_03_11`.","enum":["web_search_preview_2025_03_11"],"isRequired":true},"search_context_size":{"oneOf":[{"type":"string","description":"How much search context goes in front of the model.","enum":["low","medium","high"]},{"type":"null"}]},"user_location":{"oneOf":[{"type":"object","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"Roughly where the caller is, so results can favor that place.","additionalProperties":{"oneOf":[{}]}}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","vector_store_ids"],"properties":{"vector_store_ids":{"type":"array","items":{"type":"string"},"description":"Which stores would be searched, named by id. Required.","isRequired":true},"type":{"type":"string","description":"The tag that selects this branch: `type` is `file_search`.","enum":["file_search"],"isRequired":true},"filters":{"description":"A condition results would satisfy."},"max_num_results":{"oneOf":[{"type":"integer","description":"How many passages the search would return at most.","format":"int64"},{"type":"null","description":"How many passages the search would return at most.","format":"int64"}]},"ranking_options":{"oneOf":[{"type":"object","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"How results would be ranked.","additionalProperties":{"oneOf":[{}]}}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","display_height","display_width","environment"],"properties":{"display_height":{"type":"number","format":"double","description":"How tall the virtual display would be.","isRequired":true},"display_width":{"type":"number","format":"double","description":"How wide the virtual display would be.","isRequired":true},"environment":{"type":"string","description":"Which kind of machine would be driven.","enum":["windows","mac","linux","ubuntu","browser"],"isRequired":true},"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer_use_preview`.","enum":["computer_use_preview"],"isRequired":true}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","container"],"properties":{"container":{"oneOf":[{"type":"object","description":"Which sandbox the code would run in.","additionalProperties":{"oneOf":[{}]},"isRequired":true},{"type":"string","title":"Plain text","description":"Which sandbox the code would run in.","isRequired":true}],"isRequired":true},"type":{"type":"string","description":"The tag that selects this branch: `type` is `code_interpreter`.","enum":["code_interpreter"],"isRequired":true}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","server_label"],"properties":{"server_label":{"type":"string","description":"A short name for the server. Required.","isRequired":true},"type":{"type":"string","description":"The tag that selects this branch: `type` is `mcp`.","enum":["mcp"],"isRequired":true},"allowed_tools":{"description":"Which of the server's tools the model could call."},"authorization":{"oneOf":[{"type":"string","description":"An OAuth access token for the server."},{"type":"null","description":"An OAuth access token for the server."}]},"connector_id":{"oneOf":[{"type":"string","description":"Which first-party connector to use instead of a URL."},{"type":"null","description":"Which first-party connector to use instead of a URL."}]},"headers":{"oneOf":[{"type":"object","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string"}},{"type":"null","description":"Extra HTTP headers that would reach the server.","additionalProperties":{"type":"string"}}]},"require_approval":{"description":"Which of the server's tools would need approval."},"server_description":{"oneOf":[{"type":"string","description":"Free text about the server, meant for the model."},{"type":"null","description":"Free text about the server, meant for the model."}]},"server_url":{"oneOf":[{"type":"string","description":"Where the server lives."},{"type":"null","description":"Where the server lives."}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `image_generation`.","enum":["image_generation"],"isRequired":true},"background":{"oneOf":[{"type":"string","description":"Whether the background is see-through, filled, or the model's choice.","enum":["transparent","opaque","auto"]},{"type":"null"}]},"input_fidelity":{"oneOf":[{"type":"string","description":"How closely the result follows the supplied images.","enum":["high","low"]},{"type":"null"}]},"input_image_mask":{"oneOf":[{"type":"object","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"A mask marking the region to repaint.","additionalProperties":{"oneOf":[{}]}}]},"model":{"oneOf":[{"type":"string","description":"Which image model would do the drawing.","enum":["gpt-image-1","gpt-image-1-mini"]},{"type":"null"}]},"moderation":{"oneOf":[{"type":"string","description":"How strictly what is drawn would be filtered.","enum":["auto","low"]},{"type":"null"}]},"output_compression":{"oneOf":[{"type":"number","description":"How hard the produced file would be compressed.","format":"double"},{"type":"null","description":"How hard the produced file would be compressed.","format":"double"}]},"output_format":{"oneOf":[{"type":"string","description":"The file format the produced image would be encoded in.","enum":["png","webp","jpeg"]},{"type":"null"}]},"partial_images":{"oneOf":[{"type":"number","description":"How many half-finished frames would be streamed.","format":"double"},{"type":"null","description":"How many half-finished frames would be streamed.","format":"double"}]},"quality":{"oneOf":[{"type":"string","description":"How much rendering effort would go into the picture.","enum":["low","medium","high","auto"]},{"type":"null"}]},"size":{"oneOf":[{"type":"string","description":"The pixel dimensions the picture would have.","enum":["1024x1024","1024x1536","1536x1024","auto"]},{"type":"null"}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `local_shell`.","enum":["local_shell"],"isRequired":true}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `shell`.","enum":["shell"],"isRequired":true}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `apply_patch`.","enum":["apply_patch"],"isRequired":true}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The name the model would call the tool by.","isRequired":true},"type":{"type":"string","description":"The tag that selects this branch: `type` is `custom`.","enum":["custom"],"isRequired":true},"description":{"oneOf":[{"type":"string","description":"What the tool is for, written for the model."},{"type":"null","description":"What the tool is for, written for the model."}]},"format":{"oneOf":[{"type":"object","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"The grammar the model's input must obey.","additionalProperties":{"oneOf":[{}]}}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `computer`.","enum":["computer"],"isRequired":true}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `tool_search`.","enum":["tool_search"],"isRequired":true},"execution":{"oneOf":[{"type":"string","description":"Who runs the search. Only `client` is carried; `server` is dropped."},{"type":"null","description":"Who runs the search. Only `client` is carried; `server` is dropped."}]},"description":{"oneOf":[{"type":"string","description":"What the search does, written for the model."},{"type":"null","description":"What the search does, written for the model."}]},"parameters":{"oneOf":[{"type":"object","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}]}},{"type":"null","description":"The search's arguments, as a JSON Schema.","additionalProperties":{"oneOf":[{}]}}]}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type","name"],"properties":{"name":{"type":"string","description":"The group's name; a member is offered as `\u003cnamespace>__\u003cname>`.","isRequired":true},"type":{"type":"string","description":"The tag that selects this branch: `type` is `namespace`.","enum":["namespace"],"isRequired":true},"description":{"oneOf":[{"type":"string","description":"What the group is for, which the gateway does not forward."},{"type":"null","description":"What the group is for, which the gateway does not forward."}]},"tools":{"type":"array","items":{"$circularRef":"58bdf672-b259-4090-9d7d-a916577b80e7"},"description":"The members: `function` and `custom` tools."}}},{"type":"object","description":"One entry of `tools[]`, chosen by its `type`. Five of the eighteen types reach the model; the gateway drops the other thirteen.","required":["type"],"properties":{"type":{"type":"string","description":"The tag that selects this branch: `type` is `skills`.","enum":["skills"],"isRequired":true}}}]}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An account API key. Send it as `Authorization: Bearer \u003ckey>`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An account API key. Send it as `Authorization: Bearer \u003ckey>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"An account API key. Send it as `x-api-key: \u003ckey>`, the header Anthropic-style clients use.","scopes":[],"schemeName":"xApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"An account API key. Send it as `x-api-key: \u003ckey>`, the header Anthropic-style clients use.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"xApiKeyAuth","name":"x-api-key"}],"title":"xApiKeyAuth"}]},"originalFileLocation":"openapi/naga-api.json"},"subdomain":"nagaai-60f8697b","siteName":"NagaAI Documentation","title":"Create a response - NagaAI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T16:54:45.210Z","originalFileLocation":"api-reference/responses/create-a-response.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. /v1/chat/completions and /v1/messages serve the same models in the other two dialects.\">\u003cmeta data-mint-head name=\"application-name\" content=\"NagaAI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a response - NagaAI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. /v1/chat/completions and /v1/messages serve the same models in the other two dialects.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"NagaAI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.naga.ac/api-reference/responses/create-a-response\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nagaai-60f8697b.mintlify.site/_mintlify/api/og/v2?division=Responses\u0026amp;title=Create+a+response\u0026amp;description=Creates+a+model+response+in+the+OpenAI+Responses+dialect+and+charges+the+account+for+the+tokens+it+used.+Requires+an+API+key.+%60%2Fv1%2Fchat%2Fcompletions%60+and+%60%2Fv1%2Fme\u0026amp;theme=53b53c58c5b757ba80c9164d\u0026amp;signature=c0b6b8c3d92f5bf283e6af215732d881d8ead36ed4a4fe01e9113eed4d1a33c8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a response - NagaAI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. /v1/chat/completions and /v1/messages serve the same models in the other two dialects.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nagaai-60f8697b.mintlify.site/_mintlify/api/og/v2?division=Responses\u0026amp;title=Create+a+response\u0026amp;description=Creates+a+model+response+in+the+OpenAI+Responses+dialect+and+charges+the+account+for+the+tokens+it+used.+Requires+an+API+key.+%60%2Fv1%2Fchat%2Fcompletions%60+and+%60%2Fv1%2Fme\u0026amp;theme=53b53c58c5b757ba80c9164d\u0026amp;signature=c0b6b8c3d92f5bf283e6af215732d881d8ead36ed4a4fe01e9113eed4d1a33c8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nagaai-60f8697b/GL7s2nR26U7RrKZ8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"NagaAI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5a5ae5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.naga.ac/api-reference/responses/create-a-response\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/responses/create-a-response.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.naga.ac/#organization\",\"name\":\"NagaAI Documentation\",\"url\":\"https://docs.naga.ac\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nagaai-60f8697b/3Tc2Ajidq18FPFoC/static/img/logo-light.svg?fit=max\u0026auto=format\u0026n=3Tc2Ajidq18FPFoC\u0026q=85\u0026s=18d579338bd90baa596e41e2e2322393\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.naga.ac#website\",\"name\":\"NagaAI Documentation\",\"url\":\"https://docs.naga.ac\",\"publisher\":{\"@id\":\"https://docs.naga.ac/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.naga.ac/api-reference/responses/create-a-response#webpage\",\"url\":\"https://docs.naga.ac/api-reference/responses/create-a-response\",\"name\":\"Create a response\",\"description\":\"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. /v1/chat/completions and /v1/messages serve the same models in the other two dialects.\",\"dateModified\":\"2026-11-19T16:54:45.210Z\",\"isPartOf\":{\"@id\":\"https://docs.naga.ac#website\"},\"breadcrumb\":{\"@id\":\"https://docs.naga.ac/api-reference/responses/create-a-response#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.naga.ac/api-reference/responses/create-a-response#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"NagaAI Documentation\",\"item\":\"https://docs.naga.ac\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a response\",\"item\":\"https://docs.naga.ac/api-reference/responses/create-a-response\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.naga.ac/api-reference/responses/create-a-response#apireference\",\"headline\":\"Create a response\",\"name\":\"Create a response\",\"description\":\"Creates a model response in the OpenAI Responses dialect and charges the account for the tokens it used. Requires an API key. /v1/chat/completions and /v1/messages serve the same models in the other two dialects.\",\"url\":\"https://docs.naga.ac/api-reference/responses/create-a-response\",\"mainEntityOfPage\":{\"@id\":\"https://docs.naga.ac/api-reference/responses/create-a-response#webpage\"},\"dateModified\":\"2026-11-19T16:54:45.210Z\",\"publisher\":{\"@id\":\"https://docs.naga.ac/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.naga.ac#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"NagaAI Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"NagaAI Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/responses/create-a-response.md","siteName":"NagaAI Documentation","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/get-started/quickstart"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API reference","sidebarTitle":"Overview","description":"Base URLs, authentication, headers and error shapes shared by every NagaAI endpoint.","icon":"book","href":"/api-reference/overview"}]},{"group":"Endpoints","pages":[{"group":"Responses","expanded":false,"pages":[{"title":"Create a response","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/responses","href":"/api-reference/responses/create-a-response"}]},{"group":"Chat Completions","expanded":false,"pages":[{"title":"Create a chat completion","description":"Creates a model response in the OpenAI Chat Completions dialect and charges the account for the tokens it used. Requires an API key. `/v1/responses` and `/v1/messages` serve the same models in the other two dialects.","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/chat/completions","href":"/api-reference/chat-completions/create-a-chat-completion"}]},{"group":"Messages","expanded":false,"pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/messages","href":"/api-reference/messages/create-a-message"}]},{"group":"Models","expanded":false,"pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/models","href":"/api-reference/models/list-models"}]},{"group":"Startups","expanded":false,"pages":[{"title":"List startups","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/startups","href":"/api-reference/startups/list-startups"}]},{"group":"Embeddings","expanded":false,"pages":[{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/embeddings","href":"/api-reference/embeddings/create-embeddings"}]},{"group":"Moderations","expanded":false,"pages":[{"title":"Classify content","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/moderations","href":"/api-reference/moderations/classify-content"}]},{"group":"Rerank","expanded":false,"pages":[{"title":"Rerank documents","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/rerank","href":"/api-reference/rerank/rerank-documents"}]},{"group":"Audio","expanded":false,"pages":[{"title":"Create speech","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/audio/speech","href":"/api-reference/audio/create-speech"},{"title":"Create a transcription","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/audio/transcriptions","href":"/api-reference/audio/create-a-transcription"},{"title":"Create a translation","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/audio/translations","href":"/api-reference/audio/create-a-translation"}]},{"group":"Images","expanded":false,"pages":[{"title":"Create an image","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/images/generations","href":"/api-reference/images/create-an-image"},{"title":"Edit an image","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/images/edits","href":"/api-reference/images/edit-an-image"}]},{"group":"Videos","expanded":false,"pages":[{"title":"Create a video","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/videos","href":"/api-reference/videos/create-a-video"},{"title":"Get a video job","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/videos/{id}","href":"/api-reference/videos/get-a-video-job"},{"title":"Download a video","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/videos/{id}/content","href":"/api-reference/videos/download-a-video"}]},{"group":"Requests","expanded":false,"pages":[{"title":"Get a request","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/requests/{id}","href":"/api-reference/requests/get-a-request"}]},{"group":"Account","expanded":false,"pages":[{"title":"Get the account balance","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/account/balance","href":"/api-reference/account/get-the-account-balance"},{"title":"Get account activity","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/account/activity","href":"/api-reference/account/get-account-activity"},{"group":"API Keys","expanded":false,"pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/account/keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create an API key","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json post /v1/account/keys","href":"/api-reference/api-keys/create-an-api-key"},{"title":"Get an API key","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json get /v1/account/keys/{key_id}","href":"/api-reference/api-keys/get-an-api-key"},{"title":"Update an API key","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json patch /v1/account/keys/{key_id}","href":"/api-reference/api-keys/update-an-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"/openapi/naga-api.json delete /v1/account/keys/{key_id}","href":"/api-reference/api-keys/delete-an-api-key"}]}]}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/agents/claude-code"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create a response - NagaAI Documentation","deploymentId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","buildId":"dpl_2pTxFtyBudBMYZiCw1MyvoA1wxpd","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BtG4DSkw.js","snippetPresets-C1k1xDhp.js","utils-PMJoEt4Y.js","style-to-object-BY3JEAdk.js","utils-DW3Pr7Jq.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DIISLO2w.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BErNCZCm.js","_Uint8Array-f0PCu9f_.js","isObject-FP1Yky1u.js","ApiExamples-OjY-8mqu.js","usePlaygroundInputsStore-B2HS2hUb.js","shallow-DVFuuIDQ.js","isEqual-DG0UKiQC.js","CodeSnippets-Cy6FBgwN.js","CodeSnippet-D1PtG8ed.js","getApiPlaygroundDisplay-Dkx2eNtL.js","Page-C8Cg25if.js","DynamicMarkdown-BvJIe00T.js","SectionHeading-B0rKYV8d.js","icon-yclzBff4.js","MethodPill-DxA11cCF.js","getPastedJson-CpkIDpMk.js","DuplicateIcon-CFCQNJ-D.js","axios-CsQoIw0U.js","Markdown-CK5C-fmV.js","AssistantPageLink-Cw134Dd-.js","dist-3xM3Qrc7.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}