Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
138 changes: 77 additions & 61 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.1.58
version: 1.1.59
additionalDependencies:
dev: {}
main: {}
Expand Down
190 changes: 140 additions & 50 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11452,6 +11452,7 @@ components:
- $ref: '#/components/schemas/OutputAdvisorServerToolItem'
- $ref: '#/components/schemas/OutputSubagentServerToolItem'
- $ref: '#/components/schemas/OutputFilesServerToolItem'
- $ref: '#/components/schemas/OutputShellServerToolItem'
- $ref: '#/components/schemas/LocalShellCallItem'
- $ref: '#/components/schemas/LocalShellCallOutputItem'
- $ref: '#/components/schemas/ShellCallItem'
Expand Down Expand Up @@ -18285,10 +18286,14 @@ components:
properties:
arguments:
description: 'The raw tool-call arguments string as emitted by the model.'
type: 'string'
type:
- 'string'
- 'null'
call_id:
description: 'The model-generated tool call id from the originating turn.'
type: 'string'
type:
- 'string'
- 'null'
command:
type: 'string'
exitCode:
Expand Down Expand Up @@ -18534,6 +18539,16 @@ components:
status: 'completed'
type: 'openrouter:files'
properties:
arguments:
description: 'The raw tool-call arguments string as emitted by the model.'
type:
- 'string'
- 'null'
call_id:
description: 'The model-generated tool call id from the originating turn.'
type:
- 'string'
- 'null'
error:
description: 'Error message when the file operation failed.'
type: 'string'
Expand Down Expand Up @@ -19085,6 +19100,7 @@ components:
openrouter:image_generation: '#/components/schemas/OutputImageGenerationServerToolItem'
openrouter:mcp: '#/components/schemas/OutputMcpServerToolItem'
openrouter:memory: '#/components/schemas/OutputMemoryServerToolItem'
openrouter:shell: '#/components/schemas/OutputShellServerToolItem'
openrouter:subagent: '#/components/schemas/OutputSubagentServerToolItem'
openrouter:text_editor: '#/components/schemas/OutputTextEditorServerToolItem'
openrouter:tool_search: '#/components/schemas/OutputToolSearchServerToolItem'
Expand Down Expand Up @@ -19124,6 +19140,7 @@ components:
- $ref: '#/components/schemas/OutputApplyPatchCallItem'
- $ref: '#/components/schemas/OutputShellCallItem'
- $ref: '#/components/schemas/OutputShellCallOutputItem'
- $ref: '#/components/schemas/OutputShellServerToolItem'
- $ref: '#/components/schemas/OutputWebFetchServerToolItem'
- $ref: '#/components/schemas/OutputToolSearchServerToolItem'
- $ref: '#/components/schemas/OutputMemoryServerToolItem'
Expand Down Expand Up @@ -19438,6 +19455,11 @@ components:
- 'max_output_length'
- 'timeout_ms'
type: 'object'
arguments:
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.'
type:
- 'string'
- 'null'
call_id:
type: 'string'
id:
Expand Down Expand Up @@ -19478,37 +19500,7 @@ components:
- 'null'
output:
items:
properties:
outcome:
oneOf:
- properties:
exit_code:
type: 'integer'
type:
enum:
- 'exit'
type: 'string'
required:
- 'type'
- 'exit_code'
type: 'object'
- properties:
type:
enum:
- 'timeout'
type: 'string'
required:
- 'type'
type: 'object'
stderr:
type: 'string'
stdout:
type: 'string'
required:
- 'stdout'
- 'stderr'
- 'outcome'
type: 'object'
$ref: '#/components/schemas/ShellCallOutputContent'
type: 'array'
status:
$ref: '#/components/schemas/ShellCallStatus'
Expand All @@ -19523,6 +19515,68 @@ components:
- 'status'
- 'output'
type: 'object'
OutputShellServerToolItem:
description: 'An openrouter:shell server tool output item'
example:
action:
commands:
- 'echo hello'
max_output_length: null
timeout_ms: null
call_id: 'call_abc123'
id: 'st_tmp_abc123'
output:
- outcome:
exit_code: 0
type: 'exit'
stderr: ''
stdout: "hello\n"
status: 'completed'
type: 'openrouter:shell'
properties:
action:
properties:
commands:
items:
type: 'string'
type: 'array'
max_output_length:
type:
- 'integer'
- 'null'
timeout_ms:
type:
- 'integer'
- 'null'
required:
- 'commands'
type: 'object'
arguments:
description: 'The raw tool-call arguments string as emitted by the model.'
type:
- 'string'
- 'null'
call_id:
description: 'The model-generated tool call id from the originating turn.'
type:
- 'string'
- 'null'
id:
type: 'string'
output:
items:
$ref: '#/components/schemas/ShellCallOutputContent'
type: 'array'
status:
$ref: '#/components/schemas/ToolCallStatus'
type:
enum:
- 'openrouter:shell'
type: 'string'
required:
- 'status'
- 'type'
type: 'object'
OutputSubagentServerToolItem:
description: 'An openrouter:subagent server tool output item'
example:
Expand Down Expand Up @@ -22836,6 +22890,11 @@ components:
required:
- 'commands'
type: 'object'
arguments:
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.'
type:
- 'string'
- 'null'
call_id:
type: 'string'
environment: {}
Expand All @@ -22856,13 +22915,58 @@ components:
- 'call_id'
- 'action'
type: 'object'
ShellCallOutputContent:
additionalProperties: {}
description: 'Captured stdout and stderr for one command of a shell call, with its exit or timeout outcome.'
example:
outcome:
exit_code: 0
type: 'exit'
stderr: ''
stdout: "total 0\n"
properties:
outcome:
oneOf:
- additionalProperties: {}
properties:
exit_code:
type: 'integer'
type:
enum:
- 'exit'
type: 'string'
required:
- 'type'
- 'exit_code'
type: 'object'
- additionalProperties: {}
properties:
type:
enum:
- 'timeout'
type: 'string'
required:
- 'type'
type: 'object'
stderr:
type: 'string'
stdout:
type: 'string'
required:
- 'stdout'
- 'stderr'
- 'outcome'
type: 'object'
ShellCallOutputItem:
description: 'Output from a shell command execution (newer variant)'
example:
call_id: 'call-abc123'
output:
- content: "total 0\n"
type: 'stdout'
- outcome:
exit_code: 0
type: 'exit'
stderr: ''
stdout: "total 0\n"
status: 'completed'
type: 'shell_call_output'
properties:
Expand All @@ -22878,21 +22982,7 @@ components:
- 'null'
output:
items:
additionalProperties: {}
properties:
content:
type:
- 'string'
- 'null'
exit_code:
type:
- 'integer'
- 'null'
type:
type: 'string'
required:
- 'type'
type: 'object'
$ref: '#/components/schemas/ShellCallOutputContent'
type: 'array'
status:
anyOf:
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:6190547682cb41c5b422989543ad234040f0bd8b00eeea2e5bdfe42d222c40c7
sourceBlobDigest: sha256:a86ecb1bc7b6d32b9bd5052f720c98b42e195fea445e0d02efc7ca3ee3ccde4a
sourceRevisionDigest: sha256:e5f94b78271b3e6e508bb4ab72d889ffe31bb7bacd05c975766869991c7f9b73
sourceBlobDigest: sha256:2511f671bdd7c80fb2df94c623b8900b060d7ffc166f835b874239c1fbb15955
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:6190547682cb41c5b422989543ad234040f0bd8b00eeea2e5bdfe42d222c40c7
sourceBlobDigest: sha256:a86ecb1bc7b6d32b9bd5052f720c98b42e195fea445e0d02efc7ca3ee3ccde4a
sourceRevisionDigest: sha256:e5f94b78271b3e6e508bb4ab72d889ffe31bb7bacd05c975766869991c7f9b73
sourceBlobDigest: sha256:2511f671bdd7c80fb2df94c623b8900b060d7ffc166f835b874239c1fbb15955
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:192a885ca01b61cd92868dc63c2eae4362ea374515c4d219bddd8fff3e45b737
codeSamplesRevisionDigest: sha256:3cb620a70f2f72fa7df7a51587d6e8adc6d4413b6b1429965d01bebfc9fa6721
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1369,4 +1369,14 @@ Based on:
### Generated
- [python v1.1.58] .
### Releases
- [PyPI v1.1.58] https://pypi.org/project/openrouter/1.1.58 - .
- [PyPI v1.1.58] https://pypi.org/project/openrouter/1.1.58 - .

