diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 79db94c0..ef26dbdd 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -14364,6 +14364,8 @@ components: - $ref: '#/components/schemas/AdditionalToolsItem' - $ref: '#/components/schemas/AgentMessageItem' - $ref: '#/components/schemas/ConfigurationUpdateItem' + - $ref: '#/components/schemas/ToolSearchCallItem' + - $ref: '#/components/schemas/ToolSearchOutputItem' type: 'array' description: 'Input for a response request - can be a string or array of items' example: @@ -17530,7 +17532,7 @@ components: openrouter_metadata: $ref: '#/components/schemas/OpenRouterMetadata' provider: - $ref: '#/components/schemas/ProviderName' + type: 'string' safeguard_results: items: $ref: '#/components/schemas/AnthropicSafeguardResult' @@ -17859,6 +17861,7 @@ components: - 'Z.AI' - 'FakeProvider' type: 'string' + x-speakeasy-unknown-values: 'allow' role: enum: - 'assistant' @@ -26263,6 +26266,7 @@ components: - 'FakeProvider' example: 'OpenAI' type: 'string' + x-speakeasy-unknown-values: 'allow' routed_service_tier: 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.' enum: @@ -30272,6 +30276,160 @@ components: - 'required' - 'function' type: 'object' + ToolSearchCallItem: + description: 'A tool search call the client executed' + example: + arguments: + query: 'weather' + call_id: 'call_search_1' + execution: 'client' + status: 'completed' + type: 'tool_search_call' + properties: + arguments: {} + call_id: + type: 'string' + execution: + enum: + - 'server' + - 'client' + type: 'string' + id: + type: + - 'string' + - 'null' + status: + enum: + - 'in_progress' + - 'completed' + - 'incomplete' + - null + type: + - 'string' + - 'null' + type: + enum: + - 'tool_search_call' + type: 'string' + required: + - 'type' + - 'call_id' + - 'execution' + type: 'object' + ToolSearchOutputItem: + description: 'The tools a client-executed tool search loaded' + example: + call_id: 'call_search_1' + execution: 'client' + status: 'completed' + tools: + - name: 'get_weather' + parameters: + properties: + location: + type: 'string' + type: 'object' + type: 'function' + type: 'tool_search_output' + properties: + call_id: + type: 'string' + execution: + enum: + - 'server' + - 'client' + type: 'string' + id: + type: + - 'string' + - 'null' + status: + enum: + - 'in_progress' + - 'completed' + - 'incomplete' + - null + type: + - 'string' + - 'null' + tools: + items: + anyOf: + - allOf: + - $ref: '#/components/schemas/FunctionTool' + - properties: + async: + 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.' + example: true + type: 'boolean' + 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: + description: 'Get the current weather in a location' + name: 'get_weather' + parameters: + properties: + location: + description: 'The city and state' + type: 'string' + unit: + enum: + - 'celsius' + - 'fahrenheit' + type: 'string' + required: + - 'location' + type: 'object' + type: 'function' + - $ref: '#/components/schemas/Preview_WebSearchServerTool' + - $ref: '#/components/schemas/Preview_20250311_WebSearchServerTool' + - $ref: '#/components/schemas/Legacy_WebSearchServerTool' + - $ref: '#/components/schemas/WebSearchServerTool' + - $ref: '#/components/schemas/FileSearchServerTool' + - $ref: '#/components/schemas/ComputerUseServerTool' + - $ref: '#/components/schemas/CodeInterpreterServerTool' + - $ref: '#/components/schemas/McpServerTool' + - $ref: '#/components/schemas/ImageGenerationServerTool' + - $ref: '#/components/schemas/CodexLocalShellTool' + - $ref: '#/components/schemas/ShellServerTool' + - $ref: '#/components/schemas/ApplyPatchServerTool' + - $ref: '#/components/schemas/CustomTool' + - $ref: '#/components/schemas/NamespaceTool' + - $ref: '#/components/schemas/AdvisorServerTool_OpenRouter' + - $ref: '#/components/schemas/SubagentServerTool_OpenRouter' + - $ref: '#/components/schemas/DatetimeServerTool' + - $ref: '#/components/schemas/FilesServerTool' + - $ref: '#/components/schemas/FusionServerTool_OpenRouter' + - $ref: '#/components/schemas/ImageGenerationServerTool_OpenRouter' + - $ref: '#/components/schemas/SearchModelsServerTool_OpenRouter' + - $ref: '#/components/schemas/WebFetchServerTool' + - $ref: '#/components/schemas/WebSearchServerTool_OpenRouter' + - $ref: '#/components/schemas/ApplyPatchServerTool_OpenRouter' + - $ref: '#/components/schemas/BashServerTool' + - $ref: '#/components/schemas/ShellServerTool_OpenRouter' + - $ref: '#/components/schemas/ToolSearchServerTool' + - additionalProperties: {} + properties: + type: + type: 'string' + required: + - 'type' + type: 'object' + type: 'array' + type: + enum: + - 'tool_search_output' + type: 'string' + required: + - 'type' + - 'call_id' + - 'execution' + - 'tools' + type: 'object' ToolSearchServerTool: description: 'OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable' example: