Skip to content

Commit f66b44d

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1028)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 3ca8595 commit f66b44d

1 file changed

Lines changed: 159 additions & 1 deletion

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 159 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14364,6 +14364,8 @@ components:
1436414364
- $ref: '#/components/schemas/AdditionalToolsItem'
1436514365
- $ref: '#/components/schemas/AgentMessageItem'
1436614366
- $ref: '#/components/schemas/ConfigurationUpdateItem'
14367+
- $ref: '#/components/schemas/ToolSearchCallItem'
14368+
- $ref: '#/components/schemas/ToolSearchOutputItem'
1436714369
type: 'array'
1436814370
description: 'Input for a response request - can be a string or array of items'
1436914371
example:
@@ -17530,7 +17532,7 @@ components:
1753017532
openrouter_metadata:
1753117533
$ref: '#/components/schemas/OpenRouterMetadata'
1753217534
provider:
17533-
$ref: '#/components/schemas/ProviderName'
17535+
type: 'string'
1753417536
safeguard_results:
1753517537
items:
1753617538
$ref: '#/components/schemas/AnthropicSafeguardResult'
@@ -17859,6 +17861,7 @@ components:
1785917861
- 'Z.AI'
1786017862
- 'FakeProvider'
1786117863
type: 'string'
17864+
x-speakeasy-unknown-values: 'allow'
1786217865
role:
1786317866
enum:
1786417867
- 'assistant'
@@ -26263,6 +26266,7 @@ components:
2626326266
- 'FakeProvider'
2626426267
example: 'OpenAI'
2626526268
type: 'string'
26269+
x-speakeasy-unknown-values: 'allow'
2626626270
routed_service_tier:
2626726271
description: 'The service tier this request was routed to (e.g. flex, priority). The tier actually applied and billed is determined by the provider response and may differ.'
2626826272
enum:
@@ -30272,6 +30276,160 @@ components:
3027230276
- 'required'
3027330277
- 'function'
3027430278
type: 'object'
30279+
ToolSearchCallItem:
30280+
description: 'A tool search call the client executed'
30281+
example:
30282+
arguments:
30283+
query: 'weather'
30284+
call_id: 'call_search_1'
30285+
execution: 'client'
30286+
status: 'completed'
30287+
type: 'tool_search_call'
30288+
properties:
30289+
arguments: {}
30290+
call_id:
30291+
type: 'string'
30292+
execution:
30293+
enum:
30294+
- 'server'
30295+
- 'client'
30296+
type: 'string'
30297+
id:
30298+
type:
30299+
- 'string'
30300+
- 'null'
30301+
status:
30302+
enum:
30303+
- 'in_progress'
30304+
- 'completed'
30305+
- 'incomplete'
30306+
- null
30307+
type:
30308+
- 'string'
30309+
- 'null'
30310+
type:
30311+
enum:
30312+
- 'tool_search_call'
30313+
type: 'string'
30314+
required:
30315+
- 'type'
30316+
- 'call_id'
30317+
- 'execution'
30318+
type: 'object'
30319+
ToolSearchOutputItem:
30320+
description: 'The tools a client-executed tool search loaded'
30321+
example:
30322+
call_id: 'call_search_1'
30323+
execution: 'client'
30324+
status: 'completed'
30325+
tools:
30326+
- name: 'get_weather'
30327+
parameters:
30328+
properties:
30329+
location:
30330+
type: 'string'
30331+
type: 'object'
30332+
type: 'function'
30333+
type: 'tool_search_output'
30334+
properties:
30335+
call_id:
30336+
type: 'string'
30337+
execution:
30338+
enum:
30339+
- 'server'
30340+
- 'client'
30341+
type: 'string'
30342+
id:
30343+
type:
30344+
- 'string'
30345+
- 'null'
30346+
status:
30347+
enum:
30348+
- 'in_progress'
30349+
- 'completed'
30350+
- 'incomplete'
30351+
- null
30352+
type:
30353+
- 'string'
30354+
- 'null'
30355+
tools:
30356+
items:
30357+
anyOf:
30358+
- allOf:
30359+
- $ref: '#/components/schemas/FunctionTool'
30360+
- properties:
30361+
async:
30362+
description: 'Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a `function_call_output` with the original `call_id`. Only honored by providers whose Responses API supports async tools; ignored elsewhere.'
30363+
example: true
30364+
type: 'boolean'
30365+
defer_loading:
30366+
description: 'Withhold this tool from the model until `openrouter:tool_search` finds it. Requires the tool search server tool; at least one tool must remain non-deferred.'
30367+
example: true
30368+
type: 'boolean'
30369+
type: 'object'
30370+
description: 'Function tool definition'
30371+
example:
30372+
description: 'Get the current weather in a location'
30373+
name: 'get_weather'
30374+
parameters:
30375+
properties:
30376+
location:
30377+
description: 'The city and state'
30378+
type: 'string'
30379+
unit:
30380+
enum:
30381+
- 'celsius'
30382+
- 'fahrenheit'
30383+
type: 'string'
30384+
required:
30385+
- 'location'
30386+
type: 'object'
30387+
type: 'function'
30388+
- $ref: '#/components/schemas/Preview_WebSearchServerTool'
30389+
- $ref: '#/components/schemas/Preview_20250311_WebSearchServerTool'
30390+
- $ref: '#/components/schemas/Legacy_WebSearchServerTool'
30391+
- $ref: '#/components/schemas/WebSearchServerTool'
30392+
- $ref: '#/components/schemas/FileSearchServerTool'
30393+
- $ref: '#/components/schemas/ComputerUseServerTool'
30394+
- $ref: '#/components/schemas/CodeInterpreterServerTool'
30395+
- $ref: '#/components/schemas/McpServerTool'
30396+
- $ref: '#/components/schemas/ImageGenerationServerTool'
30397+
- $ref: '#/components/schemas/CodexLocalShellTool'
30398+
- $ref: '#/components/schemas/ShellServerTool'
30399+
- $ref: '#/components/schemas/ApplyPatchServerTool'
30400+
- $ref: '#/components/schemas/CustomTool'
30401+
- $ref: '#/components/schemas/NamespaceTool'
30402+
- $ref: '#/components/schemas/AdvisorServerTool_OpenRouter'
30403+
- $ref: '#/components/schemas/SubagentServerTool_OpenRouter'
30404+
- $ref: '#/components/schemas/DatetimeServerTool'
30405+
- $ref: '#/components/schemas/FilesServerTool'
30406+
- $ref: '#/components/schemas/FusionServerTool_OpenRouter'
30407+
- $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter'
30408+
- $ref: '#/components/schemas/SearchModelsServerTool_OpenRouter'
30409+
- $ref: '#/components/schemas/WebFetchServerTool'
30410+
- $ref: '#/components/schemas/WebSearchServerTool_OpenRouter'
30411+
- $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter'
30412+
- $ref: '#/components/schemas/BashServerTool'
30413+
- $ref: '#/components/schemas/ShellServerTool_OpenRouter'
30414+
- $ref: '#/components/schemas/ToolSearchServerTool'
30415+
- additionalProperties: {}
30416+
properties:
30417+
type:
30418+
type: 'string'
30419+
required:
30420+
- 'type'
30421+
type: 'object'
30422+
type: 'array'
30423+
type:
30424+
enum:
30425+
- 'tool_search_output'
30426+
type: 'string'
30427+
required:
30428+
- 'type'
30429+
- 'call_id'
30430+
- 'execution'
30431+
- 'tools'
30432+
type: 'object'
3027530433
ToolSearchServerTool:
3027630434
description: 'OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable'
3027730435
example:

0 commit comments

Comments
 (0)