## 2026-08-17 20:09:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.59] .
### Releases
- [PyPI v1.1.59] https://pypi.org/project/openrouter/1.1.59 - .
6 changes: 6 additions & 0 deletions docs/components/inputsunion1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ value: components.OutputSubagentServerToolItem = /* values here */
value: components.OutputFilesServerToolItem = /* values here */
```

### `components.OutputShellServerToolItem`

```python
value: components.OutputShellServerToolItem = /* values here */
```

### `components.LocalShellCallItem`

```python
Expand Down
3 changes: 2 additions & 1 deletion docs/components/outcomeexit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ title: "OutcomeExit"
| Field | Type | Required | Description |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| `exit_code` | *int* | :heavy_check_mark: | N/A |
| `type` | [components.TypeExit](../components/typeexit.mdx) | :heavy_check_mark: | N/A |
| `type` | [components.TypeExit](../components/typeexit.mdx) | :heavy_check_mark: | N/A |
| `__pydantic_extra__` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
3 changes: 2 additions & 1 deletion docs/components/outcometimeout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ title: "OutcomeTimeout"

| Field | Type | Required | Description |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| `type` | [components.TypeTimeout](../components/typetimeout.mdx) | :heavy_check_mark: | N/A |
| `type` | [components.TypeTimeout](../components/typetimeout.mdx) | :heavy_check_mark: | N/A |
| `__pydantic_extra__` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
4 changes: 2 additions & 2 deletions docs/components/outputbashservertoolitem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ An openrouter:bash server tool output item

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `arguments` | *Optional[str]* | :heavy_minus_sign: | The raw tool-call arguments string as emitted by the model. | |
| `call_id` | *Optional[str]* | :heavy_minus_sign: | The model-generated tool call id from the originating turn. | |
| `arguments` | *OptionalNullable[str]* | :heavy_minus_sign: | The raw tool-call arguments string as emitted by the model. | |
| `call_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The model-generated tool call id from the originating turn. | |
| `command` | *Optional[str]* | :heavy_minus_sign: | N/A | |
| `exit_code` | *Optional[int]* | :heavy_minus_sign: | N/A | |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | |
Expand Down
Loading
Loading