Skip to content

Commit 48e7d78

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

1 file changed

Lines changed: 140 additions & 50 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 140 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11350,6 +11350,7 @@ components:
1135011350
- $ref: '#/components/schemas/OutputAdvisorServerToolItem'
1135111351
- $ref: '#/components/schemas/OutputSubagentServerToolItem'
1135211352
- $ref: '#/components/schemas/OutputFilesServerToolItem'
11353+
- $ref: '#/components/schemas/OutputShellServerToolItem'
1135311354
- $ref: '#/components/schemas/LocalShellCallItem'
1135411355
- $ref: '#/components/schemas/LocalShellCallOutputItem'
1135511356
- $ref: '#/components/schemas/ShellCallItem'
@@ -18165,10 +18166,14 @@ components:
1816518166
properties:
1816618167
arguments:
1816718168
description: 'The raw tool-call arguments string as emitted by the model.'
18168-
type: 'string'
18169+
type:
18170+
- 'string'
18171+
- 'null'
1816918172
call_id:
1817018173
description: 'The model-generated tool call id from the originating turn.'
18171-
type: 'string'
18174+
type:
18175+
- 'string'
18176+
- 'null'
1817218177
command:
1817318178
type: 'string'
1817418179
exitCode:
@@ -18413,6 +18418,16 @@ components:
1841318418
status: 'completed'
1841418419
type: 'openrouter:files'
1841518420
properties:
18421+
arguments:
18422+
description: 'The raw tool-call arguments string as emitted by the model.'
18423+
type:
18424+
- 'string'
18425+
- 'null'
18426+
call_id:
18427+
description: 'The model-generated tool call id from the originating turn.'
18428+
type:
18429+
- 'string'
18430+
- 'null'
1841618431
error:
1841718432
description: 'Error message when the file operation failed.'
1841818433
type: 'string'
@@ -18962,6 +18977,7 @@ components:
1896218977
openrouter:image_generation: '#/components/schemas/OutputImageGenerationServerToolItem'
1896318978
openrouter:mcp: '#/components/schemas/OutputMcpServerToolItem'
1896418979
openrouter:memory: '#/components/schemas/OutputMemoryServerToolItem'
18980+
openrouter:shell: '#/components/schemas/OutputShellServerToolItem'
1896518981
openrouter:subagent: '#/components/schemas/OutputSubagentServerToolItem'
1896618982
openrouter:text_editor: '#/components/schemas/OutputTextEditorServerToolItem'
1896718983
openrouter:tool_search: '#/components/schemas/OutputToolSearchServerToolItem'
@@ -19001,6 +19017,7 @@ components:
1900119017
- $ref: '#/components/schemas/OutputApplyPatchCallItem'
1900219018
- $ref: '#/components/schemas/OutputShellCallItem'
1900319019
- $ref: '#/components/schemas/OutputShellCallOutputItem'
19020+
- $ref: '#/components/schemas/OutputShellServerToolItem'
1900419021
- $ref: '#/components/schemas/OutputWebFetchServerToolItem'
1900519022
- $ref: '#/components/schemas/OutputToolSearchServerToolItem'
1900619023
- $ref: '#/components/schemas/OutputMemoryServerToolItem'
@@ -19312,6 +19329,11 @@ components:
1931219329
- 'max_output_length'
1931319330
- 'timeout_ms'
1931419331
type: 'object'
19332+
arguments:
19333+
description: 'The raw tool-call arguments string as emitted by the model. Echo back unchanged when replaying history; used verbatim to preserve provider prompt-cache prefixes.'
19334+
type:
19335+
- 'string'
19336+
- 'null'
1931519337
call_id:
1931619338
type: 'string'
1931719339
id:
@@ -19352,37 +19374,7 @@ components:
1935219374
- 'null'
1935319375
output:
1935419376
items:
19355-
properties:
19356-
outcome:
19357-
oneOf:
19358-
- properties:
19359-
exit_code:
19360-
type: 'integer'
19361-
type:
19362-
enum:
19363-
- 'exit'
19364-
type: 'string'
19365-
required:
19366-
- 'type'
19367-
- 'exit_code'
19368-
type: 'object'
19369-
- properties:
19370-
type:
19371-
enum:
19372-
- 'timeout'
19373-
type: 'string'
19374-
required:
19375-
- 'type'
19376-
type: 'object'
19377-
stderr:
19378-
type: 'string'
19379-
stdout:
19380-
type: 'string'
19381-
required:
19382-
- 'stdout'
19383-
- 'stderr'
19384-
- 'outcome'
19385-
type: 'object'
19377+
$ref: '#/components/schemas/ShellCallOutputContent'
1938619378
type: 'array'
1938719379
status:
1938819380
$ref: '#/components/schemas/ShellCallStatus'
@@ -19397,6 +19389,68 @@ components:
1939719389
- 'status'
1939819390
- 'output'
1939919391
type: 'object'
19392+
OutputShellServerToolItem:
19393+
description: 'An openrouter:shell server tool output item'
19394+
example:
19395+
action:
19396+
commands:
19397+
- 'echo hello'
19398+
max_output_length: null
19399+
timeout_ms: null
19400+
call_id: 'call_abc123'
19401+
id: 'st_tmp_abc123'
19402+
output:
19403+
- outcome:
19404+
exit_code: 0
19405+
type: 'exit'
19406+
stderr: ''
19407+
stdout: "hello\n"
19408+
status: 'completed'
19409+
type: 'openrouter:shell'
19410+
properties:
19411+
action:
19412+
properties:
19413+
commands:
19414+
items:
19415+
type: 'string'
19416+
type: 'array'
19417+
max_output_length:
19418+
type:
19419+
- 'integer'
19420+
- 'null'
19421+
timeout_ms:
19422+
type:
19423+
- 'integer'
19424+
- 'null'
19425+
required:
19426+
- 'commands'
19427+
type: 'object'
19428+
arguments:
19429+
description: 'The raw tool-call arguments string as emitted by the model.'
19430+
type:
19431+
- 'string'
19432+
- 'null'
19433+
call_id:
19434+
description: 'The model-generated tool call id from the originating turn.'
19435+
type:
19436+
- 'string'
19437+
- 'null'
19438+
id:
19439+
type: 'string'
19440+
output:
19441+
items:
19442+
$ref: '#/components/schemas/ShellCallOutputContent'
19443+
type: 'array'
19444+
status:
19445+
$ref: '#/components/schemas/ToolCallStatus'
19446+
type:
19447+
enum:
19448+
- 'openrouter:shell'
19449+
type: 'string'
19450+
required:
19451+
- 'status'
19452+
- 'type'
19453+
type: 'object'
1940019454
OutputSubagentServerToolItem:
1940119455
description: 'An openrouter:subagent server tool output item'
1940219456
example:
@@ -22680,6 +22734,11 @@ components:
2268022734
required:
2268122735
- 'commands'
2268222736
type: 'object'
22737+
arguments:
22738+
description: 'The raw tool-call arguments string as emitted by the model. Echo back unchanged when replaying history; used verbatim to preserve provider prompt-cache prefixes.'
22739+
type:
22740+
- 'string'
22741+
- 'null'
2268322742
call_id:
2268422743
type: 'string'
2268522744
environment: {}
@@ -22700,13 +22759,58 @@ components:
2270022759
- 'call_id'
2270122760
- 'action'
2270222761
type: 'object'
22762+
ShellCallOutputContent:
22763+
additionalProperties: {}
22764+
description: 'Captured stdout and stderr for one command of a shell call, with its exit or timeout outcome.'
22765+
example:
22766+
outcome:
22767+
exit_code: 0
22768+
type: 'exit'
22769+
stderr: ''
22770+
stdout: "total 0\n"
22771+
properties:
22772+
outcome:
22773+
oneOf:
22774+
- additionalProperties: {}
22775+
properties:
22776+
exit_code:
22777+
type: 'integer'
22778+
type:
22779+
enum:
22780+
- 'exit'
22781+
type: 'string'
22782+
required:
22783+
- 'type'
22784+
- 'exit_code'
22785+
type: 'object'
22786+
- additionalProperties: {}
22787+
properties:
22788+
type:
22789+
enum:
22790+
- 'timeout'
22791+
type: 'string'
22792+
required:
22793+
- 'type'
22794+
type: 'object'
22795+
stderr:
22796+
type: 'string'
22797+
stdout:
22798+
type: 'string'
22799+
required:
22800+
- 'stdout'
22801+
- 'stderr'
22802+
- 'outcome'
22803+
type: 'object'
2270322804
ShellCallOutputItem:
2270422805
description: 'Output from a shell command execution (newer variant)'
2270522806
example:
2270622807
call_id: 'call-abc123'
2270722808
output:
22708-
- content: "total 0\n"
22709-
type: 'stdout'
22809+
- outcome:
22810+
exit_code: 0
22811+
type: 'exit'
22812+
stderr: ''
22813+
stdout: "total 0\n"
2271022814
status: 'completed'
2271122815
type: 'shell_call_output'
2271222816
properties:
@@ -22722,21 +22826,7 @@ components:
2272222826
- 'null'
2272322827
output:
2272422828
items:
22725-
additionalProperties: {}
22726-
properties:
22727-
content:
22728-
type:
22729-
- 'string'
22730-
- 'null'
22731-
exit_code:
22732-
type:
22733-
- 'integer'
22734-
- 'null'
22735-
type:
22736-
type: 'string'
22737-
required:
22738-
- 'type'
22739-
type: 'object'
22829+
$ref: '#/components/schemas/ShellCallOutputContent'
2274022830
type: 'array'
2274122831
status:
2274222832
anyOf:

0 commit comments

Comments
 (0)