Skip to content

Commit 6e83961

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent f5770ab commit 6e83961

1 file changed

Lines changed: 44 additions & 3 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ components:
168168
anyOf:
169169
- allOf:
170170
- $ref: '#/components/schemas/FunctionTool'
171-
- properties: {}
171+
- properties:
172+
defer_loading:
173+
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.'
174+
example: true
175+
type: 'boolean'
172176
type: 'object'
173177
description: 'Function tool definition'
174178
example:
@@ -214,6 +218,7 @@ components:
214218
- $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter'
215219
- $ref: '#/components/schemas/BashServerTool'
216220
- $ref: '#/components/schemas/ShellServerTool_OpenRouter'
221+
- $ref: '#/components/schemas/ToolSearchServerTool'
217222
- additionalProperties: {}
218223
properties:
219224
type:
@@ -3983,7 +3988,11 @@ components:
39833988
oneOf:
39843989
- allOf:
39853990
- $ref: '#/components/schemas/FunctionTool'
3986-
- properties: {}
3991+
- properties:
3992+
defer_loading:
3993+
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.'
3994+
example: true
3995+
type: 'boolean'
39873996
type: 'object'
39883997
description: 'Function tool definition'
39893998
example:
@@ -13429,6 +13438,7 @@ components:
1342913438
- $ref: '#/components/schemas/AnthropicToolSearchToolBm25'
1343013439
- $ref: '#/components/schemas/AnthropicToolSearchToolRegex'
1343113440
- $ref: '#/components/schemas/ShellServerTool_OpenRouter'
13441+
- $ref: '#/components/schemas/ToolSearchServerTool'
1343213442
type: 'array'
1343313443
top_k:
1343413444
type: 'integer'
@@ -22301,7 +22311,11 @@ components:
2230122311
anyOf:
2230222312
- allOf:
2230322313
- $ref: '#/components/schemas/FunctionTool'
22304-
- properties: {}
22314+
- properties:
22315+
defer_loading:
22316+
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.'
22317+
example: true
22318+
type: 'boolean'
2230522319
type: 'object'
2230622320
description: 'Function tool definition'
2230722321
example:
@@ -22347,6 +22361,7 @@ components:
2234722361
- $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter'
2234822362
- $ref: '#/components/schemas/BashServerTool'
2234922363
- $ref: '#/components/schemas/ShellServerTool_OpenRouter'
22364+
- $ref: '#/components/schemas/ToolSearchServerTool'
2235022365
type: 'array'
2235122366
top_k:
2235222367
type: 'integer'
@@ -24162,6 +24177,32 @@ components:
2416224177
- 'mode'
2416324178
- 'tools'
2416424179
type: 'object'
24180+
ToolSearchServerTool:
24181+
description: 'OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable'
24182+
example:
24183+
parameters:
24184+
max_results: 5
24185+
type: 'openrouter:tool_search'
24186+
properties:
24187+
parameters:
24188+
$ref: '#/components/schemas/ToolSearchServerToolConfig'
24189+
type:
24190+
enum:
24191+
- 'openrouter:tool_search'
24192+
type: 'string'
24193+
required:
24194+
- 'type'
24195+
type: 'object'
24196+
ToolSearchServerToolConfig:
24197+
description: 'Configuration for the openrouter:tool_search server tool'
24198+
example:
24199+
max_results: 5
24200+
properties:
24201+
max_results:
24202+
description: 'Maximum tools returned by one search. Defaults to 5.'
24203+
example: 5
24204+
type: 'integer'
24205+
type: 'object'
2416524206
TooManyRequestsResponse:
2416624207
description: 'Too Many Requests - Rate limit exceeded'
2416724208
example:

0 commit comments

Comments
 (0)