From 5ba69f838fd64fbab8093ef48c574da6acd4c8f1 Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Wed, 19 Aug 2026 21:51:24 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 30eec97d..26458bbe 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -8053,6 +8053,14 @@ components: param: null sequence_number: 2 type: 'error' + FailableToolCallStatus: + enum: + - 'in_progress' + - 'completed' + - 'incomplete' + - 'failed' + example: 'completed' + type: 'string' FailedEvent: description: 'Event emitted when a response has failed' example: @@ -18046,7 +18054,7 @@ components: description: 'The advisor model''s response (the advice text returned to the executor).' type: 'string' error: - description: 'Error message when the advisor call did not produce advice.' + description: 'Error message when the advisor call did not produce advice. Set together with `status: ''failed''` on the terminal item.' type: 'string' id: type: 'string' @@ -18061,7 +18069,7 @@ components: description: 'The prompt the executor sent to the advisor.' type: 'string' status: - $ref: '#/components/schemas/ToolCallStatus' + $ref: '#/components/schemas/FailableToolCallStatus' type: enum: - 'openrouter:advisor' @@ -19437,7 +19445,7 @@ components: description: 'EXPERIMENTAL — subject to change without notice. The `call_id` of the tool call that spawned this subagent. This id will also be included as the `subagent_id` on any `function_call` items created by the subagent. This must be returned in the request so the `function_call` can be matched with the correct subagent. A suspended `in_progress` item is announced once and never re-emitted or terminally closed — completion arrives as a new item with the same `call_id`.' type: 'string' error: - description: 'Error message when the subagent task did not produce an outcome.' + description: 'Error message when the subagent task did not produce an outcome. Set together with `status: ''failed''` on the terminal item.' type: 'string' id: type: 'string' @@ -19456,7 +19464,7 @@ components: description: 'The worker model''s result (the outcome text returned to the delegating model).' type: 'string' status: - $ref: '#/components/schemas/ToolCallStatus' + $ref: '#/components/schemas/FailableToolCallStatus' task_description: description: 'The task description the delegating model sent to the worker.' type: 'string'