diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index bdcb5aec..8e7075f3 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -168,7 +168,11 @@ components: anyOf: - allOf: - $ref: '#/components/schemas/FunctionTool' - - properties: {} + - properties: + defer_loading: + 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.' + example: true + type: 'boolean' type: 'object' description: 'Function tool definition' example: @@ -214,6 +218,7 @@ components: - $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter' - $ref: '#/components/schemas/BashServerTool' - $ref: '#/components/schemas/ShellServerTool_OpenRouter' + - $ref: '#/components/schemas/ToolSearchServerTool' - additionalProperties: {} properties: type: @@ -3983,7 +3988,11 @@ components: oneOf: - allOf: - $ref: '#/components/schemas/FunctionTool' - - properties: {} + - properties: + defer_loading: + 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.' + example: true + type: 'boolean' type: 'object' description: 'Function tool definition' example: @@ -13429,6 +13438,7 @@ components: - $ref: '#/components/schemas/AnthropicToolSearchToolBm25' - $ref: '#/components/schemas/AnthropicToolSearchToolRegex' - $ref: '#/components/schemas/ShellServerTool_OpenRouter' + - $ref: '#/components/schemas/ToolSearchServerTool' type: 'array' top_k: type: 'integer' @@ -22301,7 +22311,11 @@ components: anyOf: - allOf: - $ref: '#/components/schemas/FunctionTool' - - properties: {} + - properties: + defer_loading: + 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.' + example: true + type: 'boolean' type: 'object' description: 'Function tool definition' example: @@ -22347,6 +22361,7 @@ components: - $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter' - $ref: '#/components/schemas/BashServerTool' - $ref: '#/components/schemas/ShellServerTool_OpenRouter' + - $ref: '#/components/schemas/ToolSearchServerTool' type: 'array' top_k: type: 'integer' @@ -24162,6 +24177,32 @@ components: - 'mode' - 'tools' type: 'object' + ToolSearchServerTool: + description: 'OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable' + example: + parameters: + max_results: 5 + type: 'openrouter:tool_search' + properties: + parameters: + $ref: '#/components/schemas/ToolSearchServerToolConfig' + type: + enum: + - 'openrouter:tool_search' + type: 'string' + required: + - 'type' + type: 'object' + ToolSearchServerToolConfig: + 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' + type: 'object' TooManyRequestsResponse: description: 'Too Many Requests - Rate limit exceeded' example: