Skip to content

Commit 5bc75cc

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#488)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent ecef142 commit 5bc75cc

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17795,9 +17795,17 @@ components:
1779517795
type: 'string'
1779617796
id:
1779717797
type: 'string'
17798+
instance_name:
17799+
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.'
17800+
example: 'openrouter_subagent__1'
17801+
type: 'string'
1779817802
model:
1779917803
description: 'Slug of the worker model that executed the task.'
1780017804
type: 'string'
17805+
name:
17806+
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.'
17807+
example: 'summarizer'
17808+
type: 'string'
1780117809
outcome:
1780217810
description: 'The worker model''s result (the outcome text returned to the delegating model).'
1780317811
type: 'string'
@@ -21732,9 +21740,10 @@ components:
2173221740
- 'type'
2173321741
type: 'object'
2173421742
SubagentServerToolConfig:
21735-
description: 'Configuration for the openrouter:subagent server tool.'
21743+
description: 'Configuration for one openrouter:subagent server tool entry.'
2173621744
example:
2173721745
model: '~anthropic/claude-haiku-latest'
21746+
name: 'summarizer'
2173821747
properties:
2173921748
instructions:
2174021749
description: 'System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own.'
@@ -21754,6 +21763,13 @@ components:
2175421763
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.'
2175521764
example: '~anthropic/claude-haiku-latest'
2175621765
type: 'string'
21766+
name:
21767+
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.'
21768+
example: 'summarizer'
21769+
maxLength: 64
21770+
minLength: 1
21771+
pattern: '^[a-zA-Z0-9 _-]+$'
21772+
type: 'string'
2175721773
reasoning:
2175821774
$ref: '#/components/schemas/SubagentReasoning'
2175921775
temperature:

0 commit comments

Comments
 (0)