diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 09427c49..68b156fd 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -20357,6 +20357,7 @@ components: - $ref: '#/components/schemas/MessagesShellToolResultBlock' - $ref: '#/components/schemas/MessagesBashToolResultBlock' - $ref: '#/components/schemas/ORAnthropicToolSearchResultParam' + - $ref: '#/components/schemas/MessagesToolSearchToolResultBlock' type: 'array' output_config: $ref: '#/components/schemas/AnthropicMessageOutputConfig' @@ -21561,6 +21562,113 @@ components: - 'type' - 'tool' type: 'object' + MessagesToolSearchToolReference: + description: 'The name of one tool a tool search found.' + example: + tool_name: 'get_weather' + type: 'tool_reference' + properties: + tool_name: + type: 'string' + type: + enum: + - 'tool_reference' + type: 'string' + required: + - 'type' + - 'tool_name' + type: 'object' + MessagesToolSearchToolResultBlock: + description: 'Tool search result from a prior assistant turn, returned beside the `server_tool_use` it answers.' + example: + content: + tool_references: + - tool_name: 'get_weather' + type: 'tool_reference' + type: 'tool_search_tool_search_result' + tool_use_id: 'srvtoolu_01abc' + type: 'tool_search_tool_result' + properties: + cache_control: + $ref: '#/components/schemas/AnthropicCacheControlDirective' + content: + $ref: '#/components/schemas/MessagesToolSearchToolResultContent' + tool_use_id: + type: 'string' + type: + enum: + - 'tool_search_tool_result' + type: 'string' + required: + - 'type' + - 'tool_use_id' + - 'content' + type: 'object' + MessagesToolSearchToolResultContent: + description: 'What a tool search returned: the tools it found, or an error.' + discriminator: + mapping: + tool_search_tool_result_error: '#/components/schemas/MessagesToolSearchToolResultError' + tool_search_tool_search_result: '#/components/schemas/MessagesToolSearchToolSearchResult' + propertyName: 'type' + example: + tool_references: + - tool_name: 'get_weather' + type: 'tool_reference' + type: 'tool_search_tool_search_result' + oneOf: + - $ref: '#/components/schemas/MessagesToolSearchToolResultError' + - $ref: '#/components/schemas/MessagesToolSearchToolSearchResult' + MessagesToolSearchToolResultError: + description: 'A tool search that returned an error in place of tools.' + example: + error_code: 'unavailable' + error_message: null + type: 'tool_search_tool_result_error' + properties: + error_code: + $ref: '#/components/schemas/MessagesToolSearchToolResultErrorCode' + error_message: + type: + - 'string' + - 'null' + type: + enum: + - 'tool_search_tool_result_error' + type: 'string' + required: + - 'type' + - 'error_code' + type: 'object' + MessagesToolSearchToolResultErrorCode: + description: 'Why a tool search returned no result.' + enum: + - 'invalid_tool_input' + - 'unavailable' + - 'too_many_requests' + - 'execution_time_exceeded' + example: 'unavailable' + type: 'string' + MessagesToolSearchToolSearchResult: + description: 'The tools a tool search found, by name, in match order.' + example: + tool_references: + - tool_name: 'get_weather' + type: 'tool_reference' + type: 'tool_search_tool_search_result' + properties: + tool_references: + items: + $ref: '#/components/schemas/MessagesToolSearchToolReference' + type: 'array' + type: + enum: + - 'tool_search_tool_search_result' + type: 'string' + required: + - 'type' + - 'tool_references' + type: 'object' MetadataLevel: description: 'Opt-in level for surfacing routing metadata on the response under `openrouter_metadata`.' enum: