{ "container": null, "content": [ { "citations": [], "text": "I'm doing well, thank you for asking! How can I help you today?", "type": "text" } ], "id": "msg_abc123", "model": "anthropic/claude-sonnet-4", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": { "cache_creation": null, "cache_creation_input_tokens": null, "cache_read_input_tokens": null, "inference_geo": null, "input_tokens": 12, "output_tokens": 18, "output_tokens_details": null, "server_tool_use": null, "service_tier": "standard" }}
Authorizations
Authorization
string
header
required
A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.
Headers
X-OpenRouter-Metadata
enum<string>
Opt-in to surface routing metadata on the response under openrouter_metadata. Defaults to disabled. The legacy header X-OpenRouter-Experimental-Metadata is also accepted for backward compatibility.
Opt-in level for surfacing routing metadata on the response under openrouter_metadata.
Available options:
disabled,
enabled
Example:
"enabled"
HTTP-Referer
string
The app identifier should be your app's URL and is used as the primary identifier for rankings.
This is used to track API usage per application.
X-OpenRouter-Title
string
The app display name allows you to customize how your app appears in OpenRouter's dashboard.
X-OpenRouter-Categories
string
Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
Body
application/json
Request schema for Anthropic Messages API endpoint
messages
object[] | null
required
The conversation so far.
Show child attributes
model
string
required
Model id to send the request to, as listed by GET /models (e.g. anthropic/claude-sonnet-4.5).
cache_control
object
Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
Show child attributes
Example:
{ "type": "ephemeral" }
context_management
object | null
Context editing: when to clear or compact old context, and how.
Show child attributes
deferred_tools
object
Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.
Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with models. Each entry accepts only model. Maximum of 3 entries.
Show child attributes
Example:
[{ "model": "claude-opus-4-8" }]
max_tokens
integer
Most tokens the model may generate.
metadata
MessagesRequestMetadata · object
Request metadata, such as user_id.
Show child attributes
models
string[]
Models to try in order when one is unavailable.
output_config
object
Configuration for controlling output behavior. Supports the effort parameter and structured output format.
Show child attributes
Example:
{ "effort": "medium" }
plugins
object[]
Plugins you want to enable for this request, including their settings.
When multiple model providers are available, optionally indicate your routing preference.
Show child attributes
Example:
{ "allow_fallbacks": true }
route
enum<string> | null
deprecated
DEPRECATED Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: "fallback" (maps to "model"), "sort" (maps to "none").
Available options:
fallback,
sort,
null
Example:
"fallback"
safeguards
object[] | null
Server-side safeguards to run alongside the completion.
Show child attributes
service_tier
string
Service tier to run on.
session_id
string
A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.
Maximum string length: 256
speed
enum<string> | null
Inference speed: fast uses a higher-speed configuration at premium pricing; standard when omitted.
Available options:
fast,
standard,
null
Example:
"fast"
stop_sequences
string[]
Text that stops generation when produced.
stop_server_tools_when
object[]
Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides max_tool_calls. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.
Minimum array length: 1
A single condition that, when met, halts the server-tool agent loop.
System prompt: a string, or an array of text blocks (each may set cache_control).
temperature
number<double>
Sampling temperature; higher is more random.
thinking
object
Extended thinking: enabled with a token budget, adaptive, or disabled.
Option 1
Option 2
Option 3
Option 4
Show child attributes
tool_choice
object
How the model chooses tools: auto, any, a named tool, or none.
Option 1
Option 2
Option 3
Option 4
Show child attributes
tools
object[]
The tools the model may call.
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
Show child attributes
top_k
integer
Sample only from this many most likely tokens. Not all providers support it.
top_p
number<double>
Sample only from the most likely tokens whose probabilities add up to this, 0 to 1.
trace
object
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters.
Maximum string length: 256
Response
Successful response
Non-streaming response from the Anthropic Messages API with OpenRouter extensions
container
object | null
required
The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.
{ "category": "cyber", "explanation": "The request was refused due to policy.", "type": "refusal" }
stop_reason
enum<string> | null
required
Why the model stopped: "end_turn" (finished its answer), "max_tokens" (hit max_tokens), "model_context_window_exceeded" (ran out of context), "stop_sequence" (produced a stop sequence), "tool_use" (called a tool and waits for its result), "pause_turn" (paused a long server-tool turn; send the response back to continue), "refusal" (declined for safety), or "compaction" (stopped to compact the context). Null while a stream is still running.
Changes made to the input before it was sent to the model.
Show child attributes
context_management
object | null
Context edits applied to this response.
Show child attributes
openrouter_metadata
object
How OpenRouter routed this request: the strategy, the endpoints that could serve it, each attempt made, the region, whether your own provider key (BYOK) paid for it, and the generation time.
Results of the server-side safeguards the request ran, or null.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"nemonist","description":"Memory and learning for your coding agent, behind one OpenRouter-compatible URL.","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/nemonist/O63iSHDIbHFIFLsR/logo/light.svg?fit=max\u0026auto=format\u0026n=O63iSHDIbHFIFLsR\u0026q=85\u0026s=78e0f2fecc2ad48dcf82fc4287a5dc8d","dark":"https://mintcdn.com/nemonist/O63iSHDIbHFIFLsR/logo/dark.svg?fit=max\u0026auto=format\u0026n=O63iSHDIbHFIFLsR\u0026q=85\u0026s=f51164f7521678900239881a908c13c6","href":"https://nemonist.com/"},"favicon":"https://mintcdn.com/nemonist/O63iSHDIbHFIFLsR/favicon.svg?fit=max\u0026auto=format\u0026n=O63iSHDIbHFIFLsR\u0026q=85\u0026s=b2688a9b65db5595cb13ad19c8f25c5a","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]}},"background":{"color":{"light":"#ffffff","dark":"#09090b"}},"navbar":{"links":[{"href":"https://nemonist.com/pricing","label":"Pricing"},{"href":"https://nemonist.com/models","label":"Models"}],"primary":{"type":"button","label":"Sign in","href":"https://nemonist.com/#signin"}},"footer":{"links":[{"header":"nemonist","items":[{"label":"Docs","href":"https://nemonist.com/docs"},{"label":"Pricing","href":"https://nemonist.com/pricing"},{"label":"Models","href":"https://nemonist.com/models"},{"label":"Providers","href":"https://nemonist.com/providers"},{"label":"Status","href":"https://nemonist.com/status"},{"label":"Privacy","href":"https://nemonist.com/privacy"},{"label":"Terms","href":"https://nemonist.com/terms"},{"label":"Support","href":"https://nemonist.com/support"}]}]},"seo":{"metatags":{"canonical":"https://nemonist.com/docs"}},"fonts":{"family":"Inter Variable","source":"https://nemonist.com/docs/fonts/inter.woff2","format":"woff2"},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nemonist","hasAudioNarration":false,"actualSubdomain":"nemonist","customDomains":["nemonist.com"],"gitSource":{"type":"github","owner":"ntwins-internal","repo":"nemonist-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6adbe103c87e3d756f7d1643"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afe0e0df413882676535db2","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"API Reference","count":132},{"language":"default","tag":"Folders","count":48},{"language":"default","tag":"Docs","count":21},{"language":"default","tag":"Clients","count":18},{"language":"default","tag":"Workspaces","count":12},{"language":"default","tag":"Concepts","count":10},{"language":"default","tag":"Guardrails","count":9},{"language":"default","tag":"Private Endpoints","count":9},{"language":"default","tag":"Model runs","count":8},{"language":"default","tag":"Enterprise","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","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":"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":false},"customCss":[{"filePath":"nemonist.css","content":"@font-face{font-family:\"JetBrains Mono Variable\";font-style:normal;font-display:swap;font-weight:100 900;src:url(\"https://nemonist.com/docs/fonts/jetbrains-mono.woff2\") format(\"woff2\")}code,pre,kbd,samp{font-family:\"JetBrains Mono Variable\", \"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, monospace!important}h1,h2,h3,h4{font-family:\"Inter Tight Variable\", \"Inter Variable\", \"Inter\", ui-sans-serif, system-ui, sans-serif;letter-spacing:-.025em}#navbar img,pre,[class*=\"code-block\"]{box-shadow:none!important;filter:none!important}:root{--nm-bg: #ffffff;--nm-text: #09090b;--nm-text-muted: #71717a;--nm-text-faint: #a1a1aa;--nm-border: #e4e4e7;--nm-surface-hover: #f4f4f5}html.dark{--nm-bg: #09090b;--nm-text: #fafafa;--nm-text-muted: #a1a1aa;--nm-text-faint: #71717a;--nm-border: #27272a;--nm-surface-hover: #1c1c21}#navbar #navbar-transition{background:color-mix(in srgb, var(--nm-bg) 82%, transparent)!important;backdrop-filter:saturate(1.5) blur(12px);border-bottom:1px solid var(--nm-border)!important}#navbar .h-16{height:60px}#navbar .h-16>div{border-bottom:0!important}#navbar .nav-logo.h-7{height:22px!important}#navbar nav a,#navbar .nav-tabs a{font-size:13px;font-weight:500}#topbar-cta-button a{height:36px;padding:0 16px!important;border-radius:8px;font-size:13px;font-weight:500}#topbar-cta-button a>span:first-child{background:transparent!important;border-radius:inherit;transition:background var(--transition, 120ms ease)}#topbar-cta-button a:hover>span:first-child{background:var(--nm-surface-hover)!important}#topbar-cta-button a,#topbar-cta-button a .text-white,#topbar-cta-button a svg{color:var(--nm-text-muted)!important}#topbar-cta-button a:hover .text-white{color:var(--nm-text)!important}#topbar-cta-button a svg{display:none}html.nm-signed-in #topbar-cta-button a>span:first-child{background:var(--nm-text)!important}html.nm-signed-in #topbar-cta-button a,html.nm-signed-in #topbar-cta-button a .text-white{color:var(--nm-bg)!important}html.nm-signed-in #topbar-cta-button a:hover>span:first-child{background:var(--nm-text)!important;opacity:.85}#navbar nav:has(#topbar-cta-button),#navbar nav:has(#topbar-cta-button)>ul{display:contents}#navbar div:has(>#theme-preference-menu-trigger){order:1;margin-left:24px}#topbar-cta-button{order:2;margin-left:8px!important}#search-bar-entry,#assistant-entry{border-radius:8px!important}#footer{border-top:1px solid var(--nm-border)!important;font-size:13px;color:var(--nm-text-faint)}#footer>div{max-width:1120px!important;padding:24px 24px!important;gap:0!important}#footer>div>div:first-child{flex-direction:row!important;align-items:center}#footer>div>div:first-child>div:first-child{min-width:0!important;gap:0!important;flex-direction:row!important;align-items:center!important}#footer .nav-logo{height:18px!important}#footer>div>div:first-child>div:first-child::after{content:\"\\00a9 2026 nTwins, Inc.\";margin-left:12px;white-space:nowrap}#footer>div>div:first-child>div:last-child>div>div{flex-direction:row!important;justify-content:flex-start!important;flex-wrap:wrap;gap:8px 24px!important}#footer>div>div:first-child{flex-wrap:wrap;gap:16px!important}#footer>div>div:first-child>div:last-child{flex:0 1 auto!important;max-width:100%!important;display:flex!important}#footer a.text-sm{font-size:13px!important;color:var(--nm-text-muted)!important}#footer a.text-sm:hover{color:var(--nm-text)!important}#footer>div>div:nth-child(2),#footer>div>div:nth-child(3){display:none!important}#page-title{font-size:28px!important;font-weight:640!important;letter-spacing:-.03em!important;line-height:1.15!important}#page-title,#content h2,#content h3,#content h4{color:var(--nm-text)!important}#content{font-size:15px;line-height:1.6}#content h2{font-size:20px;font-weight:600}#content h3{font-size:16px;font-weight:600}#sidebar a{font-size:14px;border-radius:6px!important}#sidebar a[aria-current=page]{background:var(--nm-surface-hover)!important;color:var(--nm-text)!important;font-weight:500;text-shadow:none!important}"}],"page":{"pagePath":"api-reference/anthropic-messages/create-a-message","slug":"/api-reference/anthropic-messages/create-a-message","pageMetadata":{"title":"Create a message","description":"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.","deprecated":null,"version":null,"openapi":"/openapi.json post /messages","href":"/api-reference/anthropic-messages/create-a-message","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.\"\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":{"config":{},"pageMetadata":{"title":"Create a message","description":"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.","deprecated":null,"version":null,"openapi":"/openapi.json post /messages","href":"/api-reference/anthropic-messages/create-a-message","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/nemonist/5b5d33ba16a44814/nemonist.js"],"openApiReferenceData":{"operation":{"description":"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.","operationId":"createMessages","parameters":["7af26f73-c1ea-4728-9089-a0800eb7fc78"],"requestBody":"32661150-6965-46d3-9e58-ac34803e4714","responses":{"200":"e4c02826-d328-43dc-8024-9a632628643b","400":"8fb5bcd8-1cd8-4576-b003-a3905fce3dd8","401":"79354b9a-ab44-46ba-ac58-593233fb1ad7","402":"b8858b68-94da-465e-bdb1-d3c700172028","403":"031944ee-1aaf-48a6-9291-98c9871b85d9","404":"72ba098d-5de1-4eab-8410-dbb2b1f30e6c","429":"0e5f78f1-2d4f-41cc-a0d8-fc0362b01224","500":"b9acc65e-67b8-4b24-b3bc-d1deb7e2f8d6","502":"8e06ecf7-948f-41c0-a70f-9af8b2e0a3af","503":"dfec5a82-57e5-4bc9-92db-89c6f4ff9ffb","529":"54ca5f66-630d-4503-a84b-b0c399f8d478"},"summary":"Create a message","tags":["Anthropic Messages"],"x-speakeasy-ignore":true,"x-speakeasy-name-override":"create","x-speakeasy-stream-request-field":"stream","method":"post","type":"path","servers":["f904a986-b1a7-4390-beb0-f994b9f6d9ad"],"security":["5c64c600-8820-448c-b999-87c9f6ba628f"],"path":"/messages","baseUrlOptions":["https://nemonist.com/api/v1"],"title":"Create a message","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"7af26f73-c1ea-4728-9089-a0800eb7fc78":{"description":"Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.","example":"enabled","in":"header","name":"X-OpenRouter-Metadata","required":false,"schema":{"description":"Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.\nOpt-in level for surfacing routing metadata on the response under `openrouter_metadata`.","enum":["disabled","enabled"],"example":"enabled","type":"string","x-speakeasy-unknown-values":"allow","isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"}},"a84d45ee-9f6c-4734-8c91-84bfd2d10f86":{"name":"HTTP-Referer","in":"header","schema":{"type":"string","description":"The app identifier should be your app's URL and is used as the primary identifier for rankings.\nThis is used to track API usage per application.\n","uniqueKey":"","typeLabel":"string"},"description":"The app identifier should be your app's URL and is used as the primary identifier for rankings.\nThis is used to track API usage per application.\n"},"15c36c96-4d40-4a81-b8ca-f1aa749a9997":{"name":"X-OpenRouter-Title","in":"header","x-speakeasy-name-override":"appTitle","schema":{"type":"string","description":"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\n","uniqueKey":"","typeLabel":"string"},"description":"The app display name allows you to customize how your app appears in OpenRouter's dashboard.\n"},"4aea83c0-ae27-43a7-96ca-25571fe0b0e1":{"name":"X-OpenRouter-Categories","in":"header","x-speakeasy-name-override":"appCategories","schema":{"type":"string","description":"Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.\n","uniqueKey":"","typeLabel":"string"},"description":"Comma-separated list of app categories (e.g. \"cli-agent,cloud-agent\"). Used for marketplace rankings.\n"}},"requestBody":{"content":{"application/json":{"example":{"max_tokens":1024,"messages":[{"content":"Hello, how are you?","role":"user"}],"model":"anthropic/claude-sonnet-4"},"schema":{"description":"Request schema for Anthropic Messages API endpoint","example":{"max_tokens":1024,"messages":[{"content":"Hello, how are you?","role":"user"}],"model":"anthropic/claude-4.5-sonnet-20250929","temperature":0.7},"properties":{"messages":{"oneOf":[{"items":{"description":"Anthropic message with OpenRouter extensions","example":{"content":"Hello, how are you?","role":"user"},"properties":{"content":{"oneOf":[{"type":"string","description":"The message's content: a string or content blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","description":"The text of this content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"source":{"oneOf":[{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","description":"The image, base64-encoded.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow","description":"The image's media type: image/jpeg, image/png, image/gif or image/webp.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the image.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","description":"One of \"file\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"enum":["image"],"type":"string","description":"One of \"image\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","description":"The document's content: a string, or content blocks (text and images).","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","description":"The text of this content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"source":{"oneOf":[{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","description":"The image, base64-encoded.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow","description":"The image's media type: image/jpeg, image/png, image/gif or image/webp.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the image.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","description":"One of \"file\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"enum":["image"],"type":"string","description":"One of \"image\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The document's content: a string, or content blocks (text and images).","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.content","typeLabel":"string | object[]"},"type":{"enum":["content"],"type":"string","description":"One of \"content\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the PDF.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.3.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.3","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.4.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","description":"One of \"file\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.source","typeLabel":"object"},"type":{"enum":["document"],"type":"string","description":"One of \"document\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations.oneOf.0.enabled","typeLabel":"boolean"}},"type":"object","description":"Citation settings for this document.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations.oneOf.0","typeLabel":"object"},{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document."}},"type":"null","description":"Citation settings for this document.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.citations","typeLabel":"object | null"},"context":{"oneOf":[{"type":"string","description":"Context about the document given to the model, not cited.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Context about the document given to the model, not cited.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"Title of the document, given to the model and used in citations; null for none.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the document, given to the model and used in citations; null for none.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2.title","typeLabel":"string | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","id","name"],"properties":{"id":{"type":"string","description":"Id of the tool call; its tool_result sets tool_use_id to it.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool called.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.name","typeLabel":"string"},"type":{"enum":["tool_use"],"type":"string","description":"One of \"tool_use\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"},"input":{"description":"The tool call's input.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3.input","typeLabel":"any"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","tool_use_id"],"properties":{"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.tool_use_id","typeLabel":"string"},"type":{"enum":["tool_result"],"type":"string","description":"One of \"tool_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.cache_control","typeLabel":"object"},"content":{"oneOf":[{"type":"string","description":"The tool result's content: a string or content blocks.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.0","typeLabel":"string"},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","description":"The text of this content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"source":{"oneOf":[{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","description":"The image, base64-encoded.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow","description":"The image's media type: image/jpeg, image/png, image/gif or image/webp.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the image.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","description":"One of \"file\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.source","typeLabel":"object"},"type":{"enum":["image"],"type":"string","description":"One of \"image\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","tool_name"],"properties":{"tool_name":{"type":"string","description":"Name of the tool the search found.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.2.tool_name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","description":"The text of this content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX].citations","typeLabel":"object[] | null"}},"required":["type","text"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"The search result's text blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.content","typeLabel":"object[]"},"source":{"type":"string","description":"Where the search result came from, such as its URL.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.source","typeLabel":"string"},"title":{"type":"string","description":"Title of the search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.title","typeLabel":"string"},"type":{"enum":["search_result"],"type":"string","description":"One of \"search_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"},"citations":{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this search result.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.citations.enabled","typeLabel":"boolean"}},"type":"object","description":"Citation settings for this search result.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3.citations","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.1","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","content"],"properties":{"content":{"type":"any","description":"The document's content: a string, or content blocks (text and images).","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.2.content","typeLabel":"any"},"type":{"enum":["content"],"type":"string","description":"One of \"content\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.2","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the PDF.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.3.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.3","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.4.file_id","typeLabel":"string"},"type":{"enum":["file"],"type":"string","description":"One of \"file\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.source","typeLabel":"object"},"type":{"enum":["document"],"type":"string","description":"One of \"document\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.cache_control","typeLabel":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations.oneOf.0.enabled","typeLabel":"boolean"}},"type":"object","description":"Citation settings for this document.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations.oneOf.0","typeLabel":"object"},{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document."}},"type":"null","description":"Citation settings for this document.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.citations","typeLabel":"object | null"},"context":{"oneOf":[{"type":"string","description":"Context about the document given to the model, not cited.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.context.oneOf.0","typeLabel":"string"},{"type":"null","description":"Context about the document given to the model, not cited.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.context.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.context","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","description":"Title of the document, given to the model and used in citations; null for none.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the document, given to the model and used in citations; null for none.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4.title","typeLabel":"string | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The tool result's content: a string or content blocks.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.content","typeLabel":"string | object[]"},"is_error":{"type":"boolean","description":"Whether the tool call failed.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4.is_error","typeLabel":"boolean"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type","thinking","signature"],"properties":{"signature":{"type":"string","description":"Signature the provider returned with this thinking block; send it back unchanged.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.signature","typeLabel":"string"},"thinking":{"type":"string","description":"The model's thinking text, sent back unchanged.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.thinking","typeLabel":"string"},"type":{"enum":["thinking"],"type":"string","description":"One of \"thinking\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type","data"],"properties":{"data":{"type":"string","description":"The redacted thinking, encrypted, sent back unchanged.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.data","typeLabel":"string"},"type":{"enum":["redacted_thinking"],"type":"string","description":"One of \"redacted_thinking\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["type","id","name"],"properties":{"id":{"type":"string","description":"Id of the tool call; its tool_result sets tool_use_id to it.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool called.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.name","typeLabel":"string"},"type":{"enum":["server_tool_use"],"type":"string","description":"One of \"server_tool_use\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.cache_control","typeLabel":"object"},"input":{"description":"The tool call's input.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7.input","typeLabel":"any"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["type","tool_use_id","content"],"properties":{"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].encrypted_content","typeLabel":"string"},"title":{"type":"string","description":"Title of the web page the search found.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].title","typeLabel":"string"},"type":{"enum":["web_search_result"],"type":"string","description":"One of \"web_search_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the search result page.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].url","typeLabel":"string"},"page_age":{"oneOf":[{"type":"string","description":"How old the page is, as the search reported it.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].page_age.oneOf.0","typeLabel":"string"},{"type":"null","description":"How old the page is, as the search reported it.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].page_age.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX].page_age","typeLabel":"string | null"}},"required":["type","encrypted_content","title","url"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The tool result's content: a string or content blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"The tool result's content: a string or content blocks.","required":["type","error_code"],"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"max_uses_exceeded\", \"too_many_requests\", \"query_too_long\", \"request_too_large\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.1.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_tool_result_error"],"type":"string","description":"One of \"web_search_tool_result_error\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.content","typeLabel":"object[] | object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"type":{"enum":["web_search_tool_result"],"type":"string","description":"One of \"web_search_tool_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","description":"The text of this content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX].citations","typeLabel":"object[] | null"}},"required":["type","text"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"The search result's text blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.content","typeLabel":"object[]"},"source":{"type":"string","description":"Where the search result came from, such as its URL.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.source","typeLabel":"string"},"title":{"type":"string","description":"Title of the search result.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.title","typeLabel":"string"},"type":{"enum":["search_result"],"type":"string","description":"One of \"search_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.cache_control","typeLabel":"object"},"citations":{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this search result.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.citations.enabled","typeLabel":"boolean"}},"type":"object","description":"Citation settings for this search result.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9.citations","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","description":"The tool result's content: a string or content blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The tool result's content: a string or content blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.content","typeLabel":"string | null"},"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.cache_control","typeLabel":"object"},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10.encrypted_content","typeLabel":"string | null"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs.","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the advisor tool returned: its advice, or an error.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.tool_use_id","typeLabel":"string"},"type":{"enum":["advisor_tool_result"],"type":"string","description":"One of \"advisor_tool_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"Adds a tool mid-conversation without invalidating the prompt cache: either a previously deferred tool (declared in `tools` with `defer_loading: true`, referenced by name) or a full inline `tool_definition`. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_forecast","type":"tool_reference"},"type":"tool_addition"},"properties":{"tool":{"oneOf":[{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","name"],"properties":{"name":{"type":"string","description":"Name of the tool to add.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.0.name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.0","typeLabel":"object"},{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","name","server_name"],"properties":{"name":{"type":"string","description":"Name of the tool to add.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1.name","typeLabel":"string"},"server_name":{"type":"string","description":"Name of the MCP server.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1.server_name","typeLabel":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string","description":"One of \"mcp_tool_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.1","typeLabel":"object"},{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","server_name"],"properties":{"server_name":{"type":"string","description":"Name of the MCP server.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.2.server_name","typeLabel":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string","description":"One of \"mcp_toolset_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.2","typeLabel":"object"},{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","definition"],"properties":{"definition":{"oneOf":[{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["name","input_schema"],"example":{"description":"Get the current weather for a city.","input_schema":{"properties":{"city":{"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather"},"properties":{"input_schema":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.additionalProperties","typeLabel":"any"},"properties":{"type":{"enum":["object"],"type":"string","description":"One of \"object\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.type","typeLabel":"enum\u003cstring>"},"properties":{"description":"JSON Schema properties of the tool's input: one entry per argument name.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.properties","typeLabel":"any"},"required":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Input properties the model must always give.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Input properties the model must always give.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema.required","typeLabel":"string[] | null"}},"required":["type"],"type":"object","description":"JSON Schema for the tool's input.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.input_schema","typeLabel":"object"},"name":{"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.name","typeLabel":"string"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","description":"Withhold this tool from the model until a tool search finds it.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.defer_loading","typeLabel":"boolean"},"description":{"type":"string","description":"What the tool does.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.description","typeLabel":"string"},"strict":{"type":"boolean","description":"Make the model's tool inputs match input_schema exactly.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.strict","typeLabel":"boolean"},"type":{"enum":["custom"],"type":"string","description":"One of \"custom\".","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.0","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["bash"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_20250124"],"type":"string","description":"One of \"bash_20250124\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1.cache_control","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.1","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["str_replace_editor"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["text_editor_20250124"],"type":"string","description":"One of \"text_editor_20250124\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2.cache_control","typeLabel":"object"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.2","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["web_search"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20250305"],"type":"string","description":"One of \"web_search_20250305\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.type","typeLabel":"enum\u003cstring>"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Only these domains are searched.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Only these domains are searched.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","description":"Most times the model may use this tool in one request.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Most times the model may use this tool in one request.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","description":"City used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"City used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter country code used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region (such as a state) used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"null","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3.user_location","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.3","typeLabel":"object"},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"name":{"enum":["web_search"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20260209"],"type":"string","description":"One of \"web_search_20260209\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","description":"Who may call this tool: \"direct\" (the model itself) and/or a code-execution tool version (\"code_execution_20250825\", \"code_execution_20260120\") calling it from inside a sandbox.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_callers","typeLabel":"enum\u003cstring>[]"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Only these domains are searched.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Only these domains are searched.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","description":"Most times the model may use this tool in one request.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Most times the model may use this tool in one request.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","description":"City used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"City used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter country code used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region (such as a state) used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone used to localize search results.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"null","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4.user_location","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.definition","typeLabel":"object"},"type":{"enum":["tool_definition"],"type":"string","description":"One of \"tool_definition\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.tool","typeLabel":"object"},"type":{"enum":["tool_addition"],"type":"string","description":"One of \"tool_addition\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"Removes a tool from the conversation mid-conversation without invalidating the prompt cache. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_weather","type":"tool_reference"},"type":"tool_removal"},"properties":{"tool":{"oneOf":[{"type":"object","description":"The tool to remove: a tool by name, an MCP server's tool by name and server_name, or a whole MCP server's toolset by server_name.","required":["type","name"],"properties":{"name":{"type":"string","description":"Name of the tool to remove.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.0.name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.0","typeLabel":"object"},{"type":"object","description":"The tool to remove: a tool by name, an MCP server's tool by name and server_name, or a whole MCP server's toolset by server_name.","required":["type","name","server_name"],"properties":{"name":{"type":"string","description":"Name of the tool to remove.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1.name","typeLabel":"string"},"server_name":{"type":"string","description":"Name of the MCP server.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1.server_name","typeLabel":"string"},"type":{"enum":["mcp_tool_reference"],"type":"string","description":"One of \"mcp_tool_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.1","typeLabel":"object"},{"type":"object","description":"The tool to remove: a tool by name, an MCP server's tool by name and server_name, or a whole MCP server's toolset by server_name.","required":["type","server_name"],"properties":{"server_name":{"type":"string","description":"Name of the MCP server.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.2.server_name","typeLabel":"string"},"type":{"enum":["mcp_toolset_reference"],"type":"string","description":"One of \"mcp_toolset_reference\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.tool","typeLabel":"object"},"type":{"enum":["tool_removal"],"type":"string","description":"One of \"tool_removal\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13.cache_control","typeLabel":"object"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"Output of an `openrouter:shell` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the shell command returned: its output, or an error.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string","description":"One of \"openrouter_shell_tool_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14.files","typeLabel":"object[]"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"Output of a sandbox-executed `openrouter:bash` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the bash command returned: its output, or an error.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string","description":"One of \"openrouter_bash_tool_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15.files","typeLabel":"object[]"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"Router-owned deferred discovery result for continuation.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"openrouter_tool_search_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.content.additionalProperties","typeLabel":"any"},"type":"object","description":"The tool definitions the search selected, sent back to continue.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_tool_search_result"],"type":"string","description":"One of \"openrouter_tool_search_result\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX].oneOf.16","typeLabel":"object"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"The message's content: a string or content blocks.","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content.oneOf.1","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].content","typeLabel":"string | object[]"},"role":{"enum":["user","assistant","system"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"user\", \"assistant\", \"system\".","isRequired":true,"uniqueKey":"messages.oneOf.0.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"clear_at":{"oneOf":[{"enum":["next_user_message","never",null],"example":"next_user_message","type":"string","x-speakeasy-unknown-values":"allow","description":"When this system message stops applying: \"next_user_message\" (only until the next user turn) or \"never\" (for the rest of the conversation); null leaves it unset.","uniqueKey":"messages.oneOf.0.items.[INDEX].clear_at.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["next_user_message","never",null],"example":"next_user_message","type":"null","x-speakeasy-unknown-values":"allow","description":"When this system message stops applying: \"next_user_message\" (only until the next user turn) or \"never\" (for the rest of the conversation); null leaves it unset.","uniqueKey":"messages.oneOf.0.items.[INDEX].clear_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].clear_at","typeLabel":"enum\u003cstring> | null"},"output_config":{"oneOf":[{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default.","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0.effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default.","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0.effort","typeLabel":"enum\u003cstring> | null"}},"type":"object","description":"Output settings for this message, such as the effort the model should spend on it.","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default."},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default."}]}},"type":"null","description":"Output settings for this message, such as the effort the model should spend on it.","uniqueKey":"messages.oneOf.0.items.[INDEX].output_config.oneOf.1","typeLabel":"null"}],"uniqueKey":"messages.oneOf.0.items.[INDEX].output_config","typeLabel":"object | null"}},"required":["role","content"],"type":"object","uniqueKey":"messages.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"The conversation so far.","isRequired":true,"uniqueKey":"messages.oneOf.0","typeLabel":"object[]"},{"items":{"description":"Anthropic message with OpenRouter extensions","example":{"content":"Hello, how are you?","role":"user"},"properties":{"clear_at":{"oneOf":[{"enum":["next_user_message","never",null],"example":"next_user_message","type":"string","x-speakeasy-unknown-values":"allow","description":"When this system message stops applying: \"next_user_message\" (only until the next user turn) or \"never\" (for the rest of the conversation); null leaves it unset."},{"enum":["next_user_message","never",null],"example":"next_user_message","type":"null","x-speakeasy-unknown-values":"allow","description":"When this system message stops applying: \"next_user_message\" (only until the next user turn) or \"never\" (for the rest of the conversation); null leaves it unset."}]},"content":{"oneOf":[{"type":"string","description":"The message's content: a string or content blocks."},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"array","description":"Sources this text cites."},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites."}]},"text":{"type":"string","description":"The text of this content block."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"source":{"oneOf":[{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","description":"The image, base64-encoded."},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow","description":"The image's media type: image/jpeg, image/png, image/gif or image/webp."},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\"."}}},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\"."},"url":{"type":"string","description":"URL of the image."}}},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file."},"type":{"enum":["file"],"type":"string","description":"One of \"file\"."}}}]},"type":{"enum":["image"],"type":"string","description":"One of \"image\"."}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document."}},"type":"object","description":"Citation settings for this document."},{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document."}},"type":"null","description":"Citation settings for this document."}]},"context":{"oneOf":[{"type":"string","description":"Context about the document given to the model, not cited."},{"type":"null","description":"Context about the document given to the model, not cited."}]},"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded."},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\"."},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\"."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text."},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\"."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","description":"The document's content: a string, or content blocks (text and images)."},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"array","description":"Sources this text cites."},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites."}]},"text":{"type":"string","description":"The text of this content block."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"source":{"oneOf":[{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","description":"The image, base64-encoded."},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow","description":"The image's media type: image/jpeg, image/png, image/gif or image/webp."},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\"."}}},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\"."},"url":{"type":"string","description":"URL of the image."}}},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file."},"type":{"enum":["file"],"type":"string","description":"One of \"file\"."}}}]},"type":{"enum":["image"],"type":"string","description":"One of \"image\"."}}}]},"description":"The document's content: a string, or content blocks (text and images)."}]},"type":{"enum":["content"],"type":"string","description":"One of \"content\"."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\"."},"url":{"type":"string","description":"URL of the PDF."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file."},"type":{"enum":["file"],"type":"string","description":"One of \"file\"."}}}]},"title":{"oneOf":[{"type":"string","description":"Title of the document, given to the model and used in citations; null for none."},{"type":"null","description":"Title of the document, given to the model and used in citations; null for none."}]},"type":{"enum":["document"],"type":"string","description":"One of \"document\"."}}},{"type":"object","required":["type","id","name"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"id":{"type":"string","description":"Id of the tool call; its tool_result sets tool_use_id to it."},"input":{"description":"The tool call's input."},"name":{"type":"string","description":"Name of the tool called."},"type":{"enum":["tool_use"],"type":"string","description":"One of \"tool_use\"."}}},{"type":"object","required":["type","tool_use_id"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"content":{"oneOf":[{"type":"string","description":"The tool result's content: a string or content blocks."},{"type":"array","items":{"oneOf":[{"type":"object","required":["type","text"],"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"array","description":"Sources this text cites."},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites."}]},"text":{"type":"string","description":"The text of this content block."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"type":"image"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"source":{"oneOf":[{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"/9j/4AAQ...","media_type":"image/jpeg","type":"base64"},"properties":{"data":{"type":"string","description":"The image, base64-encoded."},"media_type":{"enum":["image/jpeg","image/png","image/gif","image/webp"],"example":"image/jpeg","type":"string","x-speakeasy-unknown-values":"allow","description":"The image's media type: image/jpeg, image/png, image/gif or image/webp."},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\"."}}},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/image.jpg"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\"."},"url":{"type":"string","description":"URL of the image."}}},{"type":"object","description":"The image: base64 data, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file."},"type":{"enum":["file"],"type":"string","description":"One of \"file\"."}}}]},"type":{"enum":["image"],"type":"string","description":"One of \"image\"."}}},{"type":"object","required":["type","tool_name"],"properties":{"tool_name":{"type":"string","description":"Name of the tool the search found."},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\"."}}},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this search result."}},"type":"object","description":"Citation settings for this search result."},"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"array","description":"Sources this text cites."},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites."}]},"text":{"type":"string","description":"The text of this content block."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}},"required":["type","text"],"type":"object"},"type":"array","description":"The search result's text blocks."},"source":{"type":"string","description":"Where the search result came from, such as its URL."},"title":{"type":"string","description":"Title of the search result."},"type":{"enum":["search_result"],"type":"string","description":"One of \"search_result\"."}}},{"type":"object","required":["type","source"],"example":{"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"type":"document"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document."}},"type":"object","description":"Citation settings for this document."},{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this document."}},"type":"null","description":"Citation settings for this document."}]},"context":{"oneOf":[{"type":"string","description":"Context about the document given to the model, not cited."},{"type":"null","description":"Context about the document given to the model, not cited."}]},"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded."},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\"."},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\"."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text."},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\"."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","content"],"properties":{"content":{"type":"any","description":"The document's content: a string, or content blocks (text and images)."},"type":{"enum":["content"],"type":"string","description":"One of \"content\"."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","url"],"example":{"type":"url","url":"https://example.com/document.pdf"},"properties":{"type":{"enum":["url"],"type":"string","description":"One of \"url\"."},"url":{"type":"string","description":"URL of the PDF."}}},{"type":"object","description":"The document's content: base64 PDF, plain text, content blocks, a URL or a file id.","required":["type","file_id"],"example":{"file_id":"or_file_011CNha8iCJcU1wXNR6q4V8w","type":"file"},"properties":{"file_id":{"type":"string","description":"Id of the file."},"type":{"enum":["file"],"type":"string","description":"One of \"file\"."}}}]},"title":{"oneOf":[{"type":"string","description":"Title of the document, given to the model and used in citations; null for none."},{"type":"null","description":"Title of the document, given to the model and used in citations; null for none."}]},"type":{"enum":["document"],"type":"string","description":"One of \"document\"."}}}]},"description":"The tool result's content: a string or content blocks."}]},"is_error":{"type":"boolean","description":"Whether the tool call failed."},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers."},"type":{"enum":["tool_result"],"type":"string","description":"One of \"tool_result\"."}}},{"type":"object","required":["type","thinking","signature"],"properties":{"signature":{"type":"string","description":"Signature the provider returned with this thinking block; send it back unchanged."},"thinking":{"type":"string","description":"The model's thinking text, sent back unchanged."},"type":{"enum":["thinking"],"type":"string","description":"One of \"thinking\"."}}},{"type":"object","required":["type","data"],"properties":{"data":{"type":"string","description":"The redacted thinking, encrypted, sent back unchanged."},"type":{"enum":["redacted_thinking"],"type":"string","description":"One of \"redacted_thinking\"."}}},{"type":"object","required":["type","id","name"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"id":{"type":"string","description":"Id of the tool call; its tool_result sets tool_use_id to it."},"input":{"description":"The tool call's input."},"name":{"type":"string","description":"Name of the tool called."},"type":{"enum":["server_tool_use"],"type":"string","description":"One of \"server_tool_use\"."}}},{"type":"object","required":["type","tool_use_id","content"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue."},"page_age":{"oneOf":[{"type":"string","description":"How old the page is, as the search reported it."},{"type":"null","description":"How old the page is, as the search reported it."}]},"title":{"type":"string","description":"Title of the web page the search found."},"type":{"enum":["web_search_result"],"type":"string","description":"One of \"web_search_result\"."},"url":{"type":"string","description":"URL of the search result page."}},"required":["type","encrypted_content","title","url"],"type":"object"},"description":"The tool result's content: a string or content blocks."},{"type":"object","description":"The tool result's content: a string or content blocks.","required":["type","error_code"],"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"max_uses_exceeded\", \"too_many_requests\", \"query_too_long\", \"request_too_large\"."},"type":{"enum":["web_search_tool_result_error"],"type":"string","description":"One of \"web_search_tool_result_error\"."}}}]},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers."},"type":{"enum":["web_search_tool_result"],"type":"string","description":"One of \"web_search_tool_result\"."}}},{"type":"object","required":["type","source","title","content"],"example":{"content":[{"text":"Result content","type":"text"}],"source":"example_source","title":"Example Result","type":"search_result"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this search result."}},"type":"object","description":"Citation settings for this search result."},"content":{"items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"array","description":"Sources this text cites."},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites."}]},"text":{"type":"string","description":"The text of this content block."},"type":{"enum":["text"],"type":"string","description":"One of \"text\"."}},"required":["type","text"],"type":"object"},"type":"array","description":"The search result's text blocks."},"source":{"type":"string","description":"Where the search result came from, such as its URL."},"title":{"type":"string","description":"Title of the search result."},"type":{"enum":["search_result"],"type":"string","description":"One of \"search_result\"."}}},{"type":"object","required":["type","content"],"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"content":{"oneOf":[{"type":"string","description":"The tool result's content: a string or content blocks."},{"type":"null","description":"The tool result's content: a string or content blocks."}]},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue."},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue."}]},"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\"."}}},{"type":"object","description":"Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs.","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"What the advisor tool returned: its advice, or an error."},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers."},"type":{"enum":["advisor_tool_result"],"type":"string","description":"One of \"advisor_tool_result\"."}}},{"type":"object","description":"Adds a tool mid-conversation without invalidating the prompt cache: either a previously deferred tool (declared in `tools` with `defer_loading: true`, referenced by name) or a full inline `tool_definition`. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_forecast","type":"tool_reference"},"type":"tool_addition"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"tool":{"oneOf":[{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","name"],"properties":{"name":{"type":"string","description":"Name of the tool to add."},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\"."}}},{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","name","server_name"],"properties":{"name":{"type":"string","description":"Name of the tool to add."},"server_name":{"type":"string","description":"Name of the MCP server."},"type":{"enum":["mcp_tool_reference"],"type":"string","description":"One of \"mcp_tool_reference\"."}}},{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","server_name"],"properties":{"server_name":{"type":"string","description":"Name of the MCP server."},"type":{"enum":["mcp_toolset_reference"],"type":"string","description":"One of \"mcp_toolset_reference\"."}}},{"type":"object","description":"The tool to add: a deferred tool by name, an MCP server's tool by name and server_name, a whole MCP server's toolset by server_name, or a full tool definition.","required":["type","definition"],"properties":{"definition":{"oneOf":[{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["name","input_schema"],"example":{"description":"Get the current weather for a city.","input_schema":{"properties":{"city":{"type":"string"}},"required":["city"],"type":"object"},"name":"get_weather"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"defer_loading":{"type":"boolean","description":"Withhold this tool from the model until a tool search finds it."},"description":{"type":"string","description":"What the tool does."},"input_schema":{"additionalProperties":{"oneOf":[{}]},"properties":{"properties":{"description":"JSON Schema properties of the tool's input: one entry per argument name."},"required":{"oneOf":[{"items":{"type":"string"},"type":"array","description":"Input properties the model must always give."},{"items":{"type":"string"},"type":"null","description":"Input properties the model must always give."}]},"type":{"enum":["object"],"type":"string","description":"One of \"object\"."}},"required":["type"],"type":"object","description":"JSON Schema for the tool's input."},"name":{"type":"string","description":"Name of the tool; the model calls it by this name."},"strict":{"type":"boolean","description":"Make the model's tool inputs match input_schema exactly."},"type":{"enum":["custom"],"type":"string","description":"One of \"custom\"."}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"name":{"enum":["bash"],"type":"string","description":"Name of the tool; the model calls it by this name."},"type":{"enum":["bash_20250124"],"type":"string","description":"One of \"bash_20250124\"."}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"name":{"enum":["str_replace_editor"],"type":"string","description":"Name of the tool; the model calls it by this name."},"type":{"enum":["text_editor_20250124"],"type":"string","description":"One of \"text_editor_20250124\"."}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"allowed_domains":{"oneOf":[{"items":{"type":"string"},"type":"array","description":"Only these domains are searched."},{"items":{"type":"string"},"type":"null","description":"Only these domains are searched."}]},"blocked_domains":{"oneOf":[{"items":{"type":"string"},"type":"array","description":"Never search or fetch these domains; cannot be used with allowed_domains."},{"items":{"type":"string"},"type":"null","description":"Never search or fetch these domains; cannot be used with allowed_domains."}]},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"max_uses":{"oneOf":[{"type":"integer","description":"Most times the model may use this tool in one request."},{"type":"null","description":"Most times the model may use this tool in one request."}]},"name":{"enum":["web_search"],"type":"string","description":"Name of the tool; the model calls it by this name."},"type":{"enum":["web_search_20250305"],"type":"string","description":"One of \"web_search_20250305\"."},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"object","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization."},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"null","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization."}]}}},{"type":"object","description":"An Anthropic tool definition: a client-defined tool with a JSON Schema `input_schema`, or a server tool (bash, text editor, web search).","required":["type","name"],"example":{"name":"get_weather"},"properties":{"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow"},"type":"array","description":"Who may call this tool: \"direct\" (the model itself) and/or a code-execution tool version (\"code_execution_20250825\", \"code_execution_20260120\") calling it from inside a sandbox."},"allowed_domains":{"oneOf":[{"items":{"type":"string"},"type":"array","description":"Only these domains are searched."},{"items":{"type":"string"},"type":"null","description":"Only these domains are searched."}]},"blocked_domains":{"oneOf":[{"items":{"type":"string"},"type":"array","description":"Never search or fetch these domains; cannot be used with allowed_domains."},{"items":{"type":"string"},"type":"null","description":"Never search or fetch these domains; cannot be used with allowed_domains."}]},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"max_uses":{"oneOf":[{"type":"integer","description":"Most times the model may use this tool in one request."},{"type":"null","description":"Most times the model may use this tool in one request."}]},"name":{"enum":["web_search"],"type":"string","description":"Name of the tool; the model calls it by this name."},"type":{"enum":["web_search_20260209"],"type":"string","description":"One of \"web_search_20260209\"."},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"object","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization."},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"null","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization."}]}}}]},"type":{"enum":["tool_definition"],"type":"string","description":"One of \"tool_definition\"."}}}]},"type":{"enum":["tool_addition"],"type":"string","description":"One of \"tool_addition\"."}}},{"type":"object","description":"Removes a tool from the conversation mid-conversation without invalidating the prompt cache. Only valid in `role: \"system\"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.","required":["type","tool"],"example":{"tool":{"name":"get_weather","type":"tool_reference"},"type":"tool_removal"},"properties":{"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price)."},"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\"."}},"required":["type"],"type":"object"},"tool":{"oneOf":[{"type":"object","description":"The tool to remove: a tool by name, an MCP server's tool by name and server_name, or a whole MCP server's toolset by server_name.","required":["type","name"],"properties":{"name":{"type":"string","description":"Name of the tool to remove."},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\"."}}},{"type":"object","description":"The tool to remove: a tool by name, an MCP server's tool by name and server_name, or a whole MCP server's toolset by server_name.","required":["type","name","server_name"],"properties":{"name":{"type":"string","description":"Name of the tool to remove."},"server_name":{"type":"string","description":"Name of the MCP server."},"type":{"enum":["mcp_tool_reference"],"type":"string","description":"One of \"mcp_tool_reference\"."}}},{"type":"object","description":"The tool to remove: a tool by name, an MCP server's tool by name and server_name, or a whole MCP server's toolset by server_name.","required":["type","server_name"],"properties":{"server_name":{"type":"string","description":"Name of the MCP server."},"type":{"enum":["mcp_toolset_reference"],"type":"string","description":"One of \"mcp_toolset_reference\"."}}}]},"type":{"enum":["tool_removal"],"type":"string","description":"One of \"tool_removal\"."}}},{"type":"object","description":"Output of an `openrouter:shell` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string"},"content":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"What the shell command returned: its output, or an error."},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file."},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive."},"file_id":{"type":"string","description":"Id of the file."},"filename":{"type":"string","description":"Name of the file."},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts."},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\"."}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers."},"type":{"enum":["openrouter_shell_tool_result"],"type":"string","description":"One of \"openrouter_shell_tool_result\"."}}},{"type":"object","description":"Output of a sandbox-executed `openrouter:bash` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string"},"content":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"What the bash command returned: its output, or an error."},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file."},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive."},"file_id":{"type":"string","description":"Id of the file."},"filename":{"type":"string","description":"Name of the file."},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts."},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\"."}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object"},"type":"array"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers."},"type":{"enum":["openrouter_bash_tool_result"],"type":"string","description":"One of \"openrouter_bash_tool_result\"."}}},{"type":"object","description":"Router-owned deferred discovery result for continuation.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"openrouter_tool_search_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"The tool definitions the search selected, sent back to continue."},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers."},"type":{"enum":["openrouter_tool_search_result"],"type":"string","description":"One of \"openrouter_tool_search_result\"."}}}]},"description":"The message's content: a string or content blocks."}]},"output_config":{"oneOf":[{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default."},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default."}]}},"type":"object","description":"Output settings for this message, such as the effort the model should spend on it."},{"additionalProperties":false,"example":{"effort":"low"},"properties":{"effort":{"oneOf":[{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"string","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default."},{"enum":["low","medium","high","xhigh","max",null],"example":"high","type":"null","x-speakeasy-unknown-values":"allow","description":"How much effort the model spends on its answer, from \"low\" (fastest, fewest tokens) through \"medium\", \"high\" and \"xhigh\" to \"max\"; null leaves the model's default."}]}},"type":"null","description":"Output settings for this message, such as the effort the model should spend on it."}]},"role":{"enum":["user","assistant","system"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"user\", \"assistant\", \"system\"."}},"required":["role","content"],"type":"object"},"type":"null","description":"The conversation so far.","isRequired":true,"uniqueKey":"messages.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"messages","typeLabel":"object[] | null"},"model":{"type":"string","description":"Model id to send the request to, as listed by GET /models (e.g. anthropic/claude-sonnet-4.5).","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"cache_control","typeLabel":"object"},"context_management":{"oneOf":[{"properties":{"edits":{"items":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"enum":["clear_tool_uses_20250919"],"type":"string","description":"One of \"clear_tool_uses_20250919\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"clear_at_least":{"oneOf":[{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"Clear at least this many input tokens each time context editing runs.","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.0.value","typeLabel":"integer"}},"required":["type","value"],"type":"object","description":"The least context each clearing pass must free, in input tokens; a pass that would free less is skipped.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.0","typeLabel":"object"},{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\"."},"value":{"type":"integer","description":"Clear at least this many input tokens each time context editing runs."}},"required":["type","value"],"type":"null","description":"The least context each clearing pass must free, in input tokens; a pass that would free less is skipped.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_at_least","typeLabel":"object | null"},"clear_tool_inputs":{"oneOf":[{"type":"boolean","description":"Also clear the inputs of cleared tool calls.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.0","typeLabel":"boolean"},{"type":"array","items":{"type":"string","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.1.items.[INDEX]","typeLabel":"string"},"description":"Also clear the inputs of cleared tool calls.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.1","typeLabel":"string[]"},{"type":"null","description":"Also clear the inputs of cleared tool calls.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs.oneOf.2","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.clear_tool_inputs","typeLabel":"boolean | string[] | null"},"exclude_tools":{"oneOf":[{"items":{"type":"string","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Tools whose calls are never cleared.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Tools whose calls are never cleared.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.exclude_tools","typeLabel":"string[] | null"},"keep":{"example":{"type":"tool_uses","value":5},"properties":{"type":{"enum":["tool_uses"],"type":"string","description":"One of \"tool_uses\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.keep.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"How many of the most recent tool uses keep their results.","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.keep.value","typeLabel":"integer"}},"required":["type","value"],"type":"object","description":"How many of the most recent tool uses keep their results when older tool results are cleared from context.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.keep","typeLabel":"object"},"trigger":{"oneOf":[{"type":"object","description":"When context editing starts.","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"Context editing runs once the prompt reaches this many input tokens.","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.0.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.0","typeLabel":"object"},{"type":"object","description":"When context editing starts.","required":["type","value"],"example":{"type":"tool_uses","value":10},"properties":{"type":{"enum":["tool_uses"],"type":"string","description":"One of \"tool_uses\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.1.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"Context editing runs once the conversation holds this many tool uses.","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.1.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger.oneOf.1","typeLabel":"object"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0.trigger","typeLabel":"object"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["clear_thinking_20251015"],"type":"string","description":"One of \"clear_thinking_20251015\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"keep":{"oneOf":[{"type":"object","description":"How many recent tool calls to keep when clearing.","required":["type","value"],"example":{"type":"thinking_turns","value":3},"properties":{"type":{"enum":["thinking_turns"],"type":"string","description":"One of \"thinking_turns\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"How many recent assistant turns keep their thinking blocks.","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.0.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.0","typeLabel":"object"},{"type":"object","description":"How many recent tool calls to keep when clearing.","required":["type"],"properties":{"type":{"enum":["all"],"type":"string","description":"One of \"all\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.1","typeLabel":"object"},{"type":"string","description":"How many recent tool calls to keep when clearing.","enum":["all"],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep.oneOf.2","typeLabel":"enum\u003cstring>"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1.keep","typeLabel":"object · object · enum\u003cstring>"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"enum":["compact_20260112"],"type":"string","description":"One of \"compact_20260112\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"instructions":{"oneOf":[{"type":"string","description":"Instructions for how to compact the context.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"Instructions for how to compact the context.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.instructions","typeLabel":"string | null"},"pause_after_compaction":{"type":"boolean","description":"Stop after compacting the context so you can review it.","uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.pause_after_compaction","typeLabel":"boolean"},"trigger":{"oneOf":[{"type":"object","description":"When context editing starts.","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\".","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.0.type","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","description":"Context editing runs once the prompt reaches this many input tokens.","isRequired":true,"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.0.value","typeLabel":"integer"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.0","typeLabel":"object"},{"type":"null","description":"When context editing starts.","example":{"type":"input_tokens","value":100000},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2.trigger","typeLabel":"object | null"}},"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"context_management.oneOf.0.edits.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Context edits to apply when the conversation grows long.","uniqueKey":"context_management.oneOf.0.edits","typeLabel":"object[]"}},"type":"object","description":"Context editing: when to clear or compact old context, and how.","uniqueKey":"context_management.oneOf.0","typeLabel":"object"},{"properties":{"edits":{"items":{"oneOf":[{"type":"object","required":["type"],"properties":{"clear_at_least":{"oneOf":[{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\"."},"value":{"type":"integer","description":"Clear at least this many input tokens each time context editing runs."}},"required":["type","value"],"type":"object","description":"The least context each clearing pass must free, in input tokens; a pass that would free less is skipped."},{"example":{"type":"input_tokens","value":50000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\"."},"value":{"type":"integer","description":"Clear at least this many input tokens each time context editing runs."}},"required":["type","value"],"type":"null","description":"The least context each clearing pass must free, in input tokens; a pass that would free less is skipped."}]},"clear_tool_inputs":{"oneOf":[{"type":"boolean","description":"Also clear the inputs of cleared tool calls."},{"type":"array","items":{"type":"string"},"description":"Also clear the inputs of cleared tool calls."},{"type":"null","description":"Also clear the inputs of cleared tool calls."}]},"exclude_tools":{"oneOf":[{"items":{"type":"string"},"type":"array","description":"Tools whose calls are never cleared."},{"items":{"type":"string"},"type":"null","description":"Tools whose calls are never cleared."}]},"keep":{"example":{"type":"tool_uses","value":5},"properties":{"type":{"enum":["tool_uses"],"type":"string","description":"One of \"tool_uses\"."},"value":{"type":"integer","description":"How many of the most recent tool uses keep their results."}},"required":["type","value"],"type":"object","description":"How many of the most recent tool uses keep their results when older tool results are cleared from context."},"trigger":{"oneOf":[{"type":"object","description":"When context editing starts.","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\"."},"value":{"type":"integer","description":"Context editing runs once the prompt reaches this many input tokens."}}},{"type":"object","description":"When context editing starts.","required":["type","value"],"example":{"type":"tool_uses","value":10},"properties":{"type":{"enum":["tool_uses"],"type":"string","description":"One of \"tool_uses\"."},"value":{"type":"integer","description":"Context editing runs once the conversation holds this many tool uses."}}}]},"type":{"enum":["clear_tool_uses_20250919"],"type":"string","description":"One of \"clear_tool_uses_20250919\"."}}},{"type":"object","required":["type"],"properties":{"keep":{"oneOf":[{"type":"object","description":"How many recent tool calls to keep when clearing.","required":["type","value"],"example":{"type":"thinking_turns","value":3},"properties":{"type":{"enum":["thinking_turns"],"type":"string","description":"One of \"thinking_turns\"."},"value":{"type":"integer","description":"How many recent assistant turns keep their thinking blocks."}}},{"type":"object","description":"How many recent tool calls to keep when clearing.","required":["type"],"properties":{"type":{"enum":["all"],"type":"string","description":"One of \"all\"."}}},{"type":"string","description":"How many recent tool calls to keep when clearing.","enum":["all"]}]},"type":{"enum":["clear_thinking_20251015"],"type":"string","description":"One of \"clear_thinking_20251015\"."}}},{"type":"object","required":["type"],"properties":{"instructions":{"oneOf":[{"type":"string","description":"Instructions for how to compact the context."},{"type":"null","description":"Instructions for how to compact the context."}]},"pause_after_compaction":{"type":"boolean","description":"Stop after compacting the context so you can review it."},"trigger":{"oneOf":[{"type":"object","description":"When context editing starts.","required":["type","value"],"example":{"type":"input_tokens","value":100000},"properties":{"type":{"enum":["input_tokens"],"type":"string","description":"One of \"input_tokens\"."},"value":{"type":"integer","description":"Context editing runs once the prompt reaches this many input tokens."}}},{"type":"null","description":"When context editing starts.","example":{"type":"input_tokens","value":100000}}]},"type":{"enum":["compact_20260112"],"type":"string","description":"One of \"compact_20260112\"."}}}]},"type":"array","description":"Context edits to apply when the conversation grows long."}},"type":"null","description":"Context editing: when to clear or compact old context, and how.","uniqueKey":"context_management.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management","typeLabel":"object | null"},"deferred_tools":{"description":"Opt-in versioned router-level deferred-tool protocol. Replay assistant reasoning unchanged on continuation; keep the catalog unchanged.","example":{"profile":"portable","protocol":"v1","search":{"max_results":5,"type":"bm25"},"validation":"runtime"},"properties":{"profile":{"description":"Loading profile. Only `portable` is available in this release: OpenRouter serves deferral with router-built search and call wrappers on any model.","enum":["portable"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.profile","typeLabel":"enum\u003cstring>"},"protocol":{"enum":["v1"],"type":"string","description":"One of \"v1\".","isRequired":true,"uniqueKey":"deferred_tools.protocol","typeLabel":"enum\u003cstring>"},"search":{"oneOf":[{"type":"object","description":"Router-local regex/BM25 or caller-owned custom search.","required":["type"],"example":{"max_results":5,"type":"bm25"},"properties":{"type":{"enum":["regex"],"type":"string","description":"One of \"regex\".","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.0.type","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","description":"Most results to return.","uniqueKey":"deferred_tools.search.oneOf.0.max_results","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.0","typeLabel":"object"},{"type":"object","description":"Router-local regex/BM25 or caller-owned custom search.","required":["type"],"example":{"max_results":5,"type":"bm25"},"properties":{"type":{"enum":["bm25"],"type":"string","description":"One of \"bm25\".","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.1.type","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","description":"Most results to return.","uniqueKey":"deferred_tools.search.oneOf.1.max_results","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.1","typeLabel":"object"},{"type":"object","description":"Router-local regex/BM25 or caller-owned custom search.","required":["type","tool_id","result_key"],"example":{"max_results":5,"result_key":"tool_names","tool_id":"search_catalog","type":"bm25"},"properties":{"result_key":{"minLength":1,"type":"string","description":"Field of the result that holds the tool ids.","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2.result_key","typeLabel":"string"},"tool_id":{"minLength":1,"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["custom"],"type":"string","description":"One of \"custom\".","isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2.type","typeLabel":"enum\u003cstring>"},"max_results":{"type":"integer","description":"Most results to return.","uniqueKey":"deferred_tools.search.oneOf.2.max_results","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"deferred_tools.search.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"deferred_tools.search","typeLabel":"object"},"validation":{"description":"Where tool-call arguments are checked against the original schema. Only `runtime` (in OpenRouter) is available in this release.","enum":["runtime"],"type":"string","isRequired":true,"uniqueKey":"deferred_tools.validation","typeLabel":"enum\u003cstring>"}},"required":["protocol","profile","validation","search"],"type":"object","uniqueKey":"deferred_tools","typeLabel":"object"},"fallbacks":{"oneOf":[{"description":"Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.","example":[{"model":"claude-opus-4-8"}],"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"fallbacks.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.","example":{"model":"claude-opus-4-8"},"properties":{"model":{"type":"string","description":"Model to fall back to.","isRequired":true,"uniqueKey":"fallbacks.oneOf.0.items.[INDEX].model","typeLabel":"string"}},"required":["model"],"type":"object","uniqueKey":"fallbacks.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"fallbacks.oneOf.0","typeLabel":"object[]"},{"description":"Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts only `model`. Maximum of 3 entries.","example":[{"model":"claude-opus-4-8"}],"items":{"additionalProperties":{"oneOf":[{}]},"description":"Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt overrides are rejected.","example":{"model":"claude-opus-4-8"},"properties":{"model":{"type":"string","description":"Model to fall back to."}},"required":["model"],"type":"object"},"type":"null","uniqueKey":"fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"fallbacks","typeLabel":"object[] | null"},"max_tokens":{"type":"integer","description":"Most tokens the model may generate.","uniqueKey":"max_tokens","typeLabel":"integer"},"metadata":{"properties":{"user_id":{"oneOf":[{"type":"string","description":"Your own id for the end user making the request, so the provider can detect abuse; never an email or name.","uniqueKey":"metadata.user_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Your own id for the end user making the request, so the provider can detect abuse; never an email or name.","uniqueKey":"metadata.user_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata.user_id","typeLabel":"string | null"}},"title":"MessagesRequestMetadata","type":"object","description":"Request metadata, such as user_id.","uniqueKey":"metadata","typeLabel":"MessagesRequestMetadata · object"},"models":{"items":{"type":"string","uniqueKey":"models.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Models to try in order when one is unavailable.","uniqueKey":"models","typeLabel":"string[]"},"output_config":{"description":"Configuration for controlling output behavior. Supports the effort parameter and structured output format.","example":{"effort":"medium"},"properties":{"effort":{"oneOf":[{"description":"How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.","enum":["low","medium","high","xhigh","max",null],"example":"medium","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"output_config.effort.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.","enum":["low","medium","high","xhigh","max",null],"example":"medium","type":"null","x-speakeasy-unknown-values":"allow","uniqueKey":"output_config.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.effort","typeLabel":"enum\u003cstring> | null"},"format":{"oneOf":[{"description":"A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs).","properties":{"schema":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"output_config.format.oneOf.0.schema.additionalProperties","typeLabel":"any"},"type":"object","description":"JSON Schema the output must follow.","isRequired":true,"uniqueKey":"output_config.format.oneOf.0.schema","typeLabel":"object"},"type":{"enum":["json_schema"],"type":"string","description":"One of \"json_schema\".","isRequired":true,"uniqueKey":"output_config.format.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"required":["type","schema"],"type":"object","uniqueKey":"output_config.format.oneOf.0","typeLabel":"object"},{"description":"A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs).","properties":{"schema":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"JSON Schema the output must follow."},"type":{"enum":["json_schema"],"type":"string","description":"One of \"json_schema\"."}},"required":["type","schema"],"type":"null","uniqueKey":"output_config.format.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.format","typeLabel":"object | null"},"task_budget":{"oneOf":[{"description":"Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.","example":{"total":400000,"type":"tokens"},"properties":{"total":{"minimum":20000,"type":"integer","description":"Tokens in the whole task budget, at least 20000.","isRequired":true,"uniqueKey":"output_config.task_budget.oneOf.0.total","typeLabel":"integer"},"type":{"enum":["tokens"],"type":"string","description":"One of \"tokens\".","isRequired":true,"uniqueKey":"output_config.task_budget.oneOf.0.type","typeLabel":"enum\u003cstring>"},"remaining":{"oneOf":[{"minimum":0,"type":"integer","description":"Tokens left in the task budget, or null to start from total.","uniqueKey":"output_config.task_budget.oneOf.0.remaining.oneOf.0","typeLabel":"integer"},{"minimum":0,"type":"null","description":"Tokens left in the task budget, or null to start from total.","uniqueKey":"output_config.task_budget.oneOf.0.remaining.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.task_budget.oneOf.0.remaining","typeLabel":"integer | null"}},"required":["type","total"],"type":"object","uniqueKey":"output_config.task_budget.oneOf.0","typeLabel":"object"},{"description":"Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.","example":{"total":400000,"type":"tokens"},"properties":{"remaining":{"oneOf":[{"minimum":0,"type":"integer","description":"Tokens left in the task budget, or null to start from total."},{"minimum":0,"type":"null","description":"Tokens left in the task budget, or null to start from total."}]},"total":{"minimum":20000,"type":"integer","description":"Tokens in the whole task budget, at least 20000."},"type":{"enum":["tokens"],"type":"string","description":"One of \"tokens\"."}},"required":["type","total"],"type":"null","uniqueKey":"output_config.task_budget.oneOf.1","typeLabel":"null"}],"uniqueKey":"output_config.task_budget","typeLabel":"object | null"}},"type":"object","uniqueKey":"output_config","typeLabel":"object"},"plugins":{"description":"Plugins you want to enable for this request, including their settings.","items":{"oneOf":[{"type":"object","required":["id"],"example":{"allowed_models":["anthropic/*","openai/*"],"cost_tier":"low","enabled":true,"excluded_models":["openai/gpt-4o"],"id":"auto-router","pin_model":false},"properties":{"id":{"enum":["auto-router"],"type":"string","description":"One of \"auto-router\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.0.id","typeLabel":"enum\u003cstring>"},"allowed_models":{"description":"List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.","example":["anthropic/*","openai/gpt-4o","google/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.allowed_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.0.allowed_models","typeLabel":"string[]"},"cost_quality_tradeoff":{"deprecated":true,"description":"Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.","example":9,"maximum":10,"minimum":0,"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.0.cost_quality_tradeoff","typeLabel":"integer"},"cost_tier":{"description":"Named cost/quality setting. Tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.","enum":["low","medium","high","xhigh","max"],"example":"low","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.0.cost_tier","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the auto-router plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.0.enabled","typeLabel":"boolean"},"excluded_models":{"description":"List of model patterns to exclude from auto-router selection. Supports wildcards (e.g., \"meta-llama/*\" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one.","example":["openai/gpt-4o","meta-llama/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.0.excluded_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.0.excluded_models","typeLabel":"string[]"},"pin_model":{"description":"When true, reuses the model from the most recent assistant message's `model` attribute for subsequent turns. Defaults to false.","example":false,"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.0.pin_model","typeLabel":"boolean"}},"uniqueKey":"plugins.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["id"],"example":{"allowed_models":["anthropic/*","openai/*"],"cost_tier":"low","enabled":true,"excluded_models":["openai/gpt-4o"],"id":"auto-beta-router"},"properties":{"id":{"enum":["auto-beta-router"],"type":"string","description":"One of \"auto-beta-router\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.1.id","typeLabel":"enum\u003cstring>"},"allowed_models":{"description":"List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.","example":["anthropic/*","openai/gpt-4o","google/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.allowed_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.1.allowed_models","typeLabel":"string[]"},"cost_quality_tradeoff":{"deprecated":true,"description":"Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.","example":9,"maximum":10,"minimum":0,"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.1.cost_quality_tradeoff","typeLabel":"integer"},"cost_tier":{"description":"Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.","enum":["low","medium","high","xhigh","max"],"example":"low","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.1.cost_tier","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the auto-beta-router plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.1.enabled","typeLabel":"boolean"},"excluded_models":{"description":"List of model patterns to exclude from auto-beta-router selection. Supports wildcards (e.g., \"meta-llama/*\" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one.","example":["openai/gpt-4o","meta-llama/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.1.excluded_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.1.excluded_models","typeLabel":"string[]"}},"uniqueKey":"plugins.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["id"],"example":{"id":"moderation"},"properties":{"id":{"enum":["moderation"],"type":"string","description":"One of \"moderation\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.2.id","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"web","max_results":5},"properties":{"id":{"enum":["web"],"type":"string","description":"One of \"web\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.3.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the web-search plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.3.enabled","typeLabel":"boolean"},"engine":{"description":"The search engine to use for web search.","enum":["native","exa","firecrawl","parallel","perplexity"],"example":"exa","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.3.engine","typeLabel":"enum\u003cstring>"},"exclude_domains":{"description":"A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\").","example":["example.com","*.substack.com","openai.com/blog"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.exclude_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.exclude_domains","typeLabel":"string[]"},"include_domains":{"description":"A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\").","example":["example.com","*.substack.com","openai.com/blog"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.include_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.include_domains","typeLabel":"string[]"},"max_results":{"type":"integer","description":"Most results to return.","uniqueKey":"plugins.items.[INDEX].oneOf.3.max_results","typeLabel":"integer"},"max_uses":{"description":"Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic).","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.3.max_uses","typeLabel":"integer"},"mode":{"description":"Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.","enum":["instant","fast","auto","deep-lite","deep","deep-reasoning","turbo","basic","advanced"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.3.mode","typeLabel":"enum\u003cstring>"},"search_prompt":{"type":"string","description":"Prompt used to frame the search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.search_prompt","typeLabel":"string"},"user_location":{"oneOf":[{"type":"object","description":"Approximate location used to localize search results.","required":["type"],"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","description":"City used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"City used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter country code used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region (such as a state) used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone used to localize search results.","uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"type":"null","description":"Approximate location used to localize search results.","required":["type"],"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"},"x_search":{"additionalProperties":false,"description":"Enable SpaceXAI X (Twitter) search alongside native web search, with optional filters. Only applies to SpaceXAI endpoints with native search; omit to search the web only. X search is billed separately by SpaceXAI, per post and per user profile fetched.","example":{"allowed_x_handles":["OpenRouterAI"],"from_date":"2025-01-01"},"properties":{"allowed_x_handles":{"description":"Only include posts from these X handles (max 20). Cannot be used with excluded_x_handles.","example":["OpenRouterAI"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.allowed_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.allowed_x_handles","typeLabel":"string[]"},"enable_image_understanding":{"description":"Analyze images attached to matching posts.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.enable_image_understanding","typeLabel":"boolean"},"enable_video_understanding":{"description":"Analyze videos attached to matching posts.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.enable_video_understanding","typeLabel":"boolean"},"excluded_x_handles":{"description":"Exclude posts from these X handles (max 20). Cannot be used with allowed_x_handles.","example":["spamaccount"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.excluded_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.excluded_x_handles","typeLabel":"string[]"},"from_date":{"description":"Start of the post date range (ISO 8601 date, e.g. \"2025-01-01\").","example":"2025-01-01","format":"date","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.from_date","typeLabel":"string\u003cdate>"},"to_date":{"description":"End of the post date range (ISO 8601 date, e.g. \"2025-12-31\").","example":"2025-12-31","format":"date","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search.to_date","typeLabel":"string\u003cdate>"}},"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.3.x_search","typeLabel":"object"}},"uniqueKey":"plugins.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["id"],"example":{"id":"web-fetch","max_uses":10},"properties":{"id":{"enum":["web-fetch"],"type":"string","description":"One of \"web-fetch\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.4.id","typeLabel":"enum\u003cstring>"},"allowed_domains":{"description":"Only fetch from these domains.","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.4.allowed_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.4.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"description":"Never fetch from these domains.","items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.4.blocked_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.4.blocked_domains","typeLabel":"string[]"},"max_content_tokens":{"description":"Maximum content length in approximate tokens. Content exceeding this limit is truncated.","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.4.max_content_tokens","typeLabel":"integer"},"max_uses":{"description":"Maximum number of web fetches per request. Once exceeded, the tool returns an error.","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.4.max_uses","typeLabel":"integer"}},"uniqueKey":"plugins.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"file-parser","pdf":{"engine":"cloudflare-ai"}},"properties":{"id":{"enum":["file-parser"],"type":"string","description":"One of \"file-parser\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.5.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the file-parser plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.5.enabled","typeLabel":"boolean"},"pdf":{"description":"Options for PDF parsing.","example":{"engine":"cloudflare-ai"},"properties":{"engine":{"oneOf":[{"type":"string","description":"The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\".","enum":["mistral-ocr","native","cloudflare-ai"],"x-speakeasy-unknown-values":"allow","example":"cloudflare-ai","uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf.engine.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"The engine to use for parsing PDF files. \"pdf-text\" is deprecated and automatically redirected to \"cloudflare-ai\".","enum":["pdf-text"],"example":"cloudflare-ai","uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf.engine.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf.engine","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.5.pdf","typeLabel":"object"}},"uniqueKey":"plugins.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"response-healing"},"properties":{"id":{"enum":["response-healing"],"type":"string","description":"One of \"response-healing\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.6.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the response-healing plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.6.enabled","typeLabel":"boolean"}},"uniqueKey":"plugins.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"engine":"middle-out","id":"context-compression"},"properties":{"id":{"enum":["context-compression"],"type":"string","description":"One of \"context-compression\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.7.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the context-compression plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.7.enabled","typeLabel":"boolean"},"engine":{"description":"The compression engine to use. Defaults to \"middle-out\".","enum":["middle-out"],"example":"middle-out","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.7.engine","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["id"],"example":{"enabled":true,"id":"pareto-router","max_price":5,"price_source":"prompt"},"properties":{"id":{"enum":["pareto-router"],"type":"string","description":"One of \"pareto-router\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.8.id","typeLabel":"enum\u003cstring>"},"enabled":{"description":"Set to false to disable the pareto-router plugin for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.8.enabled","typeLabel":"boolean"},"max_price":{"description":"Maximum input price in USD per million tokens. When set, quality-tier selection (min_coding_score) is bypassed: the router computes the Pareto frontier over the top coding models and routes to the best-scoring frontier model priced at or below this cap, falling back through cheaper frontier models, then non-frontier models. Enforced against the price source given by price_source. Returns 404 when no candidate satisfies the cap.","example":5,"format":"double","minimum":0,"type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.8.max_price","typeLabel":"number\u003cdouble>"},"min_coding_score":{"description":"Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), \u003c 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). Not used when max_price is set (price-based selection takes over).","example":0.8,"format":"double","maximum":1,"minimum":0,"type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.8.min_coding_score","typeLabel":"number\u003cdouble>"},"price_source":{"description":"Price source for the Pareto frontier cost axis and for enforcing max_price. \"prompt\" uses catalog list price (endpoint.pricing.prompt). \"weighted_avg\" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to \"prompt\".","enum":["prompt","weighted_avg"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.8.price_source","typeLabel":"enum\u003cstring>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["id"],"example":{"analysis_models":["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"],"enabled":true,"id":"fusion","model":"~anthropic/claude-opus-latest"},"properties":{"id":{"enum":["fusion"],"type":"string","description":"One of \"fusion\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.9.id","typeLabel":"enum\u003cstring>"},"analysis_models":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, slugs of models to run in parallel as the \"expert panel\" the analyst analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-sol-latest, ~google/gemini-pro-latest).","example":["~anthropic/claude-opus-latest","~openai/gpt-sol-latest","~google/gemini-pro-latest"],"items":{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.analysis_models.items.[INDEX]","typeLabel":"string"},"maxItems":8,"minItems":1,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.9.analysis_models","typeLabel":"string[]"},"enabled":{"description":"Set to false to disable Fusion configuration for a run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.enabled","typeLabel":"boolean"},"max_tool_calls":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the maximum number of tool-calling steps each panelist (analysis model) and the analyst model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 4. Capped at 16.","example":12,"maximum":16,"minimum":1,"type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.9.max_tool_calls","typeLabel":"integer"},"model":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, the slug of the model that performs both the analyst step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.","example":"~anthropic/claude-opus-latest","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.model","typeLabel":"string"},"preset":{"description":"Configuration for a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool. A curated OpenRouter preset (slugs follow `\u003ctask>-\u003ctier>`, e.g. `general-high`). Expands server-side into the preset's analysis_models panel and analyst model, so callers never name individual models. Explicitly provided `analysis_models` / `model` take precedence.","enum":["general-high","general-budget","general-fast"],"example":"general-high","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.9.preset","typeLabel":"enum\u003cstring>"},"tools":{"description":"For a Fusion run started by the `openrouter/fusion` model slug or `openrouter:fusion` server tool, server tools available to panelist and analyst inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: \"openrouter:web_search\" }, { type: \"openrouter:web_fetch\" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).","example":[{"parameters":{"excluded_domains":["example.com"]},"type":"openrouter:web_search"},{"type":"openrouter:web_fetch"}],"items":{"properties":{"type":{"description":"Server tool type identifier (e.g. \"openrouter:web_search\", \"openrouter:web_fetch\").","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].type","typeLabel":"string"},"parameters":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.3","typeLabel":"null"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX].oneOf.4","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"string · number\u003cdouble> · boolean · null · null"},"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.4","typeLabel":"string · number\u003cdouble> · boolean · null · null[]"},{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.3","typeLabel":"null"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties.oneOf.4","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5.additionalProperties","typeLabel":"string · number\u003cdouble> · boolean · null · null"},"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.5","typeLabel":"object"},{"type":"null","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties.oneOf.6","typeLabel":"null"}],"uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters.additionalProperties","typeLabel":"string · number\u003cdouble> · boolean · null · string · number\u003cdouble> · boolean · null · null[] · object · null"},"description":"Optional configuration forwarded as the tool's `parameters` object.","type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX].parameters","typeLabel":"object"}},"required":["type"],"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools.items.[INDEX]","typeLabel":"object"},"maxItems":8,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.9.tools","typeLabel":"object[]"}},"uniqueKey":"plugins.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["id"],"example":{"algorithm":"stage","id":"switchyard-router"},"properties":{"id":{"enum":["switchyard-router"],"type":"string","description":"One of \"switchyard-router\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.10.id","typeLabel":"enum\u003cstring>"},"algorithm":{"description":"Routing algorithm for this request. \"capability\" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. \"stage\" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. \"auto\" is \"stage\" without the judge call. \"random\" picks one candidate at random. \"composite\" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. \"passthrough\" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, stage.","enum":["capability","stage","auto","random","composite","passthrough"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.10.algorithm","typeLabel":"enum\u003cstring>"},"judge_model":{"description":"The model that runs the judge call for the judge-backed algorithms (\"capability\", \"stage\", and \"composite\"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-3.5-flash-lite, or openai/gpt-4o-mini when the default does not fit either, and reports the reason in the routing metadata. The judge call is billed to you like any other request.","example":"openai/gpt-5.4-nano","minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.10.judge_model","typeLabel":"string"}},"uniqueKey":"plugins.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["id"],"example":{"excluded_models":["openai/gpt-6-astra"],"id":"jev-router","models":["anthropic/*","openai/gpt-5.6-sol"]},"properties":{"id":{"enum":["jev-router"],"type":"string","description":"One of \"jev-router\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.11.id","typeLabel":"enum\u003cstring>"},"allowed_models":{"description":"Alias of `models`, matching the auto-router field name. Entries from both fields are combined.","example":["anthropic/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.allowed_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.11.allowed_models","typeLabel":"string[]"},"cost_tier":{"description":"Select low, medium, high, or a cost tier configured by the operator. Overrides the live-config tier and replaces the shared routing policy with that tier. Omit to use the live configuration. Model exclusions and the router kill switch still apply.","example":"medium","pattern":"^[a-z][a-z0-9_-]{0,31}$","type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.cost_tier","typeLabel":"string"},"excluded_models":{"description":"Remove these models from the router. Each entry is a model slug or a wildcard pattern (e.g. \"xiaomi/*\"). A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after `models`, so an excluded pattern always wins over an included one; when the lists leave no model the request can use, it fails with 404 rather than routing outside them.","example":["openai/gpt-6-astra","xiaomi/*"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.excluded_models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.11.excluded_models","typeLabel":"string[]"},"models":{"description":"Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. \"anthropic/*\"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). When no entry matches any catalog model, for example a misspelled slug, the request fails with 404 instead. `allowed_models` is an alias; entries from both fields are combined.","example":["anthropic/*","openai/gpt-5.6-sol"],"items":{"maxLength":1024,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.11.models.items.[INDEX]","typeLabel":"string"},"maxItems":1024,"type":"array","uniqueKey":"plugins.items.[INDEX].oneOf.11.models","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"plugins.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","description":"Beta. States the listed rules to the model and evaluates every turn against them; the configuration, metadata, and error shapes may change.","required":["id","rules"],"example":{"id":"alignment","mode":"audit","rules":[{"rule":"Never offer a discount.","watch":["content"]}]},"properties":{"id":{"enum":["alignment"],"type":"string","description":"One of \"alignment\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.id","typeLabel":"enum\u003cstring>"},"rules":{"description":"Rules the reply must follow. Each rule is evaluated on its own.","example":[{"rule":"Never offer a discount.","watch":["content"]},{"rule":"Never call delete_file.","watch":["tool_calls"]}],"items":{"additionalProperties":false,"example":{"rule":"Never offer a discount.","watch":["content"]},"properties":{"rule":{"description":"Text that states what the reply must do or must not do.","maxLength":200,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX].rule","typeLabel":"string"},"watch":{"description":"Fields of the assistant message the rule applies to. The rule is evaluated on a message that has at least one of them and is not applicable to any other message.","items":{"enum":["content","tool_calls","refusal","images","audio"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX].watch.items.[INDEX]","typeLabel":"enum\u003cstring>"},"maxItems":5,"minItems":1,"type":"array","uniqueItems":true,"isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX].watch","typeLabel":"enum\u003cstring>[]"}},"required":["rule","watch"],"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.12.rules.items.[INDEX]","typeLabel":"object"},"maxItems":128,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.12.rules","typeLabel":"object[]"},"instruct":{"description":"Whether the rules are stated to the model in a system message on every provider call. Default true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.12.instruct","typeLabel":"boolean"},"max_retries":{"description":"Provider calls made again after a blocked turn, in enforce mode. Default 1.","type":"integer","uniqueKey":"plugins.items.[INDEX].oneOf.12.max_retries","typeLabel":"integer"},"mode":{"description":"`enforce`: a turn that breaks a rule is withheld, retried, and finally returned as an error. `audit`: every turn is evaluated and returned. Default `audit`.","enum":["enforce","audit"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.12.mode","typeLabel":"enum\u003cstring>"},"threshold":{"description":"Probability at or above which a rule is broken, from 0.01 to 1. Default 0.7.","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.12.threshold","typeLabel":"number\u003cdouble>"}},"additionalProperties":false,"uniqueKey":"plugins.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","description":"Evaluates every client tool call the model emits against a rule stack (hard-deny, soft-deny, allow) before it reaches the caller. The stack merges the workspace guardrail, this plugin, and any Anthropic `safeguards`; on endpoints that support Anthropic's `dangerous-tool-use` beta the evaluation is native, elsewhere it is one decisions call per tool call. Evaluation is not billed during the beta. Verdicts are reported as `safeguard_results`.","required":["id"],"example":{"classifier_context":{"auto_mode":{"environment":["Trusted repo: github.com/acme/app"],"soft_deny":[{"id":"no-migrations-delete","instructions":"Deleting a file under db/migrations."}]},"v":1},"id":"armor","use_cc_style_default_rules":true},"properties":{"id":{"enum":["armor"],"type":"string","description":"One of \"armor\".","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.id","typeLabel":"enum\u003cstring>"},"classifier_context":{"additionalProperties":{"description":"Carried unchanged; any JSON value.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.additionalProperties","typeLabel":"any"},"description":"The Armor context: Claude Code's `classifier_context` (v1), with `auto_mode.{hard_deny,soft_deny,allow}` rules as strings or `{ id, instructions, threshold? }` objects and `auto_mode.environment` entries as `\"Name: value\"` strings or `{ name, value }` objects. `threshold` applies when Armor evaluates; when the provider evaluates natively (Anthropic dangerous-tool-use beta) rules are judged at the provider's own boundary.","example":{"auto_mode":{"allow":[],"environment":["Trusted repo: github.com/acme/app"],"hard_deny":[],"soft_deny":[{"id":"secrets-in-vcs","instructions":"Staging, committing or pushing a file that holds secrets, including indirectly through git add -A when the tree shows one."}]},"v":1},"properties":{"v":{"enum":[1],"type":"number","description":"One of 1.","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.v","typeLabel":"enum\u003cnumber>"},"auto_mode":{"properties":{"allow":{"items":{"oneOf":[{"type":"string","maxLength":8122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["id","instructions"],"properties":{"id":{"description":"Stable id, unique within its source; reported as the deciding rule when it fires.","maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.id","typeLabel":"string"},"instructions":{"description":"What the rule matches, written for the classifier.","maxLength":8000,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"name":{"description":"Display name shown in verdict explanations; defaults to the id.","maxLength":120,"minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.name","typeLabel":"string"},"threshold":{"description":"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1.threshold","typeLabel":"number\u003cdouble>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow.items.[INDEX]","typeLabel":"string | object"},"type":"array","description":"Actions Armor allows without asking.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.allow","typeLabel":"(string | object)[]"},"environment":{"items":{"oneOf":[{"type":"string","maxLength":4122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["name","value"],"properties":{"name":{"maxLength":120,"minLength":1,"type":"string","description":"Name of the environment variable.","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.1.name","typeLabel":"string"},"value":{"maxLength":4000,"type":"string","description":"The environment variable's value.","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.1.value","typeLabel":"string"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment.items.[INDEX]","typeLabel":"string | object"},"type":"array","description":"What Armor may assume about the environment the tools run in.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.environment","typeLabel":"(string | object)[]"},"hard_deny":{"items":{"oneOf":[{"type":"string","maxLength":8122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["id","instructions"],"properties":{"id":{"description":"Stable id, unique within its source; reported as the deciding rule when it fires.","maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.id","typeLabel":"string"},"instructions":{"description":"What the rule matches, written for the classifier.","maxLength":8000,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"name":{"description":"Display name shown in verdict explanations; defaults to the id.","maxLength":120,"minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.name","typeLabel":"string"},"threshold":{"description":"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1.threshold","typeLabel":"number\u003cdouble>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny.items.[INDEX]","typeLabel":"string | object"},"type":"array","description":"Actions Armor always refuses.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.hard_deny","typeLabel":"(string | object)[]"},"soft_deny":{"items":{"oneOf":[{"type":"string","maxLength":8122,"minLength":1,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["id","instructions"],"properties":{"id":{"description":"Stable id, unique within its source; reported as the deciding rule when it fires.","maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9_-]*$","type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.id","typeLabel":"string"},"instructions":{"description":"What the rule matches, written for the classifier.","maxLength":8000,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.instructions","typeLabel":"string"},"name":{"description":"Display name shown in verdict explanations; defaults to the id.","maxLength":120,"minLength":1,"type":"string","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.name","typeLabel":"string"},"threshold":{"description":"Probability at or above which the rule counts as matched. Defaults to 0.6 for hard-deny and soft-deny rules and 0.7 for allow rules (an exception needs stronger evidence to clear a matched soft deny).","format":"double","type":"number","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1.threshold","typeLabel":"number\u003cdouble>"}},"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny.items.[INDEX]","typeLabel":"string | object"},"type":"array","description":"Actions Armor refuses unless the user approves.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode.soft_deny","typeLabel":"(string | object)[]"}},"type":"object","description":"Armor's auto-mode rules: which actions are always refused, refused unless the user approves, or allowed without asking, and what may be assumed about the environment.","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context.auto_mode","typeLabel":"object"}},"required":["v"],"type":"object","uniqueKey":"plugins.items.[INDEX].oneOf.13.classifier_context","typeLabel":"object"},"enabled":{"description":"Set to false to disable Armor for this request. Defaults to true.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.13.enabled","typeLabel":"boolean"},"evaluate_native_tools":{"description":"Run provider-native server tools (web search, code execution, ...) through the agent loop so Armor evaluates them too. Defaults to false: native passthrough stands and such calls are reported `skipped`.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.13.evaluate_native_tools","typeLabel":"boolean"},"mode":{"description":"`enforce` withholds blocked calls; `audit` evaluates and reports the same verdicts without withholding any calls, regardless of `on_error`. Default `enforce`.","enum":["enforce","audit"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.13.mode","typeLabel":"enum\u003cstring>"},"on_error":{"description":"When the classifier cannot answer (timeout, upstream error, context too long) the call is reported `unavailable`; `block` rejects it and `log` releases it. Default `block`.","enum":["log","block"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.13.on_error","typeLabel":"enum\u003cstring>"},"output_mode":{"description":"How a blocked call reaches the caller. `text` (the default): the call is withheld and an `\u003copenrouter_armor_blocked>` marker stands in assistant text. `custom_item` (Responses API only): the call is withheld and an `openrouter:armor_blocked` output item carries its id, name, arguments and the rule that fired. `claude_code_compatibility` (Messages API only; the default when the request carries a `dangerous_tool_use` safeguard, i.e. the client speaks Claude Code's protocol): the `tool_use` stays in `content[]` and the verdict is `flagged` in `safeguard_results`, so the client withholds execution and writes the error tool result as under the native classifier. Under `text` and `custom_item` the model received a failure result in the loop and continued in the same request; under `claude_code_compatibility` the turn ends on the flagged call and the model continues on the next request, after the client's denial.","enum":["text","custom_item","claude_code_compatibility"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"plugins.items.[INDEX].oneOf.13.output_mode","typeLabel":"enum\u003cstring>"},"use_cc_style_default_rules":{"description":"Prepend Claude Code's built-in auto-mode rule set (1 hard-deny, 72 soft-deny, 17 allow, 21 environment slots) ahead of every configured rule. Defaults to true on the Anthropic Messages API and false elsewhere.","type":"boolean","uniqueKey":"plugins.items.[INDEX].oneOf.13.use_cc_style_default_rules","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"plugins.items.[INDEX].oneOf.13","typeLabel":"object"}],"uniqueKey":"plugins.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"plugins","typeLabel":"object[]"},"provider":{"oneOf":[{"additionalProperties":false,"description":"When multiple model providers are available, optionally indicate your routing preference.","example":{"allow_fallbacks":true},"properties":{"allow_fallbacks":{"oneOf":[{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"boolean","uniqueKey":"provider.oneOf.0.allow_fallbacks.oneOf.0","typeLabel":"boolean"},{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"null","uniqueKey":"provider.oneOf.0.allow_fallbacks.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.allow_fallbacks","typeLabel":"boolean | null"},"data_collection":{"oneOf":[{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.data_collection.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"null","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.data_collection.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.data_collection","typeLabel":"enum\u003cstring> | null"},"enforce_distillable_text":{"oneOf":[{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"boolean","uniqueKey":"provider.oneOf.0.enforce_distillable_text.oneOf.0","typeLabel":"boolean"},{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"null","uniqueKey":"provider.oneOf.0.enforce_distillable_text.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.enforce_distillable_text","typeLabel":"boolean | null"},"ignore":{"oneOf":[{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI","uniqueKey":"provider.oneOf.0.ignore.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"provider.oneOf.0.ignore.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.oneOf.0.ignore.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring> | string"},"type":"array","uniqueKey":"provider.oneOf.0.ignore.oneOf.0","typeLabel":"(enum\u003cstring> | string)[]"},{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"null","uniqueKey":"provider.oneOf.0.ignore.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.ignore","typeLabel":"(enum\u003cstring> | string)[] | null"},"max_price":{"description":"The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.","properties":{"audio":{"description":"Maximum price in USD per audio unit","type":"string","uniqueKey":"provider.oneOf.0.max_price.audio","typeLabel":"string"},"completion":{"description":"Maximum price in USD per million completion tokens","type":"string","uniqueKey":"provider.oneOf.0.max_price.completion","typeLabel":"string"},"image":{"description":"Maximum price in USD per image","type":"string","uniqueKey":"provider.oneOf.0.max_price.image","typeLabel":"string"},"prompt":{"description":"Maximum price in USD per million prompt tokens","type":"string","uniqueKey":"provider.oneOf.0.max_price.prompt","typeLabel":"string"},"request":{"description":"Maximum price in USD per request","type":"string","uniqueKey":"provider.oneOf.0.max_price.request","typeLabel":"string"}},"type":"object","uniqueKey":"provider.oneOf.0.max_price","typeLabel":"object"},"only":{"oneOf":[{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI","uniqueKey":"provider.oneOf.0.only.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"provider.oneOf.0.only.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.oneOf.0.only.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring> | string"},"type":"array","uniqueKey":"provider.oneOf.0.only.oneOf.0","typeLabel":"(enum\u003cstring> | string)[]"},{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"null","uniqueKey":"provider.oneOf.0.only.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.only","typeLabel":"(enum\u003cstring> | string)[] | null"},"options":{"description":"Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.","example":{"openai":{"max_tokens":1000}},"properties":{"01ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.01ai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the 01ai provider.","uniqueKey":"provider.oneOf.0.options.01ai","typeLabel":"object"},"ai21":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ai21.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the ai21 provider.","uniqueKey":"provider.oneOf.0.options.ai21","typeLabel":"object"},"aion-labs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.aion-labs.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the aion-labs provider.","uniqueKey":"provider.oneOf.0.options.aion-labs","typeLabel":"object"},"akashml":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.akashml.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the akashml provider.","uniqueKey":"provider.oneOf.0.options.akashml","typeLabel":"object"},"alibaba":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.alibaba.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the alibaba provider.","uniqueKey":"provider.oneOf.0.options.alibaba","typeLabel":"object"},"amazon-bedrock":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.amazon-bedrock.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the amazon-bedrock provider.","uniqueKey":"provider.oneOf.0.options.amazon-bedrock","typeLabel":"object"},"amazon-bedrock/claude-on-aws":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.amazon-bedrock/claude-on-aws.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the amazon-bedrock/claude-on-aws provider.","uniqueKey":"provider.oneOf.0.options.amazon-bedrock/claude-on-aws","typeLabel":"object"},"amazon-nova":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.amazon-nova.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the amazon-nova provider.","uniqueKey":"provider.oneOf.0.options.amazon-nova","typeLabel":"object"},"ambient":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ambient.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the ambient provider.","uniqueKey":"provider.oneOf.0.options.ambient","typeLabel":"object"},"antdigital":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.antdigital.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the antdigital provider.","uniqueKey":"provider.oneOf.0.options.antdigital","typeLabel":"object"},"anthropic":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.anthropic.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the anthropic provider.","uniqueKey":"provider.oneOf.0.options.anthropic","typeLabel":"object"},"anthropic/2":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.anthropic/2.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the anthropic/2 provider.","uniqueKey":"provider.oneOf.0.options.anthropic/2","typeLabel":"object"},"anyscale":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.anyscale.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the anyscale provider.","uniqueKey":"provider.oneOf.0.options.anyscale","typeLabel":"object"},"arcee-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.arcee-ai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the arcee-ai provider.","uniqueKey":"provider.oneOf.0.options.arcee-ai","typeLabel":"object"},"assemblyai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.assemblyai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the assemblyai provider.","uniqueKey":"provider.oneOf.0.options.assemblyai","typeLabel":"object"},"atlas-cloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.atlas-cloud.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the atlas-cloud provider.","uniqueKey":"provider.oneOf.0.options.atlas-cloud","typeLabel":"object"},"atoma":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.atoma.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the atoma provider.","uniqueKey":"provider.oneOf.0.options.atoma","typeLabel":"object"},"avian":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.avian.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the avian provider.","uniqueKey":"provider.oneOf.0.options.avian","typeLabel":"object"},"azure":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.azure.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the azure provider.","uniqueKey":"provider.oneOf.0.options.azure","typeLabel":"object"},"baidu":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.baidu.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the baidu provider.","uniqueKey":"provider.oneOf.0.options.baidu","typeLabel":"object"},"baseten":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.baseten.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the baseten provider.","uniqueKey":"provider.oneOf.0.options.baseten","typeLabel":"object"},"black-forest-labs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.black-forest-labs.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the black-forest-labs provider.","uniqueKey":"provider.oneOf.0.options.black-forest-labs","typeLabel":"object"},"byteplus":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.byteplus.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the byteplus provider.","uniqueKey":"provider.oneOf.0.options.byteplus","typeLabel":"object"},"centml":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.centml.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the centml provider.","uniqueKey":"provider.oneOf.0.options.centml","typeLabel":"object"},"cerebras":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cerebras.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the cerebras provider.","uniqueKey":"provider.oneOf.0.options.cerebras","typeLabel":"object"},"chutes":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.chutes.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the chutes provider.","uniqueKey":"provider.oneOf.0.options.chutes","typeLabel":"object"},"cirrascale":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cirrascale.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the cirrascale provider.","uniqueKey":"provider.oneOf.0.options.cirrascale","typeLabel":"object"},"clarifai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.clarifai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the clarifai provider.","uniqueKey":"provider.oneOf.0.options.clarifai","typeLabel":"object"},"claude-on-aws":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.claude-on-aws.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the claude-on-aws provider.","uniqueKey":"provider.oneOf.0.options.claude-on-aws","typeLabel":"object"},"cloudflare":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cloudflare.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the cloudflare provider.","uniqueKey":"provider.oneOf.0.options.cloudflare","typeLabel":"object"},"cohere":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cohere.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the cohere provider.","uniqueKey":"provider.oneOf.0.options.cohere","typeLabel":"object"},"coreweave":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.coreweave.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the coreweave provider.","uniqueKey":"provider.oneOf.0.options.coreweave","typeLabel":"object"},"cosine":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.cosine.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the cosine provider.","uniqueKey":"provider.oneOf.0.options.cosine","typeLabel":"object"},"crofai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.crofai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the crofai provider.","uniqueKey":"provider.oneOf.0.options.crofai","typeLabel":"object"},"crucible":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.crucible.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the crucible provider.","uniqueKey":"provider.oneOf.0.options.crucible","typeLabel":"object"},"crusoe":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.crusoe.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the crusoe provider.","uniqueKey":"provider.oneOf.0.options.crusoe","typeLabel":"object"},"darkbloom":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.darkbloom.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the darkbloom provider.","uniqueKey":"provider.oneOf.0.options.darkbloom","typeLabel":"object"},"databricks":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.databricks.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the databricks provider.","uniqueKey":"provider.oneOf.0.options.databricks","typeLabel":"object"},"decart":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.decart.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the decart provider.","uniqueKey":"provider.oneOf.0.options.decart","typeLabel":"object"},"deepgram":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.deepgram.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the deepgram provider.","uniqueKey":"provider.oneOf.0.options.deepgram","typeLabel":"object"},"deepinfra":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.deepinfra.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the deepinfra provider.","uniqueKey":"provider.oneOf.0.options.deepinfra","typeLabel":"object"},"deepseek":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.deepseek.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the deepseek provider.","uniqueKey":"provider.oneOf.0.options.deepseek","typeLabel":"object"},"dekallm":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.dekallm.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the dekallm provider.","uniqueKey":"provider.oneOf.0.options.dekallm","typeLabel":"object"},"digitalocean":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.digitalocean.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the digitalocean provider.","uniqueKey":"provider.oneOf.0.options.digitalocean","typeLabel":"object"},"elevenlabs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.elevenlabs.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the elevenlabs provider.","uniqueKey":"provider.oneOf.0.options.elevenlabs","typeLabel":"object"},"enfer":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.enfer.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the enfer provider.","uniqueKey":"provider.oneOf.0.options.enfer","typeLabel":"object"},"fake-provider":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.fake-provider.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the fake-provider provider.","uniqueKey":"provider.oneOf.0.options.fake-provider","typeLabel":"object"},"featherless":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.featherless.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the featherless provider.","uniqueKey":"provider.oneOf.0.options.featherless","typeLabel":"object"},"fireworks":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.fireworks.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the fireworks provider.","uniqueKey":"provider.oneOf.0.options.fireworks","typeLabel":"object"},"fish-audio":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.fish-audio.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the fish-audio provider.","uniqueKey":"provider.oneOf.0.options.fish-audio","typeLabel":"object"},"friendli":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.friendli.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the friendli provider.","uniqueKey":"provider.oneOf.0.options.friendli","typeLabel":"object"},"gmicloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.gmicloud.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the gmicloud provider.","uniqueKey":"provider.oneOf.0.options.gmicloud","typeLabel":"object"},"google-ai-studio":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.google-ai-studio.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the google-ai-studio provider.","uniqueKey":"provider.oneOf.0.options.google-ai-studio","typeLabel":"object"},"google-vertex":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.google-vertex.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the google-vertex provider.","uniqueKey":"provider.oneOf.0.options.google-vertex","typeLabel":"object"},"gopomelo":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.gopomelo.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the gopomelo provider.","uniqueKey":"provider.oneOf.0.options.gopomelo","typeLabel":"object"},"groq":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.groq.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the groq provider.","uniqueKey":"provider.oneOf.0.options.groq","typeLabel":"object"},"heygen":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.heygen.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the heygen provider.","uniqueKey":"provider.oneOf.0.options.heygen","typeLabel":"object"},"huggingface":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.huggingface.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the huggingface provider.","uniqueKey":"provider.oneOf.0.options.huggingface","typeLabel":"object"},"hyperbolic":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.hyperbolic.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the hyperbolic provider.","uniqueKey":"provider.oneOf.0.options.hyperbolic","typeLabel":"object"},"hyperbolic-quantized":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.hyperbolic-quantized.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the hyperbolic-quantized provider.","uniqueKey":"provider.oneOf.0.options.hyperbolic-quantized","typeLabel":"object"},"inception":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inception.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the inception provider.","uniqueKey":"provider.oneOf.0.options.inception","typeLabel":"object"},"inceptron":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inceptron.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the inceptron provider.","uniqueKey":"provider.oneOf.0.options.inceptron","typeLabel":"object"},"inferact-vllm":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inferact-vllm.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the inferact-vllm provider.","uniqueKey":"provider.oneOf.0.options.inferact-vllm","typeLabel":"object"},"inference-net":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inference-net.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the inference-net provider.","uniqueKey":"provider.oneOf.0.options.inference-net","typeLabel":"object"},"infermatic":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.infermatic.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the infermatic provider.","uniqueKey":"provider.oneOf.0.options.infermatic","typeLabel":"object"},"inflection":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inflection.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the inflection provider.","uniqueKey":"provider.oneOf.0.options.inflection","typeLabel":"object"},"inocloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.inocloud.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the inocloud provider.","uniqueKey":"provider.oneOf.0.options.inocloud","typeLabel":"object"},"io-net":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.io-net.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the io-net provider.","uniqueKey":"provider.oneOf.0.options.io-net","typeLabel":"object"},"ionstream":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ionstream.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the ionstream provider.","uniqueKey":"provider.oneOf.0.options.ionstream","typeLabel":"object"},"klusterai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.klusterai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the klusterai provider.","uniqueKey":"provider.oneOf.0.options.klusterai","typeLabel":"object"},"krea":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.krea.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the krea provider.","uniqueKey":"provider.oneOf.0.options.krea","typeLabel":"object"},"kt":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.kt.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the kt provider.","uniqueKey":"provider.oneOf.0.options.kt","typeLabel":"object"},"lambda":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lambda.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the lambda provider.","uniqueKey":"provider.oneOf.0.options.lambda","typeLabel":"object"},"lepton":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lepton.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the lepton provider.","uniqueKey":"provider.oneOf.0.options.lepton","typeLabel":"object"},"liquid":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.liquid.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the liquid provider.","uniqueKey":"provider.oneOf.0.options.liquid","typeLabel":"object"},"lynn":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lynn.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the lynn provider.","uniqueKey":"provider.oneOf.0.options.lynn","typeLabel":"object"},"lynn-private":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.lynn-private.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the lynn-private provider.","uniqueKey":"provider.oneOf.0.options.lynn-private","typeLabel":"object"},"makora":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.makora.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the makora provider.","uniqueKey":"provider.oneOf.0.options.makora","typeLabel":"object"},"mancer":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mancer.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the mancer provider.","uniqueKey":"provider.oneOf.0.options.mancer","typeLabel":"object"},"mancer-old":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mancer-old.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the mancer-old provider.","uniqueKey":"provider.oneOf.0.options.mancer-old","typeLabel":"object"},"mara":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mara.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the mara provider.","uniqueKey":"provider.oneOf.0.options.mara","typeLabel":"object"},"meta":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.meta.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the meta provider.","uniqueKey":"provider.oneOf.0.options.meta","typeLabel":"object"},"minimax":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.minimax.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the minimax provider.","uniqueKey":"provider.oneOf.0.options.minimax","typeLabel":"object"},"mistral":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.mistral.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the mistral provider.","uniqueKey":"provider.oneOf.0.options.mistral","typeLabel":"object"},"modal":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.modal.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the modal provider.","uniqueKey":"provider.oneOf.0.options.modal","typeLabel":"object"},"modelrun":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.modelrun.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the modelrun provider.","uniqueKey":"provider.oneOf.0.options.modelrun","typeLabel":"object"},"modular":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.modular.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the modular provider.","uniqueKey":"provider.oneOf.0.options.modular","typeLabel":"object"},"moonshotai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.moonshotai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the moonshotai provider.","uniqueKey":"provider.oneOf.0.options.moonshotai","typeLabel":"object"},"morph":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.morph.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the morph provider.","uniqueKey":"provider.oneOf.0.options.morph","typeLabel":"object"},"ncompass":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ncompass.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the ncompass provider.","uniqueKey":"provider.oneOf.0.options.ncompass","typeLabel":"object"},"near-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.near-ai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the near-ai provider.","uniqueKey":"provider.oneOf.0.options.near-ai","typeLabel":"object"},"nebius":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nebius.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the nebius provider.","uniqueKey":"provider.oneOf.0.options.nebius","typeLabel":"object"},"nex-agi":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nex-agi.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the nex-agi provider.","uniqueKey":"provider.oneOf.0.options.nex-agi","typeLabel":"object"},"nextbit":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nextbit.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the nextbit provider.","uniqueKey":"provider.oneOf.0.options.nextbit","typeLabel":"object"},"nineteen":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nineteen.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the nineteen provider.","uniqueKey":"provider.oneOf.0.options.nineteen","typeLabel":"object"},"novita":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.novita.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the novita provider.","uniqueKey":"provider.oneOf.0.options.novita","typeLabel":"object"},"nvidia":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.nvidia.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the nvidia provider.","uniqueKey":"provider.oneOf.0.options.nvidia","typeLabel":"object"},"octoai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.octoai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the octoai provider.","uniqueKey":"provider.oneOf.0.options.octoai","typeLabel":"object"},"ollama":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ollama.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the ollama provider.","uniqueKey":"provider.oneOf.0.options.ollama","typeLabel":"object"},"open-inference":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.open-inference.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the open-inference provider.","uniqueKey":"provider.oneOf.0.options.open-inference","typeLabel":"object"},"openai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.openai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the openai provider.","uniqueKey":"provider.oneOf.0.options.openai","typeLabel":"object"},"parallel":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.parallel.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the parallel provider.","uniqueKey":"provider.oneOf.0.options.parallel","typeLabel":"object"},"parasail":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.parasail.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the parasail provider.","uniqueKey":"provider.oneOf.0.options.parasail","typeLabel":"object"},"pareto-alpha":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.pareto-alpha.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the pareto-alpha provider.","uniqueKey":"provider.oneOf.0.options.pareto-alpha","typeLabel":"object"},"particle-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.particle-ai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the particle-ai provider.","uniqueKey":"provider.oneOf.0.options.particle-ai","typeLabel":"object"},"pearl-research":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.pearl-research.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the pearl-research provider.","uniqueKey":"provider.oneOf.0.options.pearl-research","typeLabel":"object"},"perceptron":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.perceptron.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the perceptron provider.","uniqueKey":"provider.oneOf.0.options.perceptron","typeLabel":"object"},"perplexity":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.perplexity.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the perplexity provider.","uniqueKey":"provider.oneOf.0.options.perplexity","typeLabel":"object"},"phala":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.phala.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the phala provider.","uniqueKey":"provider.oneOf.0.options.phala","typeLabel":"object"},"poolside":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.poolside.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the poolside provider.","uniqueKey":"provider.oneOf.0.options.poolside","typeLabel":"object"},"primalabs":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.primalabs.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the primalabs provider.","uniqueKey":"provider.oneOf.0.options.primalabs","typeLabel":"object"},"primeintellect":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.primeintellect.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the primeintellect provider.","uniqueKey":"provider.oneOf.0.options.primeintellect","typeLabel":"object"},"quiver":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.quiver.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the quiver provider.","uniqueKey":"provider.oneOf.0.options.quiver","typeLabel":"object"},"recraft":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.recraft.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the recraft provider.","uniqueKey":"provider.oneOf.0.options.recraft","typeLabel":"object"},"recursal":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.recursal.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the recursal provider.","uniqueKey":"provider.oneOf.0.options.recursal","typeLabel":"object"},"recursive":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.recursive.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the recursive provider.","uniqueKey":"provider.oneOf.0.options.recursive","typeLabel":"object"},"reflection":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.reflection.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the reflection provider.","uniqueKey":"provider.oneOf.0.options.reflection","typeLabel":"object"},"reka":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.reka.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the reka provider.","uniqueKey":"provider.oneOf.0.options.reka","typeLabel":"object"},"relace":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.relace.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the relace provider.","uniqueKey":"provider.oneOf.0.options.relace","typeLabel":"object"},"replicate":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.replicate.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the replicate provider.","uniqueKey":"provider.oneOf.0.options.replicate","typeLabel":"object"},"respan":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.respan.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the respan provider.","uniqueKey":"provider.oneOf.0.options.respan","typeLabel":"object"},"runway":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.runway.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the runway provider.","uniqueKey":"provider.oneOf.0.options.runway","typeLabel":"object"},"sail-research":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sail-research.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sail-research provider.","uniqueKey":"provider.oneOf.0.options.sail-research","typeLabel":"object"},"sakana":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sakana.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sakana provider.","uniqueKey":"provider.oneOf.0.options.sakana","typeLabel":"object"},"sakana-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sakana-ai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sakana-ai provider.","uniqueKey":"provider.oneOf.0.options.sakana-ai","typeLabel":"object"},"sambanova":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sambanova.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sambanova provider.","uniqueKey":"provider.oneOf.0.options.sambanova","typeLabel":"object"},"sambanova-cloaked":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sambanova-cloaked.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sambanova-cloaked provider.","uniqueKey":"provider.oneOf.0.options.sambanova-cloaked","typeLabel":"object"},"scaledown":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.scaledown.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the scaledown provider.","uniqueKey":"provider.oneOf.0.options.scaledown","typeLabel":"object"},"seed":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.seed.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the seed provider.","uniqueKey":"provider.oneOf.0.options.seed","typeLabel":"object"},"sf-compute":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sf-compute.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sf-compute provider.","uniqueKey":"provider.oneOf.0.options.sf-compute","typeLabel":"object"},"siliconflow":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.siliconflow.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the siliconflow provider.","uniqueKey":"provider.oneOf.0.options.siliconflow","typeLabel":"object"},"sourceful":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.sourceful.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the sourceful provider.","uniqueKey":"provider.oneOf.0.options.sourceful","typeLabel":"object"},"stealth":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.stealth.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the stealth provider.","uniqueKey":"provider.oneOf.0.options.stealth","typeLabel":"object"},"stepfun":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.stepfun.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the stepfun provider.","uniqueKey":"provider.oneOf.0.options.stepfun","typeLabel":"object"},"streamlake":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.streamlake.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the streamlake provider.","uniqueKey":"provider.oneOf.0.options.streamlake","typeLabel":"object"},"switchpoint":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.switchpoint.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the switchpoint provider.","uniqueKey":"provider.oneOf.0.options.switchpoint","typeLabel":"object"},"targon":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.targon.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the targon provider.","uniqueKey":"provider.oneOf.0.options.targon","typeLabel":"object"},"tencent":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.tencent.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the tencent provider.","uniqueKey":"provider.oneOf.0.options.tencent","typeLabel":"object"},"tenstorrent":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.tenstorrent.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the tenstorrent provider.","uniqueKey":"provider.oneOf.0.options.tenstorrent","typeLabel":"object"},"thinkingmachines":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.thinkingmachines.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the thinkingmachines provider.","uniqueKey":"provider.oneOf.0.options.thinkingmachines","typeLabel":"object"},"together":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.together.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the together provider.","uniqueKey":"provider.oneOf.0.options.together","typeLabel":"object"},"together-lite":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.together-lite.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the together-lite provider.","uniqueKey":"provider.oneOf.0.options.together-lite","typeLabel":"object"},"typesafe":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.typesafe.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the typesafe provider.","uniqueKey":"provider.oneOf.0.options.typesafe","typeLabel":"object"},"ubicloud":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.ubicloud.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the ubicloud provider.","uniqueKey":"provider.oneOf.0.options.ubicloud","typeLabel":"object"},"unbiased":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.unbiased.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the unbiased provider.","uniqueKey":"provider.oneOf.0.options.unbiased","typeLabel":"object"},"upstage":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.upstage.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the upstage provider.","uniqueKey":"provider.oneOf.0.options.upstage","typeLabel":"object"},"venice":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.venice.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the venice provider.","uniqueKey":"provider.oneOf.0.options.venice","typeLabel":"object"},"voyageai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.voyageai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the voyageai provider.","uniqueKey":"provider.oneOf.0.options.voyageai","typeLabel":"object"},"wafer":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.wafer.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the wafer provider.","uniqueKey":"provider.oneOf.0.options.wafer","typeLabel":"object"},"wandb":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.wandb.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the wandb provider.","uniqueKey":"provider.oneOf.0.options.wandb","typeLabel":"object"},"wandb-legacy":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.wandb-legacy.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the wandb-legacy provider.","uniqueKey":"provider.oneOf.0.options.wandb-legacy","typeLabel":"object"},"xai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.xai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the xai provider.","uniqueKey":"provider.oneOf.0.options.xai","typeLabel":"object"},"xiaomi":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.xiaomi.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the xiaomi provider.","uniqueKey":"provider.oneOf.0.options.xiaomi","typeLabel":"object"},"z-ai":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"provider.oneOf.0.options.z-ai.additionalProperties","typeLabel":"any"},"type":"object","description":"Options sent only to the z-ai provider.","uniqueKey":"provider.oneOf.0.options.z-ai","typeLabel":"object"}},"type":"object","uniqueKey":"provider.oneOf.0.options","typeLabel":"object"},"order":{"oneOf":[{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI","uniqueKey":"provider.oneOf.0.order.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","uniqueKey":"provider.oneOf.0.order.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"provider.oneOf.0.order.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring> | string"},"type":"array","uniqueKey":"provider.oneOf.0.order.oneOf.0","typeLabel":"(enum\u003cstring> | string)[]"},{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"null","uniqueKey":"provider.oneOf.0.order.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.order","typeLabel":"(enum\u003cstring> | string)[] | null"},"preferred_max_latency":{"oneOf":[{"type":"number","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":5,"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"object","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5,"properties":{"p50":{"oneOf":[{"description":"Maximum p50 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p50.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p50 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p50.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p50","typeLabel":"number\u003cdouble> | null"},"p75":{"oneOf":[{"description":"Maximum p75 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p75.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p75 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p75.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p75","typeLabel":"number\u003cdouble> | null"},"p90":{"oneOf":[{"description":"Maximum p90 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p90.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p90 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p90.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p90","typeLabel":"number\u003cdouble> | null"},"p99":{"oneOf":[{"description":"Maximum p99 latency (seconds)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p99.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Maximum p99 latency (seconds)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p99.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1.p99","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.1","typeLabel":"object"},{"type":"null","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5,"uniqueKey":"provider.oneOf.0.preferred_max_latency.oneOf.2","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_max_latency","typeLabel":"number\u003cdouble> | object | null"},"preferred_min_throughput":{"oneOf":[{"type":"number","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":100,"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.0","typeLabel":"number\u003cdouble>"},{"type":"object","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100,"properties":{"p50":{"oneOf":[{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p50.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p50.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p50","typeLabel":"number\u003cdouble> | null"},"p75":{"oneOf":[{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p75.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p75.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p75","typeLabel":"number\u003cdouble> | null"},"p90":{"oneOf":[{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p90.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p90.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p90","typeLabel":"number\u003cdouble> | null"},"p99":{"oneOf":[{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"number","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p99.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"null","uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p99.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1.p99","typeLabel":"number\u003cdouble> | null"}},"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.1","typeLabel":"object"},{"type":"null","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100,"uniqueKey":"provider.oneOf.0.preferred_min_throughput.oneOf.2","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.preferred_min_throughput","typeLabel":"number\u003cdouble> | object | null"},"quantizations":{"oneOf":[{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.quantizations.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","uniqueKey":"provider.oneOf.0.quantizations.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string","x-speakeasy-unknown-values":"allow"},"type":"null","uniqueKey":"provider.oneOf.0.quantizations.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.quantizations","typeLabel":"enum\u003cstring>[] | null"},"require_parameters":{"oneOf":[{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"boolean","uniqueKey":"provider.oneOf.0.require_parameters.oneOf.0","typeLabel":"boolean"},{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"null","uniqueKey":"provider.oneOf.0.require_parameters.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.require_parameters","typeLabel":"boolean | null"},"sort":{"oneOf":[{"type":"string","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","enum":["price","throughput","latency","exacto"],"x-speakeasy-unknown-values":"allow","example":"price","uniqueKey":"provider.oneOf.0.sort.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"object","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price","properties":{"by":{"oneOf":[{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.sort.oneOf.1.by.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"null","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.sort.oneOf.1.by.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.sort.oneOf.1.by","typeLabel":"enum\u003cstring> | null"},"partition":{"oneOf":[{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.sort.oneOf.1.partition.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"null","x-speakeasy-unknown-values":"allow","uniqueKey":"provider.oneOf.0.sort.oneOf.1.partition.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.sort.oneOf.1.partition","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"provider.oneOf.0.sort.oneOf.1","typeLabel":"object"},{"type":"null","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price","uniqueKey":"provider.oneOf.0.sort.oneOf.2","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.sort","typeLabel":"enum\u003cstring> | object | null"},"zdr":{"oneOf":[{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"boolean","uniqueKey":"provider.oneOf.0.zdr.oneOf.0","typeLabel":"boolean"},{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"null","uniqueKey":"provider.oneOf.0.zdr.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider.oneOf.0.zdr","typeLabel":"boolean | null"}},"type":"object","uniqueKey":"provider.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"description":"When multiple model providers are available, optionally indicate your routing preference.","example":{"allow_fallbacks":true},"properties":{"allow_fallbacks":{"oneOf":[{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"boolean"},{"description":"Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n","type":"null"}]},"data_collection":{"oneOf":[{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"string","x-speakeasy-unknown-values":"allow"},{"description":"Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.","enum":["deny","allow",null],"example":"allow","type":"null","x-speakeasy-unknown-values":"allow"}]},"enforce_distillable_text":{"oneOf":[{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"boolean"},{"description":"Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used.","example":true,"type":"null"}]},"ignore":{"oneOf":[{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"array"},{"description":"List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"null"}]},"max_price":{"description":"The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.","properties":{"audio":{"description":"Maximum price in USD per audio unit","type":"string"},"completion":{"description":"Maximum price in USD per million completion tokens","type":"string"},"image":{"description":"Maximum price in USD per image","type":"string"},"prompt":{"description":"Maximum price in USD per million prompt tokens","type":"string"},"request":{"description":"Maximum price in USD per request","type":"string"}},"type":"object"},"only":{"oneOf":[{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"array"},{"description":"List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"null"}]},"options":{"description":"Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.","example":{"openai":{"max_tokens":1000}},"properties":{"01ai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the 01ai provider."},"ai21":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the ai21 provider."},"aion-labs":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the aion-labs provider."},"akashml":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the akashml provider."},"alibaba":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the alibaba provider."},"amazon-bedrock":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the amazon-bedrock provider."},"amazon-bedrock/claude-on-aws":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the amazon-bedrock/claude-on-aws provider."},"amazon-nova":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the amazon-nova provider."},"ambient":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the ambient provider."},"antdigital":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the antdigital provider."},"anthropic":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the anthropic provider."},"anthropic/2":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the anthropic/2 provider."},"anyscale":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the anyscale provider."},"arcee-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the arcee-ai provider."},"assemblyai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the assemblyai provider."},"atlas-cloud":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the atlas-cloud provider."},"atoma":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the atoma provider."},"avian":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the avian provider."},"azure":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the azure provider."},"baidu":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the baidu provider."},"baseten":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the baseten provider."},"black-forest-labs":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the black-forest-labs provider."},"byteplus":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the byteplus provider."},"centml":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the centml provider."},"cerebras":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the cerebras provider."},"chutes":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the chutes provider."},"cirrascale":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the cirrascale provider."},"clarifai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the clarifai provider."},"claude-on-aws":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the claude-on-aws provider."},"cloudflare":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the cloudflare provider."},"cohere":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the cohere provider."},"coreweave":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the coreweave provider."},"cosine":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the cosine provider."},"crofai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the crofai provider."},"crucible":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the crucible provider."},"crusoe":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the crusoe provider."},"darkbloom":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the darkbloom provider."},"databricks":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the databricks provider."},"decart":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the decart provider."},"deepgram":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the deepgram provider."},"deepinfra":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the deepinfra provider."},"deepseek":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the deepseek provider."},"dekallm":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the dekallm provider."},"digitalocean":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the digitalocean provider."},"elevenlabs":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the elevenlabs provider."},"enfer":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the enfer provider."},"fake-provider":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the fake-provider provider."},"featherless":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the featherless provider."},"fireworks":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the fireworks provider."},"fish-audio":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the fish-audio provider."},"friendli":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the friendli provider."},"gmicloud":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the gmicloud provider."},"google-ai-studio":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the google-ai-studio provider."},"google-vertex":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the google-vertex provider."},"gopomelo":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the gopomelo provider."},"groq":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the groq provider."},"heygen":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the heygen provider."},"huggingface":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the huggingface provider."},"hyperbolic":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the hyperbolic provider."},"hyperbolic-quantized":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the hyperbolic-quantized provider."},"inception":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the inception provider."},"inceptron":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the inceptron provider."},"inferact-vllm":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the inferact-vllm provider."},"inference-net":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the inference-net provider."},"infermatic":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the infermatic provider."},"inflection":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the inflection provider."},"inocloud":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the inocloud provider."},"io-net":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the io-net provider."},"ionstream":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the ionstream provider."},"klusterai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the klusterai provider."},"krea":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the krea provider."},"kt":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the kt provider."},"lambda":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the lambda provider."},"lepton":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the lepton provider."},"liquid":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the liquid provider."},"lynn":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the lynn provider."},"lynn-private":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the lynn-private provider."},"makora":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the makora provider."},"mancer":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the mancer provider."},"mancer-old":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the mancer-old provider."},"mara":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the mara provider."},"meta":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the meta provider."},"minimax":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the minimax provider."},"mistral":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the mistral provider."},"modal":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the modal provider."},"modelrun":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the modelrun provider."},"modular":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the modular provider."},"moonshotai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the moonshotai provider."},"morph":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the morph provider."},"ncompass":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the ncompass provider."},"near-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the near-ai provider."},"nebius":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the nebius provider."},"nex-agi":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the nex-agi provider."},"nextbit":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the nextbit provider."},"nineteen":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the nineteen provider."},"novita":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the novita provider."},"nvidia":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the nvidia provider."},"octoai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the octoai provider."},"ollama":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the ollama provider."},"open-inference":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the open-inference provider."},"openai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the openai provider."},"parallel":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the parallel provider."},"parasail":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the parasail provider."},"pareto-alpha":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the pareto-alpha provider."},"particle-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the particle-ai provider."},"pearl-research":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the pearl-research provider."},"perceptron":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the perceptron provider."},"perplexity":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the perplexity provider."},"phala":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the phala provider."},"poolside":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the poolside provider."},"primalabs":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the primalabs provider."},"primeintellect":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the primeintellect provider."},"quiver":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the quiver provider."},"recraft":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the recraft provider."},"recursal":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the recursal provider."},"recursive":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the recursive provider."},"reflection":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the reflection provider."},"reka":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the reka provider."},"relace":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the relace provider."},"replicate":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the replicate provider."},"respan":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the respan provider."},"runway":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the runway provider."},"sail-research":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sail-research provider."},"sakana":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sakana provider."},"sakana-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sakana-ai provider."},"sambanova":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sambanova provider."},"sambanova-cloaked":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sambanova-cloaked provider."},"scaledown":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the scaledown provider."},"seed":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the seed provider."},"sf-compute":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sf-compute provider."},"siliconflow":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the siliconflow provider."},"sourceful":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the sourceful provider."},"stealth":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the stealth provider."},"stepfun":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the stepfun provider."},"streamlake":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the streamlake provider."},"switchpoint":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the switchpoint provider."},"targon":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the targon provider."},"tencent":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the tencent provider."},"tenstorrent":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the tenstorrent provider."},"thinkingmachines":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the thinkingmachines provider."},"together":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the together provider."},"together-lite":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the together-lite provider."},"typesafe":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the typesafe provider."},"ubicloud":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the ubicloud provider."},"unbiased":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the unbiased provider."},"upstage":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the upstage provider."},"venice":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the venice provider."},"voyageai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the voyageai provider."},"wafer":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the wafer provider."},"wandb":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the wandb provider."},"wandb-legacy":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the wandb-legacy provider."},"xai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the xai provider."},"xiaomi":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the xiaomi provider."},"z-ai":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Options sent only to the z-ai provider."}},"type":"object"},"order":{"oneOf":[{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"array"},{"description":"An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.","example":["openai","anthropic"],"items":{"oneOf":[{"type":"string","description":"The display name of the provider serving the endpoint, such as \"OpenAI\", \"Anthropic\", \"Google Vertex\" or \"Azure\". New providers appear over time, so accept names not listed here.","enum":["Modal","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"x-speakeasy-unknown-values":"allow","example":"OpenAI"},{"type":"string"}]},"type":"null"}]},"preferred_max_latency":{"oneOf":[{"type":"number","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":5},{"type":"object","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5,"properties":{"p50":{"oneOf":[{"description":"Maximum p50 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p50 latency (seconds)","format":"double","type":"null"}]},"p75":{"oneOf":[{"description":"Maximum p75 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p75 latency (seconds)","format":"double","type":"null"}]},"p90":{"oneOf":[{"description":"Maximum p90 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p90 latency (seconds)","format":"double","type":"null"}]},"p99":{"oneOf":[{"description":"Maximum p99 latency (seconds)","format":"double","type":"number"},{"description":"Maximum p99 latency (seconds)","format":"double","type":"null"}]}}},{"type":"null","description":"Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":5}]},"preferred_min_throughput":{"oneOf":[{"type":"number","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","format":"double","example":100},{"type":"object","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100,"properties":{"p50":{"oneOf":[{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p50 throughput (tokens/sec)","format":"double","type":"null"}]},"p75":{"oneOf":[{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p75 throughput (tokens/sec)","format":"double","type":"null"}]},"p90":{"oneOf":[{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p90 throughput (tokens/sec)","format":"double","type":"null"}]},"p99":{"oneOf":[{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"number"},{"description":"Minimum p99 throughput (tokens/sec)","format":"double","type":"null"}]}}},{"type":"null","description":"Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.","example":100}]},"quantizations":{"oneOf":[{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string","x-speakeasy-unknown-values":"allow"},"type":"array"},{"description":"A list of quantization levels to filter the provider by.","items":{"enum":["int4","int8","fp4","mxfp4","nvfp4","fp6","fp8","mxfp8","fp16","bf16","fp32","unknown"],"example":"fp16","type":"string","x-speakeasy-unknown-values":"allow"},"type":"null"}]},"require_parameters":{"oneOf":[{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"boolean"},{"description":"Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.","type":"null"}]},"sort":{"oneOf":[{"type":"string","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","enum":["price","throughput","latency","exacto"],"x-speakeasy-unknown-values":"allow","example":"price"},{"type":"object","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price","properties":{"by":{"oneOf":[{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"string","x-speakeasy-unknown-values":"allow"},{"description":"The provider sorting strategy (price, throughput, latency)","enum":["price","throughput","latency","exacto",null],"example":"price","type":"null","x-speakeasy-unknown-values":"allow"}]},"partition":{"oneOf":[{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"string","x-speakeasy-unknown-values":"allow"},{"description":"Partitioning strategy for sorting: \"model\" (default) groups endpoints by model before sorting (fallback models remain fallbacks), \"none\" sorts all endpoints together regardless of model.","enum":["model","none",null],"example":"model","type":"null","x-speakeasy-unknown-values":"allow"}]}}},{"type":"null","description":"The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.","example":"price"}]},"zdr":{"oneOf":[{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"boolean"},{"description":"Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.","example":true,"type":"null"}]}},"type":"null","uniqueKey":"provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider","typeLabel":"object | null"},"route":{"oneOf":[{"deprecated":true,"description":"**DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: \"fallback\" (maps to \"model\"), \"sort\" (maps to \"none\").","enum":["fallback","sort",null],"example":"fallback","type":"string","x-fern-ignore":true,"x-speakeasy-deprecation-message":"Use providers.sort.partition instead.","x-speakeasy-ignore":true,"x-speakeasy-unknown-values":"allow","uniqueKey":"route.oneOf.0","typeLabel":"enum\u003cstring>"},{"deprecated":true,"description":"**DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: \"fallback\" (maps to \"model\"), \"sort\" (maps to \"none\").","enum":["fallback","sort",null],"example":"fallback","type":"null","x-fern-ignore":true,"x-speakeasy-deprecation-message":"Use providers.sort.partition instead.","x-speakeasy-ignore":true,"x-speakeasy-unknown-values":"allow","uniqueKey":"route.oneOf.1","typeLabel":"null"}],"uniqueKey":"route","typeLabel":"enum\u003cstring> | null"},"safeguards":{"oneOf":[{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"safeguards.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"A server-side safeguard Anthropic evaluates alongside the completion","example":{"classifier_context":{"permission_mode":"auto","v":1},"type":"dangerous_tool_use"},"properties":{"type":{"type":"string","description":"Kind of safeguard to evaluate.","isRequired":true,"uniqueKey":"safeguards.oneOf.0.items.[INDEX].type","typeLabel":"string"},"classifier_context":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"safeguards.oneOf.0.items.[INDEX].classifier_context.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra context given to the safeguard's classifier.","uniqueKey":"safeguards.oneOf.0.items.[INDEX].classifier_context","typeLabel":"object"}},"required":["type"],"type":"object","uniqueKey":"safeguards.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Server-side safeguards to run alongside the completion.","uniqueKey":"safeguards.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":{"oneOf":[{}]},"description":"A server-side safeguard Anthropic evaluates alongside the completion","example":{"classifier_context":{"permission_mode":"auto","v":1},"type":"dangerous_tool_use"},"properties":{"classifier_context":{"additionalProperties":{"oneOf":[{}]},"type":"object","description":"Extra context given to the safeguard's classifier."},"type":{"type":"string","description":"Kind of safeguard to evaluate."}},"required":["type"],"type":"object"},"type":"null","description":"Server-side safeguards to run alongside the completion.","uniqueKey":"safeguards.oneOf.1","typeLabel":"null"}],"uniqueKey":"safeguards","typeLabel":"object[] | null"},"service_tier":{"type":"string","description":"Service tier to run on.","uniqueKey":"service_tier","typeLabel":"string"},"session_id":{"description":"A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.","maxLength":256,"type":"string","uniqueKey":"session_id","typeLabel":"string"},"speed":{"oneOf":[{"type":"string","description":"Inference speed: fast uses a higher-speed configuration at premium pricing; standard when omitted.","enum":["fast","standard",null],"x-speakeasy-unknown-values":"allow","example":"fast","uniqueKey":"speed.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Inference speed: fast uses a higher-speed configuration at premium pricing; standard when omitted.","enum":["fast","standard",null],"x-speakeasy-unknown-values":"allow","example":"fast","uniqueKey":"speed.oneOf.1","typeLabel":"null"}],"uniqueKey":"speed","typeLabel":"enum\u003cstring> | null"},"stop_sequences":{"items":{"type":"string","uniqueKey":"stop_sequences.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Text that stops generation when produced.","uniqueKey":"stop_sequences","typeLabel":"string[]"},"stop_server_tools_when":{"description":"Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.","example":[{"step_count":5,"type":"step_count_is"},{"max_cost_in_dollars":0.5,"type":"max_cost"}],"items":{"oneOf":[{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","step_count"],"example":{"step_count":5,"type":"step_count_is"},"properties":{"step_count":{"type":"integer","description":"Stop after this many steps.","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.0.step_count","typeLabel":"integer"},"type":{"enum":["step_count_is"],"type":"string","description":"One of \"step_count_is\".","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","tool_name"],"example":{"tool_name":"finalize","type":"step_count_is"},"properties":{"tool_name":{"minLength":1,"type":"string","description":"Stop once the model calls this tool.","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.1.tool_name","typeLabel":"string"},"type":{"enum":["has_tool_call"],"type":"string","description":"One of \"has_tool_call\".","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","max_tokens"],"example":{"max_tokens":10000,"type":"step_count_is"},"properties":{"max_tokens":{"type":"integer","description":"Stop once the loop has used this many tokens.","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.2.max_tokens","typeLabel":"integer"},"type":{"enum":["max_tokens_used"],"type":"string","description":"One of \"max_tokens_used\".","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","max_cost_in_dollars"],"example":{"max_cost_in_dollars":0.5,"type":"step_count_is"},"properties":{"max_cost_in_dollars":{"format":"double","type":"number","description":"Stop once the loop has cost more than this, in US dollars.","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.3.max_cost_in_dollars","typeLabel":"number\u003cdouble>"},"type":{"enum":["max_cost"],"type":"string","description":"One of \"max_cost\".","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","description":"A single condition that, when met, halts the server-tool agent loop.","required":["type","reason"],"example":{"reason":"length","type":"step_count_is"},"properties":{"reason":{"minLength":1,"type":"string","description":"Stop once the model finishes with this reason.","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.4.reason","typeLabel":"string"},"type":{"enum":["finish_reason_is"],"type":"string","description":"One of \"finish_reason_is\".","isRequired":true,"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"stop_server_tools_when.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"stop_server_tools_when.items.[INDEX]","typeLabel":"object"},"minItems":1,"type":"array","uniqueKey":"stop_server_tools_when","typeLabel":"object[]"},"stream":{"type":"boolean","description":"Stream the response as server-sent events.","uniqueKey":"stream","typeLabel":"boolean"},"system":{"oneOf":[{"type":"string","description":"System prompt: a string, or an array of text blocks (each may set cache_control).","uniqueKey":"system.oneOf.0","typeLabel":"string"},{"type":"array","items":{"example":{"text":"Hello, world!","type":"text"},"properties":{"text":{"type":"string","description":"The text of this content block.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"system.oneOf.1.items.[INDEX].cache_control","typeLabel":"object"},"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","uniqueKey":"system.oneOf.1.items.[INDEX].citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"system.oneOf.1.items.[INDEX].citations","typeLabel":"object[] | null"}},"required":["type","text"],"type":"object","uniqueKey":"system.oneOf.1.items.[INDEX]","typeLabel":"object"},"description":"System prompt: a string, or an array of text blocks (each may set cache_control).","uniqueKey":"system.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"system","typeLabel":"string | object[]"},"temperature":{"format":"double","type":"number","description":"Sampling temperature; higher is more random.","uniqueKey":"temperature","typeLabel":"number\u003cdouble>"},"thinking":{"oneOf":[{"type":"object","description":"Extended thinking: enabled with a token budget, adaptive, or disabled.","required":["type","budget_tokens"],"properties":{"budget_tokens":{"type":"integer","description":"Most tokens the model may spend thinking before it answers.","isRequired":true,"uniqueKey":"thinking.oneOf.0.budget_tokens","typeLabel":"integer"},"type":{"enum":["enabled"],"type":"string","description":"One of \"enabled\".","isRequired":true,"uniqueKey":"thinking.oneOf.0.type","typeLabel":"enum\u003cstring>"},"block_binding":{"oneOf":[{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.mismatch_behavior","typeLabel":"enum\u003cstring> | null"},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null.","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null.","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0.prefix_mismatch_behavior","typeLabel":"enum\u003cstring> | null"}},"type":"object","description":"What happens when the thinking blocks sent back with the conversation do not match what the model produced: \"error\" rejects the request, \"drop_block\" drops the mismatched blocks.","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow"}]},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null."},{"enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null."}]}},"type":"null","description":"What happens when the thinking blocks sent back with the conversation do not match what the model produced: \"error\" rejects the request, \"drop_block\" drops the mismatched blocks.","uniqueKey":"thinking.oneOf.0.block_binding.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.block_binding","typeLabel":"object | null"},"display":{"oneOf":[{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"string","x-speakeasy-unknown-values":"allow","description":"How thinking appears in the response: \"summarized\" (a summary of the reasoning), \"omitted\" (left out; only the signature is returned), or \"updates\" (progress updates); null uses the model's default.","uniqueKey":"thinking.oneOf.0.display.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"null","x-speakeasy-unknown-values":"allow","description":"How thinking appears in the response: \"summarized\" (a summary of the reasoning), \"omitted\" (left out; only the signature is returned), or \"updates\" (progress updates); null uses the model's default.","uniqueKey":"thinking.oneOf.0.display.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.0.display","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"thinking.oneOf.0","typeLabel":"object"},{"type":"object","description":"Extended thinking: enabled with a token budget, adaptive, or disabled.","required":["type"],"properties":{"type":{"enum":["disabled"],"type":"string","description":"One of \"disabled\".","isRequired":true,"uniqueKey":"thinking.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"thinking.oneOf.1","typeLabel":"object"},{"type":"object","description":"Extended thinking: enabled with a token budget, adaptive, or disabled.","required":["type"],"properties":{"type":{"enum":["adaptive"],"type":"string","description":"One of \"adaptive\".","isRequired":true,"uniqueKey":"thinking.oneOf.2.type","typeLabel":"enum\u003cstring>"},"block_binding":{"oneOf":[{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.mismatch_behavior","typeLabel":"enum\u003cstring> | null"},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null.","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null.","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.prefix_mismatch_behavior.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0.prefix_mismatch_behavior","typeLabel":"enum\u003cstring> | null"}},"type":"object","description":"What happens when the thinking blocks sent back with the conversation do not match what the model produced: \"error\" rejects the request, \"drop_block\" drops the mismatched blocks.","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.0","typeLabel":"object"},{"additionalProperties":false,"example":{"prefix_mismatch_behavior":"drop_block"},"properties":{"mismatch_behavior":{"oneOf":[{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow"},{"deprecated":true,"description":"Deprecated: legacy alias of prefix_mismatch_behavior. Send only one of the two.","enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow"}]},"prefix_mismatch_behavior":{"oneOf":[{"enum":["error","drop_block",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null."},{"enum":["error","drop_block",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"error\", \"drop_block\", null."}]}},"type":"null","description":"What happens when the thinking blocks sent back with the conversation do not match what the model produced: \"error\" rejects the request, \"drop_block\" drops the mismatched blocks.","uniqueKey":"thinking.oneOf.2.block_binding.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.block_binding","typeLabel":"object | null"},"display":{"oneOf":[{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"string","x-speakeasy-unknown-values":"allow","description":"How thinking appears in the response: \"summarized\" (a summary of the reasoning), \"omitted\" (left out; only the signature is returned), or \"updates\" (progress updates); null uses the model's default.","uniqueKey":"thinking.oneOf.2.display.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["summarized","omitted","updates",null],"example":"summarized","type":"null","x-speakeasy-unknown-values":"allow","description":"How thinking appears in the response: \"summarized\" (a summary of the reasoning), \"omitted\" (left out; only the signature is returned), or \"updates\" (progress updates); null uses the model's default.","uniqueKey":"thinking.oneOf.2.display.oneOf.1","typeLabel":"null"}],"uniqueKey":"thinking.oneOf.2.display","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"thinking.oneOf.2","typeLabel":"object"},{"type":"object","description":"Extended thinking: enabled with a token budget, adaptive, or disabled.","required":["type"],"properties":{"type":{"enum":["between_tools"],"type":"string","description":"One of \"between_tools\".","isRequired":true,"uniqueKey":"thinking.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"thinking.oneOf.3","typeLabel":"object"}],"uniqueKey":"thinking","typeLabel":"object"},"tool_choice":{"oneOf":[{"type":"object","description":"How the model chooses tools: auto, any, a named tool, or none.","required":["type"],"properties":{"type":{"enum":["auto"],"type":"string","description":"One of \"auto\".","isRequired":true,"uniqueKey":"tool_choice.oneOf.0.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"type":"boolean","description":"Call at most one tool per turn.","uniqueKey":"tool_choice.oneOf.0.disable_parallel_tool_use","typeLabel":"boolean"}},"uniqueKey":"tool_choice.oneOf.0","typeLabel":"object"},{"type":"object","description":"How the model chooses tools: auto, any, a named tool, or none.","required":["type"],"properties":{"type":{"enum":["any"],"type":"string","description":"One of \"any\".","isRequired":true,"uniqueKey":"tool_choice.oneOf.1.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"type":"boolean","description":"Call at most one tool per turn.","uniqueKey":"tool_choice.oneOf.1.disable_parallel_tool_use","typeLabel":"boolean"}},"uniqueKey":"tool_choice.oneOf.1","typeLabel":"object"},{"type":"object","description":"How the model chooses tools: auto, any, a named tool, or none.","required":["type"],"properties":{"type":{"enum":["none"],"type":"string","description":"One of \"none\".","isRequired":true,"uniqueKey":"tool_choice.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tool_choice.oneOf.2","typeLabel":"object"},{"type":"object","description":"How the model chooses tools: auto, any, a named tool, or none.","required":["type","name"],"properties":{"name":{"type":"string","description":"Name of the tool the model must call.","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.name","typeLabel":"string"},"type":{"enum":["tool"],"type":"string","description":"One of \"tool\".","isRequired":true,"uniqueKey":"tool_choice.oneOf.3.type","typeLabel":"enum\u003cstring>"},"disable_parallel_tool_use":{"type":"boolean","description":"Call at most one tool per turn.","uniqueKey":"tool_choice.oneOf.3.disable_parallel_tool_use","typeLabel":"boolean"}},"uniqueKey":"tool_choice.oneOf.3","typeLabel":"object"}],"uniqueKey":"tool_choice","typeLabel":"object"},"tools":{"items":{"oneOf":[{"type":"object","required":["name","input_schema"],"properties":{"input_schema":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.additionalProperties","typeLabel":"any"},"properties":{"properties":{"description":"JSON Schema properties of the tool's input: one entry per argument name.","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.properties","typeLabel":"any"},"required":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Input properties the model must always give.","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Input properties the model must always give.","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.required","typeLabel":"string[] | null"},"type":{"default":"object","type":"string","description":"JSON Schema type of the tool's input; always object.","uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema.type","typeLabel":"string"}},"type":"object","description":"JSON Schema for the tool's input.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.input_schema","typeLabel":"object"},"name":{"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.name","typeLabel":"string"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.0.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.0.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.0.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","description":"Withhold this tool from the model until a tool search finds it.","uniqueKey":"tools.items.[INDEX].oneOf.0.defer_loading","typeLabel":"boolean"},"description":{"type":"string","description":"What the tool does.","uniqueKey":"tools.items.[INDEX].oneOf.0.description","typeLabel":"string"},"strict":{"type":"boolean","description":"Make the model's tool inputs match input_schema exactly.","uniqueKey":"tools.items.[INDEX].oneOf.0.strict","typeLabel":"boolean"},"type":{"enum":["custom"],"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","uniqueKey":"tools.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["bash"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_20250124"],"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.1.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.1.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.1.cache_control","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["str_replace_editor"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["text_editor_20250124"],"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.2.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.2.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.2.cache_control","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["web_search"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20250305"],"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Only these domains are searched.","uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Only these domains are searched.","uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.3.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.3.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","description":"Most times the model may use this tool in one request.","uniqueKey":"tools.items.[INDEX].oneOf.3.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Most times the model may use this tool in one request.","uniqueKey":"tools.items.[INDEX].oneOf.3.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","description":"City used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"City used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter country code used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region (such as a state) used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"null","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"tools.items.[INDEX].oneOf.3.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.3.user_location","typeLabel":"object | null"}},"uniqueKey":"tools.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["web_search"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_20260209"],"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","description":"Who may call this tool: \"direct\" (the model itself) and/or a code-execution tool version (\"code_execution_20250825\", \"code_execution_20260120\") calling it from inside a sandbox.","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_callers","typeLabel":"enum\u003cstring>[]"},"allowed_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Only these domains are searched.","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Only these domains are searched.","uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.allowed_domains","typeLabel":"string[] | null"},"blocked_domains":{"oneOf":[{"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Never search or fetch these domains; cannot be used with allowed_domains.","uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.blocked_domains","typeLabel":"string[] | null"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.4.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.4.cache_control","typeLabel":"object"},"max_uses":{"oneOf":[{"type":"integer","description":"Most times the model may use this tool in one request.","uniqueKey":"tools.items.[INDEX].oneOf.4.max_uses.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Most times the model may use this tool in one request.","uniqueKey":"tools.items.[INDEX].oneOf.4.max_uses.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.max_uses","typeLabel":"integer | null"},"user_location":{"oneOf":[{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.type","typeLabel":"enum\u003cstring>"},"city":{"oneOf":[{"type":"string","description":"City used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"City used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter country code used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region (such as a state) used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0.timezone","typeLabel":"string | null"}},"required":["type"],"type":"object","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.0","typeLabel":"object"},{"example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results."},{"type":"null","description":"City used to localize search results."}]},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results."},{"type":"null","description":"Two-letter country code used to localize search results."}]},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results."},{"type":"null","description":"Region (such as a state) used to localize search results."}]},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results."},{"type":"null","description":"IANA time zone used to localize search results."}]},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\"."}},"required":["type"],"type":"null","description":"The user's approximate location (city, region, country, time zone), used to localize web search results; null for no localization.","uniqueKey":"tools.items.[INDEX].oneOf.4.user_location.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.4.user_location","typeLabel":"object | null"}},"uniqueKey":"tools.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type","name","model"],"properties":{"model":{"type":"string","description":"Model the tool uses.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.model","typeLabel":"string"},"name":{"enum":["advisor"],"type":"string","description":"Name of the tool; the model calls it by this name.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["advisor_20260301"],"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.5.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","description":"Who may call this tool: \"direct\" (the model itself) and/or a code-execution tool version (\"code_execution_20250825\", \"code_execution_20260120\") calling it from inside a sandbox.","uniqueKey":"tools.items.[INDEX].oneOf.5.allowed_callers","typeLabel":"enum\u003cstring>[]"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.5.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.5.cache_control","typeLabel":"object"},"caching":{"oneOf":[{"type":"object","description":"Prompt-caching settings for this request.","required":["type"],"example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.0.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.0.ttl","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.0","typeLabel":"object"},{"type":"null","description":"Prompt-caching settings for this request.","uniqueKey":"tools.items.[INDEX].oneOf.5.caching.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.5.caching","typeLabel":"object | null"},"defer_loading":{"type":"boolean","description":"Withhold this tool from the model until a tool search finds it.","uniqueKey":"tools.items.[INDEX].oneOf.5.defer_loading","typeLabel":"boolean"},"max_uses":{"type":"integer","description":"Most times the model may use this tool in one request.","uniqueKey":"tools.items.[INDEX].oneOf.5.max_uses","typeLabel":"integer"}},"uniqueKey":"tools.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container","required":["type"],"example":{"parameters":{"environment":{"type":"container_auto"}},"type":"openrouter:bash"},"properties":{"type":{"enum":["openrouter:bash"],"type":"string","description":"One of \"openrouter:bash\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:bash server tool","example":{"environment":{"type":"container_auto"}},"properties":{"engine":{"description":"Which bash engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) and \"native\" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands.","enum":["auto","native","openrouter"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.engine","typeLabel":"enum\u003cstring>"},"environment":{"oneOf":[{"type":"object","description":"Execution environment for the bash server tool.","required":["type"],"example":{"type":"container_auto"},"properties":{"type":{"enum":["container_auto"],"type":"string","description":"One of \"container_auto\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.0","typeLabel":"object"},{"type":"object","description":"Execution environment for the bash server tool.","required":["type","container_id"],"example":{"container_id":"sess_abc123","type":"container_auto"},"properties":{"container_id":{"description":"Canonical container id to reuse (max 40 characters, letters/digits/underscores/hyphens). Any container_id previously returned by a bash or shell tool result works here and reattaches to the same container and files — including session-derived ids (sess_...) and generation-derived ids (gen_...). Note that a session-derived id is always sess_ + the sanitized session key, which is not necessarily the raw session id you sent. Using the same container_id from both the bash and shell tools shares the same files, with last-write-wins when both flush concurrently. A fresh name creates a new persistent container. Containers are always scoped to your account and workspace.","example":"sess_abc123","maxLength":40,"minLength":1,"pattern":"^[\\w-]+$","type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.container_id","typeLabel":"string"},"type":{"enum":["container_reference"],"type":"string","description":"One of \"container_reference\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.6.parameters.environment","typeLabel":"object"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.6.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: returns the current date and time","required":["type"],"example":{"parameters":{"timezone":"America/New_York"},"type":"openrouter:datetime"},"properties":{"type":{"enum":["openrouter:datetime"],"type":"string","description":"One of \"openrouter:datetime\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:datetime server tool","example":{"timezone":"America/New_York"},"properties":{"timezone":{"description":"IANA timezone name (e.g. \"America/New_York\"). Defaults to UTC.","example":"America/New_York","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.7.parameters.timezone","typeLabel":"string"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.7.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: generates images from text prompts using an image generation model","required":["type"],"example":{"parameters":{"model":"openai/gpt-5-image","quality":"high","size":"1024x1024"},"type":"openrouter:image_generation"},"properties":{"type":{"enum":["openrouter:image_generation"],"type":"string","description":"One of \"openrouter:image_generation\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"parameters":{"additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","format":"double","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.1","typeLabel":"number\u003cdouble>"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.2.items.[INDEX]","typeLabel":"any"},"uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties.oneOf.2","typeLabel":"any[]"}],"uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.additionalProperties","typeLabel":"string | number\u003cdouble> | any[]"},"description":"Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.","example":{"aspect_ratio":"16:9","model":"openai/gpt-5-image","quality":"high"},"properties":{"model":{"description":"Which image generation model to use (e.g. \"openai/gpt-5-image\"). Defaults to \"openai/gpt-5-image\".","example":"openai/gpt-5-image","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters.model","typeLabel":"string"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.8.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: searches and filters AI models available on OpenRouter","required":["type"],"example":{"parameters":{"max_results":5},"type":"openrouter:experimental__search_models"},"properties":{"type":{"enum":["openrouter:experimental__search_models"],"type":"string","description":"One of \"openrouter:experimental__search_models\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:experimental__search_models server tool","example":{"max_results":5},"properties":{"max_results":{"description":"Maximum number of models to return. Defaults to 5, max 20.","example":5,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.9.parameters.max_results","typeLabel":"integer"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.9.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: fetches full content from a URL (web page or PDF)","required":["type"],"example":{"parameters":{"max_uses":10},"type":"openrouter:web_fetch"},"properties":{"type":{"enum":["openrouter:web_fetch"],"type":"string","description":"One of \"openrouter:web_fetch\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:web_fetch server tool","example":{"max_content_tokens":100000,"max_uses":10},"properties":{"allowed_domains":{"description":"Only fetch from these domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.allowed_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.allowed_domains","typeLabel":"string[]"},"blocked_domains":{"description":"Never fetch from these domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.blocked_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.blocked_domains","typeLabel":"string[]"},"engine":{"description":"Which fetch engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in fetch. \"exa\" uses Exa Contents API. \"openrouter\" uses direct HTTP fetch. \"firecrawl\" uses Firecrawl scrape. \"parallel\" uses the Parallel extract API.","enum":["auto","native","openrouter","exa","parallel","firecrawl"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.engine","typeLabel":"enum\u003cstring>"},"max_content_tokens":{"description":"Maximum content length in approximate tokens. Content exceeding this limit is truncated.","example":100000,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.max_content_tokens","typeLabel":"integer"},"max_uses":{"description":"Maximum number of web fetches per request. Once exceeded, the tool returns an error.","example":10,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters.max_uses","typeLabel":"integer"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.10.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: searches the web for current information","required":["type"],"example":{"parameters":{"max_results":5},"type":"openrouter:web_search"},"properties":{"type":{"enum":["openrouter:web_search"],"type":"string","description":"One of \"openrouter:web_search\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"parameters":{"example":{"max_results":5,"search_context_size":"medium"},"properties":{"allowed_domains":{"description":"Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, and most native providers (Anthropic, OpenAI, SpaceXAI). Cannot be used with excluded_domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.allowed_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.allowed_domains","typeLabel":"string[]"},"engine":{"description":"Which search engine to use. \"auto\" (default) uses native if the provider supports it, otherwise Exa. \"native\" forces the provider's built-in search. \"exa\" forces the Exa search API. \"firecrawl\" uses the Firecrawl search API. \"parallel\" uses the Parallel search API. \"perplexity\" uses the Perplexity Search API (raw ranked results).","enum":["native","exa","parallel","firecrawl","perplexity","auto"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.engine","typeLabel":"enum\u003cstring>"},"excluded_domains":{"description":"Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Perplexity, Anthropic, OpenAI, and SpaceXAI. Cannot be used with allowed_domains.","items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.excluded_domains.items.[INDEX]","typeLabel":"string"},"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.excluded_domains","typeLabel":"string[]"},"max_characters":{"description":"Exact maximum number of characters of content per search result. Applies to the Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, caps highlight content per result. For Parallel, caps excerpt content per result (default 1,500 when omitted). For Perplexity, maps to the native `max_tokens_per_page` parameter (converted from characters to tokens) and trims the response to the exact character cap. When both `max_characters` and `search_context_size` are set, `max_characters` takes precedence. When omitted, falls back to `search_context_size` mapping (Exa) or engine defaults (Parallel, Perplexity).","example":2000,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_characters","typeLabel":"integer"},"max_results":{"description":"Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, Parallel, and Perplexity engines; ignored with native provider search. Perplexity supports a maximum of 20; values above 20 are clamped.","example":5,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_results","typeLabel":"integer"},"max_total_results":{"description":"Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified.","example":50,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_total_results","typeLabel":"integer"},"max_uses":{"description":"Maximum number of web searches the model may perform in a single request. Once reached, further search calls return an error result instead of executing. Applies to the Exa, Firecrawl, Parallel, and Perplexity engines. With native provider search, forwarded only to Anthropic (as `max_uses`); other native search providers have no equivalent parameter and ignore it.","example":3,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.max_uses","typeLabel":"integer"},"mode":{"description":"Engine-native search mode. Exa supports instant, fast, auto (default), deep-lite, deep, and deep-reasoning. Parallel supports turbo, fast, basic (default), and advanced. Modes unsupported by the selected engine are ignored.","enum":["instant","fast","auto","deep-lite","deep","deep-reasoning","turbo","basic","advanced"],"example":"auto","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.mode","typeLabel":"enum\u003cstring>"},"search_context_size":{"description":"How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,000–4,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.","enum":["low","medium","high"],"example":"medium","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.search_context_size","typeLabel":"enum\u003cstring>"},"user_location":{"description":"Approximate user location for location-biased results.","example":{"city":"San Francisco","country":"US","region":"California","timezone":"America/Los_Angeles","type":"approximate"},"properties":{"city":{"oneOf":[{"type":"string","description":"City used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.city.oneOf.0","typeLabel":"string"},{"type":"null","description":"City used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.city","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","description":"Two-letter country code used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.country.oneOf.0","typeLabel":"string"},{"type":"null","description":"Two-letter country code used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.country","typeLabel":"string | null"},"region":{"oneOf":[{"type":"string","description":"Region (such as a state) used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region (such as a state) used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.region.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.region","typeLabel":"string | null"},"timezone":{"oneOf":[{"type":"string","description":"IANA time zone used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.timezone.oneOf.0","typeLabel":"string"},{"type":"null","description":"IANA time zone used to localize search results.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.timezone.oneOf.1","typeLabel":"null"}],"uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.timezone","typeLabel":"string | null"},"type":{"enum":["approximate"],"type":"string","description":"One of \"approximate\".","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location.type","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.user_location","typeLabel":"object"},"x_search":{"additionalProperties":false,"description":"Enable SpaceXAI X (Twitter) search alongside native web search, with optional filters. Only applies to SpaceXAI endpoints with native search; omit to search the web only. X search is billed separately by SpaceXAI, per post and per user profile fetched.","example":{"allowed_x_handles":["OpenRouterAI"],"from_date":"2025-01-01"},"properties":{"allowed_x_handles":{"description":"Only include posts from these X handles (max 20). Cannot be used with excluded_x_handles.","example":["OpenRouterAI"],"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.allowed_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.allowed_x_handles","typeLabel":"string[]"},"enable_image_understanding":{"description":"Analyze images attached to matching posts.","type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.enable_image_understanding","typeLabel":"boolean"},"enable_video_understanding":{"description":"Analyze videos attached to matching posts.","type":"boolean","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.enable_video_understanding","typeLabel":"boolean"},"excluded_x_handles":{"description":"Exclude posts from these X handles (max 20). Cannot be used with allowed_x_handles.","example":["spamaccount"],"items":{"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.excluded_x_handles.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.excluded_x_handles","typeLabel":"string[]"},"from_date":{"description":"Start of the post date range (ISO 8601 date, e.g. \"2025-01-01\").","example":"2025-01-01","format":"date","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.from_date","typeLabel":"string\u003cdate>"},"to_date":{"description":"End of the post date range (ISO 8601 date, e.g. \"2025-12-31\").","example":"2025-12-31","format":"date","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search.to_date","typeLabel":"string\u003cdate>"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters.x_search","typeLabel":"object"}},"type":"object","description":"Web search settings: the search engine, how many results to fetch, how much context per result, and which domains to include or exclude.","uniqueKey":"tools.items.[INDEX].oneOf.11.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Kind of tool: custom, a client-defined tool with an input_schema.","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.12.type","typeLabel":"string"}},"additionalProperties":{"oneOf":[{}],"uniqueKey":"tools.items.[INDEX].oneOf.12.additionalProperties","typeLabel":"any"},"uniqueKey":"tools.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["tool_search_tool_bm25"],"type":"string","description":"One of \"tool_search_tool_bm25\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.13.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["tool_search_tool_bm25_20251119","tool_search_tool_bm25"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"tool_search_tool_bm25_20251119\", \"tool_search_tool_bm25\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.13.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","description":"Who may call this tool: \"direct\" (the model itself) and/or a code-execution tool version (\"code_execution_20250825\", \"code_execution_20260120\") calling it from inside a sandbox.","uniqueKey":"tools.items.[INDEX].oneOf.13.allowed_callers","typeLabel":"enum\u003cstring>[]"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.13.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.13.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.13.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","description":"Withhold this tool from the model until a tool search finds it.","uniqueKey":"tools.items.[INDEX].oneOf.13.defer_loading","typeLabel":"boolean"},"strict":{"type":"boolean","description":"Make the model's calls match the tool's schema exactly.","uniqueKey":"tools.items.[INDEX].oneOf.13.strict","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","required":["type","name"],"properties":{"name":{"enum":["tool_search_tool_regex"],"type":"string","description":"One of \"tool_search_tool_regex\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.14.name","typeLabel":"enum\u003cstring>"},"type":{"enum":["tool_search_tool_regex_20251119","tool_search_tool_regex"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"tool_search_tool_regex_20251119\", \"tool_search_tool_regex\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"allowed_callers":{"example":["direct"],"items":{"enum":["direct","code_execution_20250825","code_execution_20260120"],"type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.14.allowed_callers.items.[INDEX]","typeLabel":"enum\u003cstring>"},"type":"array","description":"Who may call this tool: \"direct\" (the model itself) and/or a code-execution tool version (\"code_execution_20250825\", \"code_execution_20260120\") calling it from inside a sandbox.","uniqueKey":"tools.items.[INDEX].oneOf.14.allowed_callers","typeLabel":"enum\u003cstring>[]"},"cache_control":{"description":"Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.","example":{"type":"ephemeral"},"properties":{"type":{"enum":["ephemeral"],"type":"string","description":"One of \"ephemeral\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.14.cache_control.type","typeLabel":"enum\u003cstring>"},"ttl":{"enum":["5m","1h"],"example":"5m","type":"string","x-speakeasy-unknown-values":"allow","description":"How long the cached prefix lives: \"5m\" (five minutes, the default) or \"1h\" (one hour, written at a higher price).","uniqueKey":"tools.items.[INDEX].oneOf.14.cache_control.ttl","typeLabel":"enum\u003cstring>"}},"required":["type"],"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.14.cache_control","typeLabel":"object"},"defer_loading":{"type":"boolean","description":"Withhold this tool from the model until a tool search finds it.","uniqueKey":"tools.items.[INDEX].oneOf.14.defer_loading","typeLabel":"boolean"},"strict":{"type":"boolean","description":"Make the model's calls match the tool's schema exactly.","uniqueKey":"tools.items.[INDEX].oneOf.14.strict","typeLabel":"boolean"}},"uniqueKey":"tools.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: runs shell commands server-side in a sandboxed container (a sandbox-backed clone of OpenAI's hosted shell tool)","required":["type"],"example":{"parameters":{"engine":"openrouter","environment":{"type":"container_auto"}},"type":"openrouter:shell"},"properties":{"type":{"enum":["openrouter:shell"],"type":"string","description":"One of \"openrouter:shell\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:shell server tool","example":{"engine":"openrouter","environment":{"type":"container_auto"}},"properties":{"engine":{"description":"Which shell engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox.","enum":["auto","openrouter"],"example":"openrouter","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.engine","typeLabel":"enum\u003cstring>"},"environment":{"oneOf":[{"type":"object","description":"Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not.","required":["type"],"example":{"type":"container_auto"},"properties":{"type":{"enum":["container_auto"],"type":"string","description":"One of \"container_auto\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.0","typeLabel":"object"},{"type":"object","description":"Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not.","required":["type","container_id"],"example":{"container_id":"sess_abc123","type":"container_auto"},"properties":{"container_id":{"description":"Canonical container id to reuse (max 40 characters, letters/digits/underscores/hyphens). Any container_id previously returned by a bash or shell tool result works here and reattaches to the same container and files — including session-derived ids (sess_...) and generation-derived ids (gen_...). Note that a session-derived id is always sess_ + the sanitized session key, which is not necessarily the raw session id you sent. Using the same container_id from both the bash and shell tools shares the same files, with last-write-wins when both flush concurrently. A fresh name creates a new persistent container. Containers are always scoped to your account and workspace.","example":"sess_abc123","maxLength":40,"minLength":1,"pattern":"^[\\w-]+$","type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.container_id","typeLabel":"string"},"type":{"enum":["container_reference"],"type":"string","description":"One of \"container_reference\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.type","typeLabel":"enum\u003cstring>"},"file_ids":{"description":"Workspace file ids (or_file_…) to attach into the container before the first command runs. Each file is copied to the container home as a writable copy named {last 8 characters of the file id}-{base filename} (a file stored as data/report.csv with id or_file_…NR6q4V8w attaches to ~/NR6q4V8w-report.csv), so same-named files never collide; the source document is never modified. Unknown, foreign, or malformed ids fail the request with a 400 before any command executes. Max 20 ids.","example":["or_file_011CNha8iCJcU1wXNR6q4V8w"],"items":{"minLength":1,"type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.file_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"type":"array","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.file_ids","typeLabel":"string[]"},"network_policy":{"oneOf":[{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type"],"example":{"type":"allowlist"},"properties":{"type":{"description":"No outbound internet access.","enum":["disabled"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.0","typeLabel":"object"},{"type":"object","description":"Network egress policy for the container. \"disabled\" blocks all outbound internet; \"allowlist\" permits only hosts matching the listed hostnames or * glob patterns (ports 80/443, DNS via Cloudflare resolvers). The policy is fixed when a container starts: sending a different policy to a warm container fails the request with a 409. Omitted: defaults to \"disabled\" (no outbound internet). For unrestricted egress, use an allowlist of [\"*\"].","required":["type","allowed_domains"],"example":{"allowed_domains":["pypi.org","files.pythonhosted.org"],"type":"allowlist"},"properties":{"allowed_domains":{"description":"Hostnames the container may reach over ports 80/443 (max 50). Entries are lowercase hostnames or glob patterns where * matches any run of characters (e.g. *.example.com). An exact hostname does not cover its subdomains — use a glob or list each hostname. pip needs both pypi.org and files.pythonhosted.org (or *.pythonhosted.org).","example":["pypi.org","files.pythonhosted.org"],"items":{"maxLength":253,"minLength":1,"pattern":"^(?![-.])(?!.*[-.]$)(?!.*(?:\\.\\.|\\.-|-\\.))(?!.*[^.]{64})[a-z0-9*.-]+$","type":"string","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains.items.[INDEX]","typeLabel":"string"},"maxItems":50,"minItems":1,"type":"array","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1.allowed_domains","typeLabel":"string[]"},"type":{"description":"Outbound access restricted to the listed domains.","enum":["allowlist"],"type":"string","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1.network_policy","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX].oneOf.15.parameters.environment","typeLabel":"object"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.15.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable","required":["type"],"example":{"parameters":{"max_results":5},"type":"openrouter:tool_search"},"properties":{"type":{"enum":["openrouter:tool_search"],"type":"string","description":"One of \"openrouter:tool_search\".","isRequired":true,"uniqueKey":"tools.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"parameters":{"description":"Configuration for the openrouter:tool_search server tool","example":{"max_results":5},"properties":{"max_results":{"description":"Maximum tools returned by one search. Defaults to 5.","example":5,"type":"integer","uniqueKey":"tools.items.[INDEX].oneOf.16.parameters.max_results","typeLabel":"integer"}},"type":"object","uniqueKey":"tools.items.[INDEX].oneOf.16.parameters","typeLabel":"object"}},"uniqueKey":"tools.items.[INDEX].oneOf.16","typeLabel":"object"}],"uniqueKey":"tools.items.[INDEX]","typeLabel":"object"},"type":"array","description":"The tools the model may call.","uniqueKey":"tools","typeLabel":"object[]"},"top_k":{"type":"integer","description":"Sample only from this many most likely tokens. Not all providers support it.","uniqueKey":"top_k","typeLabel":"integer"},"top_p":{"format":"double","type":"number","description":"Sample only from the most likely tokens whose probabilities add up to this, 0 to 1.","uniqueKey":"top_p","typeLabel":"number\u003cdouble>"},"trace":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"trace.additionalProperties","typeLabel":"any"},"description":"Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.","example":{"trace_id":"trace-abc123","trace_name":"my-app-trace"},"properties":{"generation_name":{"type":"string","description":"Name of this generation in your traces.","uniqueKey":"trace.generation_name","typeLabel":"string"},"parent_span_id":{"type":"string","description":"Span this generation nests under in your traces.","uniqueKey":"trace.parent_span_id","typeLabel":"string"},"span_name":{"type":"string","description":"Name of this span in your traces.","uniqueKey":"trace.span_name","typeLabel":"string"},"trace_id":{"type":"string","description":"Id of the trace this request belongs to.","uniqueKey":"trace.trace_id","typeLabel":"string"},"trace_name":{"type":"string","description":"Name of the trace in your traces.","uniqueKey":"trace.trace_name","typeLabel":"string"}},"type":"object","uniqueKey":"trace","typeLabel":"object"},"user":{"description":"A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters.","maxLength":256,"type":"string","uniqueKey":"user","typeLabel":"string"}},"required":["model","messages"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"max_tokens":1024,"messages":[{"content":"Hello, how are you?","role":"user"}],"model":"anthropic/claude-sonnet-4"}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"e4c02826-d328-43dc-8024-9a632628643b":{"content":{"application/json":{"example":{"container":null,"content":[{"citations":[],"text":"I'm doing well, thank you for asking! How can I help you today?","type":"text"}],"id":"msg_abc123","model":"anthropic/claude-sonnet-4","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":18,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}},"schema":{"type":"object","description":"Non-streaming response from the Anthropic Messages API with OpenRouter extensions","required":["id","type","role","container","content","model","stop_reason","stop_details","stop_sequence","usage"],"example":{"container":null,"content":[{"citations":[],"text":"Hello! I'm doing well, thank you for asking.","type":"text"}],"id":"msg_01XFDUDYJgAACzvnptvVoYEL","model":"claude-sonnet-4-5-20250929","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":15,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}},"properties":{"container":{"oneOf":[{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string","description":"When the container expires (ISO 8601).","isRequired":true,"uniqueKey":"container.oneOf.0.expires_at","typeLabel":"string"},"id":{"type":"string","description":"Id of the code-execution container; send it back as `container` to reuse it.","isRequired":true,"uniqueKey":"container.oneOf.0.id","typeLabel":"string"},"skills":{"oneOf":[{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill.","isRequired":true,"uniqueKey":"container.oneOf.0.skills.oneOf.0.items.[INDEX].skill_id","typeLabel":"string"},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\".","isRequired":true,"uniqueKey":"container.oneOf.0.skills.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"Version of the skill.","isRequired":true,"uniqueKey":"container.oneOf.0.skills.oneOf.0.items.[INDEX].version","typeLabel":"string"}},"required":["skill_id","type","version"],"type":"object","uniqueKey":"container.oneOf.0.skills.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Skills loaded in the container.","uniqueKey":"container.oneOf.0.skills.oneOf.0","typeLabel":"object[]"},{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"null","description":"Skills loaded in the container.","uniqueKey":"container.oneOf.0.skills.oneOf.1","typeLabel":"null"}],"uniqueKey":"container.oneOf.0.skills","typeLabel":"object[] | null"}},"required":["id","expires_at"],"type":"object","description":"The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.","isRequired":true,"uniqueKey":"container.oneOf.0","typeLabel":"object"},{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string","description":"When the container expires (ISO 8601)."},"id":{"type":"string","description":"Id of the code-execution container; send it back as `container` to reuse it."},"skills":{"oneOf":[{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"array","description":"Skills loaded in the container."},{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"null","description":"Skills loaded in the container."}]}},"required":["id","expires_at"],"type":"null","description":"The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.","isRequired":true,"uniqueKey":"container.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"container","typeLabel":"object | null"},"content":{"items":{"oneOf":[{"type":"object","required":["type","text","citations"],"example":{"citations":null,"text":"Hello, world!","type":"text"},"properties":{"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id","typeLabel":"string | null"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id","typeLabel":"string | null"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id","typeLabel":"string | null"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example text","encrypted_index":"enc_idx_0","title":"Example Page","type":"char_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example text","encrypted_index":"enc_idx_0","title":"Example Page","type":"char_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"},"text":{"type":"string","description":"The text the model wrote in this block.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","id","caller","name"],"example":{"caller":{"type":"direct"},"id":"toolu_01abc","input":{"location":"San Francisco"},"name":"get_weather","type":"text"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.caller","typeLabel":"object"},"id":{"type":"string","description":"Id of this tool call; the tool_result answering it sets tool_use_id to it.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool the model called.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.name","typeLabel":"string"},"type":{"enum":["tool_use"],"type":"string","description":"One of \"tool_use\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"input":{"description":"The tool call's input.","uniqueKey":"content.items.[INDEX].oneOf.1.input","typeLabel":"any"}},"uniqueKey":"content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","thinking","signature"],"example":{"signature":"sig_abc123","thinking":"Let me think about this...","type":"text"},"properties":{"signature":{"type":"string","description":"Signature over the thinking text; send the block back unchanged so the provider can verify it.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.2.signature","typeLabel":"string"},"thinking":{"type":"string","description":"The model's thinking text.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.2.thinking","typeLabel":"string"},"type":{"enum":["thinking"],"type":"string","description":"One of \"thinking\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","data"],"example":{"data":"cmVkYWN0ZWQ=","type":"text"},"properties":{"data":{"type":"string","description":"The redacted thinking, encrypted; send it back unchanged in the next turn.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.3.data","typeLabel":"string"},"type":{"enum":["redacted_thinking"],"type":"string","description":"One of \"redacted_thinking\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","id","name"],"example":{"caller":{"type":"direct"},"id":"srvtoolu_01abc","input":{},"name":"advisor","type":"text"},"properties":{"id":{"type":"string","description":"Id of this server tool call.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the server tool called.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.name","typeLabel":"string"},"type":{"enum":["server_tool_use"],"type":"string","description":"One of \"server_tool_use\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"caller":{"oneOf":[{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.2","typeLabel":"object"},{"type":"null","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","example":{"type":"direct"},"uniqueKey":"content.items.[INDEX].oneOf.4.caller.oneOf.3","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.4.caller","typeLabel":"object · object · object · null"},"input":{"description":"The tool call's input.","uniqueKey":"content.items.[INDEX].oneOf.4.input","typeLabel":"any"}},"uniqueKey":"content.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type","caller","tool_use_id","content"],"example":{"caller":{"type":"direct"},"content":[],"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.caller","typeLabel":"object"},"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","page_age":null,"title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].encrypted_content","typeLabel":"string"},"page_age":{"oneOf":[{"type":"string","description":"How old the page is, as the search reported it.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].page_age.oneOf.0","typeLabel":"string"},{"type":"null","description":"How old the page is, as the search reported it.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].page_age.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].page_age","typeLabel":"string | null"},"title":{"type":"string","description":"Title of the web page the search found.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].title","typeLabel":"string"},"type":{"enum":["web_search_result"],"type":"string","description":"One of \"web_search_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the search result page.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].url","typeLabel":"string"}},"required":["type","encrypted_content","page_age","title","url"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The web search results, or an error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"The web search results, or an error.","required":["type","error_code"],"example":{"error_code":"unavailable","type":"web_search_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"max_uses_exceeded\", \"too_many_requests\", \"query_too_long\", \"request_too_large\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.1.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_tool_result_error"],"type":"string","description":"One of \"web_search_tool_result_error\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.content","typeLabel":"object[] | object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.tool_use_id","typeLabel":"string"},"type":{"enum":["web_search_tool_result"],"type":"string","description":"One of \"web_search_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type","caller","content","tool_use_id"],"example":{"caller":{"type":"direct"},"content":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.caller","typeLabel":"object"},"content":{"oneOf":[{"type":"object","description":"The result of a web fetch: the retrieved document, or an error object saying why the fetch failed.","required":["type","error_code"],"example":{"error_code":"unavailable","type":"web_fetch_result"},"properties":{"error_code":{"enum":["content_too_large","invalid_tool_input","url_too_long","url_not_allowed","url_not_in_prior_context","url_not_accessible","unsupported_content_type","too_many_requests","max_uses_exceeded","unavailable"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"content_too_large\", \"invalid_tool_input\", \"url_too_long\", \"url_not_allowed\", \"url_not_in_prior_context\", \"url_not_accessible\", \"unsupported_content_type\", \"too_many_requests\", \"max_uses_exceeded\", \"unavailable\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_fetch_tool_result_error"],"type":"string","description":"One of \"web_fetch_tool_result_error\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a web fetch: the retrieved document, or an error object saying why the fetch failed.","required":["content","retrieved_at","type","url"],"example":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"properties":{"content":{"example":{"citations":null,"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text or a URL.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text or a URL.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.source","typeLabel":"object"},"title":{"oneOf":[{"type":"string","description":"Title of the document, or null.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the document, or null.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.title","typeLabel":"string | null"},"type":{"enum":["document"],"type":"string","description":"One of \"document\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.type","typeLabel":"enum\u003cstring>"},"citations":{"oneOf":[{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this content.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations.oneOf.0.enabled","typeLabel":"boolean"}},"required":["enabled"],"type":"object","description":"Whether the model may cite passages of this document in its answer; null when citations are not set.","uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations.oneOf.0","typeLabel":"object"},{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this content."}},"required":["enabled"],"type":"null","description":"Whether the model may cite passages of this document in its answer; null when citations are not set.","uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations","typeLabel":"object | null"}},"required":["source","title","type"],"type":"object","description":"A document the web fetch tool retrieved: its source (text or PDF), title and citations setting.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.content","typeLabel":"object"},"retrieved_at":{"oneOf":[{"type":"string","description":"When the page was fetched (ISO 8601).","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.retrieved_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the page was fetched (ISO 8601).","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.retrieved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.retrieved_at","typeLabel":"string | null"},"type":{"enum":["web_fetch_result"],"type":"string","description":"One of \"web_fetch_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the fetched page.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.tool_use_id","typeLabel":"string"},"type":{"enum":["web_fetch_tool_result"],"type":"string","description":"One of \"web_fetch_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["error_code","type"],"example":{"error_code":"unavailable","type":"code_execution_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the server tool failed: invalid_tool_input (the model's input was malformed), unavailable (the tool is down), too_many_requests (rate limited), or execution_time_exceeded (the run timed out).","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["code_execution_tool_result_error"],"type":"string","description":"One of \"code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["content","return_code","stderr","stdout","type"],"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["code_execution_output"],"type":"string","description":"One of \"code_execution_output\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the code produced in the code-execution container.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.content","typeLabel":"object[]"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.stderr","typeLabel":"string"},"stdout":{"type":"string","description":"The command's standard output.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.stdout","typeLabel":"string"},"type":{"enum":["code_execution_result"],"type":"string","description":"One of \"code_execution_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.1","typeLabel":"object"},{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["content","encrypted_stdout","return_code","stderr","type"],"example":{"content":[],"encrypted_stdout":"enc_stdout","return_code":0,"stderr":"","type":"code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["code_execution_output"],"type":"string","description":"One of \"code_execution_output\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the code produced in the code-execution container.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.content","typeLabel":"object[]"},"encrypted_stdout":{"type":"string","description":"The command's standard output, encrypted.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.encrypted_stdout","typeLabel":"string"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.stderr","typeLabel":"string"},"type":{"enum":["encrypted_code_execution_result"],"type":"string","description":"One of \"encrypted_code_execution_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.tool_use_id","typeLabel":"string"},"type":{"enum":["code_execution_tool_result"],"type":"string","description":"One of \"code_execution_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a bash code-execution call: its output (stdout, stderr, return code and files), or an error object saying why it could not run.","required":["error_code","type"],"example":{"error_code":"unavailable","type":"bash_code_execution_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","output_file_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"too_many_requests\", \"execution_time_exceeded\", \"output_file_too_large\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_code_execution_tool_result_error"],"type":"string","description":"One of \"bash_code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a bash code-execution call: its output (stdout, stderr, return code and files), or an error object saying why it could not run.","required":["content","return_code","stderr","stdout","type"],"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"bash_code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["bash_code_execution_output"],"type":"string","description":"One of \"bash_code_execution_output\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the bash command produced in the code-execution container.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.content","typeLabel":"object[]"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.stderr","typeLabel":"string"},"stdout":{"type":"string","description":"The command's standard output.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.stdout","typeLabel":"string"},"type":{"enum":["bash_code_execution_result"],"type":"string","description":"One of \"bash_code_execution_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"type":{"enum":["bash_code_execution_tool_result"],"type":"string","description":"One of \"bash_code_execution_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["error_code","error_message","type"],"example":{"error_code":"unavailable","error_message":null,"type":"text_editor_code_execution_view_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","file_not_found"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"too_many_requests\", \"execution_time_exceeded\", \"file_not_found\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"error_message":{"oneOf":[{"type":"string","description":"What went wrong with the text editor call; null when not given.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.0.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"What went wrong with the text editor call; null when not given.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.0.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.0.error_message","typeLabel":"string | null"},"type":{"enum":["text_editor_code_execution_tool_result_error"],"type":"string","description":"One of \"text_editor_code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["content","file_type","num_lines","start_line","total_lines","type"],"example":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"properties":{"content":{"type":"string","description":"The viewed file's text (the lines from start_line).","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.content","typeLabel":"string"},"file_type":{"enum":["text","image","pdf"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"text\", \"image\", \"pdf\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.file_type","typeLabel":"enum\u003cstring>"},"num_lines":{"oneOf":[{"type":"integer","description":"Number of lines shown.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.num_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines shown.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.num_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.num_lines","typeLabel":"integer | null"},"start_line":{"oneOf":[{"type":"integer","description":"First line shown.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.start_line.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line shown.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.start_line.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.start_line","typeLabel":"integer | null"},"total_lines":{"oneOf":[{"type":"integer","description":"Lines in the whole file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.total_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Lines in the whole file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.total_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.total_lines","typeLabel":"integer | null"},"type":{"enum":["text_editor_code_execution_view_result"],"type":"string","description":"One of \"text_editor_code_execution_view_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.1","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["is_file_update","type"],"example":{"is_file_update":false,"type":"text_editor_code_execution_view_result"},"properties":{"is_file_update":{"type":"boolean","description":"Whether an existing file was overwritten.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.2.is_file_update","typeLabel":"boolean"},"type":{"enum":["text_editor_code_execution_create_result"],"type":"string","description":"One of \"text_editor_code_execution_create_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.2","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["lines","new_lines","new_start","old_lines","old_start","type"],"example":{"lines":null,"new_lines":null,"new_start":null,"old_lines":null,"old_start":null,"type":"text_editor_code_execution_view_result"},"properties":{"lines":{"oneOf":[{"items":{"type":"string","uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.lines.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Lines of the edited file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.lines.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Lines of the edited file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.lines","typeLabel":"string[] | null"},"new_lines":{"oneOf":[{"type":"integer","description":"Number of lines after the edit.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.new_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines after the edit.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.new_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.new_lines","typeLabel":"integer | null"},"new_start":{"oneOf":[{"type":"integer","description":"First line of the edit in the new file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.new_start.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line of the edit in the new file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.new_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.new_start","typeLabel":"integer | null"},"old_lines":{"oneOf":[{"type":"integer","description":"Number of lines before the edit.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.old_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines before the edit.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.old_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.old_lines","typeLabel":"integer | null"},"old_start":{"oneOf":[{"type":"integer","description":"First line of the edit in the old file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.old_start.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line of the edit in the old file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.old_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.old_start","typeLabel":"integer | null"},"type":{"enum":["text_editor_code_execution_str_replace_result"],"type":"string","description":"One of \"text_editor_code_execution_str_replace_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.tool_use_id","typeLabel":"string"},"type":{"enum":["text_editor_code_execution_tool_result"],"type":"string","description":"One of \"text_editor_code_execution_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a tool search: the tools it found (as tool references), or an error object saying why the search failed.","required":["error_code","error_message","type"],"example":{"error_code":"unavailable","error_message":null,"type":"tool_search_tool_search_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the server tool failed: invalid_tool_input (the model's input was malformed), unavailable (the tool is down), too_many_requests (rate limited), or execution_time_exceeded (the run timed out).","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"error_message":{"oneOf":[{"type":"string","description":"What went wrong with the tool search; null when not given.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.0.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"What went wrong with the tool search; null when not given.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.0.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.0.error_message","typeLabel":"string | null"},"type":{"enum":["tool_search_tool_result_error"],"type":"string","description":"One of \"tool_search_tool_result_error\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a tool search: the tools it found (as tool references), or an error object saying why the search failed.","required":["tool_references","type"],"example":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"properties":{"tool_references":{"items":{"example":{"tool_name":"my_tool","type":"tool_reference"},"properties":{"tool_name":{"type":"string","description":"Name of the tool the search found.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references.items.[INDEX].tool_name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["tool_name","type"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Tools the search returned.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references","typeLabel":"object[]"},"type":{"enum":["tool_search_tool_search_result"],"type":"string","description":"One of \"tool_search_tool_search_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.tool_use_id","typeLabel":"string"},"type":{"enum":["tool_search_tool_result"],"type":"string","description":"One of \"tool_search_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"file_01abc","type":"text"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.11.file_id","typeLabel":"string"},"type":{"enum":["container_upload"],"type":"string","description":"One of \"container_upload\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["type","content"],"example":{"content":"Compacted summary of conversation.","type":"text"},"properties":{"content":{"oneOf":[{"type":"string","description":"The compaction summary text that replaces the earlier conversation, or null when only encrypted_content carries it.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.12.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The compaction summary text that replaces the earlier conversation, or null when only encrypted_content carries it.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.12.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.12.content","typeLabel":"string | null"},"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"content.items.[INDEX].oneOf.12.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"content.items.[INDEX].oneOf.12.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"content.items.[INDEX].oneOf.12.encrypted_content","typeLabel":"string | null"}},"uniqueKey":"content.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"content.items.[INDEX].oneOf.13.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the advisor tool returned: its advice, or an error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.13.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.13.tool_use_id","typeLabel":"string"},"type":{"enum":["advisor_tool_result"],"type":"string","description":"One of \"advisor_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"Output of an `openrouter:shell` call executed in the OpenRouter sandbox","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"content.items.[INDEX].oneOf.14.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the shell command returned: its output, or an error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string","description":"One of \"openrouter_shell_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"content.items.[INDEX].oneOf.14.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.14.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"content.items.[INDEX].oneOf.14.files","typeLabel":"object[]"}},"uniqueKey":"content.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"Output of an `openrouter:bash` call executed in the OpenRouter sandbox (`engine: 'openrouter'`)","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"content.items.[INDEX].oneOf.15.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the bash command returned: its output, or an error.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string","description":"One of \"openrouter_bash_tool_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"content.items.[INDEX].oneOf.15.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"content.items.[INDEX].oneOf.15.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"content.items.[INDEX].oneOf.15.files","typeLabel":"object[]"}},"uniqueKey":"content.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"Router-owned deferred discovery result containing original selected tool definitions.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"content.items.[INDEX].oneOf.16.content.additionalProperties","typeLabel":"any"},"type":"object","description":"The tool definitions the search selected.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.16.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.16.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_tool_search_result"],"type":"string","description":"One of \"openrouter_tool_search_result\".","isRequired":true,"uniqueKey":"content.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"content.items.[INDEX].oneOf.16","typeLabel":"object"}],"uniqueKey":"content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"The content blocks the model produced (text, thinking, tool use).","isRequired":true,"uniqueKey":"content","typeLabel":"object[]"},"id":{"type":"string","description":"Id of this message.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"model":{"type":"string","description":"Model that produced this message.","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"role":{"enum":["assistant"],"type":"string","description":"One of \"assistant\".","isRequired":true,"uniqueKey":"role","typeLabel":"enum\u003cstring>"},"stop_details":{"oneOf":[{"description":"Structured information about a refusal","example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"oneOf":[{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null.","isRequired":true,"uniqueKey":"stop_details.oneOf.0.category.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null.","isRequired":true,"uniqueKey":"stop_details.oneOf.0.category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stop_details.oneOf.0.category","typeLabel":"enum\u003cstring> | null"},"explanation":{"oneOf":[{"type":"string","description":"Why the model refused, in words; null when not given.","isRequired":true,"uniqueKey":"stop_details.oneOf.0.explanation.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the model refused, in words; null when not given.","isRequired":true,"uniqueKey":"stop_details.oneOf.0.explanation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stop_details.oneOf.0.explanation","typeLabel":"string | null"},"type":{"enum":["refusal"],"type":"string","description":"One of \"refusal\".","isRequired":true,"uniqueKey":"stop_details.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"required":["type","category","explanation"],"type":"object","isRequired":true,"uniqueKey":"stop_details.oneOf.0","typeLabel":"object"},{"description":"Structured information about a refusal","example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"oneOf":[{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null."},{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null."}]},"explanation":{"oneOf":[{"type":"string","description":"Why the model refused, in words; null when not given."},{"type":"null","description":"Why the model refused, in words; null when not given."}]},"type":{"enum":["refusal"],"type":"string","description":"One of \"refusal\"."}},"required":["type","category","explanation"],"type":"null","isRequired":true,"uniqueKey":"stop_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stop_details","typeLabel":"object | null"},"stop_reason":{"oneOf":[{"enum":["end_turn","max_tokens","model_context_window_exceeded","stop_sequence","tool_use","pause_turn","refusal","compaction",null],"example":"end_turn","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the model stopped: \"end_turn\" (finished its answer), \"max_tokens\" (hit max_tokens), \"model_context_window_exceeded\" (ran out of context), \"stop_sequence\" (produced a stop sequence), \"tool_use\" (called a tool and waits for its result), \"pause_turn\" (paused a long server-tool turn; send the response back to continue), \"refusal\" (declined for safety), or \"compaction\" (stopped to compact the context). Null while a stream is still running.","isRequired":true,"uniqueKey":"stop_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["end_turn","max_tokens","model_context_window_exceeded","stop_sequence","tool_use","pause_turn","refusal","compaction",null],"example":"end_turn","type":"null","x-speakeasy-unknown-values":"allow","description":"Why the model stopped: \"end_turn\" (finished its answer), \"max_tokens\" (hit max_tokens), \"model_context_window_exceeded\" (ran out of context), \"stop_sequence\" (produced a stop sequence), \"tool_use\" (called a tool and waits for its result), \"pause_turn\" (paused a long server-tool turn; send the response back to continue), \"refusal\" (declined for safety), or \"compaction\" (stopped to compact the context). Null while a stream is still running.","isRequired":true,"uniqueKey":"stop_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stop_reason","typeLabel":"enum\u003cstring> | null"},"stop_sequence":{"oneOf":[{"type":"string","description":"The stop sequence that ended the reply, if any.","isRequired":true,"uniqueKey":"stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","description":"The stop sequence that ended the reply, if any.","isRequired":true,"uniqueKey":"stop_sequence.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stop_sequence","typeLabel":"string | null"},"type":{"enum":["message"],"type":"string","description":"One of \"message\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"usage":{"type":"object","description":"Tokens and cost of the request.","required":["input_tokens","output_tokens","output_tokens_details","cache_creation_input_tokens","cache_read_input_tokens","cache_creation","inference_geo","server_tool_use","service_tier"],"example":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":100,"output_tokens":50,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"},"properties":{"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens written to the prompt cache, split by cache lifetime (5-minute and 1-hour).","required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","isRequired":true,"uniqueKey":"usage.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","isRequired":true,"uniqueKey":"usage.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"usage.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens written to the prompt cache, split by cache lifetime (5-minute and 1-hour).","required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"isRequired":true,"uniqueKey":"usage.cache_creation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens written to the prompt cache.","isRequired":true,"uniqueKey":"usage.cache_creation_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens written to the prompt cache.","isRequired":true,"uniqueKey":"usage.cache_creation_input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.cache_creation_input_tokens","typeLabel":"integer | null"},"cache_read_input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens read from the prompt cache.","isRequired":true,"uniqueKey":"usage.cache_read_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens read from the prompt cache.","isRequired":true,"uniqueKey":"usage.cache_read_input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.cache_read_input_tokens","typeLabel":"integer | null"},"inference_geo":{"oneOf":[{"type":"string","description":"Region where the request was processed.","isRequired":true,"uniqueKey":"usage.inference_geo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region where the request was processed.","isRequired":true,"uniqueKey":"usage.inference_geo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.inference_geo","typeLabel":"string | null"},"input_tokens":{"type":"integer","description":"Input tokens the request used, not counting cache reads or writes.","isRequired":true,"uniqueKey":"usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens the model generated.","isRequired":true,"uniqueKey":"usage.output_tokens","typeLabel":"integer"},"output_tokens_details":{"oneOf":[{"type":"object","description":"A breakdown of the output tokens, such as how many were spent thinking.","required":["thinking_tokens"],"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer","description":"Output tokens spent thinking.","isRequired":true,"uniqueKey":"usage.output_tokens_details.oneOf.0.thinking_tokens","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"usage.output_tokens_details.oneOf.0","typeLabel":"object"},{"type":"null","description":"A breakdown of the output tokens, such as how many were spent thinking.","required":["thinking_tokens"],"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer","description":"Output tokens spent thinking."}},"isRequired":true,"uniqueKey":"usage.output_tokens_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.output_tokens_details","typeLabel":"object | null"},"server_tool_use":{"oneOf":[{"type":"object","description":"How many server-side tool requests the response used: web searches, web fetches, and OpenRouter server tool calls requested and executed.","required":["web_search_requests","web_fetch_requests"],"example":{"web_fetch_requests":0,"web_search_requests":0,"tool_calls_executed":1,"tool_calls_requested":1},"properties":{"web_fetch_requests":{"type":"integer","description":"Number of web fetches made.","isRequired":true,"uniqueKey":"usage.server_tool_use.oneOf.0.web_fetch_requests","typeLabel":"integer"},"web_search_requests":{"type":"integer","description":"Number of web searches run. A server-orchestrated search is also counted in tool_calls_requested; do not add the two.","isRequired":true,"uniqueKey":"usage.server_tool_use.oneOf.0.web_search_requests","typeLabel":"integer"},"tool_calls_executed":{"type":"integer","description":"OpenRouter server tool calls that ran and returned a result.","uniqueKey":"usage.server_tool_use.oneOf.0.tool_calls_executed","typeLabel":"integer"},"tool_calls_requested":{"type":"integer","description":"OpenRouter server tool calls the model asked for, of every tool type; provider-native tools are not counted.","uniqueKey":"usage.server_tool_use.oneOf.0.tool_calls_requested","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"usage.server_tool_use.oneOf.0","typeLabel":"object"},{"type":"null","description":"How many server-side tool requests the response used: web searches, web fetches, and OpenRouter server tool calls requested and executed.","required":["web_search_requests","web_fetch_requests"],"example":{"web_fetch_requests":0,"web_search_requests":0,"tool_calls_executed":1,"tool_calls_requested":1},"properties":{"web_fetch_requests":{"type":"integer","description":"Number of web fetches made."},"web_search_requests":{"type":"integer","description":"Number of web searches run. A server-orchestrated search is also counted in tool_calls_requested; do not add the two."},"tool_calls_executed":{"type":"integer","description":"OpenRouter server tool calls that ran and returned a result."},"tool_calls_requested":{"type":"integer","description":"OpenRouter server tool calls the model asked for, of every tool type; provider-native tools are not counted."}},"isRequired":true,"uniqueKey":"usage.server_tool_use.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.server_tool_use","typeLabel":"object | null"},"service_tier":{"oneOf":[{"type":"string","description":"Service tier the request ran on.","enum":["standard","priority","batch",null],"x-speakeasy-unknown-values":"allow","example":"standard","isRequired":true,"uniqueKey":"usage.service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"Service tier the request ran on.","enum":["standard","priority","batch",null],"x-speakeasy-unknown-values":"allow","example":"standard","isRequired":true,"uniqueKey":"usage.service_tier.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"usage.service_tier","typeLabel":"enum\u003cstring> | null"},"iterations":{"type":"array","items":{"oneOf":[{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"One of \"compaction\".","enum":["compaction"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.0.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"One of \"message\".","enum":[],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.1.model","typeLabel":"string"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message","model":"claude-opus-4-6"},"properties":{"type":{"type":"string","description":"One of \"advisor_message\".","enum":[],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.model","typeLabel":"string"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.2.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"Kind of usage iteration, one this spec does not list.","enum":["compaction"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.3.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"One of \"compaction\".","enum":[],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.4.model","typeLabel":"string"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"One of \"message\".","enum":["message"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.5.model","typeLabel":"string"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message","model":"claude-opus-4-6"},"properties":{"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.model","typeLabel":"string"},"type":{"type":"string","description":"One of \"advisor_message\".","enum":[],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.6.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"Kind of usage iteration, one this spec does not list.","enum":["message"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.7.model","typeLabel":"string"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"model":"claude-opus-4-6","type":"message"},"properties":{"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.model","typeLabel":"string"},"type":{"type":"string","description":"One of \"compaction\".","enum":[],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.8.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"model":"claude-opus-4-6","type":"message"},"properties":{"model":{"type":"string","description":"Model that ran this iteration of the message.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.model","typeLabel":"string"},"type":{"type":"string","description":"One of \"message\".","enum":[],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.9.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"model":"claude-opus-4-6","type":"message"},"properties":{"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.model","typeLabel":"string"},"type":{"type":"string","description":"One of \"advisor_message\".","enum":["advisor_message"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.10.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"model":"claude-opus-4-6","type":"message"},"properties":{"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.model","typeLabel":"string"},"type":{"type":"string","description":"Kind of usage iteration, one this spec does not list.","enum":["advisor_message"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.11.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"One of \"compaction\".","enum":["compaction"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.12.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"One of \"message\".","enum":["message"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.13.model","typeLabel":"string"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message","model":"claude-opus-4-6"},"properties":{"type":{"type":"string","description":"One of \"advisor_message\".","enum":["advisor_message"],"isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.model","typeLabel":"string"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.14.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"Kind of usage iteration, one this spec does not list.","isRequired":true,"uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.type","typeLabel":"string"},"cache_creation":{"oneOf":[{"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_creation.oneOf.0","typeLabel":"object"},{"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"usage.iterations.items.[INDEX].oneOf.15.output_tokens","typeLabel":"integer"}},"uniqueKey":"usage.iterations.items.[INDEX].oneOf.15","typeLabel":"object"}],"uniqueKey":"usage.iterations.items.[INDEX]","typeLabel":"object"},"description":"Usage of each model call in a multi-step response.","uniqueKey":"usage.iterations","typeLabel":"object[]"},"speed":{"oneOf":[{"type":"string","description":"The output speed mode that served the request: \"fast\" (higher-speed inference, priced higher) or \"standard\"; null when not reported.","enum":["fast","standard",null],"x-speakeasy-unknown-values":"allow","example":"standard","uniqueKey":"usage.speed.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The output speed mode that served the request: \"fast\" (higher-speed inference, priced higher) or \"standard\"; null when not reported.","enum":["fast","standard",null],"x-speakeasy-unknown-values":"allow","example":"standard","uniqueKey":"usage.speed.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.speed","typeLabel":"enum\u003cstring> | null"},"cost":{"oneOf":[{"format":"double","type":"number","description":"What the request cost, in US dollars.","uniqueKey":"usage.cost.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","description":"What the request cost, in US dollars.","uniqueKey":"usage.cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost","typeLabel":"number\u003cdouble> | null"},"cost_details":{"oneOf":[{"description":"Breakdown of upstream inference costs","example":{"upstream_inference_completions_cost":0.0004,"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0008},"properties":{"upstream_inference_completions_cost":{"format":"double","type":"number","description":"What the provider charged for output, in US dollars.","isRequired":true,"uniqueKey":"usage.cost_details.oneOf.0.upstream_inference_completions_cost","typeLabel":"number\u003cdouble>"},"upstream_inference_prompt_cost":{"format":"double","type":"number","description":"What the provider charged for input, in US dollars.","isRequired":true,"uniqueKey":"usage.cost_details.oneOf.0.upstream_inference_prompt_cost","typeLabel":"number\u003cdouble>"},"server_tool_cost":{"oneOf":[{"description":"Metered server-tool execution cost (for example, shell sandbox time) billed for this request, in USD. Matches the billed checkpoint and settlement amounts exactly. 0 when a metered server tool ran but settled at zero dollars; absent when no metered server tool ran.","format":"double","type":"number","uniqueKey":"usage.cost_details.oneOf.0.server_tool_cost.oneOf.0","typeLabel":"number\u003cdouble>"},{"description":"Metered server-tool execution cost (for example, shell sandbox time) billed for this request, in USD. Matches the billed checkpoint and settlement amounts exactly. 0 when a metered server tool ran but settled at zero dollars; absent when no metered server tool ran.","format":"double","type":"null","uniqueKey":"usage.cost_details.oneOf.0.server_tool_cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost_details.oneOf.0.server_tool_cost","typeLabel":"number\u003cdouble> | null"},"upstream_inference_cost":{"oneOf":[{"format":"double","type":"number","description":"What the provider charged for the request, in US dollars; null when not known.","uniqueKey":"usage.cost_details.oneOf.0.upstream_inference_cost.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","description":"What the provider charged for the request, in US dollars; null when not known.","uniqueKey":"usage.cost_details.oneOf.0.upstream_inference_cost.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost_details.oneOf.0.upstream_inference_cost","typeLabel":"number\u003cdouble> | null"}},"required":["upstream_inference_prompt_cost","upstream_inference_completions_cost"],"type":"object","uniqueKey":"usage.cost_details.oneOf.0","typeLabel":"object"},{"description":"Breakdown of upstream inference costs","example":{"upstream_inference_completions_cost":0.0004,"upstream_inference_cost":null,"upstream_inference_prompt_cost":0.0008},"properties":{"server_tool_cost":{"oneOf":[{"description":"Metered server-tool execution cost (for example, shell sandbox time) billed for this request, in USD. Matches the billed checkpoint and settlement amounts exactly. 0 when a metered server tool ran but settled at zero dollars; absent when no metered server tool ran.","format":"double","type":"number"},{"description":"Metered server-tool execution cost (for example, shell sandbox time) billed for this request, in USD. Matches the billed checkpoint and settlement amounts exactly. 0 when a metered server tool ran but settled at zero dollars; absent when no metered server tool ran.","format":"double","type":"null"}]},"upstream_inference_completions_cost":{"format":"double","type":"number","description":"What the provider charged for output, in US dollars."},"upstream_inference_cost":{"oneOf":[{"format":"double","type":"number","description":"What the provider charged for the request, in US dollars; null when not known."},{"format":"double","type":"null","description":"What the provider charged for the request, in US dollars; null when not known."}]},"upstream_inference_prompt_cost":{"format":"double","type":"number","description":"What the provider charged for input, in US dollars."}},"required":["upstream_inference_prompt_cost","upstream_inference_completions_cost"],"type":"null","uniqueKey":"usage.cost_details.oneOf.1","typeLabel":"null"}],"uniqueKey":"usage.cost_details","typeLabel":"object | null"},"is_byok":{"type":"boolean","description":"Whether the request used your own provider key (BYOK).","uniqueKey":"usage.is_byok","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"usage","typeLabel":"object"},"input_transformations":{"oneOf":[{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"input_transformations.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"A server-side transformation Anthropic applied to the request input","example":{"path":"messages.1.content.0","reason":"prefix_binding_mismatch","type":"thinking_dropped"},"properties":{"type":{"type":"string","description":"Kind of transformation Anthropic applied to the request input.","isRequired":true,"uniqueKey":"input_transformations.oneOf.0.items.[INDEX].type","typeLabel":"string"},"path":{"oneOf":[{"type":"string","description":"Where in the request input the change was made, e.g. messages.1.content.0.","uniqueKey":"input_transformations.oneOf.0.items.[INDEX].path.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where in the request input the change was made, e.g. messages.1.content.0.","uniqueKey":"input_transformations.oneOf.0.items.[INDEX].path.oneOf.1","typeLabel":"null"}],"uniqueKey":"input_transformations.oneOf.0.items.[INDEX].path","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","description":"Why the change was made.","uniqueKey":"input_transformations.oneOf.0.items.[INDEX].reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the change was made.","uniqueKey":"input_transformations.oneOf.0.items.[INDEX].reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"input_transformations.oneOf.0.items.[INDEX].reason","typeLabel":"string | null"}},"required":["type"],"type":"object","uniqueKey":"input_transformations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Changes made to the input before it was sent to the model.","uniqueKey":"input_transformations.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":{"oneOf":[{}]},"description":"A server-side transformation Anthropic applied to the request input","example":{"path":"messages.1.content.0","reason":"prefix_binding_mismatch","type":"thinking_dropped"},"properties":{"path":{"oneOf":[{"type":"string","description":"Where in the request input the change was made, e.g. messages.1.content.0."},{"type":"null","description":"Where in the request input the change was made, e.g. messages.1.content.0."}]},"reason":{"oneOf":[{"type":"string","description":"Why the change was made."},{"type":"null","description":"Why the change was made."}]},"type":{"type":"string","description":"Kind of transformation Anthropic applied to the request input."}},"required":["type"],"type":"object"},"type":"null","description":"Changes made to the input before it was sent to the model.","uniqueKey":"input_transformations.oneOf.1","typeLabel":"null"}],"uniqueKey":"input_transformations","typeLabel":"object[] | null"},"context_management":{"oneOf":[{"properties":{"applied_edits":{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"context_management.oneOf.0.applied_edits.items.[INDEX].additionalProperties","typeLabel":"any"},"properties":{"type":{"type":"string","description":"Kind of context edit applied (for example clearing old tool results).","isRequired":true,"uniqueKey":"context_management.oneOf.0.applied_edits.items.[INDEX].type","typeLabel":"string"}},"required":["type"],"type":"object","uniqueKey":"context_management.oneOf.0.applied_edits.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Context edits applied to the conversation before it was sent.","isRequired":true,"uniqueKey":"context_management.oneOf.0.applied_edits","typeLabel":"object[]"}},"required":["applied_edits"],"type":"object","description":"Context edits applied to this response.","uniqueKey":"context_management.oneOf.0","typeLabel":"object"},{"properties":{"applied_edits":{"items":{"additionalProperties":{"oneOf":[{}]},"properties":{"type":{"type":"string","description":"Kind of context edit applied (for example clearing old tool results)."}},"required":["type"],"type":"object"},"type":"array","description":"Context edits applied to the conversation before it was sent."}},"required":["applied_edits"],"type":"null","description":"Context edits applied to this response.","uniqueKey":"context_management.oneOf.1","typeLabel":"null"}],"uniqueKey":"context_management","typeLabel":"object | null"},"openrouter_metadata":{"example":{"attempt":1,"endpoints":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":1},"generation_time":2016,"is_byok":false,"region":"iad","requested":"openai/gpt-4o","strategy":"direct","summary":"available=1, selected=OpenAI"},"properties":{"attempt":{"type":"integer","description":"Which routing attempt served the request, starting at 1.","isRequired":true,"uniqueKey":"openrouter_metadata.attempt","typeLabel":"integer"},"endpoints":{"example":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":3},"properties":{"available":{"items":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","selected":true},"properties":{"model":{"type":"string","description":"Model this endpoint serves.","isRequired":true,"uniqueKey":"openrouter_metadata.endpoints.available.items.[INDEX].model","typeLabel":"string"},"provider":{"type":"string","description":"Provider of this endpoint.","isRequired":true,"uniqueKey":"openrouter_metadata.endpoints.available.items.[INDEX].provider","typeLabel":"string"},"selected":{"type":"boolean","description":"Whether this endpoint served the request.","isRequired":true,"uniqueKey":"openrouter_metadata.endpoints.available.items.[INDEX].selected","typeLabel":"boolean"}},"required":["provider","model","selected"],"type":"object","uniqueKey":"openrouter_metadata.endpoints.available.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Endpoints that could serve the request.","isRequired":true,"uniqueKey":"openrouter_metadata.endpoints.available","typeLabel":"object[]"},"total":{"type":"integer","description":"Number of endpoints considered.","isRequired":true,"uniqueKey":"openrouter_metadata.endpoints.total","typeLabel":"integer"}},"required":["total","available"],"type":"object","description":"The endpoints that could have served this request: how many there were and which ones.","isRequired":true,"uniqueKey":"openrouter_metadata.endpoints","typeLabel":"object"},"is_byok":{"type":"boolean","description":"Whether the request used your own provider key (BYOK).","isRequired":true,"uniqueKey":"openrouter_metadata.is_byok","typeLabel":"boolean"},"region":{"oneOf":[{"type":"string","description":"Region of the endpoint that served the request.","isRequired":true,"uniqueKey":"openrouter_metadata.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region of the endpoint that served the request.","isRequired":true,"uniqueKey":"openrouter_metadata.region.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"openrouter_metadata.region","typeLabel":"string | null"},"requested":{"type":"string","description":"The model the request asked for.","isRequired":true,"uniqueKey":"openrouter_metadata.requested","typeLabel":"string"},"strategy":{"enum":["direct","auto","free","latest","alias","fallback","pareto","bodybuilder","fusion"],"example":"direct","type":"string","x-speakeasy-unknown-values":"allow","description":"How the model was chosen: \"direct\" (the model you named), \"auto\" (the Auto Router picked it), \"free\" (the free router), \"latest\" or \"alias\" (a model alias such as ~anthropic/claude-sonnet-latest was resolved), \"fallback\" (a model from your models fallback list), \"pareto\" (the Pareto Router), or another OpenRouter router (\"bodybuilder\", \"fusion\"). New strategies appear over time, so accept values not listed here.","isRequired":true,"uniqueKey":"openrouter_metadata.strategy","typeLabel":"enum\u003cstring>"},"summary":{"type":"string","description":"Short summary of how the request was routed, such as available=1.","isRequired":true,"uniqueKey":"openrouter_metadata.summary","typeLabel":"string"},"attempts":{"items":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","status":200},"properties":{"model":{"type":"string","description":"Model this attempt tried.","isRequired":true,"uniqueKey":"openrouter_metadata.attempts.items.[INDEX].model","typeLabel":"string"},"provider":{"type":"string","description":"Provider this attempt tried.","isRequired":true,"uniqueKey":"openrouter_metadata.attempts.items.[INDEX].provider","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status this attempt returned.","isRequired":true,"uniqueKey":"openrouter_metadata.attempts.items.[INDEX].status","typeLabel":"integer"}},"required":["provider","model","status"],"type":"object","uniqueKey":"openrouter_metadata.attempts.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Every routing attempt made for this request.","uniqueKey":"openrouter_metadata.attempts","typeLabel":"object[]"},"generation_time":{"description":"Milliseconds measured for the generation, from dispatching the upstream request until its response body ended. Divide the completion token count by this for throughput. Absent when no upstream request was dispatched.","example":2016,"type":"integer","uniqueKey":"openrouter_metadata.generation_time","typeLabel":"integer"},"params":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.params.additionalProperties","typeLabel":"any"},"example":{"version_group":"anthropic/claude-sonnet-4"},"properties":{"quality_floor":{"format":"double","type":"number","description":"Lowest quality score a routed model may have.","uniqueKey":"openrouter_metadata.params.quality_floor","typeLabel":"number\u003cdouble>"},"throughput_floor":{"format":"double","type":"number","description":"Lowest throughput a routed endpoint may have, in tokens per second.","uniqueKey":"openrouter_metadata.params.throughput_floor","typeLabel":"number\u003cdouble>"},"version_group":{"type":"string","description":"Model family routing is limited to.","uniqueKey":"openrouter_metadata.params.version_group","typeLabel":"string"}},"type":"object","description":"The routing limits applied to this request, such as the lowest quality score and throughput allowed and the model family routing was limited to.","uniqueKey":"openrouter_metadata.params","typeLabel":"object"},"pipeline":{"items":{"example":{"data":{"action":"redacted","engines":["presidio"],"flagged":true,"matched_entity_types":["EMAIL","PHONE"]},"name":"content-filter","summary":"PII redacted via Presidio (EMAIL, PHONE)","type":"guardrail"},"properties":{"name":{"type":"string","description":"Name of this pipeline stage.","isRequired":true,"uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].name","typeLabel":"string"},"type":{"description":"Categorical kind of a pipeline stage. Multiple plugins can share a type (e.g. all guardrail-level plugins emit `guardrail`); the `name` field disambiguates which plugin emitted it.","enum":["guardrail","plugin","server_tools","response_healing","context_compression"],"example":"guardrail","type":"string","x-speakeasy-unknown-values":"allow","isRequired":true,"uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cost_usd":{"oneOf":[{"format":"double","type":"number","description":"What this stage cost, in US dollars.","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].cost_usd.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","description":"What this stage cost, in US dollars.","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].cost_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].cost_usd","typeLabel":"number\u003cdouble> | null"},"data":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].data.additionalProperties","typeLabel":"any"},"type":"object","description":"Stage-specific detail of what this pipeline stage did.","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].data","typeLabel":"object"},"guardrail_id":{"type":"string","description":"Id of the guardrail this stage applied.","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].guardrail_id","typeLabel":"string"},"guardrail_scope":{"type":"string","description":"What the guardrail applies to: the key, workspace or account.","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].guardrail_scope","typeLabel":"string"},"summary":{"type":"string","description":"Short summary of what this stage did, such as \"Blocked: prompt injection detected\".","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX].summary","typeLabel":"string"}},"required":["type","name"],"type":"object","uniqueKey":"openrouter_metadata.pipeline.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Stages the request passed through, such as guardrails.","uniqueKey":"openrouter_metadata.pipeline","typeLabel":"object[]"}},"required":["requested","strategy","region","summary","attempt","is_byok","endpoints"],"type":"object","description":"How OpenRouter routed this request: the strategy, the endpoints that could serve it, each attempt made, the region, whether your own provider key (BYOK) paid for it, and the generation time.","uniqueKey":"openrouter_metadata","typeLabel":"object"},"provider":{"type":"string","description":"Provider that served the request.","uniqueKey":"provider","typeLabel":"string"},"safeguard_results":{"oneOf":[{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"safeguard_results.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"The outcome of a server-side safeguard, keyed by tool-use id where applicable","example":{"status":{"tool_uses":{"toolu_01ABC":{"outcome":"not_flagged","type":"evaluated"}},"type":"available"},"type":"dangerous_tool_use"},"properties":{"status":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"safeguard_results.oneOf.0.items.[INDEX].status.additionalProperties","typeLabel":"any"},"properties":{"type":{"type":"string","description":"The safeguard's verdict for this tool call.","isRequired":true,"uniqueKey":"safeguard_results.oneOf.0.items.[INDEX].status.type","typeLabel":"string"}},"required":["type"],"type":"object","description":"Outcome of the safeguard, keyed by tool-use id where it applies per tool call.","isRequired":true,"uniqueKey":"safeguard_results.oneOf.0.items.[INDEX].status","typeLabel":"object"},"type":{"type":"string","description":"Kind of safeguard this result is for.","isRequired":true,"uniqueKey":"safeguard_results.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"required":["type","status"],"type":"object","uniqueKey":"safeguard_results.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Results of the server-side safeguards the request ran, or null.","uniqueKey":"safeguard_results.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":{"oneOf":[{}]},"description":"The outcome of a server-side safeguard, keyed by tool-use id where applicable","example":{"status":{"tool_uses":{"toolu_01ABC":{"outcome":"not_flagged","type":"evaluated"}},"type":"available"},"type":"dangerous_tool_use"},"properties":{"status":{"additionalProperties":{"oneOf":[{}]},"properties":{"type":{"type":"string","description":"The safeguard's verdict for this tool call."}},"required":["type"],"type":"object","description":"Outcome of the safeguard, keyed by tool-use id where it applies per tool call."},"type":{"type":"string","description":"Kind of safeguard this result is for."}},"required":["type","status"],"type":"object"},"type":"null","description":"Results of the server-side safeguards the request ran, or null.","uniqueKey":"safeguard_results.oneOf.1","typeLabel":"null"}],"uniqueKey":"safeguard_results","typeLabel":"object[] | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"container":null,"content":[{"citations":[],"text":"I'm doing well, thank you for asking! How can I help you today?","type":"text"}],"id":"msg_abc123","model":"anthropic/claude-sonnet-4","role":"assistant","stop_details":null,"stop_reason":"end_turn","stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":18,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}}}},"exampleType":"examples"},"text/event-stream":{"example":{"data":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"event":"content_block_delta"},"schema":{"example":{"data":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"event":"content_block_delta"},"properties":{"data":{"oneOf":[{"type":"object","description":"Union of all possible streaming events","required":["type","message"],"example":{"message":{"container":null,"content":[],"id":"msg_01XFDUDYJgAACzvnptvVoYEL","model":"claude-sonnet-4-5-20250929","role":"assistant","stop_details":null,"stop_reason":null,"stop_sequence":null,"type":"message","usage":{"cache_creation":null,"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"inference_geo":null,"input_tokens":12,"output_tokens":0,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"}},"type":"content_block_delta"},"properties":{"message":{"properties":{"container":{"oneOf":[{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string","description":"When the container expires (ISO 8601).","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.0.expires_at","typeLabel":"string"},"id":{"type":"string","description":"Id of the code-execution container; send it back as `container` to reuse it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.0.id","typeLabel":"string"},"skills":{"oneOf":[{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill.","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills.oneOf.0.items.[INDEX].skill_id","typeLabel":"string"},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"Version of the skill.","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills.oneOf.0.items.[INDEX].version","typeLabel":"string"}},"required":["skill_id","type","version"],"type":"object","uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Skills loaded in the container.","uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills.oneOf.0","typeLabel":"object[]"},{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"null","description":"Skills loaded in the container.","uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.container.oneOf.0.skills","typeLabel":"object[] | null"}},"required":["id","expires_at"],"type":"object","description":"The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.0","typeLabel":"object"},{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string","description":"When the container expires (ISO 8601)."},"id":{"type":"string","description":"Id of the code-execution container; send it back as `container` to reuse it."},"skills":{"oneOf":[{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"array","description":"Skills loaded in the container."},{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"null","description":"Skills loaded in the container."}]}},"required":["id","expires_at"],"type":"null","description":"The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.","isRequired":true,"uniqueKey":"data.oneOf.0.message.container.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.container","typeLabel":"object | null"},"content":{"items":{"oneOf":[{"type":"object","required":["type","text","citations"],"example":{"citations":null,"text":"Hello, world!","type":"text"},"properties":{"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id","typeLabel":"string | null"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id","typeLabel":"string | null"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id","typeLabel":"string | null"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example text","encrypted_index":"enc_idx_0","title":"Example Page","type":"char_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example text","encrypted_index":"enc_idx_0","title":"Example Page","type":"char_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.citations","typeLabel":"object[] | null"},"text":{"type":"string","description":"The text the model wrote in this block.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","id","caller","name"],"example":{"caller":{"type":"direct"},"id":"toolu_01abc","input":{"location":"San Francisco"},"name":"get_weather","type":"text"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.caller","typeLabel":"object"},"id":{"type":"string","description":"Id of this tool call; the tool_result answering it sets tool_use_id to it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool the model called.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.name","typeLabel":"string"},"type":{"enum":["tool_use"],"type":"string","description":"One of \"tool_use\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"input":{"description":"The tool call's input.","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1.input","typeLabel":"any"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","thinking","signature"],"example":{"signature":"sig_abc123","thinking":"Let me think about this...","type":"text"},"properties":{"signature":{"type":"string","description":"Signature over the thinking text; send the block back unchanged so the provider can verify it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.2.signature","typeLabel":"string"},"thinking":{"type":"string","description":"The model's thinking text.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.2.thinking","typeLabel":"string"},"type":{"enum":["thinking"],"type":"string","description":"One of \"thinking\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","data"],"example":{"data":"cmVkYWN0ZWQ=","type":"text"},"properties":{"data":{"type":"string","description":"The redacted thinking, encrypted; send it back unchanged in the next turn.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.3.data","typeLabel":"string"},"type":{"enum":["redacted_thinking"],"type":"string","description":"One of \"redacted_thinking\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","id","name"],"example":{"caller":{"type":"direct"},"id":"srvtoolu_01abc","input":{},"name":"advisor","type":"text"},"properties":{"id":{"type":"string","description":"Id of this server tool call.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the server tool called.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.name","typeLabel":"string"},"type":{"enum":["server_tool_use"],"type":"string","description":"One of \"server_tool_use\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"caller":{"oneOf":[{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.2","typeLabel":"object"},{"type":"null","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","example":{"type":"direct"},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller.oneOf.3","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.caller","typeLabel":"object · object · object · null"},"input":{"description":"The tool call's input.","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4.input","typeLabel":"any"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.4","typeLabel":"object"},{"type":"object","required":["type","caller","tool_use_id","content"],"example":{"caller":{"type":"direct"},"content":[],"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.caller","typeLabel":"object"},"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","page_age":null,"title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].encrypted_content","typeLabel":"string"},"page_age":{"oneOf":[{"type":"string","description":"How old the page is, as the search reported it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].page_age.oneOf.0","typeLabel":"string"},{"type":"null","description":"How old the page is, as the search reported it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].page_age.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].page_age","typeLabel":"string | null"},"title":{"type":"string","description":"Title of the web page the search found.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].title","typeLabel":"string"},"type":{"enum":["web_search_result"],"type":"string","description":"One of \"web_search_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the search result page.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX].url","typeLabel":"string"}},"required":["type","encrypted_content","page_age","title","url"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The web search results, or an error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"The web search results, or an error.","required":["type","error_code"],"example":{"error_code":"unavailable","type":"web_search_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"max_uses_exceeded\", \"too_many_requests\", \"query_too_long\", \"request_too_large\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.1.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_tool_result_error"],"type":"string","description":"One of \"web_search_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.content","typeLabel":"object[] | object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.tool_use_id","typeLabel":"string"},"type":{"enum":["web_search_tool_result"],"type":"string","description":"One of \"web_search_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.5","typeLabel":"object"},{"type":"object","required":["type","caller","content","tool_use_id"],"example":{"caller":{"type":"direct"},"content":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.caller","typeLabel":"object"},"content":{"oneOf":[{"type":"object","description":"The result of a web fetch: the retrieved document, or an error object saying why the fetch failed.","required":["type","error_code"],"example":{"error_code":"unavailable","type":"web_fetch_result"},"properties":{"error_code":{"enum":["content_too_large","invalid_tool_input","url_too_long","url_not_allowed","url_not_in_prior_context","url_not_accessible","unsupported_content_type","too_many_requests","max_uses_exceeded","unavailable"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"content_too_large\", \"invalid_tool_input\", \"url_too_long\", \"url_not_allowed\", \"url_not_in_prior_context\", \"url_not_accessible\", \"unsupported_content_type\", \"too_many_requests\", \"max_uses_exceeded\", \"unavailable\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_fetch_tool_result_error"],"type":"string","description":"One of \"web_fetch_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a web fetch: the retrieved document, or an error object saying why the fetch failed.","required":["content","retrieved_at","type","url"],"example":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"properties":{"content":{"example":{"citations":null,"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text or a URL.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text or a URL.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.source","typeLabel":"object"},"title":{"oneOf":[{"type":"string","description":"Title of the document, or null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the document, or null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.title","typeLabel":"string | null"},"type":{"enum":["document"],"type":"string","description":"One of \"document\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.type","typeLabel":"enum\u003cstring>"},"citations":{"oneOf":[{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this content.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations.oneOf.0.enabled","typeLabel":"boolean"}},"required":["enabled"],"type":"object","description":"Whether the model may cite passages of this document in its answer; null when citations are not set.","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations.oneOf.0","typeLabel":"object"},{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this content."}},"required":["enabled"],"type":"null","description":"Whether the model may cite passages of this document in its answer; null when citations are not set.","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content.citations","typeLabel":"object | null"}},"required":["source","title","type"],"type":"object","description":"A document the web fetch tool retrieved: its source (text or PDF), title and citations setting.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.content","typeLabel":"object"},"retrieved_at":{"oneOf":[{"type":"string","description":"When the page was fetched (ISO 8601).","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.retrieved_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the page was fetched (ISO 8601).","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.retrieved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.retrieved_at","typeLabel":"string | null"},"type":{"enum":["web_fetch_result"],"type":"string","description":"One of \"web_fetch_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the fetched page.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.tool_use_id","typeLabel":"string"},"type":{"enum":["web_fetch_tool_result"],"type":"string","description":"One of \"web_fetch_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.6","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["error_code","type"],"example":{"error_code":"unavailable","type":"code_execution_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the server tool failed: invalid_tool_input (the model's input was malformed), unavailable (the tool is down), too_many_requests (rate limited), or execution_time_exceeded (the run timed out).","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["code_execution_tool_result_error"],"type":"string","description":"One of \"code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["content","return_code","stderr","stdout","type"],"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["code_execution_output"],"type":"string","description":"One of \"code_execution_output\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the code produced in the code-execution container.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.content","typeLabel":"object[]"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.stderr","typeLabel":"string"},"stdout":{"type":"string","description":"The command's standard output.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.stdout","typeLabel":"string"},"type":{"enum":["code_execution_result"],"type":"string","description":"One of \"code_execution_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.1","typeLabel":"object"},{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["content","encrypted_stdout","return_code","stderr","type"],"example":{"content":[],"encrypted_stdout":"enc_stdout","return_code":0,"stderr":"","type":"code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["code_execution_output"],"type":"string","description":"One of \"code_execution_output\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the code produced in the code-execution container.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.content","typeLabel":"object[]"},"encrypted_stdout":{"type":"string","description":"The command's standard output, encrypted.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.encrypted_stdout","typeLabel":"string"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.stderr","typeLabel":"string"},"type":{"enum":["encrypted_code_execution_result"],"type":"string","description":"One of \"encrypted_code_execution_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.tool_use_id","typeLabel":"string"},"type":{"enum":["code_execution_tool_result"],"type":"string","description":"One of \"code_execution_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.7","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a bash code-execution call: its output (stdout, stderr, return code and files), or an error object saying why it could not run.","required":["error_code","type"],"example":{"error_code":"unavailable","type":"bash_code_execution_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","output_file_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"too_many_requests\", \"execution_time_exceeded\", \"output_file_too_large\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_code_execution_tool_result_error"],"type":"string","description":"One of \"bash_code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a bash code-execution call: its output (stdout, stderr, return code and files), or an error object saying why it could not run.","required":["content","return_code","stderr","stdout","type"],"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"bash_code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["bash_code_execution_output"],"type":"string","description":"One of \"bash_code_execution_output\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the bash command produced in the code-execution container.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.content","typeLabel":"object[]"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.stderr","typeLabel":"string"},"stdout":{"type":"string","description":"The command's standard output.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.stdout","typeLabel":"string"},"type":{"enum":["bash_code_execution_result"],"type":"string","description":"One of \"bash_code_execution_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.tool_use_id","typeLabel":"string"},"type":{"enum":["bash_code_execution_tool_result"],"type":"string","description":"One of \"bash_code_execution_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.8","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["error_code","error_message","type"],"example":{"error_code":"unavailable","error_message":null,"type":"text_editor_code_execution_view_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","file_not_found"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"too_many_requests\", \"execution_time_exceeded\", \"file_not_found\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"error_message":{"oneOf":[{"type":"string","description":"What went wrong with the text editor call; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.0.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"What went wrong with the text editor call; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.0.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.0.error_message","typeLabel":"string | null"},"type":{"enum":["text_editor_code_execution_tool_result_error"],"type":"string","description":"One of \"text_editor_code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["content","file_type","num_lines","start_line","total_lines","type"],"example":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"properties":{"content":{"type":"string","description":"The viewed file's text (the lines from start_line).","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.content","typeLabel":"string"},"file_type":{"enum":["text","image","pdf"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"text\", \"image\", \"pdf\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.file_type","typeLabel":"enum\u003cstring>"},"num_lines":{"oneOf":[{"type":"integer","description":"Number of lines shown.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.num_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines shown.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.num_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.num_lines","typeLabel":"integer | null"},"start_line":{"oneOf":[{"type":"integer","description":"First line shown.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.start_line.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line shown.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.start_line.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.start_line","typeLabel":"integer | null"},"total_lines":{"oneOf":[{"type":"integer","description":"Lines in the whole file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.total_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Lines in the whole file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.total_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.total_lines","typeLabel":"integer | null"},"type":{"enum":["text_editor_code_execution_view_result"],"type":"string","description":"One of \"text_editor_code_execution_view_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.1","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["is_file_update","type"],"example":{"is_file_update":false,"type":"text_editor_code_execution_view_result"},"properties":{"is_file_update":{"type":"boolean","description":"Whether an existing file was overwritten.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.2.is_file_update","typeLabel":"boolean"},"type":{"enum":["text_editor_code_execution_create_result"],"type":"string","description":"One of \"text_editor_code_execution_create_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.2","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["lines","new_lines","new_start","old_lines","old_start","type"],"example":{"lines":null,"new_lines":null,"new_start":null,"old_lines":null,"old_start":null,"type":"text_editor_code_execution_view_result"},"properties":{"lines":{"oneOf":[{"items":{"type":"string","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.lines.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Lines of the edited file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.lines.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Lines of the edited file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.lines","typeLabel":"string[] | null"},"new_lines":{"oneOf":[{"type":"integer","description":"Number of lines after the edit.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.new_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines after the edit.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.new_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.new_lines","typeLabel":"integer | null"},"new_start":{"oneOf":[{"type":"integer","description":"First line of the edit in the new file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.new_start.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line of the edit in the new file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.new_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.new_start","typeLabel":"integer | null"},"old_lines":{"oneOf":[{"type":"integer","description":"Number of lines before the edit.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.old_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines before the edit.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.old_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.old_lines","typeLabel":"integer | null"},"old_start":{"oneOf":[{"type":"integer","description":"First line of the edit in the old file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.old_start.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line of the edit in the old file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.old_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.old_start","typeLabel":"integer | null"},"type":{"enum":["text_editor_code_execution_str_replace_result"],"type":"string","description":"One of \"text_editor_code_execution_str_replace_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.tool_use_id","typeLabel":"string"},"type":{"enum":["text_editor_code_execution_tool_result"],"type":"string","description":"One of \"text_editor_code_execution_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.9","typeLabel":"object"},{"type":"object","required":["type","content","tool_use_id"],"example":{"content":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a tool search: the tools it found (as tool references), or an error object saying why the search failed.","required":["error_code","error_message","type"],"example":{"error_code":"unavailable","error_message":null,"type":"tool_search_tool_search_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the server tool failed: invalid_tool_input (the model's input was malformed), unavailable (the tool is down), too_many_requests (rate limited), or execution_time_exceeded (the run timed out).","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"error_message":{"oneOf":[{"type":"string","description":"What went wrong with the tool search; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.0.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"What went wrong with the tool search; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.0.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.0.error_message","typeLabel":"string | null"},"type":{"enum":["tool_search_tool_result_error"],"type":"string","description":"One of \"tool_search_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a tool search: the tools it found (as tool references), or an error object saying why the search failed.","required":["tool_references","type"],"example":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"properties":{"tool_references":{"items":{"example":{"tool_name":"my_tool","type":"tool_reference"},"properties":{"tool_name":{"type":"string","description":"Name of the tool the search found.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references.items.[INDEX].tool_name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["tool_name","type"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Tools the search returned.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.1.tool_references","typeLabel":"object[]"},"type":{"enum":["tool_search_tool_search_result"],"type":"string","description":"One of \"tool_search_tool_search_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.tool_use_id","typeLabel":"string"},"type":{"enum":["tool_search_tool_result"],"type":"string","description":"One of \"tool_search_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.10","typeLabel":"object"},{"type":"object","required":["type","file_id"],"example":{"file_id":"file_01abc","type":"text"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.11.file_id","typeLabel":"string"},"type":{"enum":["container_upload"],"type":"string","description":"One of \"container_upload\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.11","typeLabel":"object"},{"type":"object","required":["type","content"],"example":{"content":"Compacted summary of conversation.","type":"text"},"properties":{"content":{"oneOf":[{"type":"string","description":"The compaction summary text that replaces the earlier conversation, or null when only encrypted_content carries it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The compaction summary text that replaces the earlier conversation, or null when only encrypted_content carries it.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.content","typeLabel":"string | null"},"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12.encrypted_content","typeLabel":"string | null"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.12","typeLabel":"object"},{"type":"object","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.13.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the advisor tool returned: its advice, or an error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.13.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.13.tool_use_id","typeLabel":"string"},"type":{"enum":["advisor_tool_result"],"type":"string","description":"One of \"advisor_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.13","typeLabel":"object"},{"type":"object","description":"Output of an `openrouter:shell` call executed in the OpenRouter sandbox","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the shell command returned: its output, or an error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string","description":"One of \"openrouter_shell_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14.files","typeLabel":"object[]"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.14","typeLabel":"object"},{"type":"object","description":"Output of an `openrouter:bash` call executed in the OpenRouter sandbox (`engine: 'openrouter'`)","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the bash command returned: its output, or an error.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string","description":"One of \"openrouter_bash_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15.files","typeLabel":"object[]"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.15","typeLabel":"object"},{"type":"object","description":"Router-owned deferred discovery result containing original selected tool definitions.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"text"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.16.content.additionalProperties","typeLabel":"any"},"type":"object","description":"The tool definitions the search selected.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.16.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.16.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_tool_search_result"],"type":"string","description":"One of \"openrouter_tool_search_result\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.0.message.content.items.[INDEX].oneOf.16","typeLabel":"object"}],"uniqueKey":"data.oneOf.0.message.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"The content blocks so far; empty at the start of the stream.","isRequired":true,"uniqueKey":"data.oneOf.0.message.content","typeLabel":"object[]"},"id":{"type":"string","description":"Id of the message being streamed.","isRequired":true,"uniqueKey":"data.oneOf.0.message.id","typeLabel":"string"},"model":{"type":"string","description":"Model producing the message.","isRequired":true,"uniqueKey":"data.oneOf.0.message.model","typeLabel":"string"},"role":{"enum":["assistant"],"type":"string","description":"One of \"assistant\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.role","typeLabel":"enum\u003cstring>"},"stop_details":{"oneOf":[{"description":"Structured information about a refusal","example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"oneOf":[{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.category.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null.","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring> | null"},"explanation":{"oneOf":[{"type":"string","description":"Why the model refused, in words; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.explanation.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the model refused, in words; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.explanation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.explanation","typeLabel":"string | null"},"type":{"enum":["refusal"],"type":"string","description":"One of \"refusal\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"required":["type","category","explanation"],"type":"object","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.0","typeLabel":"object"},{"description":"Structured information about a refusal","example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"oneOf":[{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null."},{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null."}]},"explanation":{"oneOf":[{"type":"string","description":"Why the model refused, in words; null when not given."},{"type":"null","description":"Why the model refused, in words; null when not given."}]},"type":{"enum":["refusal"],"type":"string","description":"One of \"refusal\"."}},"required":["type","category","explanation"],"type":"null","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_details","typeLabel":"object | null"},"stop_reason":{"description":"Why the model stopped.","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_reason","typeLabel":"any"},"stop_sequence":{"description":"The stop sequence that ended the reply, if any.","isRequired":true,"uniqueKey":"data.oneOf.0.message.stop_sequence","typeLabel":"any"},"type":{"enum":["message"],"type":"string","description":"One of \"message\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.type","typeLabel":"enum\u003cstring>"},"usage":{"type":"object","description":"Tokens and cost of the request.","required":["input_tokens","output_tokens","output_tokens_details","cache_creation_input_tokens","cache_read_input_tokens","cache_creation","inference_geo","server_tool_use","service_tier"],"example":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":7381},"cache_creation_input_tokens":7381,"cache_read_input_tokens":0,"inference_geo":null,"input_tokens":100,"output_tokens":1,"output_tokens_details":null,"server_tool_use":null,"service_tier":"standard"},"properties":{"cache_creation":{"oneOf":[{"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"type":"object","description":"Input tokens written to the prompt cache, split by cache lifetime (5-minute and 1-hour).","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation.oneOf.0","typeLabel":"object"},{"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"type":"null","description":"Input tokens written to the prompt cache, split by cache lifetime (5-minute and 1-hour).","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens written to the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens written to the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation_input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_creation_input_tokens","typeLabel":"integer | null"},"cache_read_input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens read from the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_read_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens read from the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_read_input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.cache_read_input_tokens","typeLabel":"integer | null"},"inference_geo":{"oneOf":[{"type":"string","description":"Region where the request was processed.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.inference_geo.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region where the request was processed.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.inference_geo.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.inference_geo","typeLabel":"string | null"},"input_tokens":{"type":"integer","description":"Input tokens the request used, not counting cache reads or writes.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens the model generated.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.output_tokens","typeLabel":"integer"},"output_tokens_details":{"oneOf":[{"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer","description":"Output tokens spent thinking.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.output_tokens_details.oneOf.0.thinking_tokens","typeLabel":"integer"}},"required":["thinking_tokens"],"type":"object","description":"A breakdown of the output tokens, such as how many were spent thinking.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.output_tokens_details.oneOf.0","typeLabel":"object"},{"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer","description":"Output tokens spent thinking."}},"required":["thinking_tokens"],"type":"null","description":"A breakdown of the output tokens, such as how many were spent thinking.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.output_tokens_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.output_tokens_details","typeLabel":"object | null"},"server_tool_use":{"oneOf":[{"example":{"web_fetch_requests":0,"web_search_requests":1},"properties":{"web_fetch_requests":{"type":"integer","description":"Number of web fetches made.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.server_tool_use.oneOf.0.web_fetch_requests","typeLabel":"integer"},"web_search_requests":{"type":"integer","description":"Number of web searches run.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.server_tool_use.oneOf.0.web_search_requests","typeLabel":"integer"}},"required":["web_search_requests","web_fetch_requests"],"type":"object","description":"How many server-side tool requests (web searches and web fetches) the response used; these are billed per request.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.server_tool_use.oneOf.0","typeLabel":"object"},{"example":{"web_fetch_requests":0,"web_search_requests":1},"properties":{"web_fetch_requests":{"type":"integer","description":"Number of web fetches made."},"web_search_requests":{"type":"integer","description":"Number of web searches run."}},"required":["web_search_requests","web_fetch_requests"],"type":"null","description":"How many server-side tool requests (web searches and web fetches) the response used; these are billed per request.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.server_tool_use.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.server_tool_use","typeLabel":"object | null"},"service_tier":{"oneOf":[{"enum":["standard","priority","batch",null],"example":"standard","type":"string","x-speakeasy-unknown-values":"allow","description":"The capacity tier that served the request: \"standard\", \"priority\" (reserved capacity) or \"batch\" (asynchronous batch pricing); null when not reported.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.service_tier.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["standard","priority","batch",null],"example":"standard","type":"null","x-speakeasy-unknown-values":"allow","description":"The capacity tier that served the request: \"standard\", \"priority\" (reserved capacity) or \"batch\" (asynchronous batch pricing); null when not reported.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.service_tier.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.service_tier","typeLabel":"enum\u003cstring> | null"},"iterations":{"items":{"oneOf":[{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0.output_tokens","typeLabel":"integer"}},"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"enum":["message"],"type":"string","description":"One of \"message\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1.model","typeLabel":"string"}},"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"model":"claude-opus-4-6","type":"message"},"properties":{"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.model","typeLabel":"string"},"type":{"enum":["advisor_message"],"type":"string","description":"One of \"advisor_message\".","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2.output_tokens","typeLabel":"integer"}},"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"Kind of usage iteration, one this spec does not list.","isRequired":true,"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.type","typeLabel":"string"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3.output_tokens","typeLabel":"integer"}},"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.oneOf.0.message.usage.iterations.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Usage of each model call in a multi-step response.","uniqueKey":"data.oneOf.0.message.usage.iterations","typeLabel":"object[]"},"speed":{"oneOf":[{"enum":["fast","standard",null],"example":"standard","type":"string","x-speakeasy-unknown-values":"allow","description":"The output speed mode that served the request: \"fast\" (higher-speed inference, priced higher) or \"standard\"; null when not reported.","uniqueKey":"data.oneOf.0.message.usage.speed.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["fast","standard",null],"example":"standard","type":"null","x-speakeasy-unknown-values":"allow","description":"The output speed mode that served the request: \"fast\" (higher-speed inference, priced higher) or \"standard\"; null when not reported.","uniqueKey":"data.oneOf.0.message.usage.speed.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.usage.speed","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"data.oneOf.0.message.usage","typeLabel":"object"},"input_transformations":{"oneOf":[{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"A server-side transformation Anthropic applied to the request input","example":{"path":"messages.1.content.0","reason":"prefix_binding_mismatch","type":"thinking_dropped"},"properties":{"type":{"type":"string","description":"Kind of transformation Anthropic applied to the request input.","isRequired":true,"uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].type","typeLabel":"string"},"path":{"oneOf":[{"type":"string","description":"Where in the request input the change was made, e.g. messages.1.content.0.","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].path.oneOf.0","typeLabel":"string"},{"type":"null","description":"Where in the request input the change was made, e.g. messages.1.content.0.","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].path.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].path","typeLabel":"string | null"},"reason":{"oneOf":[{"type":"string","description":"Why the change was made.","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the change was made.","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].reason.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX].reason","typeLabel":"string | null"}},"required":["type"],"type":"object","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Changes made to the input before it was sent to the model.","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":{"oneOf":[{}]},"description":"A server-side transformation Anthropic applied to the request input","example":{"path":"messages.1.content.0","reason":"prefix_binding_mismatch","type":"thinking_dropped"},"properties":{"path":{"oneOf":[{"type":"string","description":"Where in the request input the change was made, e.g. messages.1.content.0."},{"type":"null","description":"Where in the request input the change was made, e.g. messages.1.content.0."}]},"reason":{"oneOf":[{"type":"string","description":"Why the change was made."},{"type":"null","description":"Why the change was made."}]},"type":{"type":"string","description":"Kind of transformation Anthropic applied to the request input."}},"required":["type"],"type":"object"},"type":"null","description":"Changes made to the input before it was sent to the model.","uniqueKey":"data.oneOf.0.message.input_transformations.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.0.message.input_transformations","typeLabel":"object[] | null"},"provider":{"enum":["AnyScale","Atoma","Cent-ML","CrofAI","Enfer","GoPomelo","HuggingFace","Hyperbolic","Hyperbolic 2","InoCloud","Kluster","Lambda","Lepton","Lynn 2","Lynn","Mancer","Modal","NCompass","Nineteen","OctoAI","Recursal","Reflection","Replicate","SambaNova 2","SF Compute","Targon","Together 2","Ubicloud","01.AI","AkashML","AI21","AionLabs","Alibaba","Ambient","Ant Digital","Baidu","Amazon Bedrock","Amazon Nova","Anthropic","Arcee AI","AssemblyAI","AtlasCloud","Avian","Azure","BaseTen","BytePlus","Black Forest Labs","Cerebras","Chutes","Cirrascale","Claude Platform on AWS","Clarifai","Cloudflare","Cohere","CoreWeave","Cosine","Crucible","Crusoe","Darkbloom","Databricks","Decart","Deepgram","DeepInfra","DeepSeek","DekaLLM","DigitalOcean","ElevenLabs","Featherless","Fireworks","Fish Audio","Friendli","GMICloud","Google","Google AI Studio","Groq","HeyGen","Inception","Inceptron","InferenceNet","Ionstream","Infermatic","Io Net","Inferact vLLM","Inflection","KT","Liquid","Makora","Mara","Mancer 2","Meta","Minimax","ModelRun","Mistral","Modular","Moonshot AI","Morph","VoyageAI by MongoDB","TypeSafe","Near AI","Nebius","Nex AGI","NextBit","Novita","Nvidia","Ollama","OpenAI","OpenInference","Parallel","Parasail","ParetoAlpha","Particle AI","Pearl Research","Poolside","PrimaLabs","PrimeIntellect","Perceptron","Perplexity","Phala","Recraft","Recursive","Reka","Relace","Respan","Sail Research","Sakana AI","SambaNova","ScaleDown","Seed","SiliconFlow","Sourceful","StepFun","Stealth","StreamLake","Switchpoint","Tencent","Tenstorrent","Thinking Machines","Together","Unbiased","Upstage","Venice","Wafer","WandB","Quiver","Krea","Runway","Xiaomi","xAI","Z.AI","FakeProvider"],"type":"string","x-speakeasy-unknown-values":"allow","description":"Provider that served the request.","uniqueKey":"data.oneOf.0.message.provider","typeLabel":"enum\u003cstring>"}},"required":["id","type","role","container","content","model","stop_reason","stop_details","stop_sequence","usage"],"type":"object","description":"The message being streamed, with its content still empty.","isRequired":true,"uniqueKey":"data.oneOf.0.message","typeLabel":"object"},"type":{"enum":["message_start"],"type":"string","description":"One of \"message_start\".","isRequired":true,"uniqueKey":"data.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type","delta","usage"],"example":{"delta":{"text":"Hello","type":"text_delta"},"type":"content_block_delta","usage":{"cache_creation_input_tokens":null,"cache_read_input_tokens":null,"input_tokens":null,"output_tokens":15,"output_tokens_details":null,"server_tool_use":null}},"properties":{"delta":{"properties":{"container":{"oneOf":[{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string","description":"When the container expires (ISO 8601).","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.0.expires_at","typeLabel":"string"},"id":{"type":"string","description":"Id of the code-execution container; send it back as `container` to reuse it.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.0.id","typeLabel":"string"},"skills":{"oneOf":[{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills.oneOf.0.items.[INDEX].skill_id","typeLabel":"string"},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\".","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"version":{"type":"string","description":"Version of the skill.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills.oneOf.0.items.[INDEX].version","typeLabel":"string"}},"required":["skill_id","type","version"],"type":"object","uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Skills loaded in the container.","uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills.oneOf.0","typeLabel":"object[]"},{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"null","description":"Skills loaded in the container.","uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.delta.container.oneOf.0.skills","typeLabel":"object[] | null"}},"required":["id","expires_at"],"type":"object","description":"The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.0","typeLabel":"object"},{"example":{"expires_at":"2026-04-08T00:00:00Z","id":"ctr_01abc","skills":null},"properties":{"expires_at":{"type":"string","description":"When the container expires (ISO 8601)."},"id":{"type":"string","description":"Id of the code-execution container; send it back as `container` to reuse it."},"skills":{"oneOf":[{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"array","description":"Skills loaded in the container."},{"default":null,"items":{"example":{"skill_id":"pdf","type":"anthropic","version":"latest"},"properties":{"skill_id":{"type":"string","description":"Id of the skill."},"type":{"enum":["anthropic","custom"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"anthropic\", \"custom\"."},"version":{"type":"string","description":"Version of the skill."}},"required":["skill_id","type","version"],"type":"object"},"type":"null","description":"Skills loaded in the container."}]}},"required":["id","expires_at"],"type":"null","description":"The code-execution container this response used: its id (send it back to reuse the container), when it expires, and the skills loaded in it. Null when no container was used.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.container.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.delta.container","typeLabel":"object | null"},"stop_details":{"oneOf":[{"description":"Structured information about a refusal","example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"oneOf":[{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.category.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.category.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.category","typeLabel":"enum\u003cstring> | null"},"explanation":{"oneOf":[{"type":"string","description":"Why the model refused, in words; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.explanation.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the model refused, in words; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.explanation.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.explanation","typeLabel":"string | null"},"type":{"enum":["refusal"],"type":"string","description":"One of \"refusal\".","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"required":["type","category","explanation"],"type":"object","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.0","typeLabel":"object"},{"description":"Structured information about a refusal","example":{"category":"cyber","explanation":"The request was refused due to policy.","type":"refusal"},"properties":{"category":{"oneOf":[{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null."},{"enum":["cyber","bio","frontier_llm","reasoning_extraction","general_harms",null],"type":"null","x-speakeasy-unknown-values":"allow","description":"One of \"cyber\", \"bio\", \"frontier_llm\", \"reasoning_extraction\", \"general_harms\", null."}]},"explanation":{"oneOf":[{"type":"string","description":"Why the model refused, in words; null when not given."},{"type":"null","description":"Why the model refused, in words; null when not given."}]},"type":{"enum":["refusal"],"type":"string","description":"One of \"refusal\"."}},"required":["type","category","explanation"],"type":"null","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_details","typeLabel":"object | null"},"stop_reason":{"oneOf":[{"enum":["end_turn","max_tokens","model_context_window_exceeded","stop_sequence","tool_use","pause_turn","refusal","compaction",null],"example":"end_turn","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the model stopped: \"end_turn\" (finished its answer), \"max_tokens\" (hit max_tokens), \"model_context_window_exceeded\" (ran out of context), \"stop_sequence\" (produced a stop sequence), \"tool_use\" (called a tool and waits for its result), \"pause_turn\" (paused a long server-tool turn; send the response back to continue), \"refusal\" (declined for safety), or \"compaction\" (stopped to compact the context). Null while a stream is still running.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_reason.oneOf.0","typeLabel":"enum\u003cstring>"},{"enum":["end_turn","max_tokens","model_context_window_exceeded","stop_sequence","tool_use","pause_turn","refusal","compaction",null],"example":"end_turn","type":"null","x-speakeasy-unknown-values":"allow","description":"Why the model stopped: \"end_turn\" (finished its answer), \"max_tokens\" (hit max_tokens), \"model_context_window_exceeded\" (ran out of context), \"stop_sequence\" (produced a stop sequence), \"tool_use\" (called a tool and waits for its result), \"pause_turn\" (paused a long server-tool turn; send the response back to continue), \"refusal\" (declined for safety), or \"compaction\" (stopped to compact the context). Null while a stream is still running.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_reason","typeLabel":"enum\u003cstring> | null"},"stop_sequence":{"oneOf":[{"type":"string","description":"The stop sequence that ended the reply, if any.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_sequence.oneOf.0","typeLabel":"string"},{"type":"null","description":"The stop sequence that ended the reply, if any.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_sequence.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.delta.stop_sequence","typeLabel":"string | null"},"safeguard_results":{"oneOf":[{"items":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0.items.[INDEX].additionalProperties","typeLabel":"any"},"description":"The outcome of a server-side safeguard, keyed by tool-use id where applicable","example":{"status":{"tool_uses":{"toolu_01ABC":{"outcome":"not_flagged","type":"evaluated"}},"type":"available"},"type":"dangerous_tool_use"},"properties":{"status":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0.items.[INDEX].status.additionalProperties","typeLabel":"any"},"properties":{"type":{"type":"string","description":"The safeguard's verdict for this tool call.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0.items.[INDEX].status.type","typeLabel":"string"}},"required":["type"],"type":"object","description":"Outcome of the safeguard, keyed by tool-use id where it applies per tool call.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0.items.[INDEX].status","typeLabel":"object"},"type":{"type":"string","description":"Kind of safeguard this result is for.","isRequired":true,"uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0.items.[INDEX].type","typeLabel":"string"}},"required":["type","status"],"type":"object","uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Results of the server-side safeguards the request ran, or null.","uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":{"oneOf":[{}]},"description":"The outcome of a server-side safeguard, keyed by tool-use id where applicable","example":{"status":{"tool_uses":{"toolu_01ABC":{"outcome":"not_flagged","type":"evaluated"}},"type":"available"},"type":"dangerous_tool_use"},"properties":{"status":{"additionalProperties":{"oneOf":[{}]},"properties":{"type":{"type":"string","description":"The safeguard's verdict for this tool call."}},"required":["type"],"type":"object","description":"Outcome of the safeguard, keyed by tool-use id where it applies per tool call."},"type":{"type":"string","description":"Kind of safeguard this result is for."}},"required":["type","status"],"type":"object"},"type":"null","description":"Results of the server-side safeguards the request ran, or null.","uniqueKey":"data.oneOf.1.delta.safeguard_results.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.delta.safeguard_results","typeLabel":"object[] | null"}},"required":["container","stop_details","stop_reason","stop_sequence"],"type":"object","description":"Message fields that changed, such as stop_reason.","isRequired":true,"uniqueKey":"data.oneOf.1.delta","typeLabel":"object"},"type":{"enum":["message_delta"],"type":"string","description":"One of \"message_delta\".","isRequired":true,"uniqueKey":"data.oneOf.1.type","typeLabel":"enum\u003cstring>"},"usage":{"properties":{"cache_creation_input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens written to the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_creation_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens written to the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_creation_input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_creation_input_tokens","typeLabel":"integer | null"},"cache_read_input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens read from the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_read_input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens read from the prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_read_input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_read_input_tokens","typeLabel":"integer | null"},"input_tokens":{"oneOf":[{"type":"integer","description":"Input tokens used so far, not counting cache reads or writes; null when not yet known.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.input_tokens.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Input tokens used so far, not counting cache reads or writes; null when not yet known.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.input_tokens.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.usage.input_tokens","typeLabel":"integer | null"},"output_tokens":{"type":"integer","description":"Output tokens generated so far.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.output_tokens","typeLabel":"integer"},"output_tokens_details":{"oneOf":[{"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer","description":"Output tokens spent thinking.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.output_tokens_details.oneOf.0.thinking_tokens","typeLabel":"integer"}},"required":["thinking_tokens"],"type":"object","description":"A breakdown of the output tokens, such as how many were spent thinking.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.output_tokens_details.oneOf.0","typeLabel":"object"},{"example":{"thinking_tokens":0},"properties":{"thinking_tokens":{"type":"integer","description":"Output tokens spent thinking."}},"required":["thinking_tokens"],"type":"null","description":"A breakdown of the output tokens, such as how many were spent thinking.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.output_tokens_details.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.usage.output_tokens_details","typeLabel":"object | null"},"server_tool_use":{"oneOf":[{"example":{"tool_calls_executed":1,"tool_calls_requested":1,"web_fetch_requests":0,"web_search_requests":0},"properties":{"web_fetch_requests":{"type":"integer","description":"Number of web fetches made.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.server_tool_use.oneOf.0.web_fetch_requests","typeLabel":"integer"},"web_search_requests":{"type":"integer","description":"Number of web searches run. A server-orchestrated search is also counted in tool_calls_requested; do not add the two.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.server_tool_use.oneOf.0.web_search_requests","typeLabel":"integer"},"tool_calls_executed":{"type":"integer","description":"OpenRouter server tool calls that ran and returned a result.","uniqueKey":"data.oneOf.1.usage.server_tool_use.oneOf.0.tool_calls_executed","typeLabel":"integer"},"tool_calls_requested":{"type":"integer","description":"OpenRouter server tool calls the model asked for, of every tool type; provider-native tools are not counted.","uniqueKey":"data.oneOf.1.usage.server_tool_use.oneOf.0.tool_calls_requested","typeLabel":"integer"}},"required":["web_search_requests","web_fetch_requests"],"type":"object","description":"How many server-side tool requests the response used: web searches, web fetches, and OpenRouter server tool calls requested and executed.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.server_tool_use.oneOf.0","typeLabel":"object"},{"example":{"tool_calls_executed":1,"tool_calls_requested":1,"web_fetch_requests":0,"web_search_requests":0},"properties":{"tool_calls_executed":{"type":"integer","description":"OpenRouter server tool calls that ran and returned a result."},"tool_calls_requested":{"type":"integer","description":"OpenRouter server tool calls the model asked for, of every tool type; provider-native tools are not counted."},"web_fetch_requests":{"type":"integer","description":"Number of web fetches made."},"web_search_requests":{"type":"integer","description":"Number of web searches run. A server-orchestrated search is also counted in tool_calls_requested; do not add the two."}},"required":["web_search_requests","web_fetch_requests"],"type":"null","description":"How many server-side tool requests the response used: web searches, web fetches, and OpenRouter server tool calls requested and executed.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.server_tool_use.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.1.usage.server_tool_use","typeLabel":"object | null"},"cache_creation":{"oneOf":[{"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"type":"object","description":"Input tokens written to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.cache_creation.oneOf.0","typeLabel":"object"},{"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":100},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"required":["ephemeral_5m_input_tokens","ephemeral_1h_input_tokens"],"type":"null","description":"Input tokens written to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.usage.cache_creation","typeLabel":"object | null"},"iterations":{"items":{"oneOf":[{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0.output_tokens","typeLabel":"integer"}},"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"enum":["message"],"type":"string","description":"One of \"message\".","isRequired":true,"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.output_tokens","typeLabel":"integer"},"model":{"type":"string","description":"Model that ran this iteration of the message.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1.model","typeLabel":"string"}},"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","model"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"model":"claude-opus-4-6","type":"message"},"properties":{"model":{"type":"string","description":"Model the advisor used for this iteration.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.model","typeLabel":"string"},"type":{"enum":["advisor_message"],"type":"string","description":"One of \"advisor_message\".","isRequired":true,"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2.output_tokens","typeLabel":"integer"}},"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type"],"example":{"cache_creation":null,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":100,"output_tokens":50,"type":"message"},"properties":{"type":{"type":"string","description":"Kind of usage iteration, one this spec does not list.","isRequired":true,"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.type","typeLabel":"string"},"cache_creation":{"oneOf":[{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0.ephemeral_1h_input_tokens","typeLabel":"integer"},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0.ephemeral_5m_input_tokens","typeLabel":"integer"}},"type":"object","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.0","typeLabel":"object"},{"default":null,"example":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"properties":{"ephemeral_1h_input_tokens":{"type":"integer","description":"Input tokens written to the 1-hour prompt cache."},"ephemeral_5m_input_tokens":{"type":"integer","description":"Input tokens written to the 5-minute prompt cache."}},"type":"null","description":"Input tokens this iteration wrote to the prompt cache, split by cache lifetime (5-minute and 1-hour).","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_creation.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_creation","typeLabel":"object | null"},"cache_creation_input_tokens":{"type":"integer","description":"Input tokens written to the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_creation_input_tokens","typeLabel":"integer"},"cache_read_input_tokens":{"type":"integer","description":"Input tokens read from the prompt cache.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.cache_read_input_tokens","typeLabel":"integer"},"input_tokens":{"type":"integer","description":"Input tokens this model call used, not counting cache reads or writes.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.input_tokens","typeLabel":"integer"},"output_tokens":{"type":"integer","description":"Output tokens this model call generated.","uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3.output_tokens","typeLabel":"integer"}},"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX].oneOf.3","typeLabel":"object"}],"uniqueKey":"data.oneOf.1.usage.iterations.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Usage of each model call in a multi-step response.","uniqueKey":"data.oneOf.1.usage.iterations","typeLabel":"object[]"}},"required":["input_tokens","output_tokens","output_tokens_details","cache_creation_input_tokens","cache_read_input_tokens","server_tool_use"],"type":"object","description":"Tokens and cost of the request.","isRequired":true,"uniqueKey":"data.oneOf.1.usage","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.1","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type"],"example":{"type":"content_block_delta"},"properties":{"type":{"enum":["message_stop"],"type":"string","description":"One of \"message_stop\".","isRequired":true,"uniqueKey":"data.oneOf.2.type","typeLabel":"enum\u003cstring>"},"openrouter_metadata":{"example":{"attempt":1,"endpoints":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":1},"generation_time":2016,"is_byok":false,"region":"iad","requested":"openai/gpt-4o","strategy":"direct","summary":"available=1, selected=OpenAI"},"properties":{"attempt":{"type":"integer","description":"Which routing attempt served the request, starting at 1.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.attempt","typeLabel":"integer"},"endpoints":{"example":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":3},"properties":{"available":{"items":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","selected":true},"properties":{"model":{"type":"string","description":"Model this endpoint serves.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints.available.items.[INDEX].model","typeLabel":"string"},"provider":{"type":"string","description":"Provider of this endpoint.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints.available.items.[INDEX].provider","typeLabel":"string"},"selected":{"type":"boolean","description":"Whether this endpoint served the request.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints.available.items.[INDEX].selected","typeLabel":"boolean"}},"required":["provider","model","selected"],"type":"object","uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints.available.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Endpoints that could serve the request.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints.available","typeLabel":"object[]"},"total":{"type":"integer","description":"Number of endpoints considered.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints.total","typeLabel":"integer"}},"required":["total","available"],"type":"object","description":"The endpoints that could have served this request: how many there were and which ones.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.endpoints","typeLabel":"object"},"is_byok":{"type":"boolean","description":"Whether the request used your own provider key (BYOK).","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.is_byok","typeLabel":"boolean"},"region":{"oneOf":[{"type":"string","description":"Region of the endpoint that served the request.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region of the endpoint that served the request.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.region.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.region","typeLabel":"string | null"},"requested":{"type":"string","description":"The model the request asked for.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.requested","typeLabel":"string"},"strategy":{"enum":["direct","auto","free","latest","alias","fallback","pareto","bodybuilder","fusion"],"example":"direct","type":"string","x-speakeasy-unknown-values":"allow","description":"How the model was chosen: \"direct\" (the model you named), \"auto\" (the Auto Router picked it), \"free\" (the free router), \"latest\" or \"alias\" (a model alias such as ~anthropic/claude-sonnet-latest was resolved), \"fallback\" (a model from your models fallback list), \"pareto\" (the Pareto Router), or another OpenRouter router (\"bodybuilder\", \"fusion\"). New strategies appear over time, so accept values not listed here.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.strategy","typeLabel":"enum\u003cstring>"},"summary":{"type":"string","description":"Short summary of how the request was routed, such as available=1.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.summary","typeLabel":"string"},"attempts":{"items":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","status":200},"properties":{"model":{"type":"string","description":"Model this attempt tried.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.attempts.items.[INDEX].model","typeLabel":"string"},"provider":{"type":"string","description":"Provider this attempt tried.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.attempts.items.[INDEX].provider","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status this attempt returned.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.attempts.items.[INDEX].status","typeLabel":"integer"}},"required":["provider","model","status"],"type":"object","uniqueKey":"data.oneOf.2.openrouter_metadata.attempts.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Every routing attempt made for this request.","uniqueKey":"data.oneOf.2.openrouter_metadata.attempts","typeLabel":"object[]"},"generation_time":{"description":"Milliseconds measured for the generation, from dispatching the upstream request until its response body ended. Divide the completion token count by this for throughput. Absent when no upstream request was dispatched.","example":2016,"type":"integer","uniqueKey":"data.oneOf.2.openrouter_metadata.generation_time","typeLabel":"integer"},"params":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.2.openrouter_metadata.params.additionalProperties","typeLabel":"any"},"example":{"version_group":"anthropic/claude-sonnet-4"},"properties":{"quality_floor":{"format":"double","type":"number","description":"Lowest quality score a routed model may have.","uniqueKey":"data.oneOf.2.openrouter_metadata.params.quality_floor","typeLabel":"number\u003cdouble>"},"throughput_floor":{"format":"double","type":"number","description":"Lowest throughput a routed endpoint may have, in tokens per second.","uniqueKey":"data.oneOf.2.openrouter_metadata.params.throughput_floor","typeLabel":"number\u003cdouble>"},"version_group":{"type":"string","description":"Model family routing is limited to.","uniqueKey":"data.oneOf.2.openrouter_metadata.params.version_group","typeLabel":"string"}},"type":"object","description":"The routing limits applied to this request, such as the lowest quality score and throughput allowed and the model family routing was limited to.","uniqueKey":"data.oneOf.2.openrouter_metadata.params","typeLabel":"object"},"pipeline":{"items":{"example":{"data":{"action":"redacted","engines":["presidio"],"flagged":true,"matched_entity_types":["EMAIL","PHONE"]},"name":"content-filter","summary":"PII redacted via Presidio (EMAIL, PHONE)","type":"guardrail"},"properties":{"name":{"type":"string","description":"Name of this pipeline stage.","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].name","typeLabel":"string"},"type":{"description":"Categorical kind of a pipeline stage. Multiple plugins can share a type (e.g. all guardrail-level plugins emit `guardrail`); the `name` field disambiguates which plugin emitted it.","enum":["guardrail","plugin","server_tools","response_healing","context_compression"],"example":"guardrail","type":"string","x-speakeasy-unknown-values":"allow","isRequired":true,"uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cost_usd":{"oneOf":[{"format":"double","type":"number","description":"What this stage cost, in US dollars.","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].cost_usd.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","description":"What this stage cost, in US dollars.","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].cost_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].cost_usd","typeLabel":"number\u003cdouble> | null"},"data":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].data.additionalProperties","typeLabel":"any"},"type":"object","description":"Stage-specific detail of what this pipeline stage did.","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].data","typeLabel":"object"},"guardrail_id":{"type":"string","description":"Id of the guardrail this stage applied.","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].guardrail_id","typeLabel":"string"},"guardrail_scope":{"type":"string","description":"What the guardrail applies to: the key, workspace or account.","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].guardrail_scope","typeLabel":"string"},"summary":{"type":"string","description":"Short summary of what this stage did, such as \"Blocked: prompt injection detected\".","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX].summary","typeLabel":"string"}},"required":["type","name"],"type":"object","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Stages the request passed through, such as guardrails.","uniqueKey":"data.oneOf.2.openrouter_metadata.pipeline","typeLabel":"object[]"}},"required":["requested","strategy","region","summary","attempt","is_byok","endpoints"],"type":"object","description":"How OpenRouter routed this request: the strategy, the endpoints that could serve it, each attempt made, the region, whether your own provider key (BYOK) paid for it, and the generation time.","uniqueKey":"data.oneOf.2.openrouter_metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.2","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type","index","content_block"],"example":{"content_block":{"citations":[],"text":"","type":"text"},"index":0,"type":"content_block_delta"},"properties":{"content_block":{"oneOf":[{"type":"object","description":"The content block that starts here.","required":["type","text","citations"],"example":{"citations":null,"text":"Hello, world!","type":"text"},"properties":{"citations":{"oneOf":[{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.end_char_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.file_id","typeLabel":"string | null"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.end_page_number","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.file_id","typeLabel":"string | null"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.end_block_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.file_id","typeLabel":"string | null"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example text","encrypted_index":"enc_idx_0","title":"Example Page","type":"char_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3.url","typeLabel":"string"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Sources this text cites.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.0","typeLabel":"object[]"},{"items":{"oneOf":[{"type":"object","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_char_index":10,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_char_index":{"type":"integer","description":"Offset of the first cited character."},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_page_number":{"type":"integer","description":"Last cited page, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_page_number":{"type":"integer","description":"First cited page."},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\"."}}},{"type":"object","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"document_index":{"type":"integer","description":"Position of the cited document in the request."},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document."},{"type":"null","description":"Title of the cited document."}]},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"file_id":{"oneOf":[{"type":"string","description":"Id of the file."},{"type":"null","description":"Id of the file."}]},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\"."}}},{"type":"object","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example text","encrypted_index":"enc_idx_0","title":"Example Page","type":"char_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result."},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null."},{"type":"null","description":"Title of the cited web page, or null."}]},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\"."},"url":{"type":"string","description":"URL of the cited web search result."}}},{"type":"object","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source."},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive."},"search_result_index":{"type":"integer","description":"Position of the cited search result."},"source":{"type":"string","description":"Where the cited result came from."},"start_block_index":{"type":"integer","description":"Index of the first cited content block."},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null."},{"type":"null","description":"Title of the cited search result, or null."}]},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\"."}}}]},"type":"null","description":"Sources this text cites.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.citations","typeLabel":"object[] | null"},"text":{"type":"string","description":"The text the model wrote in this block.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.text","typeLabel":"string"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.0","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","id","caller","name"],"example":{"caller":{"type":"direct"},"id":"toolu_01abc","input":{"location":"San Francisco"},"name":"get_weather","type":"tool_use"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.caller","typeLabel":"object"},"id":{"type":"string","description":"Id of this tool call; the tool_result answering it sets tool_use_id to it.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the tool the model called.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.name","typeLabel":"string"},"type":{"enum":["tool_use"],"type":"string","description":"One of \"tool_use\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1.type","typeLabel":"enum\u003cstring>"},"input":{"description":"The tool call's input.","uniqueKey":"data.oneOf.3.content_block.oneOf.1.input","typeLabel":"any"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.1","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","thinking","signature"],"example":{"signature":"sig_abc123","thinking":"Let me think about this...","type":"thinking"},"properties":{"signature":{"type":"string","description":"Signature over the thinking text; send the block back unchanged so the provider can verify it.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.2.signature","typeLabel":"string"},"thinking":{"type":"string","description":"The model's thinking text.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.2.thinking","typeLabel":"string"},"type":{"enum":["thinking"],"type":"string","description":"One of \"thinking\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.2","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","data"],"example":{"data":"cmVkYWN0ZWQ=","type":"redacted_thinking"},"properties":{"data":{"type":"string","description":"The redacted thinking, encrypted; send it back unchanged in the next turn.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.3.data","typeLabel":"string"},"type":{"enum":["redacted_thinking"],"type":"string","description":"One of \"redacted_thinking\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.3","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","id","name"],"example":{"caller":{"type":"direct"},"id":"srvtoolu_01abc","input":{},"name":"advisor","type":"server_tool_use"},"properties":{"id":{"type":"string","description":"Id of this server tool call.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.id","typeLabel":"string"},"name":{"type":"string","description":"Name of the server tool called.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.name","typeLabel":"string"},"type":{"enum":["server_tool_use"],"type":"string","description":"One of \"server_tool_use\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.type","typeLabel":"enum\u003cstring>"},"caller":{"oneOf":[{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.2","typeLabel":"object"},{"type":"null","description":"Who called the server tool: the model directly, or code in a code-execution sandbox; null when not reported.","example":{"type":"direct"},"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller.oneOf.3","typeLabel":"null"}],"uniqueKey":"data.oneOf.3.content_block.oneOf.4.caller","typeLabel":"object · object · object · null"},"input":{"description":"The tool call's input.","uniqueKey":"data.oneOf.3.content_block.oneOf.4.input","typeLabel":"any"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.4","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","caller","tool_use_id","content"],"example":{"caller":{"type":"direct"},"content":[],"tool_use_id":"srvtoolu_01abc","type":"web_search_tool_result"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.caller","typeLabel":"object"},"content":{"oneOf":[{"type":"array","items":{"example":{"encrypted_content":"enc_content_0","page_age":null,"title":"Example Page","type":"web_search_result","url":"https://example.com"},"properties":{"encrypted_content":{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].encrypted_content","typeLabel":"string"},"page_age":{"oneOf":[{"type":"string","description":"How old the page is, as the search reported it.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].page_age.oneOf.0","typeLabel":"string"},{"type":"null","description":"How old the page is, as the search reported it.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].page_age.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].page_age","typeLabel":"string | null"},"title":{"type":"string","description":"Title of the web page the search found.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].title","typeLabel":"string"},"type":{"enum":["web_search_result"],"type":"string","description":"One of \"web_search_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the search result page.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX].url","typeLabel":"string"}},"required":["type","encrypted_content","page_age","title","url"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"The web search results, or an error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.0","typeLabel":"object[]"},{"type":"object","description":"The web search results, or an error.","required":["type","error_code"],"example":{"error_code":"unavailable","type":"web_search_tool_result_error"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","max_uses_exceeded","too_many_requests","query_too_long","request_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"max_uses_exceeded\", \"too_many_requests\", \"query_too_long\", \"request_too_large\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.1.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_search_tool_result_error"],"type":"string","description":"One of \"web_search_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.content","typeLabel":"object[] | object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.tool_use_id","typeLabel":"string"},"type":{"enum":["web_search_tool_result"],"type":"string","description":"One of \"web_search_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.5","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","caller","content","tool_use_id"],"example":{"caller":{"type":"direct"},"content":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"tool_use_id":"srvtoolu_01abc","type":"web_fetch_tool_result"},"properties":{"caller":{"oneOf":[{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type"],"example":{"type":"direct"},"properties":{"type":{"enum":["direct"],"type":"string","description":"One of \"direct\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.0","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.1.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20250825"],"type":"string","description":"One of \"code_execution_20250825\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.1","typeLabel":"object"},{"type":"object","description":"Who called the tool: the model directly (\"direct\"), or code running in a code-execution sandbox (with that tool's id).","required":["type","tool_id"],"example":{"tool_id":"toolu_01abc","type":"direct"},"properties":{"tool_id":{"type":"string","description":"Id of the tool.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.2.tool_id","typeLabel":"string"},"type":{"enum":["code_execution_20260120"],"type":"string","description":"One of \"code_execution_20260120\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.caller","typeLabel":"object"},"content":{"oneOf":[{"type":"object","description":"The result of a web fetch: the retrieved document, or an error object saying why the fetch failed.","required":["type","error_code"],"example":{"error_code":"unavailable","type":"web_fetch_result"},"properties":{"error_code":{"enum":["content_too_large","invalid_tool_input","url_too_long","url_not_allowed","url_not_in_prior_context","url_not_accessible","unsupported_content_type","too_many_requests","max_uses_exceeded","unavailable"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"content_too_large\", \"invalid_tool_input\", \"url_too_long\", \"url_not_allowed\", \"url_not_in_prior_context\", \"url_not_accessible\", \"unsupported_content_type\", \"too_many_requests\", \"max_uses_exceeded\", \"unavailable\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["web_fetch_tool_result_error"],"type":"string","description":"One of \"web_fetch_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a web fetch: the retrieved document, or an error object saying why the fetch failed.","required":["content","retrieved_at","type","url"],"example":{"content":{"citations":null,"source":{"data":"","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"retrieved_at":null,"type":"web_fetch_result","url":"https://example.com"},"properties":{"content":{"example":{"citations":null,"source":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"title":null,"type":"document"},"properties":{"source":{"oneOf":[{"type":"object","description":"The document's content: base64 PDF, plain text or a URL.","required":["type","media_type","data"],"example":{"data":"JVBERi0x...","media_type":"application/pdf","type":"base64"},"properties":{"data":{"type":"string","description":"The PDF file, base64-encoded.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.0.data","typeLabel":"string"},"media_type":{"enum":["application/pdf"],"type":"string","description":"One of \"application/pdf\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.0.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["base64"],"type":"string","description":"One of \"base64\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.0","typeLabel":"object"},{"type":"object","description":"The document's content: base64 PDF, plain text or a URL.","required":["type","media_type","data"],"example":{"data":"Hello, world!","media_type":"text/plain","type":"text"},"properties":{"data":{"type":"string","description":"The document's plain text.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.1.data","typeLabel":"string"},"media_type":{"enum":["text/plain"],"type":"string","description":"One of \"text/plain\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.1.media_type","typeLabel":"enum\u003cstring>"},"type":{"enum":["text"],"type":"string","description":"One of \"text\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.source","typeLabel":"object"},"title":{"oneOf":[{"type":"string","description":"Title of the document, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the document, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.title","typeLabel":"string | null"},"type":{"enum":["document"],"type":"string","description":"One of \"document\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.type","typeLabel":"enum\u003cstring>"},"citations":{"oneOf":[{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this content.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.citations.oneOf.0.enabled","typeLabel":"boolean"}},"required":["enabled"],"type":"object","description":"Whether the model may cite passages of this document in its answer; null when citations are not set.","uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.citations.oneOf.0","typeLabel":"object"},{"default":null,"example":{"enabled":true},"properties":{"enabled":{"type":"boolean","description":"Whether the model may cite this content."}},"required":["enabled"],"type":"null","description":"Whether the model may cite passages of this document in its answer; null when citations are not set.","uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.citations.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content.citations","typeLabel":"object | null"}},"required":["source","title","type"],"type":"object","description":"A document the web fetch tool retrieved: its source (text or PDF), title and citations setting.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.content","typeLabel":"object"},"retrieved_at":{"oneOf":[{"type":"string","description":"When the page was fetched (ISO 8601).","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.retrieved_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the page was fetched (ISO 8601).","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.retrieved_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.retrieved_at","typeLabel":"string | null"},"type":{"enum":["web_fetch_result"],"type":"string","description":"One of \"web_fetch_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the fetched page.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.tool_use_id","typeLabel":"string"},"type":{"enum":["web_fetch_tool_result"],"type":"string","description":"One of \"web_fetch_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.6","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","content","tool_use_id"],"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"code_execution_tool_result"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["error_code","type"],"example":{"error_code":"unavailable","type":"code_execution_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the server tool failed: invalid_tool_input (the model's input was malformed), unavailable (the tool is down), too_many_requests (rate limited), or execution_time_exceeded (the run timed out).","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["code_execution_tool_result_error"],"type":"string","description":"One of \"code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["content","return_code","stderr","stdout","type"],"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["code_execution_output"],"type":"string","description":"One of \"code_execution_output\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the code produced in the code-execution container.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.content","typeLabel":"object[]"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.stderr","typeLabel":"string"},"stdout":{"type":"string","description":"The command's standard output.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.stdout","typeLabel":"string"},"type":{"enum":["code_execution_result"],"type":"string","description":"One of \"code_execution_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.1","typeLabel":"object"},{"type":"object","description":"The result of a code-execution call: its output, its encrypted output, or an error object saying why it could not run.","required":["content","encrypted_stdout","return_code","stderr","type"],"example":{"content":[],"encrypted_stdout":"enc_stdout","return_code":0,"stderr":"","type":"code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["code_execution_output"],"type":"string","description":"One of \"code_execution_output\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the code produced in the code-execution container.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.content","typeLabel":"object[]"},"encrypted_stdout":{"type":"string","description":"The command's standard output, encrypted.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.encrypted_stdout","typeLabel":"string"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.stderr","typeLabel":"string"},"type":{"enum":["encrypted_code_execution_result"],"type":"string","description":"One of \"encrypted_code_execution_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.tool_use_id","typeLabel":"string"},"type":{"enum":["code_execution_tool_result"],"type":"string","description":"One of \"code_execution_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.7","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","content","tool_use_id"],"example":{"content":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"tool_use_id":"srvtoolu_01abc","type":"bash_code_execution_tool_result"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a bash code-execution call: its output (stdout, stderr, return code and files), or an error object saying why it could not run.","required":["error_code","type"],"example":{"error_code":"unavailable","type":"bash_code_execution_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","output_file_too_large"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"too_many_requests\", \"execution_time_exceeded\", \"output_file_too_large\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"type":{"enum":["bash_code_execution_tool_result_error"],"type":"string","description":"One of \"bash_code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a bash code-execution call: its output (stdout, stderr, return code and files), or an error object saying why it could not run.","required":["content","return_code","stderr","stdout","type"],"example":{"content":[],"return_code":0,"stderr":"","stdout":"Hello","type":"bash_code_execution_result"},"properties":{"content":{"items":{"example":{"file_id":"file_01abc","type":"bash_code_execution_output"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.content.items.[INDEX].file_id","typeLabel":"string"},"type":{"enum":["bash_code_execution_output"],"type":"string","description":"One of \"bash_code_execution_output\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.content.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["file_id","type"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.content.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Files the bash command produced in the code-execution container.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.content","typeLabel":"object[]"},"return_code":{"type":"integer","description":"The code's exit status.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.return_code","typeLabel":"integer"},"stderr":{"type":"string","description":"The command's standard error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.stderr","typeLabel":"string"},"stdout":{"type":"string","description":"The command's standard output.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.stdout","typeLabel":"string"},"type":{"enum":["bash_code_execution_result"],"type":"string","description":"One of \"bash_code_execution_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.tool_use_id","typeLabel":"string"},"type":{"enum":["bash_code_execution_tool_result"],"type":"string","description":"One of \"bash_code_execution_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.8","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","content","tool_use_id"],"example":{"content":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"tool_use_id":"srvtoolu_01abc","type":"text_editor_code_execution_tool_result"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["error_code","error_message","type"],"example":{"error_code":"unavailable","error_message":null,"type":"text_editor_code_execution_view_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded","file_not_found"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_tool_input\", \"unavailable\", \"too_many_requests\", \"execution_time_exceeded\", \"file_not_found\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"error_message":{"oneOf":[{"type":"string","description":"What went wrong with the text editor call; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.0.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"What went wrong with the text editor call; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.0.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.0.error_message","typeLabel":"string | null"},"type":{"enum":["text_editor_code_execution_tool_result_error"],"type":"string","description":"One of \"text_editor_code_execution_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["content","file_type","num_lines","start_line","total_lines","type"],"example":{"content":"file content","file_type":"text","num_lines":10,"start_line":1,"total_lines":10,"type":"text_editor_code_execution_view_result"},"properties":{"content":{"type":"string","description":"The viewed file's text (the lines from start_line).","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.content","typeLabel":"string"},"file_type":{"enum":["text","image","pdf"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"text\", \"image\", \"pdf\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.file_type","typeLabel":"enum\u003cstring>"},"num_lines":{"oneOf":[{"type":"integer","description":"Number of lines shown.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.num_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines shown.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.num_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.num_lines","typeLabel":"integer | null"},"start_line":{"oneOf":[{"type":"integer","description":"First line shown.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.start_line.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line shown.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.start_line.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.start_line","typeLabel":"integer | null"},"total_lines":{"oneOf":[{"type":"integer","description":"Lines in the whole file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.total_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Lines in the whole file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.total_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.total_lines","typeLabel":"integer | null"},"type":{"enum":["text_editor_code_execution_view_result"],"type":"string","description":"One of \"text_editor_code_execution_view_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.1","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["is_file_update","type"],"example":{"is_file_update":false,"type":"text_editor_code_execution_view_result"},"properties":{"is_file_update":{"type":"boolean","description":"Whether an existing file was overwritten.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.2.is_file_update","typeLabel":"boolean"},"type":{"enum":["text_editor_code_execution_create_result"],"type":"string","description":"One of \"text_editor_code_execution_create_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.2","typeLabel":"object"},{"type":"object","description":"The result of a text-editor code-execution call: a file view, a created file, a string replacement, or an error object saying why it failed.","required":["lines","new_lines","new_start","old_lines","old_start","type"],"example":{"lines":null,"new_lines":null,"new_start":null,"old_lines":null,"old_start":null,"type":"text_editor_code_execution_view_result"},"properties":{"lines":{"oneOf":[{"items":{"type":"string","uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.lines.oneOf.0.items.[INDEX]","typeLabel":"string"},"type":"array","description":"Lines of the edited file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.lines.oneOf.0","typeLabel":"string[]"},{"items":{"type":"string"},"type":"null","description":"Lines of the edited file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.lines","typeLabel":"string[] | null"},"new_lines":{"oneOf":[{"type":"integer","description":"Number of lines after the edit.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.new_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines after the edit.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.new_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.new_lines","typeLabel":"integer | null"},"new_start":{"oneOf":[{"type":"integer","description":"First line of the edit in the new file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.new_start.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line of the edit in the new file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.new_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.new_start","typeLabel":"integer | null"},"old_lines":{"oneOf":[{"type":"integer","description":"Number of lines before the edit.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.old_lines.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Number of lines before the edit.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.old_lines.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.old_lines","typeLabel":"integer | null"},"old_start":{"oneOf":[{"type":"integer","description":"First line of the edit in the old file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.old_start.oneOf.0","typeLabel":"integer"},{"type":"null","description":"First line of the edit in the old file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.old_start.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.old_start","typeLabel":"integer | null"},"type":{"enum":["text_editor_code_execution_str_replace_result"],"type":"string","description":"One of \"text_editor_code_execution_str_replace_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.tool_use_id","typeLabel":"string"},"type":{"enum":["text_editor_code_execution_tool_result"],"type":"string","description":"One of \"text_editor_code_execution_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.9","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","content","tool_use_id"],"example":{"content":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"tool_use_id":"srvtoolu_01abc","type":"tool_search_tool_result"},"properties":{"content":{"oneOf":[{"type":"object","description":"The result of a tool search: the tools it found (as tool references), or an error object saying why the search failed.","required":["error_code","error_message","type"],"example":{"error_code":"unavailable","error_message":null,"type":"tool_search_tool_search_result"},"properties":{"error_code":{"enum":["invalid_tool_input","unavailable","too_many_requests","execution_time_exceeded"],"example":"unavailable","type":"string","x-speakeasy-unknown-values":"allow","description":"Why the server tool failed: invalid_tool_input (the model's input was malformed), unavailable (the tool is down), too_many_requests (rate limited), or execution_time_exceeded (the run timed out).","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.0.error_code","typeLabel":"enum\u003cstring>"},"error_message":{"oneOf":[{"type":"string","description":"What went wrong with the tool search; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.0.error_message.oneOf.0","typeLabel":"string"},{"type":"null","description":"What went wrong with the tool search; null when not given.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.0.error_message.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.0.error_message","typeLabel":"string | null"},"type":{"enum":["tool_search_tool_result_error"],"type":"string","description":"One of \"tool_search_tool_result_error\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.0","typeLabel":"object"},{"type":"object","description":"The result of a tool search: the tools it found (as tool references), or an error object saying why the search failed.","required":["tool_references","type"],"example":{"tool_references":[{"tool_name":"my_tool","type":"tool_reference"}],"type":"tool_search_tool_search_result"},"properties":{"tool_references":{"items":{"example":{"tool_name":"my_tool","type":"tool_reference"},"properties":{"tool_name":{"type":"string","description":"Name of the tool the search found.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.1.tool_references.items.[INDEX].tool_name","typeLabel":"string"},"type":{"enum":["tool_reference"],"type":"string","description":"One of \"tool_reference\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.1.tool_references.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["tool_name","type"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.1.tool_references.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Tools the search returned.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.1.tool_references","typeLabel":"object[]"},"type":{"enum":["tool_search_tool_search_result"],"type":"string","description":"One of \"tool_search_tool_search_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.tool_use_id","typeLabel":"string"},"type":{"enum":["tool_search_tool_result"],"type":"string","description":"One of \"tool_search_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.10","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","file_id"],"example":{"file_id":"file_01abc","type":"container_upload"},"properties":{"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.11.file_id","typeLabel":"string"},"type":{"enum":["container_upload"],"type":"string","description":"One of \"container_upload\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.11.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.11","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","content"],"example":{"content":"Compacted summary of conversation.","type":"compaction"},"properties":{"content":{"oneOf":[{"type":"string","description":"The compaction summary text that replaces the earlier conversation, or null when only encrypted_content carries it.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.12.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The compaction summary text that replaces the earlier conversation, or null when only encrypted_content carries it.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.12.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.12.content","typeLabel":"string | null"},"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.12.type","typeLabel":"enum\u003cstring>"},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.3.content_block.oneOf.12.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.3.content_block.oneOf.12.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.3.content_block.oneOf.12.encrypted_content","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.12","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","tool_use_id","content"],"example":{"content":{"text":"Advisor response text","type":"advisor_result"},"tool_use_id":"srvtoolu_01abc","type":"advisor_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.3.content_block.oneOf.13.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the advisor tool returned: its advice, or an error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.13.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.13.tool_use_id","typeLabel":"string"},"type":{"enum":["advisor_tool_result"],"type":"string","description":"One of \"advisor_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.13.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.13","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","tool_use_id","content"],"example":{"content":{"output":[{"outcome":{"exit_code":0,"type":"exit"},"stderr":"","stdout":"README.md\n"}]},"tool_use_id":"srvtoolu_01abc","type":"openrouter_shell_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.3.content_block.oneOf.14.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the shell command returned: its output, or an error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_shell_tool_result"],"type":"string","description":"One of \"openrouter_shell_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"data.oneOf.3.content_block.oneOf.14.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.14.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"data.oneOf.3.content_block.oneOf.14.files","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.14","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","tool_use_id","content"],"example":{"content":{"command":"ls","exitCode":0,"stderr":"","stdout":"README.md\n"},"tool_use_id":"srvtoolu_01abc","type":"openrouter_bash_tool_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.3.content_block.oneOf.15.content.additionalProperties","typeLabel":"any"},"type":"object","description":"What the bash command returned: its output, or an error.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_bash_tool_result"],"type":"string","description":"One of \"openrouter_bash_tool_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.type","typeLabel":"enum\u003cstring>"},"container_id":{"description":"The canonical container id the command ran under — the `{container_id}` for the Container Files API, reusable as a `container_reference` in later requests. Present on every sandbox-executed call, even when no files changed.","type":"string","uniqueKey":"data.oneOf.3.content_block.oneOf.15.container_id","typeLabel":"string"},"files":{"description":"Citations for the files the sandbox command created or modified, most-recently-touched first (at most 10). Retrieve them via the Container Files API.","items":{"properties":{"container_id":{"type":"string","description":"Id of the container holding the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX].container_id","typeLabel":"string"},"end_index":{"type":"integer","description":"Offset in the output where the file citation ends, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX].end_index","typeLabel":"integer"},"file_id":{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX].file_id","typeLabel":"string"},"filename":{"type":"string","description":"Name of the file.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX].filename","typeLabel":"string"},"start_index":{"type":"integer","description":"Offset in the output where the file citation starts.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX].start_index","typeLabel":"integer"},"type":{"enum":["container_file_citation"],"type":"string","description":"One of \"container_file_citation\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"required":["type","container_id","file_id","filename","start_index","end_index"],"type":"object","uniqueKey":"data.oneOf.3.content_block.oneOf.15.files.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"data.oneOf.3.content_block.oneOf.15.files","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.15","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","tool_use_id","content"],"example":{"content":{"matches":[]},"tool_use_id":"search","type":"openrouter_tool_search_result"},"properties":{"content":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.3.content_block.oneOf.16.content.additionalProperties","typeLabel":"any"},"type":"object","description":"The tool definitions the search selected.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.16.content","typeLabel":"object"},"tool_use_id":{"type":"string","description":"Id of the tool call this result answers.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.16.tool_use_id","typeLabel":"string"},"type":{"enum":["openrouter_tool_search_result"],"type":"string","description":"One of \"openrouter_tool_search_result\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.16.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.16","typeLabel":"object"},{"type":"object","description":"The content block that starts here.","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","description":"The compaction summary text so far, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.17.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"The compaction summary text so far, or null.","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.17.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.17.content","typeLabel":"string | null"},"type":{"enum":["compaction"],"type":"string","description":"One of \"compaction\".","isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.17.type","typeLabel":"enum\u003cstring>"},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.3.content_block.oneOf.17.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.3.content_block.oneOf.17.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.3.content_block.oneOf.17.encrypted_content","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.3.content_block.oneOf.17","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.3.content_block","typeLabel":"object"},"index":{"type":"integer","description":"Position of the content block that starts.","isRequired":true,"uniqueKey":"data.oneOf.3.index","typeLabel":"integer"},"type":{"enum":["content_block_start"],"type":"string","description":"One of \"content_block_start\".","isRequired":true,"uniqueKey":"data.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.3","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type","index","delta"],"example":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"properties":{"delta":{"oneOf":[{"type":"object","description":"What was added to the content block: text, JSON, thinking, a signature or a citation.","required":["type","text"],"properties":{"text":{"type":"string","description":"Text added to the block in this delta.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.0.text","typeLabel":"string"},"type":{"enum":["text_delta"],"type":"string","description":"One of \"text_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.0","typeLabel":"object"},{"type":"object","description":"What was added to the content block: text, JSON, thinking, a signature or a citation.","required":["type","partial_json"],"properties":{"partial_json":{"type":"string","description":"JSON added since the previous event.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.1.partial_json","typeLabel":"string"},"type":{"enum":["input_json_delta"],"type":"string","description":"One of \"input_json_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.1","typeLabel":"object"},{"type":"object","description":"What was added to the content block: text, JSON, thinking, a signature or a citation.","required":["type","thinking"],"properties":{"thinking":{"type":"string","description":"Thinking text added since the previous event.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.2.thinking","typeLabel":"string"},"type":{"enum":["thinking_delta"],"type":"string","description":"One of \"thinking_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.2","typeLabel":"object"},{"type":"object","description":"What was added to the content block: text, JSON, thinking, a signature or a citation.","required":["type","signature"],"properties":{"signature":{"type":"string","description":"Signature for the thinking block, sent once at its end; send it back unchanged with the block.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.3.signature","typeLabel":"string"},"type":{"enum":["signature_delta"],"type":"string","description":"One of \"signature_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.3.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.3","typeLabel":"object"},{"type":"object","description":"What was added to the content block: text, JSON, thinking, a signature or a citation.","required":["type","citation"],"properties":{"citation":{"oneOf":[{"type":"object","description":"A citation added to the text block.","required":["type","cited_text","document_index","document_title","start_char_index","end_char_index","file_id"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_char_index":18,"file_id":null,"start_char_index":0,"type":"char_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.document_title","typeLabel":"string | null"},"end_char_index":{"type":"integer","description":"Offset of the last cited character, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.end_char_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.file_id","typeLabel":"string | null"},"start_char_index":{"type":"integer","description":"Offset of the first cited character.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.start_char_index","typeLabel":"integer"},"type":{"enum":["char_location"],"type":"string","description":"One of \"char_location\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.0","typeLabel":"object"},{"type":"object","description":"A citation added to the text block.","required":["type","cited_text","document_index","document_title","start_page_number","end_page_number","file_id"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_page_number":2,"file_id":null,"start_page_number":1,"type":"page_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.document_title","typeLabel":"string | null"},"end_page_number":{"type":"integer","description":"Last cited page, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.end_page_number","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.file_id","typeLabel":"string | null"},"start_page_number":{"type":"integer","description":"First cited page.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.start_page_number","typeLabel":"integer"},"type":{"enum":["page_location"],"type":"string","description":"One of \"page_location\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.1","typeLabel":"object"},{"type":"object","description":"A citation added to the text block.","required":["type","cited_text","document_index","document_title","start_block_index","end_block_index","file_id"],"example":{"cited_text":"Example cited text","document_index":0,"document_title":null,"end_block_index":1,"file_id":null,"start_block_index":0,"type":"content_block_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.cited_text","typeLabel":"string"},"document_index":{"type":"integer","description":"Position of the cited document in the request.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.document_index","typeLabel":"integer"},"document_title":{"oneOf":[{"type":"string","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.document_title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited document.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.document_title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.document_title","typeLabel":"string | null"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.end_block_index","typeLabel":"integer"},"file_id":{"oneOf":[{"type":"string","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.file_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the file.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.file_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.file_id","typeLabel":"string | null"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.start_block_index","typeLabel":"integer"},"type":{"enum":["content_block_location"],"type":"string","description":"One of \"content_block_location\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.2","typeLabel":"object"},{"type":"object","description":"A citation added to the text block.","required":["type","cited_text","encrypted_index","title","url"],"example":{"cited_text":"Example cited text","encrypted_index":"enc_idx_0","title":"Example Page","type":"web_search_result_location","url":"https://example.com"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.cited_text","typeLabel":"string"},"encrypted_index":{"type":"string","description":"Opaque encrypted position of the cited result.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.encrypted_index","typeLabel":"string"},"title":{"oneOf":[{"type":"string","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited web page, or null.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.title","typeLabel":"string | null"},"type":{"enum":["web_search_result_location"],"type":"string","description":"One of \"web_search_result_location\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"URL of the cited web search result.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3.url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.3","typeLabel":"object"},{"type":"object","description":"A citation added to the text block.","required":["type","cited_text","search_result_index","source","title","start_block_index","end_block_index"],"example":{"cited_text":"Example cited text","end_block_index":1,"search_result_index":0,"source":"example_source","start_block_index":0,"title":"Example Result","type":"search_result_location"},"properties":{"cited_text":{"type":"string","description":"The exact text quoted from the source.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.cited_text","typeLabel":"string"},"end_block_index":{"type":"integer","description":"Index of the last cited content block, exclusive.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.end_block_index","typeLabel":"integer"},"search_result_index":{"type":"integer","description":"Position of the cited search result.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.search_result_index","typeLabel":"integer"},"source":{"type":"string","description":"Where the cited result came from.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.source","typeLabel":"string"},"start_block_index":{"type":"integer","description":"Index of the first cited content block.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.start_block_index","typeLabel":"integer"},"title":{"oneOf":[{"type":"string","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.title.oneOf.0","typeLabel":"string"},{"type":"null","description":"Title of the cited search result, or null.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.title.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.title","typeLabel":"string | null"},"type":{"enum":["search_result_location"],"type":"string","description":"One of \"search_result_location\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.citation","typeLabel":"object"},"type":{"enum":["citations_delta"],"type":"string","description":"One of \"citations_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.4","typeLabel":"object"},{"type":"object","description":"What was added to the content block: text, JSON, thinking, a signature or a citation.","required":["type","content"],"properties":{"content":{"oneOf":[{"type":"string","description":"Compaction summary text added in this delta, or null.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.5.content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Compaction summary text added in this delta, or null.","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.5.content.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.5.content","typeLabel":"string | null"},"type":{"enum":["compaction_delta"],"type":"string","description":"One of \"compaction_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.5.type","typeLabel":"enum\u003cstring>"},"encrypted_content":{"oneOf":[{"type":"string","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.4.delta.oneOf.5.encrypted_content.oneOf.0","typeLabel":"string"},{"type":"null","description":"Opaque encrypted state; send it back unchanged to continue.","uniqueKey":"data.oneOf.4.delta.oneOf.5.encrypted_content.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.4.delta.oneOf.5.encrypted_content","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"data.oneOf.4.delta.oneOf.5","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data.oneOf.4.delta","typeLabel":"object"},"index":{"type":"integer","description":"Position of the content block this delta extends.","isRequired":true,"uniqueKey":"data.oneOf.4.index","typeLabel":"integer"},"type":{"enum":["content_block_delta"],"type":"string","description":"One of \"content_block_delta\".","isRequired":true,"uniqueKey":"data.oneOf.4.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.4","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type","index"],"example":{"index":0,"type":"content_block_delta"},"properties":{"index":{"type":"integer","description":"Position of the content block that finished.","isRequired":true,"uniqueKey":"data.oneOf.5.index","typeLabel":"integer"},"type":{"enum":["content_block_stop"],"type":"string","description":"One of \"content_block_stop\".","isRequired":true,"uniqueKey":"data.oneOf.5.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.5","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type"],"example":{"type":"content_block_delta"},"properties":{"type":{"enum":["ping"],"type":"string","description":"One of \"ping\".","isRequired":true,"uniqueKey":"data.oneOf.6.type","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"data.oneOf.6","typeLabel":"object"},{"type":"object","description":"Union of all possible streaming events","required":["type","error"],"example":{"error":{"error_type":"provider_overloaded","message":"Overloaded","type":"overloaded_error"},"type":"content_block_delta"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Overloaded\".","isRequired":true,"uniqueKey":"data.oneOf.7.error.message","typeLabel":"string"},"type":{"type":"string","description":"Anthropic's error type, e.g. overloaded_error or invalid_request_error.","isRequired":true,"uniqueKey":"data.oneOf.7.error.type","typeLabel":"string"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"data.oneOf.7.error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error that ended the stream: its type and message.","isRequired":true,"uniqueKey":"data.oneOf.7.error","typeLabel":"object"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"data.oneOf.7.type","typeLabel":"enum\u003cstring>"},"openrouter_metadata":{"example":{"attempt":1,"endpoints":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":1},"generation_time":2016,"is_byok":false,"region":"iad","requested":"openai/gpt-4o","strategy":"direct","summary":"available=1, selected=OpenAI"},"properties":{"attempt":{"type":"integer","description":"Which routing attempt served the request, starting at 1.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.attempt","typeLabel":"integer"},"endpoints":{"example":{"available":[{"model":"openai/gpt-4o","provider":"OpenAI","selected":true}],"total":3},"properties":{"available":{"items":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","selected":true},"properties":{"model":{"type":"string","description":"Model this endpoint serves.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints.available.items.[INDEX].model","typeLabel":"string"},"provider":{"type":"string","description":"Provider of this endpoint.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints.available.items.[INDEX].provider","typeLabel":"string"},"selected":{"type":"boolean","description":"Whether this endpoint served the request.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints.available.items.[INDEX].selected","typeLabel":"boolean"}},"required":["provider","model","selected"],"type":"object","uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints.available.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Endpoints that could serve the request.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints.available","typeLabel":"object[]"},"total":{"type":"integer","description":"Number of endpoints considered.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints.total","typeLabel":"integer"}},"required":["total","available"],"type":"object","description":"The endpoints that could have served this request: how many there were and which ones.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.endpoints","typeLabel":"object"},"is_byok":{"type":"boolean","description":"Whether the request used your own provider key (BYOK).","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.is_byok","typeLabel":"boolean"},"region":{"oneOf":[{"type":"string","description":"Region of the endpoint that served the request.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.region.oneOf.0","typeLabel":"string"},{"type":"null","description":"Region of the endpoint that served the request.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.region.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.region","typeLabel":"string | null"},"requested":{"type":"string","description":"The model the request asked for.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.requested","typeLabel":"string"},"strategy":{"enum":["direct","auto","free","latest","alias","fallback","pareto","bodybuilder","fusion"],"example":"direct","type":"string","x-speakeasy-unknown-values":"allow","description":"How the model was chosen: \"direct\" (the model you named), \"auto\" (the Auto Router picked it), \"free\" (the free router), \"latest\" or \"alias\" (a model alias such as ~anthropic/claude-sonnet-latest was resolved), \"fallback\" (a model from your models fallback list), \"pareto\" (the Pareto Router), or another OpenRouter router (\"bodybuilder\", \"fusion\"). New strategies appear over time, so accept values not listed here.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.strategy","typeLabel":"enum\u003cstring>"},"summary":{"type":"string","description":"Short summary of how the request was routed, such as available=1.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.summary","typeLabel":"string"},"attempts":{"items":{"example":{"model":"openai/gpt-4o","provider":"OpenAI","status":200},"properties":{"model":{"type":"string","description":"Model this attempt tried.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.attempts.items.[INDEX].model","typeLabel":"string"},"provider":{"type":"string","description":"Provider this attempt tried.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.attempts.items.[INDEX].provider","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status this attempt returned.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.attempts.items.[INDEX].status","typeLabel":"integer"}},"required":["provider","model","status"],"type":"object","uniqueKey":"data.oneOf.7.openrouter_metadata.attempts.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Every routing attempt made for this request.","uniqueKey":"data.oneOf.7.openrouter_metadata.attempts","typeLabel":"object[]"},"generation_time":{"description":"Milliseconds measured for the generation, from dispatching the upstream request until its response body ended. Divide the completion token count by this for throughput. Absent when no upstream request was dispatched.","example":2016,"type":"integer","uniqueKey":"data.oneOf.7.openrouter_metadata.generation_time","typeLabel":"integer"},"params":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.7.openrouter_metadata.params.additionalProperties","typeLabel":"any"},"example":{"version_group":"anthropic/claude-sonnet-4"},"properties":{"quality_floor":{"format":"double","type":"number","description":"Lowest quality score a routed model may have.","uniqueKey":"data.oneOf.7.openrouter_metadata.params.quality_floor","typeLabel":"number\u003cdouble>"},"throughput_floor":{"format":"double","type":"number","description":"Lowest throughput a routed endpoint may have, in tokens per second.","uniqueKey":"data.oneOf.7.openrouter_metadata.params.throughput_floor","typeLabel":"number\u003cdouble>"},"version_group":{"type":"string","description":"Model family routing is limited to.","uniqueKey":"data.oneOf.7.openrouter_metadata.params.version_group","typeLabel":"string"}},"type":"object","description":"The routing limits applied to this request, such as the lowest quality score and throughput allowed and the model family routing was limited to.","uniqueKey":"data.oneOf.7.openrouter_metadata.params","typeLabel":"object"},"pipeline":{"items":{"example":{"data":{"action":"redacted","engines":["presidio"],"flagged":true,"matched_entity_types":["EMAIL","PHONE"]},"name":"content-filter","summary":"PII redacted via Presidio (EMAIL, PHONE)","type":"guardrail"},"properties":{"name":{"type":"string","description":"Name of this pipeline stage.","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].name","typeLabel":"string"},"type":{"description":"Categorical kind of a pipeline stage. Multiple plugins can share a type (e.g. all guardrail-level plugins emit `guardrail`); the `name` field disambiguates which plugin emitted it.","enum":["guardrail","plugin","server_tools","response_healing","context_compression"],"example":"guardrail","type":"string","x-speakeasy-unknown-values":"allow","isRequired":true,"uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"cost_usd":{"oneOf":[{"format":"double","type":"number","description":"What this stage cost, in US dollars.","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].cost_usd.oneOf.0","typeLabel":"number\u003cdouble>"},{"format":"double","type":"null","description":"What this stage cost, in US dollars.","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].cost_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].cost_usd","typeLabel":"number\u003cdouble> | null"},"data":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].data.additionalProperties","typeLabel":"any"},"type":"object","description":"Stage-specific detail of what this pipeline stage did.","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].data","typeLabel":"object"},"guardrail_id":{"type":"string","description":"Id of the guardrail this stage applied.","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].guardrail_id","typeLabel":"string"},"guardrail_scope":{"type":"string","description":"What the guardrail applies to: the key, workspace or account.","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].guardrail_scope","typeLabel":"string"},"summary":{"type":"string","description":"Short summary of what this stage did, such as \"Blocked: prompt injection detected\".","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX].summary","typeLabel":"string"}},"required":["type","name"],"type":"object","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline.items.[INDEX]","typeLabel":"object"},"type":"array","description":"Stages the request passed through, such as guardrails.","uniqueKey":"data.oneOf.7.openrouter_metadata.pipeline","typeLabel":"object[]"}},"required":["requested","strategy","region","summary","attempt","is_byok","endpoints"],"type":"object","description":"How OpenRouter routed this request: the strategy, the endpoints that could serve it, each attempt made, the region, whether your own provider key (BYOK) paid for it, and the generation time.","uniqueKey":"data.oneOf.7.openrouter_metadata","typeLabel":"object"}},"isRequired":true,"uniqueKey":"data.oneOf.7","typeLabel":"object"}],"isRequired":true,"uniqueKey":"data","typeLabel":"object"},"event":{"type":"string","description":"The server-sent event's name.","isRequired":true,"uniqueKey":"event","typeLabel":"string"}},"required":["event","data"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"delta":{"text":"Hello","type":"text_delta"},"index":0,"type":"content_block_delta"},"event":"content_block_delta"}}},"exampleType":"examples"}},"description":"Successful response","exampleType":"examples"},"8fb5bcd8-1cd8-4576-b003-a3905fce3dd8":{"content":{"application/json":{"example":{"error":{"message":"Invalid request: messages is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid request: messages is required","type":"invalid_request_error"},"request_id":null,"type":"error"}}},"exampleType":"examples"}},"description":"Invalid request error","exampleType":"examples"},"79354b9a-ab44-46ba-ac58-593233fb1ad7":{"content":{"application/json":{"example":{"error":{"message":"Invalid API key","type":"authentication_error"},"request_id":null,"type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid API key","type":"authentication_error"},"request_id":null,"type":"error"}}},"exampleType":"examples"}},"description":"Authentication error","exampleType":"examples"},"b8858b68-94da-465e-bdb1-d3c700172028":{"description":"Nemonist: over a spending cap, or out of credits.","content":{"application/json":{"example":{"error":{"message":"Invalid request: messages is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Invalid request: messages is required","type":"invalid_request_error"},"request_id":null,"type":"error"}}},"exampleType":"examples"}},"exampleType":"examples"},"031944ee-1aaf-48a6-9291-98c9871b85d9":{"content":{"application/json":{"examples":{"guardrail-blocked":{"title":"guardrail-blocked","summary":"Guardrail blocked the request","value":{"error":{"message":"Request blocked: prompt injection patterns detected","type":"permission_error"},"openrouter_metadata":{"pipeline":[{"name":"regex_pi_detection","summary":"Blocked: prompt injection detected (1 pattern matched)","type":"guardrail"}]},"request_id":null,"type":"error"}},"insufficient-permissions":{"title":"insufficient-permissions","summary":"Insufficient permissions","value":{"error":{"message":"Only management keys can perform this operation","type":"permission_error"},"request_id":null,"type":"error"}}},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Forbidden error","exampleType":"examples"},"72ba098d-5de1-4eab-8410-dbb2b1f30e6c":{"content":{"application/json":{"example":{"error":{"message":"Model not found","type":"not_found_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Model not found","type":"not_found_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"}}},"exampleType":"examples"}},"description":"Not found error","exampleType":"examples"},"0e5f78f1-2d4f-41cc-a0d8-fc0362b01224":{"content":{"application/json":{"example":{"error":{"message":"Rate limit exceeded","type":"rate_limit_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Rate limit exceeded","type":"rate_limit_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"}}},"exampleType":"examples"}},"description":"Rate limit error. Nemonist: admission limit reached; retry after the Retry-After header's seconds.","exampleType":"examples"},"b9acc65e-67b8-4b24-b3bc-d1deb7e2f8d6":{"content":{"application/json":{"example":{"error":{"message":"Internal server error","type":"api_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Internal server error","type":"api_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"}}},"exampleType":"examples"}},"description":"API error","exampleType":"examples"},"8e06ecf7-948f-41c0-a70f-9af8b2e0a3af":{"description":"Nemonist: the provider could not be reached (error.metadata.reason upstream_unavailable, or endpoint_not_public for a custom endpoint); retry.","content":{"application/json":{"example":{"error":{"message":"Internal server error","type":"api_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Internal server error","type":"api_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"}}},"exampleType":"examples"}},"exampleType":"examples"},"dfec5a82-57e5-4bc9-92db-89c6f4ff9ffb":{"content":{"application/json":{"example":{"error":{"message":"Service temporarily overloaded","type":"overloaded_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Service temporarily overloaded","type":"overloaded_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"}}},"exampleType":"examples"}},"description":"Overloaded error","exampleType":"examples"},"54ca5f66-630d-4503-a84b-b0c399f8d478":{"content":{"application/json":{"example":{"error":{"message":"Provider is temporarily overloaded","type":"overloaded_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"},"schema":{"description":"Error response from the Anthropic Messages API","example":{"error":{"error_type":"invalid_request","message":"Invalid request: messages field is required","type":"invalid_request_error"},"request_id":null,"type":"error"},"properties":{"error":{"properties":{"message":{"type":"string","description":"What went wrong, in words for a person, e.g. \"Invalid request: messages field is required\".","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"enum":["invalid_request_error","authentication_error","permission_error","not_found_error","rate_limit_error","api_error","overloaded_error","billing_error","timeout_error"],"type":"string","x-speakeasy-unknown-values":"allow","description":"One of \"invalid_request_error\", \"authentication_error\", \"permission_error\", \"not_found_error\", \"rate_limit_error\", \"api_error\", \"overloaded_error\", \"billing_error\", \"timeout_error\".","isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"error_type":{"description":"Canonical OpenRouter error type, stable across all API formats","enum":["context_length_exceeded","max_tokens_exceeded","token_limit_exceeded","string_too_long","authentication","permission_denied","payment_required","rate_limit_exceeded","provider_overloaded","provider_unavailable","invalid_request","invalid_prompt","not_found","precondition_failed","payload_too_large","unprocessable","content_policy_violation","refusal","invalid_image","image_too_large","image_too_small","unsupported_image_format","image_not_found","image_download_failed","server","timeout","unmapped"],"example":"rate_limit_exceeded","type":"string","x-speakeasy-unknown-values":"allow","uniqueKey":"error.error_type","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"type":"object","description":"The error: its type and message.","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"oneOf":[{"type":"string","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Id of the failed request, to quote when asking for support; null when unknown.","isRequired":true,"uniqueKey":"request_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request_id","typeLabel":"string | null"},"type":{"enum":["error"],"type":"string","description":"One of \"error\".","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"metadata":{"additionalProperties":{"oneOf":[{}],"uniqueKey":"metadata.additionalProperties","typeLabel":"any"},"type":"object","description":"Extra detail about the error.","uniqueKey":"metadata","typeLabel":"object"},"openrouter_metadata":{"oneOf":[{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.0.additionalProperties","typeLabel":"any"},"type":"object","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.0","typeLabel":"object"},{"additionalProperties":{"oneOf":[{}],"uniqueKey":"openrouter_metadata.oneOf.1.additionalProperties","typeLabel":"any"},"type":"null","description":"OpenRouter's routing detail for the failed request.","uniqueKey":"openrouter_metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"openrouter_metadata","typeLabel":"object | null"}},"required":["type","error","request_id"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"Provider is temporarily overloaded","type":"overloaded_error"},"request_id":"gen-xxxxxxxxxxxxxxxxxxxxxxxx","type":"error"}}},"exampleType":"examples"}},"description":"Overloaded error","exampleType":"examples"}},"security":{"5c64c600-8820-448c-b999-87c9f6ba628f":{"apiKey":{"type":"http","scheme":"bearer","description":"A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.","scopes":[],"schemeName":"apiKey"}}},"servers":{"f904a986-b1a7-4390-beb0-f994b9f6d9ad":{"url":"https://nemonist.com/api/v1","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"apiKey","name":"Authorization"}],"title":"apiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"nemonist","siteName":"nemonist","title":"Create a message - nemonist","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T19:22:51.095Z","originalFileLocation":"api-reference/anthropic-messages/create-a-message.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 message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.\">\u003cmeta data-mint-head name=\"application-name\" content=\"nemonist\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_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=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a message - nemonist\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"nemonist\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nemonist.mintlify.site/docs/_mintlify/api/og/v2?division=Anthropic+Messages\u0026amp;title=Create+a+message\u0026amp;description=Creates+a+message+using+the+Anthropic+Messages+API+format.+Supports+text%2C+images%2C+PDFs%2C+tools%2C+and+extended+thinking.\u0026amp;theme=40d9cda61a40fab1943dcc72\u0026amp;signature=1065d4cdb167af37859fec3ee0c7427b30680670477ca093b8f10cc3fe047212\">\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 message - nemonist\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nemonist.mintlify.site/docs/_mintlify/api/og/v2?division=Anthropic+Messages\u0026amp;title=Create+a+message\u0026amp;description=Creates+a+message+using+the+Anthropic+Messages+API+format.+Supports+text%2C+images%2C+PDFs%2C+tools%2C+and+extended+thinking.\u0026amp;theme=40d9cda61a40fab1943dcc72\u0026amp;signature=1065d4cdb167af37859fec3ee0c7427b30680670477ca093b8f10cc3fe047212\">\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=\"/docs/mintlify-assets/_mintlify/favicons/nemonist/pJflnD9tD_j2EbQM/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"nemonist\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/anthropic-messages/create-a-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://nemonist.com/#organization\",\"name\":\"nemonist\",\"url\":\"https://nemonist.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nemonist/O63iSHDIbHFIFLsR/logo/light.svg?fit=max\u0026auto=format\u0026n=O63iSHDIbHFIFLsR\u0026q=85\u0026s=78e0f2fecc2ad48dcf82fc4287a5dc8d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://nemonist.com/docs#website\",\"name\":\"nemonist\",\"url\":\"https://nemonist.com/docs\",\"publisher\":{\"@id\":\"https://nemonist.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message#webpage\",\"url\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message\",\"name\":\"Create a message\",\"description\":\"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.\",\"dateModified\":\"2026-11-18T19:22:51.095Z\",\"isPartOf\":{\"@id\":\"https://nemonist.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"nemonist\",\"item\":\"https://nemonist.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a message\",\"item\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message#apireference\",\"headline\":\"Create a message\",\"name\":\"Create a message\",\"description\":\"Creates a message using the Anthropic Messages API format. Supports text, images, PDFs, tools, and extended thinking.\",\"url\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message\",\"mainEntityOfPage\":{\"@id\":\"https://nemonist.com/docs/api-reference/anthropic-messages/create-a-message#webpage\"},\"dateModified\":\"2026-11-18T19:22:51.095Z\",\"publisher\":{\"@id\":\"https://nemonist.com/#organization\"},\"isPartOf\":{\"@id\":\"https://nemonist.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"nemonist\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"nemonist\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/anthropic-messages/create-a-message.md","siteName":"nemonist","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"Clients","pages":[{"title":"Clients","href":"/clients/cursor"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/api-reference/overview"},{"title":"Output items","href":"/api-reference/output-items"}]},{"group":"Analytics","pages":[{"title":"Get user activity grouped by endpoint","deprecated":null,"version":null,"openapi":"/openapi.json get /activity","href":"/api-reference/analytics/get-user-activity-grouped-by-endpoint"}]},{"group":"Speech","pages":[{"title":"Create speech","deprecated":null,"version":null,"openapi":"/openapi.json post /audio/speech","href":"/api-reference/tts/create-speech"}]},{"group":"Transcriptions","pages":[{"title":"Create transcription","deprecated":null,"version":null,"openapi":"/openapi.json post /audio/transcriptions","href":"/api-reference/stt/create-transcription"}]},{"group":"OAuth","pages":[{"title":"Exchange authorization code for API key","deprecated":null,"version":null,"openapi":"/openapi.json post /auth/keys","href":"/api-reference/oauth/exchange-authorization-code-for-api-key"}]},{"group":"Benchmarks","pages":[{"title":"List Benchmarks","deprecated":null,"version":null,"openapi":"/openapi.json get /benchmarks","href":"/api-reference/benchmarks/list-benchmarks"}]},{"group":"BYOK","pages":[{"title":"List BYOK provider credentials","deprecated":null,"version":null,"openapi":"/openapi.json get /byok","href":"/api-reference/byok/list-byok-provider-credentials"},{"title":"Create a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.json post /byok","href":"/api-reference/byok/create-a-byok-provider-credential"},{"title":"Get a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.json get /byok/{id}","href":"/api-reference/byok/get-a-byok-provider-credential"},{"title":"Delete a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.json delete /byok/{id}","href":"/api-reference/byok/delete-a-byok-provider-credential"},{"title":"Update a BYOK provider credential","deprecated":null,"version":null,"openapi":"/openapi.json patch /byok/{id}","href":"/api-reference/byok/update-a-byok-provider-credential"}]},{"group":"Chat","pages":[{"title":"Create a chat completion","deprecated":null,"version":null,"openapi":"/openapi.json post /chat/completions","href":"/api-reference/chat/create-a-chat-completion"}]},{"group":"Credits","pages":[{"title":"Get remaining credits","deprecated":null,"version":null,"openapi":"/openapi.json get /credits","href":"/api-reference/credits/get-remaining-credits"}]},{"group":"Datasets","pages":[{"title":"Top apps by token usage","deprecated":null,"version":null,"openapi":"/openapi.json get /datasets/app-rankings","href":"/api-reference/datasets/top-apps-by-token-usage"},{"title":"Daily token totals for top 50 models","deprecated":null,"version":null,"openapi":"/openapi.json get /datasets/rankings-daily","href":"/api-reference/datasets/daily-token-totals-for-top-50-models"}]},{"group":"Embeddings","pages":[{"title":"Submit an embedding request","deprecated":null,"version":null,"openapi":"/openapi.json post /embeddings","href":"/api-reference/embeddings/submit-an-embedding-request"},{"title":"List all embeddings models","deprecated":null,"version":null,"openapi":"/openapi.json get /embeddings/models","href":"/api-reference/embeddings/list-all-embeddings-models"}]},{"group":"Endpoints","pages":[{"title":"Preview the impact of ZDR on the available endpoints","deprecated":null,"version":null,"openapi":"/openapi.json get /endpoints/zdr","href":"/api-reference/endpoints/preview-the-impact-of-zdr-on-the-available-endpoints"},{"title":"List all endpoints for a model","deprecated":null,"version":null,"openapi":"/openapi.json get /models/{author}/{slug}/endpoints","href":"/api-reference/endpoints/list-all-endpoints-for-a-model"}]},{"group":"Generations","pages":[{"title":"Get request \u0026 usage metadata for a generation","deprecated":null,"version":null,"openapi":"/openapi.json get /generation","href":"/api-reference/generations/get-request-\u0026-usage-metadata-for-a-generation"}]},{"group":"Guardrails","pages":[{"title":"List guardrails","deprecated":null,"version":null,"openapi":"/openapi.json get /guardrails","href":"/api-reference/guardrails/list-guardrails"},{"title":"Create a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json post /guardrails","href":"/api-reference/guardrails/create-a-guardrail"},{"title":"Get a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json get /guardrails/{id}","href":"/api-reference/guardrails/get-a-guardrail"},{"title":"Delete a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json delete /guardrails/{id}","href":"/api-reference/guardrails/delete-a-guardrail"},{"title":"Update a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json patch /guardrails/{id}","href":"/api-reference/guardrails/update-a-guardrail"},{"title":"List key assignments for a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json get /guardrails/{id}/assignments/keys","href":"/api-reference/guardrails/list-key-assignments-for-a-guardrail"},{"title":"Bulk assign keys to a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json post /guardrails/{id}/assignments/keys","href":"/api-reference/guardrails/bulk-assign-keys-to-a-guardrail"},{"title":"Bulk unassign keys from a guardrail","deprecated":null,"version":null,"openapi":"/openapi.json post /guardrails/{id}/assignments/keys/remove","href":"/api-reference/guardrails/bulk-unassign-keys-from-a-guardrail"},{"title":"List all key assignments","deprecated":null,"version":null,"openapi":"/openapi.json get /guardrails/assignments/keys","href":"/api-reference/guardrails/list-all-key-assignments"}]},{"group":"Images","pages":[{"title":"Generate an image","deprecated":null,"version":null,"openapi":"/openapi.json post /images","href":"/api-reference/images/generate-an-image"},{"title":"List image generation models","deprecated":null,"version":null,"openapi":"/openapi.json get /images/models","href":"/api-reference/images/list-image-generation-models"},{"title":"List endpoints for an image model","deprecated":null,"version":null,"openapi":"/openapi.json get /images/models/{author}/{slug}/endpoints","href":"/api-reference/images/list-endpoints-for-an-image-model"}]},{"group":"API Keys","pages":[{"title":"Get current API key","deprecated":null,"version":null,"openapi":"/openapi.json get /key","href":"/api-reference/api-keys/get-current-api-key"},{"title":"List API keys","deprecated":null,"version":null,"openapi":"/openapi.json get /keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create a new API key","deprecated":null,"version":null,"openapi":"/openapi.json post /keys","href":"/api-reference/api-keys/create-a-new-api-key"},{"title":"Get a single API key","deprecated":null,"version":null,"openapi":"/openapi.json get /keys/{hash}","href":"/api-reference/api-keys/get-a-single-api-key"},{"title":"Delete an API key","deprecated":null,"version":null,"openapi":"/openapi.json delete /keys/{hash}","href":"/api-reference/api-keys/delete-an-api-key"},{"title":"Update an API key","description":"Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\nSet `workspace_id` to move the key to another workspace.\n\n\u003cWarning>\nThe request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.\n\u003c/Warning>","deprecated":null,"version":null,"openapi":"/openapi.json patch /keys/{hash}","href":"/api-reference/api-keys/update-an-api-key"}]},{"group":"Anthropic Messages","pages":[{"title":"Create a message","deprecated":null,"version":null,"openapi":"/openapi.json post /messages","href":"/api-reference/anthropic-messages/create-a-message"}]},{"group":"Models","pages":[{"title":"Get a model by its slug","description":"Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.","deprecated":null,"version":null,"openapi":"/openapi.json get /model/{author}/{slug}","href":"/api-reference/models/get-a-model-by-its-slug"},{"title":"List all models and their properties","deprecated":null,"version":null,"openapi":"/openapi.json get /models","href":"/api-reference/models/list-all-models-and-their-properties"},{"title":"Get total count of available models","deprecated":null,"version":null,"openapi":"/openapi.json get /models/count","href":"/api-reference/models/get-total-count-of-available-models"},{"title":"List models filtered by user provider preferences, privacy settings, and guardrails","deprecated":null,"version":null,"openapi":"/openapi.json get /models/user","href":"/api-reference/models/list-models-filtered-by-user-provider-preferences-privacy-settings-and-guardrails"}]},{"group":"Organization","pages":[{"title":"List organization members","deprecated":null,"version":null,"openapi":"/openapi.json get /organization/members","href":"/api-reference/organization/list-organization-members"}]},{"group":"Private Endpoints","pages":[{"title":"List private endpoints","deprecated":null,"version":null,"openapi":"/openapi.json get /private-endpoints","href":"/api-reference/private-endpoints/list-private-endpoints"},{"title":"Create a private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /private-endpoints","href":"/api-reference/private-endpoints/create-a-private-endpoint"},{"title":"Get a private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json get /private-endpoints/{id}","href":"/api-reference/private-endpoints/get-a-private-endpoint"},{"title":"Delete a private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json delete /private-endpoints/{id}","href":"/api-reference/private-endpoints/delete-a-private-endpoint"},{"title":"Update a private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json patch /private-endpoints/{id}","href":"/api-reference/private-endpoints/update-a-private-endpoint"},{"title":"Activate a validated private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /private-endpoints/{id}/activate","href":"/api-reference/private-endpoints/activate-a-validated-private-endpoint"},{"title":"Disable a private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /private-endpoints/{id}/disable","href":"/api-reference/private-endpoints/disable-a-private-endpoint"},{"title":"Enable a private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /private-endpoints/{id}/enable","href":"/api-reference/private-endpoints/enable-a-private-endpoint"},{"title":"Validate a draft private endpoint","deprecated":null,"version":null,"openapi":"/openapi.json post /private-endpoints/{id}/validate","href":"/api-reference/private-endpoints/validate-a-draft-private-endpoint"}]},{"group":"Providers","pages":[{"title":"List all providers","deprecated":null,"version":null,"openapi":"/openapi.json get /providers","href":"/api-reference/providers/list-all-providers"}]},{"group":"Rerank","pages":[{"title":"Submit a rerank request","deprecated":null,"version":null,"openapi":"/openapi.json post /rerank","href":"/api-reference/rerank/submit-a-rerank-request"}]},{"group":"Responses","pages":[{"title":"Create a response","deprecated":null,"version":null,"openapi":"/openapi.json post /responses","href":"/api-reference/responses/create-a-response"}]},{"group":"System One","pages":[{"title":"Submit a System One request","deprecated":null,"version":null,"openapi":"/openapi.json post /systemone","href":"/api-reference/systemone/submit-a-system-one-request"}]},{"group":"Video Generation","pages":[{"title":"List all video generation models","deprecated":null,"version":null,"openapi":"/openapi.json get /videos/models","href":"/api-reference/video-generation/list-all-video-generation-models"}]},{"group":"Workspaces","pages":[{"title":"List workspaces","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces","href":"/api-reference/workspaces/list-workspaces"},{"title":"Create a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces","href":"/api-reference/workspaces/create-a-workspace"},{"title":"Get a workspace","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{id}","href":"/api-reference/workspaces/get-a-workspace"},{"title":"Delete a workspace","deprecated":null,"version":null,"openapi":"/openapi.json delete /workspaces/{id}","href":"/api-reference/workspaces/delete-a-workspace"},{"title":"Update a workspace","deprecated":null,"version":null,"openapi":"/openapi.json patch /workspaces/{id}","href":"/api-reference/workspaces/update-a-workspace"},{"title":"List workspace members","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{id}/members","href":"/api-reference/workspaces/list-workspace-members"},{"title":"Bulk add members to a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces/{id}/members/add","href":"/api-reference/workspaces/bulk-add-members-to-a-workspace"},{"title":"Bulk remove members from a workspace","deprecated":null,"version":null,"openapi":"/openapi.json post /workspaces/{id}/members/remove","href":"/api-reference/workspaces/bulk-remove-members-from-a-workspace"},{"title":"List workspace budgets","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{workspace_ref}/budgets","href":"/api-reference/workspaces/list-workspace-budgets"},{"title":"Get a workspace budget","deprecated":null,"version":null,"openapi":"/openapi.json get /workspaces/{workspace_ref}/budgets/{interval}","href":"/api-reference/workspaces/get-a-workspace-budget"},{"title":"Create or update a workspace budget","deprecated":null,"version":null,"openapi":"/openapi.json put /workspaces/{workspace_ref}/budgets/{interval}","href":"/api-reference/workspaces/create-or-update-a-workspace-budget"},{"title":"Delete a workspace budget","deprecated":null,"version":null,"openapi":"/openapi.json delete /workspaces/{workspace_ref}/budgets/{interval}","href":"/api-reference/workspaces/delete-a-workspace-budget"}]},{"group":"Memory","pages":[{"title":"Erase all memory","deprecated":null,"version":null,"openapi":"/openapi.json delete /memory","href":"/api-reference/memory/erase-all-memory"},{"title":"Read a workspace's memory","deprecated":null,"version":null,"openapi":"/openapi.json get /memory-file","href":"/api-reference/memory/read-a-workspaces-memory"},{"title":"List a folder's inbox by its key","deprecated":null,"version":null,"openapi":"/openapi.json get /inbox","href":"/api-reference/memory/list-a-folders-inbox-by-its-key"},{"title":"Send a message to a folder","deprecated":null,"version":null,"openapi":"/openapi.json post /inbox","href":"/api-reference/memory/send-a-message-to-a-folder"},{"title":"Get a workspace's memory graph","deprecated":null,"version":null,"openapi":"/openapi.json get /memory-graph","href":"/api-reference/memory/get-a-workspaces-memory-graph"}]},{"group":"Folders","pages":[{"title":"List your folders","deprecated":null,"version":null,"openapi":"/openapi.json get /folders","href":"/api-reference/folders/list-your-folders"},{"title":"Get a folder","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}","href":"/api-reference/folders/get-a-folder"},{"title":"Erase a folder","deprecated":null,"version":null,"openapi":"/openapi.json delete /folders/{id}","href":"/api-reference/folders/erase-a-folder"},{"title":"Rename a folder","deprecated":null,"version":null,"openapi":"/openapi.json patch /folders/{id}","href":"/api-reference/folders/rename-a-folder"},{"title":"Read a note","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/memory/{path}","href":"/api-reference/folders/read-a-note"},{"title":"List recorded requests","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/history","href":"/api-reference/folders/list-recorded-requests"},{"title":"Read a recorded request","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/history/{commit}","href":"/api-reference/folders/read-a-recorded-request"},{"title":"Export a folder","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/export","href":"/api-reference/folders/export-a-folder"},{"title":"Get a folder's memory graph","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/graph","href":"/api-reference/folders/get-a-folders-memory-graph"},{"title":"Turn nightly sleep on or off","deprecated":null,"version":null,"openapi":"/openapi.json put /folders/{id}/sleep","href":"/api-reference/folders/turn-nightly-sleep-on-or-off"},{"title":"Issue a key","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/keys","href":"/api-reference/folders/issue-a-key"},{"title":"Revoke a key","deprecated":null,"version":null,"openapi":"/openapi.json delete /folders/{id}/keys/{kid}","href":"/api-reference/folders/revoke-a-key"},{"title":"Merge into another folder","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/merge","href":"/api-reference/folders/merge-into-another-folder"},{"title":"List uploaded files","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/files","href":"/api-reference/folders/list-uploaded-files"},{"title":"Download an uploaded file","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/files/{path}","href":"/api-reference/folders/download-an-uploaded-file"},{"title":"Delete an uploaded file","deprecated":null,"version":null,"openapi":"/openapi.json delete /folders/{id}/files/{path}","href":"/api-reference/folders/delete-an-uploaded-file"},{"title":"Get an upload URL","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/upload-url","href":"/api-reference/folders/get-an-upload-url"},{"title":"Start or continue a multipart upload","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/multipart","href":"/api-reference/folders/start-or-continue-a-multipart-upload"},{"title":"Complete a multipart upload","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/multipart/complete","href":"/api-reference/folders/complete-a-multipart-upload"},{"title":"List a folder's jobs","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/jobs","href":"/api-reference/folders/list-a-folders-jobs"},{"title":"Download a job output","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/jobs/{job}/{name}","href":"/api-reference/folders/download-a-job-output"},{"title":"List a folder's inbox","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/inbox","href":"/api-reference/folders/list-a-folders-inbox"},{"title":"Get a folder's tool use","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/tools","href":"/api-reference/folders/get-a-folders-tool-use"},{"title":"List commits","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/commits","href":"/api-reference/folders/list-commits"},{"title":"Get a commit","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/commits/{commit}","href":"/api-reference/folders/get-a-commit"},{"title":"List notes at a commit","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/tree","href":"/api-reference/folders/list-notes-at-a-commit"},{"title":"Download notes as a zip","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/zipball","href":"/api-reference/folders/download-notes-as-a-zip"},{"title":"Download notes at a commit as a zip","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/zipball/{commit}","href":"/api-reference/folders/download-notes-at-a-commit-as-a-zip"},{"title":"List tags","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/tags","href":"/api-reference/folders/list-tags"},{"title":"Create a tag","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/tags","href":"/api-reference/folders/create-a-tag"},{"title":"Delete a tag","deprecated":null,"version":null,"openapi":"/openapi.json delete /folders/{id}/tags/{name}","href":"/api-reference/folders/delete-a-tag"},{"title":"Get contributors","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/stats/contributors","href":"/api-reference/folders/get-contributors"},{"title":"Get commit activity","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/stats/commit_activity","href":"/api-reference/folders/get-commit-activity"},{"title":"Blame a note","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/blame/{path}","href":"/api-reference/folders/blame-a-note"},{"title":"List work items","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/issues","href":"/api-reference/folders/list-work-items"},{"title":"Read a work item","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/issues/{item}","href":"/api-reference/folders/read-a-work-item"},{"title":"Edit a work item by name","deprecated":null,"version":null,"openapi":"/openapi.json patch /folders/{id}/issues/{item}","href":"/api-reference/folders/edit-a-work-item-by-name"},{"title":"Compare two commits","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/compare/{basehead}","href":"/api-reference/folders/compare-two-commits"},{"title":"Read a work item's timeline","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/issues/{item}/timeline","href":"/api-reference/folders/read-a-work-items-timeline"},{"title":"List activity","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/activity","href":"/api-reference/folders/list-activity"},{"title":"Revert a commit","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/commits/{commit}/revert","href":"/api-reference/folders/revert-a-commit"},{"title":"Get goal insights","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/stats/issues","href":"/api-reference/folders/get-goal-insights"},{"title":"List saved goal views","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/views","href":"/api-reference/folders/list-saved-goal-views"},{"title":"Save a goal view","deprecated":null,"version":null,"openapi":"/openapi.json post /folders/{id}/views","href":"/api-reference/folders/save-a-goal-view"},{"title":"Get a goal view","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/views/{number}","href":"/api-reference/folders/get-a-goal-view"},{"title":"Delete a goal view","deprecated":null,"version":null,"openapi":"/openapi.json delete /folders/{id}/views/{number}","href":"/api-reference/folders/delete-a-goal-view"},{"title":"Edit a goal view","deprecated":null,"version":null,"openapi":"/openapi.json patch /folders/{id}/views/{number}","href":"/api-reference/folders/edit-a-goal-view"},{"title":"List a view's goals","deprecated":null,"version":null,"openapi":"/openapi.json get /folders/{id}/views/{number}/issues","href":"/api-reference/folders/list-a-views-goals"}]},{"group":"Model runs","pages":[{"title":"List uploaded files","deprecated":null,"version":null,"openapi":"/openapi.json get /files","href":"/api-reference/model-runs/list-uploaded-files"},{"title":"Start a file upload","deprecated":null,"version":null,"openapi":"/openapi.json post /files","href":"/api-reference/model-runs/start-a-file-upload"},{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.json get /runs/models","href":"/api-reference/model-runs/list-models"},{"title":"List runs","deprecated":null,"version":null,"openapi":"/openapi.json get /runs","href":"/api-reference/model-runs/list-runs"},{"title":"Start a run","deprecated":null,"version":null,"openapi":"/openapi.json post /runs","href":"/api-reference/model-runs/start-a-run"},{"title":"Poll a run","deprecated":null,"version":null,"openapi":"/openapi.json get /runs/{id}","href":"/api-reference/model-runs/poll-a-run"},{"title":"Cancel a run","deprecated":null,"version":null,"openapi":"/openapi.json delete /runs/{id}","href":"/api-reference/model-runs/cancel-a-run"},{"title":"Download a run output","deprecated":null,"version":null,"openapi":"/openapi.json get /runs/{id}/content","href":"/api-reference/model-runs/download-a-run-output"}]}]}]},"basePath":"","title":"Create a message - nemonist","deploymentId":"dpl_J2QdBVuN65x4CCtpqPb371YPt4xi","buildId":"dpl_J2QdBVuN65x4CCtpqPb371YPt4xi","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-tiVafkWW.js","utils-CURQcKis.js","cloneDeep-D7WNbvHt.js","_Uint8Array-BY_XlfVz.js","isObject-FP1Yky1u.js","utils-CdFTKPRO.js","addUniqueKeysToSchema-BSfwE63N.js","snippetPresets-BHyg8yZ0.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CQdVXSju.js","isEqual-ft5OxoSH.js","usePlaygroundInputsStore-BILH4rrw.js","shallow-DterCiSU.js","getApiPlaygroundDisplay-uFtORr6j.js","CodeSnippet-BeuhEvUS.js","CodeSnippets-laCoJsvn.js","Page-CTsmHnLF.js","getPastedJson-DOT1n5Lt.js","icon-COH-nmcZ.js","MethodPill-BbAWkCf6.js","DuplicateIcon-CpagiAFQ.js","createIcon-Bw2Dnowf.js","DynamicMarkdown-DzuINhDe.js","SectionHeading-B3H20qI6.js","axios-vUo_bRtp.js","Markdown-DBdbz5B3.js","dist-DWEsd3cZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-DuX7jTnG.js"]}