Skip to content

Commit bc9e478

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent aa84f1e commit bc9e478

1 file changed

Lines changed: 46 additions & 3 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17040,6 +17040,20 @@ components:
1704017040
type: 'string'
1704117041
status:
1704217042
$ref: '#/components/schemas/ToolCallStatus'
17043+
subagent_id:
17044+
description: 'EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls.'
17045+
type: 'string'
17046+
subagent_items:
17047+
description: 'EXPERIMENTAL — subject to change without notice. The subagent''s output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool.'
17048+
items:
17049+
additionalProperties: {}
17050+
properties:
17051+
type:
17052+
type: 'string'
17053+
required:
17054+
- 'type'
17055+
type: 'object'
17056+
type: 'array'
1704317057
type:
1704417058
enum:
1704517059
- 'function_call'
@@ -18429,7 +18443,21 @@ components:
1842918443
OutputFunctionCallItem:
1843018444
allOf:
1843118445
- $ref: '#/components/schemas/OutputItemFunctionCall'
18432-
- properties: {}
18446+
- properties:
18447+
subagent_id:
18448+
description: 'EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls.'
18449+
type: 'string'
18450+
subagent_items:
18451+
description: 'EXPERIMENTAL — subject to change without notice. The subagent''s output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool.'
18452+
items:
18453+
additionalProperties: {}
18454+
properties:
18455+
type:
18456+
type: 'string'
18457+
required:
18458+
- 'type'
18459+
type: 'object'
18460+
type: 'array'
1843318461
type: 'object'
1843418462
example:
1843518463
arguments: '{"location":"San Francisco"}'
@@ -19376,6 +19404,9 @@ components:
1937619404
status: 'completed'
1937719405
type: 'openrouter:subagent'
1937819406
properties:
19407+
call_id:
19408+
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`.'
19409+
type: 'string'
1937919410
error:
1938019411
description: 'Error message when the subagent task did not produce an outcome.'
1938119412
type: 'string'
@@ -23618,7 +23649,7 @@ components:
2361823649
- 'none'
2361923650
type: 'string'
2362023651
max_tokens:
23621-
description: 'Maximum number of reasoning tokens the subagent may use. Accepted and validated but not yet forwarded to the subagent call.'
23652+
description: 'Maximum number of reasoning tokens the subagent may use. Forwarded to the subagent call as `reasoning.max_tokens`.'
2362223653
type: 'integer'
2362323654
type: 'object'
2362423655
SubagentServerTool_OpenRouter:
@@ -23643,6 +23674,18 @@ components:
2364323674
model: '~anthropic/claude-haiku-latest'
2364423675
name: 'summarizer'
2364523676
properties:
23677+
inherit_functions:
23678+
description: 'EXPERIMENTAL — subject to change without notice. When true, the subagent inherits every client function defined in the request''s top-level `tools` list. Supported on the Responses API (`/api/v1/responses`) only; other APIs reject it with a `400`.'
23679+
example: true
23680+
type: 'boolean'
23681+
inherited_function_names:
23682+
description: 'EXPERIMENTAL — subject to change without notice. Names of the top-level function tools that the subagent will inherit. Any tool that matches by name will be copied fully into the tools array of the subagent. When `inherit_functions` is `true`, this list does nothing, because every client function will be inherited by default. Names are trimmed before validation, so a whitespace-only name is rejected with a `400`. Supported on the Responses API (`/api/v1/responses`) only; other APIs reject it with a `400`.'
23683+
example:
23684+
- 'lookup_order'
23685+
items:
23686+
minLength: 1
23687+
type: 'string'
23688+
type: 'array'
2364623689
instructions:
2364723690
description: 'System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own.'
2364823691
example: 'You are a fast, focused worker. Complete the task exactly as described.'
@@ -23652,7 +23695,7 @@ components:
2365223695
example: 2048
2365323696
type: 'integer'
2365423697
max_tool_calls:
23655-
description: 'Maximum number of tool-calling steps the subagent may take during its agentic loop. Capped at 25. Only relevant when the subagent is given tools. Accepted and validated but not yet enforced on the subagent call.'
23698+
description: 'Maximum number of tool-calling steps the subagent may take during its agentic loop. Capped at 25. Only relevant when the subagent is given tools. Forwarded to the subagent call as `max_tool_calls`.'
2365623699
example: 5
2365723700
maximum: 25
2365823701
minimum: 1

0 commit comments

Comments
 (0)