From c32a88c67e3d8fef40dbd77735c1a83cd9a0781c Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Tue, 21 Jul 2026 05:26:12 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 7474f43..f099261 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -17795,9 +17795,17 @@ components: type: 'string' id: type: 'string' + instance_name: + description: 'Provider-safe function name of the specific subagent instance that produced this item (e.g. `openrouter_subagent__1`). Present only on items from non-default instances — the second and later subagent entries in the request `tools` array. The first (default) instance omits it, even when multiple subagents are configured. When a replayed item echoes this field back, the transcript rehydrates the call under that instance''s tool. This identity is positional: it is derived from the index of the subagent entry in the request `tools` array, so keep the order of subagent entries stable across requests in a conversation.' + example: 'openrouter_subagent__1' + type: 'string' model: description: 'Slug of the worker model that executed the task.' type: 'string' + name: + description: 'Configured name of the subagent that executed the task (the `name` on its tool entry). Present only for named subagents; omitted for an unnamed (default) subagent.' + example: 'summarizer' + type: 'string' outcome: description: 'The worker model''s result (the outcome text returned to the delegating model).' type: 'string' @@ -21732,9 +21740,10 @@ components: - 'type' type: 'object' SubagentServerToolConfig: - description: 'Configuration for the openrouter:subagent server tool.' + description: 'Configuration for one openrouter:subagent server tool entry.' example: model: '~anthropic/claude-haiku-latest' + name: 'summarizer' properties: instructions: description: 'System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own.' @@ -21754,6 +21763,13 @@ components: description: 'Slug of the model that executes delegated tasks (any OpenRouter model). Typically a smaller, cheaper, faster model than the one delegating. When omitted, the model from the outer API request is used. The subagent tool itself cannot be the subagent model.' example: '~anthropic/claude-haiku-latest' type: 'string' + name: + description: 'Optional name for this subagent. The model sees one tool per named subagent (and one default for an unnamed entry). Names must be unique across subagent entries. Letters, digits, spaces, underscores, and dashes; trimmed; 1–64 chars.' + example: 'summarizer' + maxLength: 64 + minLength: 1 + pattern: '^[a-zA-Z0-9 _-]+$' + type: 'string' reasoning: $ref: '#/components/schemas/SubagentReasoning' temperature: