Skip to content

Commit ea1f837

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

1 file changed

Lines changed: 116 additions & 0 deletions

File tree

.speakeasy/in.openapi.yaml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12149,6 +12149,31 @@ components:
1214912149
- 'tool_use_id'
1215012150
- 'content'
1215112151
type: 'object'
12152+
MessagesBashToolResultBlock:
12153+
description: 'Output of a sandbox-executed `openrouter:bash` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.'
12154+
example:
12155+
content:
12156+
command: 'ls'
12157+
exitCode: 0
12158+
stderr: ''
12159+
stdout: "README.md\n"
12160+
tool_use_id: 'srvtoolu_01abc'
12161+
type: 'openrouter_bash_tool_result'
12162+
properties:
12163+
content:
12164+
additionalProperties: {}
12165+
type: 'object'
12166+
tool_use_id:
12167+
type: 'string'
12168+
type:
12169+
enum:
12170+
- 'openrouter_bash_tool_result'
12171+
type: 'string'
12172+
required:
12173+
- 'type'
12174+
- 'tool_use_id'
12175+
- 'content'
12176+
type: 'object'
1215212177
MessagesContentBlockDeltaEvent:
1215312178
description: 'Event sent when content is added to a content block'
1215412179
example:
@@ -12282,6 +12307,8 @@ components:
1228212307
- $ref: '#/components/schemas/AnthropicContainerUpload'
1228312308
- $ref: '#/components/schemas/AnthropicCompactionBlock'
1228412309
- $ref: '#/components/schemas/AnthropicAdvisorToolResult'
12310+
- $ref: '#/components/schemas/ORAnthropicShellToolResult'
12311+
- $ref: '#/components/schemas/ORAnthropicBashToolResult'
1228512312
- properties:
1228612313
content:
1228712314
type:
@@ -12657,6 +12684,8 @@ components:
1265712684
- $ref: '#/components/schemas/MessagesAdvisorToolResultBlock'
1265812685
- $ref: '#/components/schemas/MessagesToolAdditionBlock'
1265912686
- $ref: '#/components/schemas/MessagesToolRemovalBlock'
12687+
- $ref: '#/components/schemas/MessagesShellToolResultBlock'
12688+
- $ref: '#/components/schemas/MessagesBashToolResultBlock'
1266012689
type: 'array'
1266112690
role:
1266212691
enum:
@@ -13183,6 +13212,7 @@ components:
1318313212
type: 'object'
1318413213
- $ref: '#/components/schemas/AnthropicToolSearchToolBm25'
1318513214
- $ref: '#/components/schemas/AnthropicToolSearchToolRegex'
13215+
- $ref: '#/components/schemas/ShellServerTool_OpenRouter'
1318613216
type: 'array'
1318713217
top_k:
1318813218
type: 'integer'
@@ -13299,6 +13329,33 @@ components:
1329913329
required:
1330013330
- 'type'
1330113331
type: 'object'
13332+
MessagesShellToolResultBlock:
13333+
description: 'Output of an `openrouter:shell` call from a prior assistant turn. Accepted on replay and dropped before the provider request — Anthropic has no equivalent block.'
13334+
example:
13335+
content:
13336+
output:
13337+
- outcome:
13338+
exit_code: 0
13339+
type: 'exit'
13340+
stderr: ''
13341+
stdout: "README.md\n"
13342+
tool_use_id: 'srvtoolu_01abc'
13343+
type: 'openrouter_shell_tool_result'
13344+
properties:
13345+
content:
13346+
additionalProperties: {}
13347+
type: 'object'
13348+
tool_use_id:
13349+
type: 'string'
13350+
type:
13351+
enum:
13352+
- 'openrouter_shell_tool_result'
13353+
type: 'string'
13354+
required:
13355+
- 'type'
13356+
- 'tool_use_id'
13357+
- 'content'
13358+
type: 'object'
1330213359
MessagesStartEvent:
1330313360
description: 'Event sent at the start of a streaming message'
1330413361
example:
@@ -17171,6 +17228,31 @@ components:
1717117228
required:
1717217229
- 'type'
1717317230
type: 'object'
17231+
ORAnthropicBashToolResult:
17232+
description: 'Output of an `openrouter:bash` call executed in the OpenRouter sandbox (`engine: ''openrouter''`)'
17233+
example:
17234+
content:
17235+
command: 'ls'
17236+
exitCode: 0
17237+
stderr: ''
17238+
stdout: "README.md\n"
17239+
tool_use_id: 'srvtoolu_01abc'
17240+
type: 'openrouter_bash_tool_result'
17241+
properties:
17242+
content:
17243+
additionalProperties: {}
17244+
type: 'object'
17245+
tool_use_id:
17246+
type: 'string'
17247+
type:
17248+
enum:
17249+
- 'openrouter_bash_tool_result'
17250+
type: 'string'
17251+
required:
17252+
- 'type'
17253+
- 'tool_use_id'
17254+
- 'content'
17255+
type: 'object'
1717417256
ORAnthropicContentBlock:
1717517257
discriminator:
1717617258
mapping:
@@ -17179,6 +17261,8 @@ components:
1717917261
code_execution_tool_result: '#/components/schemas/AnthropicCodeExecutionToolResult'
1718017262
compaction: '#/components/schemas/AnthropicCompactionBlock'
1718117263
container_upload: '#/components/schemas/AnthropicContainerUpload'
17264+
openrouter_bash_tool_result: '#/components/schemas/ORAnthropicBashToolResult'
17265+
openrouter_shell_tool_result: '#/components/schemas/ORAnthropicShellToolResult'
1718217266
redacted_thinking: '#/components/schemas/AnthropicRedactedThinkingBlock'
1718317267
server_tool_use: '#/components/schemas/ORAnthropicServerToolUseBlock'
1718417268
text: '#/components/schemas/AnthropicTextBlock'
@@ -17208,6 +17292,8 @@ components:
1720817292
- $ref: '#/components/schemas/AnthropicContainerUpload'
1720917293
- $ref: '#/components/schemas/AnthropicCompactionBlock'
1721017294
- $ref: '#/components/schemas/AnthropicAdvisorToolResult'
17295+
- $ref: '#/components/schemas/ORAnthropicShellToolResult'
17296+
- $ref: '#/components/schemas/ORAnthropicBashToolResult'
1721117297
ORAnthropicNullableCaller:
1721217298
discriminator:
1721317299
mapping:
@@ -17247,6 +17333,33 @@ components:
1724717333
- 'id'
1724817334
- 'name'
1724917335
type: 'object'
17336+
ORAnthropicShellToolResult:
17337+
description: 'Output of an `openrouter:shell` call executed in the OpenRouter sandbox'
17338+
example:
17339+
content:
17340+
output:
17341+
- outcome:
17342+
exit_code: 0
17343+
type: 'exit'
17344+
stderr: ''
17345+
stdout: "README.md\n"
17346+
tool_use_id: 'srvtoolu_01abc'
17347+
type: 'openrouter_shell_tool_result'
17348+
properties:
17349+
content:
17350+
additionalProperties: {}
17351+
type: 'object'
17352+
tool_use_id:
17353+
type: 'string'
17354+
type:
17355+
enum:
17356+
- 'openrouter_shell_tool_result'
17357+
type: 'string'
17358+
required:
17359+
- 'type'
17360+
- 'tool_use_id'
17361+
- 'content'
17362+
type: 'object'
1725017363
ORAnthropicStopReason:
1725117364
enum:
1725217365
- 'end_turn'
@@ -25617,6 +25730,9 @@ paths:
2561725730
description: 'Dimension to filter on. Use the /meta endpoint for available dimensions.'
2561825731
example: 'model'
2561925732
type: 'string'
25733+
include_unset:
25734+
description: 'Include rows where the dimension has no value. Applies only to the `in` and `not_in` operators and dimensions that have an unset bucket.'
25735+
type: 'boolean'
2562025736
operator:
2562125737
description: 'Filter operator'
2562225738
example: 'eq'

0 commit comments

Comments
 (0)