You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bc9e478
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+46-3Lines changed: 46 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17040,6 +17040,20 @@ components:
17040
17040
type: 'string'
17041
17041
status:
17042
17042
$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.'
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'
18433
18461
type: 'object'
18434
18462
example:
18435
18463
arguments: '{"location":"San Francisco"}'
@@ -19376,6 +19404,9 @@ components:
19376
19404
status: 'completed'
19377
19405
type: 'openrouter:subagent'
19378
19406
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'
19379
19410
error:
19380
19411
description: 'Error message when the subagent task did not produce an outcome.'
19381
19412
type: 'string'
@@ -23618,7 +23649,7 @@ components:
23618
23649
- 'none'
23619
23650
type: 'string'
23620
23651
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`.'
23622
23653
type: 'integer'
23623
23654
type: 'object'
23624
23655
SubagentServerTool_OpenRouter:
@@ -23643,6 +23674,18 @@ components:
23643
23674
model: '~anthropic/claude-haiku-latest'
23644
23675
name: 'summarizer'
23645
23676
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'
23646
23689
instructions:
23647
23690
description: 'System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own.'
23648
23691
example: 'You are a fast, focused worker. Complete the task exactly as described.'
@@ -23652,7 +23695,7 @@ components:
23652
23695
example: 2048
23653
23696
type: 'integer'
23654
23697
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`.'
0 commit comments