chore: 🐝 Update SDK - Generate (spec change merged) 0.11.3 (#390)

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-07-03 19:58:30 +00:00
committed by GitHub
co-authored by speakeasybot speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent d62640c385
commit 22803a327e
16 changed files with 272 additions and 70 deletions
+33 -23
View File
@@ -1,19 +1,19 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828 id: c48cf606-fb42-4a45-9c23-8f0555307828
management: management:
docChecksum: 22dd2a8c52c82b2e6d45813b3a136d8e docChecksum: 1b3480b82990a39f968571a292695e01
docVersion: 1.0.0 docVersion: 1.0.0
speakeasyVersion: 1.787.0 speakeasyVersion: 1.787.0
generationVersion: 2.914.0 generationVersion: 2.914.0
releaseVersion: 0.11.2 releaseVersion: 0.11.3
configChecksum: d99c6e3ad8d65139a1705b2482f5b0f6 configChecksum: 9580963049895d84eccfc135025854cb
repoURL: https://github.com/OpenRouterTeam/python-sdk.git repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true published: true
persistentEdits: persistentEdits:
generation_id: 17428005-f3ed-41ee-832f-a08e2ee4b2c9 generation_id: 00a7dc9a-a2f7-46bb-898f-e804c87aa438
pristine_commit_hash: c52584d3b29fe1ab0cd11c36fc0519e7988910d6 pristine_commit_hash: 22206487f7eccf058be8483fb016c65abc71aef9
pristine_tree_hash: 35802e82c88cd41747250883f8acad806745fe0e pristine_tree_hash: c724440db515750df210411562157b40257083ef
features: features:
python: python:
acceptHeaders: 3.0.0 acceptHeaders: 3.0.0
@@ -2394,8 +2394,8 @@ trackedFiles:
pristine_git_object: 33aee92c61bf7ab9beded4e193f50a2c08462378 pristine_git_object: 33aee92c61bf7ab9beded4e193f50a2c08462378
docs/components/inputsunion1.mdx: docs/components/inputsunion1.mdx:
id: c216609d21ce id: c216609d21ce
last_write_checksum: sha1:2b16bfaccb9d6901c140145e6caafaaa476e6446 last_write_checksum: sha1:ccfecdbd5ad7a2719b2372c54e9eac1075b1f108
pristine_git_object: de84f4c9dd8d18b4568051a2a83f35e052a26f14 pristine_git_object: 9d37626f96de3c19d39e4901d041ef41b01bdc98
docs/components/inputtext.mdx: docs/components/inputtext.mdx:
id: c8a97322a50a id: c8a97322a50a
last_write_checksum: sha1:5462885a683c2ca29551281c9fcf3ad1bceb0634 last_write_checksum: sha1:5462885a683c2ca29551281c9fcf3ad1bceb0634
@@ -3340,6 +3340,14 @@ trackedFiles:
id: 7b77e3515472 id: 7b77e3515472
last_write_checksum: sha1:f50a8d6620bbf95e43dd8b6c221ebe8f01b1cd32 last_write_checksum: sha1:f50a8d6620bbf95e43dd8b6c221ebe8f01b1cd32
pristine_git_object: fe499bd21f3539752b0091907a0b3dd5c55b5d76 pristine_git_object: fe499bd21f3539752b0091907a0b3dd5c55b5d76
docs/components/outputfilesservertoolitem.mdx:
id: 345df34acb80
last_write_checksum: sha1:41c547463bd869c4acc0c8ad64ea2d4bc0a9998b
pristine_git_object: 111b79f06ab2edb08b60062868b1dd13fe14d740
docs/components/outputfilesservertoolitemtype.mdx:
id: abdc83b528c9
last_write_checksum: sha1:5a89f4165e70f4dee1b74cd300a790e0274d55f2
pristine_git_object: f9eb6568f06fc4b917d41a391f0b3046ac064889
docs/components/outputfunctioncallitem.mdx: docs/components/outputfunctioncallitem.mdx:
id: 1d62f9e67c2f id: 1d62f9e67c2f
last_write_checksum: sha1:6642104468672708caccef16346f824b51264670 last_write_checksum: sha1:6642104468672708caccef16346f824b51264670
@@ -3402,8 +3410,8 @@ trackedFiles:
pristine_git_object: 7e12c2ee3da68966a14d19207b95699c7b57d1e5 pristine_git_object: 7e12c2ee3da68966a14d19207b95699c7b57d1e5
docs/components/outputitems.mdx: docs/components/outputitems.mdx:
id: 876e956be23e id: 876e956be23e
last_write_checksum: sha1:870898ed6e0c717f62876dcefe2dc3126528ea1a last_write_checksum: sha1:feaf29256eb4203388160c9f8c22292dde315bef
pristine_git_object: e85451a343f8047639bc179fa4dbd70bce22f3b0 pristine_git_object: f73cc6671c184f19ca530e8d0bda4e6cc247e30b
docs/components/outputlogs.mdx: docs/components/outputlogs.mdx:
id: 89bf8506e4fe id: 89bf8506e4fe
last_write_checksum: sha1:8b2efe9f4117b7b3d44eb16813e8ed88fc6d1ebc last_write_checksum: sha1:8b2efe9f4117b7b3d44eb16813e8ed88fc6d1ebc
@@ -6370,8 +6378,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml: pyproject.toml:
id: 5d07e7d72637 id: 5d07e7d72637
last_write_checksum: sha1:e2bc1b3fccb2ccdf85aa79e5886a52f91340150a last_write_checksum: sha1:77dc4bb23124c68a4514773255a6be898795a345
pristine_git_object: e0deb3eae39559a8ab667ff46b01c4a505abd7db pristine_git_object: 0ee40fce00c555f4ae902fe221bccbc7bc2cf960
scripts/prepare_readme.py: scripts/prepare_readme.py:
id: e0c5957a6035 id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6398,8 +6406,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py: src/openrouter/_version.py:
id: d8d15ad6c586 id: d8d15ad6c586
last_write_checksum: sha1:0d2f123171a2b90c45806c351b029f722c836270 last_write_checksum: sha1:07a6785b54ea278e7f66f25b16dc131011c8fbd6
pristine_git_object: 065e7c6105281025b6c465f401c6bf6c03966342 pristine_git_object: c2263273c453c720d864cf483e26066fd7edb1e2
src/openrouter/analytics.py: src/openrouter/analytics.py:
id: cb406b5aaabb id: cb406b5aaabb
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841 last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -6438,8 +6446,8 @@ trackedFiles:
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1 pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
src/openrouter/components/__init__.py: src/openrouter/components/__init__.py:
id: 81754e97b3f4 id: 81754e97b3f4
last_write_checksum: sha1:3d56cadcea54efec319a1d282eeae4c5b387d1e5 last_write_checksum: sha1:08af0c2202383ec06d9bc58553df3ceb68272edd
pristine_git_object: 19c69fe69c979eccea5ec82ed501dda6fc391d3a pristine_git_object: 192d30802850b8d05e199dade47c0e86deb3c689
src/openrouter/components/aabenchmarkentry.py: src/openrouter/components/aabenchmarkentry.py:
id: e2e0f0b48c82 id: e2e0f0b48c82
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -7470,8 +7478,8 @@ trackedFiles:
pristine_git_object: a3d84a96f4553a320f5eee5d63f6bc5c244ab446 pristine_git_object: a3d84a96f4553a320f5eee5d63f6bc5c244ab446
src/openrouter/components/inputs_union.py: src/openrouter/components/inputs_union.py:
id: 17d6239cb6a7 id: 17d6239cb6a7
last_write_checksum: sha1:08815eb3a06126d278916e211c150eecb290da86 last_write_checksum: sha1:289d1c1eb23075d285491f8fab2bf4d8dc941c4b
pristine_git_object: 334026a24394d6cbc4b7d938d0231bde1511fce1 pristine_git_object: 1371934ab909d77965b050958080277ca8988f09
src/openrouter/components/inputtext.py: src/openrouter/components/inputtext.py:
id: a995ae96be99 id: a995ae96be99
last_write_checksum: sha1:0e30dbfa1813d3e69e0ccd2511f50080cce0fb6e last_write_checksum: sha1:0e30dbfa1813d3e69e0ccd2511f50080cce0fb6e
@@ -7836,6 +7844,10 @@ trackedFiles:
id: 9e99e5ff3288 id: 9e99e5ff3288
last_write_checksum: sha1:92d8a86195e7438b174cdd5a919f6943f08f5826 last_write_checksum: sha1:92d8a86195e7438b174cdd5a919f6943f08f5826
pristine_git_object: 5be878556b892a54a5931400f92d0f171224428b pristine_git_object: 5be878556b892a54a5931400f92d0f171224428b
src/openrouter/components/outputfilesservertoolitem.py:
id: 552155de1bb4
last_write_checksum: sha1:7f77012ef034ec1635c2bdf6219b6b1e0b46834d
pristine_git_object: 5f30e958618a659ecc83c746240144961c6bf6e6
src/openrouter/components/outputfunctioncallitem.py: src/openrouter/components/outputfunctioncallitem.py:
id: 516ed67b5406 id: 516ed67b5406
last_write_checksum: sha1:2dcba52e87aad59459a33bd5cd665a32c6372db9 last_write_checksum: sha1:2dcba52e87aad59459a33bd5cd665a32c6372db9
@@ -7858,8 +7870,8 @@ trackedFiles:
pristine_git_object: 94af810bbdb87fb8c6800645354f7ec4dd067e7f pristine_git_object: 94af810bbdb87fb8c6800645354f7ec4dd067e7f
src/openrouter/components/outputitems.py: src/openrouter/components/outputitems.py:
id: 90f107de3116 id: 90f107de3116
last_write_checksum: sha1:34b286c5edd5f0cc411d12a1efe6847d9ac1a7d2 last_write_checksum: sha1:278d94da113ba85ced7ae5e84b4c8b3c36a7d2c5
pristine_git_object: 0e3e405a8def2ae8b4367aeba1610f5a569abf9f pristine_git_object: f828fba44f1de7265e267d2201dbd3043fc5cfa1
src/openrouter/components/outputmcpservertoolitem.py: src/openrouter/components/outputmcpservertoolitem.py:
id: bb8c2536a58e id: bb8c2536a58e
last_write_checksum: sha1:28d33c9226ff4ce6871457fa1fae384b590f676c last_write_checksum: sha1:28d33c9226ff4ce6871457fa1fae384b590f676c
@@ -10640,6 +10652,4 @@ examples:
"500": "500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}} application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2 examplesVersion: 1.0.2
releaseNotes: | releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[].union(OutputFilesServerToolItem)` **Added**\n * `response` **Changed**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(OutputFilesServerToolItem)` **Added**\n"
## Python SDK Changes:
* `open_router.workspaces.list_members()`: **Added**
+1 -1
View File
@@ -36,7 +36,7 @@ generation:
documentation: mintlify documentation: mintlify
preApplyUnionDiscriminators: true preApplyUnionDiscriminators: true
python: python:
version: 0.11.2 version: 0.11.3
additionalDependencies: additionalDependencies:
dev: {} dev: {}
main: {} main: {}
+40
View File
@@ -10299,6 +10299,7 @@ components:
- $ref: '#/components/schemas/OutputFusionServerToolItem' - $ref: '#/components/schemas/OutputFusionServerToolItem'
- $ref: '#/components/schemas/OutputAdvisorServerToolItem' - $ref: '#/components/schemas/OutputAdvisorServerToolItem'
- $ref: '#/components/schemas/OutputSubagentServerToolItem' - $ref: '#/components/schemas/OutputSubagentServerToolItem'
- $ref: '#/components/schemas/OutputFilesServerToolItem'
- $ref: '#/components/schemas/LocalShellCallItem' - $ref: '#/components/schemas/LocalShellCallItem'
- $ref: '#/components/schemas/LocalShellCallOutputItem' - $ref: '#/components/schemas/LocalShellCallOutputItem'
- $ref: '#/components/schemas/ShellCallItem' - $ref: '#/components/schemas/ShellCallItem'
@@ -16214,6 +16215,43 @@ components:
- status - status
- type - type
type: object type: object
OutputFilesServerToolItem:
description: An openrouter:files server tool output item
example:
filename: notes.txt
id: fl_tmp_abc123
operation: read
result: '{"id":"file_abc","filename":"notes.txt","content":"hello"}'
status: completed
type: openrouter:files
properties:
error:
description: Error message when the file operation failed.
type: string
file_id:
description: The target file id supplied in the tool-call arguments.
type: string
filename:
description: The target filename supplied in the tool-call arguments.
type: string
id:
type: string
operation:
description: The file operation performed (list, read, write, or edit).
type: string
result:
description: JSON-serialized result of the file operation.
type: string
status:
$ref: '#/components/schemas/ToolCallStatus'
type:
enum:
- openrouter:files
type: string
required:
- status
- type
type: object
OutputFunctionCallItem: OutputFunctionCallItem:
allOf: allOf:
- $ref: '#/components/schemas/OutputItemFunctionCall' - $ref: '#/components/schemas/OutputItemFunctionCall'
@@ -16662,6 +16700,7 @@ components:
openrouter:datetime: '#/components/schemas/OutputDatetimeItem' openrouter:datetime: '#/components/schemas/OutputDatetimeItem'
openrouter:experimental__search_models: '#/components/schemas/OutputSearchModelsServerToolItem' openrouter:experimental__search_models: '#/components/schemas/OutputSearchModelsServerToolItem'
openrouter:file_search: '#/components/schemas/OutputFileSearchServerToolItem' openrouter:file_search: '#/components/schemas/OutputFileSearchServerToolItem'
openrouter:files: '#/components/schemas/OutputFilesServerToolItem'
openrouter:fusion: '#/components/schemas/OutputFusionServerToolItem' openrouter:fusion: '#/components/schemas/OutputFusionServerToolItem'
openrouter:image_generation: '#/components/schemas/OutputImageGenerationServerToolItem' openrouter:image_generation: '#/components/schemas/OutputImageGenerationServerToolItem'
openrouter:mcp: '#/components/schemas/OutputMcpServerToolItem' openrouter:mcp: '#/components/schemas/OutputMcpServerToolItem'
@@ -16713,6 +16752,7 @@ components:
- $ref: '#/components/schemas/OutputFusionServerToolItem' - $ref: '#/components/schemas/OutputFusionServerToolItem'
- $ref: '#/components/schemas/OutputAdvisorServerToolItem' - $ref: '#/components/schemas/OutputAdvisorServerToolItem'
- $ref: '#/components/schemas/OutputSubagentServerToolItem' - $ref: '#/components/schemas/OutputSubagentServerToolItem'
- $ref: '#/components/schemas/OutputFilesServerToolItem'
- $ref: '#/components/schemas/OutputCustomToolCallItem' - $ref: '#/components/schemas/OutputCustomToolCallItem'
OutputItemWebSearchCall: OutputItemWebSearchCall:
example: example:
+5 -5
View File
@@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0
sources: sources:
OpenRouter API: OpenRouter API:
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:5f1370b2087005edf5335d559553a8e78a7f68548feeb5007ffd159eb331d4b8 sourceRevisionDigest: sha256:5381277309ba2f3a4a3e0719b00425be3f93c3103717316e6625bd5caf15b277
sourceBlobDigest: sha256:ccab13156b379a7393d475a3dffeede1ab1e849f77860609a73af1ce7a3839e4 sourceBlobDigest: sha256:def8d29511aca594e11c3367b7013a64c8733cc8050e23deae98d9cc5df55c93
tags: tags:
- latest - latest
- 1.0.0 - 1.0.0
@@ -11,10 +11,10 @@ targets:
open-router: open-router:
source: OpenRouter API source: OpenRouter API
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:5f1370b2087005edf5335d559553a8e78a7f68548feeb5007ffd159eb331d4b8 sourceRevisionDigest: sha256:5381277309ba2f3a4a3e0719b00425be3f93c3103717316e6625bd5caf15b277
sourceBlobDigest: sha256:ccab13156b379a7393d475a3dffeede1ab1e849f77860609a73af1ce7a3839e4 sourceBlobDigest: sha256:def8d29511aca594e11c3367b7013a64c8733cc8050e23deae98d9cc5df55c93
codeSamplesNamespace: open-router-python-code-samples codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:68f0535d2a29eafd4da54cc0f2ebb260b678afae6f4a752f76cad957fb319df2 codeSamplesRevisionDigest: sha256:18d6fc594c9338480cbc65842c3f276ad0a58f2ceda311aff3d70ea33dbd6e6d
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: 1.787.0 speakeasyVersion: 1.787.0
+10
View File
@@ -129,3 +129,13 @@ Based on:
- [python v0.11.2] . - [python v0.11.2] .
### Releases ### Releases
- [PyPI v0.11.2] https://pypi.org/project/openrouter/0.11.2 - . - [PyPI v0.11.2] https://pypi.org/project/openrouter/0.11.2 - .
## 2026-07-03 19:54:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.11.3] .
### Releases
- [PyPI v0.11.3] https://pypi.org/project/openrouter/0.11.3 - .
+6
View File
@@ -202,6 +202,12 @@ value: components.OutputAdvisorServerToolItem = /* values here */
value: components.OutputSubagentServerToolItem = /* values here */ value: components.OutputSubagentServerToolItem = /* values here */
``` ```
### `components.OutputFilesServerToolItem`
```python
value: components.OutputFilesServerToolItem = /* values here */
```
### `components.LocalShellCallItem` ### `components.LocalShellCallItem`
```python ```python
@@ -0,0 +1,19 @@
---
title: "OutputFilesServerToolItem"
---
An openrouter:files server tool output item
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `error` | *Optional[str]* | :heavy_minus_sign: | Error message when the file operation failed. | |
| `file_id` | *Optional[str]* | :heavy_minus_sign: | The target file id supplied in the tool-call arguments. | |
| `filename` | *Optional[str]* | :heavy_minus_sign: | The target filename supplied in the tool-call arguments. | |
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | |
| `operation` | *Optional[str]* | :heavy_minus_sign: | The file operation performed (list, read, write, or edit). | |
| `result` | *Optional[str]* | :heavy_minus_sign: | JSON-serialized result of the file operation. | |
| `status` | [components.ToolCallStatus](../components/toolcallstatus.mdx) | :heavy_check_mark: | N/A | completed |
| `type` | [components.OutputFilesServerToolItemType](../components/outputfilesservertoolitemtype.mdx) | :heavy_check_mark: | N/A | |
@@ -0,0 +1,15 @@
---
title: "OutputFilesServerToolItemType"
---
## Example Usage
```python
from openrouter.components import OutputFilesServerToolItemType
value: OutputFilesServerToolItemType = "openrouter:files"
```
## Values
- `"openrouter:files"`
+6
View File
@@ -103,6 +103,12 @@ value: components.OutputSearchModelsServerToolItem = /* values here */
value: components.OutputFileSearchServerToolItem = /* values here */ value: components.OutputFileSearchServerToolItem = /* values here */
``` ```
### `components.OutputFilesServerToolItem`
```python
value: components.OutputFilesServerToolItem = /* values here */
```
### `components.OutputFusionServerToolItem` ### `components.OutputFusionServerToolItem`
```python ```python
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "openrouter" name = "openrouter"
version = "0.11.2" version = "0.11.3"
description = "Official Python Client SDK for OpenRouter." description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },] authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md" readme = "README-PYPI.md"
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata import importlib.metadata
__title__: str = "openrouter" __title__: str = "openrouter"
__version__: str = "0.11.2" __version__: str = "0.11.3"
__openapi_doc_version__: str = "1.0.0" __openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0" __gen_version__: str = "2.914.0"
__user_agent__: str = "speakeasy-sdk/python 0.11.2 2.914.0 1.0.0 openrouter" __user_agent__: str = "speakeasy-sdk/python 0.11.3 2.914.0 1.0.0 openrouter"
try: try:
if __package__ is not None: if __package__ is not None:
+11
View File
@@ -1893,6 +1893,11 @@ if TYPE_CHECKING:
OutputFileSearchServerToolItemType, OutputFileSearchServerToolItemType,
OutputFileSearchServerToolItemTypedDict, OutputFileSearchServerToolItemTypedDict,
) )
from .outputfilesservertoolitem import (
OutputFilesServerToolItem,
OutputFilesServerToolItemType,
OutputFilesServerToolItemTypedDict,
)
from .outputfunctioncallitem import ( from .outputfunctioncallitem import (
OutputFunctionCallItem, OutputFunctionCallItem,
OutputFunctionCallItemStatusCompleted, OutputFunctionCallItemStatusCompleted,
@@ -4021,6 +4026,9 @@ __all__ = [
"OutputFileSearchServerToolItem", "OutputFileSearchServerToolItem",
"OutputFileSearchServerToolItemType", "OutputFileSearchServerToolItemType",
"OutputFileSearchServerToolItemTypedDict", "OutputFileSearchServerToolItemTypedDict",
"OutputFilesServerToolItem",
"OutputFilesServerToolItemType",
"OutputFilesServerToolItemTypedDict",
"OutputFunctionCallItem", "OutputFunctionCallItem",
"OutputFunctionCallItemStatusCompleted", "OutputFunctionCallItemStatusCompleted",
"OutputFunctionCallItemStatusInProgress", "OutputFunctionCallItemStatusInProgress",
@@ -6112,6 +6120,9 @@ _dynamic_imports: dict[str, str] = {
"OutputFileSearchServerToolItem": ".outputfilesearchservertoolitem", "OutputFileSearchServerToolItem": ".outputfilesearchservertoolitem",
"OutputFileSearchServerToolItemType": ".outputfilesearchservertoolitem", "OutputFileSearchServerToolItemType": ".outputfilesearchservertoolitem",
"OutputFileSearchServerToolItemTypedDict": ".outputfilesearchservertoolitem", "OutputFileSearchServerToolItemTypedDict": ".outputfilesearchservertoolitem",
"OutputFilesServerToolItem": ".outputfilesservertoolitem",
"OutputFilesServerToolItemType": ".outputfilesservertoolitem",
"OutputFilesServerToolItemTypedDict": ".outputfilesservertoolitem",
"OutputFunctionCallItem": ".outputfunctioncallitem", "OutputFunctionCallItem": ".outputfunctioncallitem",
"OutputFunctionCallItemStatusCompleted": ".outputfunctioncallitem", "OutputFunctionCallItemStatusCompleted": ".outputfunctioncallitem",
"OutputFunctionCallItemStatusInProgress": ".outputfunctioncallitem", "OutputFunctionCallItemStatusInProgress": ".outputfunctioncallitem",
+42 -36
View File
@@ -80,6 +80,10 @@ from .outputfilesearchservertoolitem import (
OutputFileSearchServerToolItem, OutputFileSearchServerToolItem,
OutputFileSearchServerToolItemTypedDict, OutputFileSearchServerToolItemTypedDict,
) )
from .outputfilesservertoolitem import (
OutputFilesServerToolItem,
OutputFilesServerToolItemTypedDict,
)
from .outputfunctioncallitem import ( from .outputfunctioncallitem import (
OutputFunctionCallItem, OutputFunctionCallItem,
OutputFunctionCallItemTypedDict, OutputFunctionCallItemTypedDict,
@@ -374,45 +378,46 @@ InputsUnion1TypedDict = TypeAliasType(
OutputFileSearchCallItemTypedDict, OutputFileSearchCallItemTypedDict,
EasyInputMessageTypedDict, EasyInputMessageTypedDict,
InputMessageItemTypedDict, InputMessageItemTypedDict,
CustomToolCallOutputItemTypedDict,
LocalShellCallOutputItemTypedDict, LocalShellCallOutputItemTypedDict,
OutputToolSearchServerToolItemTypedDict, OutputToolSearchServerToolItemTypedDict,
OutputFileSearchServerToolItemTypedDict, OutputFileSearchServerToolItemTypedDict,
OutputWebSearchServerToolItemTypedDict, OutputWebSearchServerToolItemTypedDict,
CustomToolCallOutputItemTypedDict,
OutputImageGenerationCallItemTypedDict, OutputImageGenerationCallItemTypedDict,
OutputWebSearchCallItemTypedDict, OutputWebSearchCallItemTypedDict,
LocalShellCallItemTypedDict,
OutputSearchModelsServerToolItemTypedDict,
FunctionCallOutputItemTypedDict,
ApplyPatchCallItemTypedDict,
OutputDatetimeItemTypedDict, OutputDatetimeItemTypedDict,
McpApprovalResponseItemTypedDict, OutputMcpServerToolItemTypedDict,
McpApprovalRequestItemTypedDict, FunctionCallOutputItemTypedDict,
OutputSearchModelsServerToolItemTypedDict,
LocalShellCallItemTypedDict,
ApplyPatchCallItemTypedDict,
McpListToolsItemTypedDict, McpListToolsItemTypedDict,
ApplyPatchCallOutputItemTypedDict, ApplyPatchCallOutputItemTypedDict,
McpApprovalResponseItemTypedDict,
OutputBrowserUseServerToolItemTypedDict, OutputBrowserUseServerToolItemTypedDict,
OutputMcpServerToolItemTypedDict, McpApprovalRequestItemTypedDict,
OutputTextEditorServerToolItemTypedDict, OutputTextEditorServerToolItemTypedDict,
OutputApplyPatchServerToolItemTypedDict, OutputApplyPatchServerToolItemTypedDict,
ShellCallItemTypedDict, CustomToolCallItemTypedDict,
InputsMessageTypedDict, InputsMessageTypedDict,
OutputMemoryServerToolItemTypedDict, OutputMemoryServerToolItemTypedDict,
OutputCodeInterpreterCallItemTypedDict,
OutputCustomToolCallItemTypedDict, OutputCustomToolCallItemTypedDict,
OutputComputerCallItemTypedDict, OutputComputerCallItemTypedDict,
CustomToolCallItemTypedDict,
ShellCallOutputItemTypedDict, ShellCallOutputItemTypedDict,
McpCallItemTypedDict, ShellCallItemTypedDict,
OutputImageGenerationServerToolItemTypedDict, OutputCodeInterpreterCallItemTypedDict,
OutputFunctionCallItemTypedDict,
OutputBashServerToolItemTypedDict, OutputBashServerToolItemTypedDict,
OutputImageGenerationServerToolItemTypedDict,
McpCallItemTypedDict,
OutputFunctionCallItemTypedDict,
FunctionCallItemTypedDict, FunctionCallItemTypedDict,
ReasoningItemTypedDict, OutputFilesServerToolItemTypedDict,
OutputSubagentServerToolItemTypedDict, OutputSubagentServerToolItemTypedDict,
InputsReasoningTypedDict,
OutputCodeInterpreterServerToolItemTypedDict,
OutputWebFetchServerToolItemTypedDict,
OutputAdvisorServerToolItemTypedDict, OutputAdvisorServerToolItemTypedDict,
OutputWebFetchServerToolItemTypedDict,
ReasoningItemTypedDict,
OutputCodeInterpreterServerToolItemTypedDict,
InputsReasoningTypedDict,
OutputFusionServerToolItemTypedDict, OutputFusionServerToolItemTypedDict,
], ],
) )
@@ -426,45 +431,46 @@ InputsUnion1 = TypeAliasType(
OutputFileSearchCallItem, OutputFileSearchCallItem,
EasyInputMessage, EasyInputMessage,
InputMessageItem, InputMessageItem,
CustomToolCallOutputItem,
LocalShellCallOutputItem, LocalShellCallOutputItem,
OutputToolSearchServerToolItem, OutputToolSearchServerToolItem,
OutputFileSearchServerToolItem, OutputFileSearchServerToolItem,
OutputWebSearchServerToolItem, OutputWebSearchServerToolItem,
CustomToolCallOutputItem,
OutputImageGenerationCallItem, OutputImageGenerationCallItem,
OutputWebSearchCallItem, OutputWebSearchCallItem,
LocalShellCallItem,
OutputSearchModelsServerToolItem,
FunctionCallOutputItem,
ApplyPatchCallItem,
OutputDatetimeItem, OutputDatetimeItem,
McpApprovalResponseItem, OutputMcpServerToolItem,
McpApprovalRequestItem, FunctionCallOutputItem,
OutputSearchModelsServerToolItem,
LocalShellCallItem,
ApplyPatchCallItem,
McpListToolsItem, McpListToolsItem,
ApplyPatchCallOutputItem, ApplyPatchCallOutputItem,
McpApprovalResponseItem,
OutputBrowserUseServerToolItem, OutputBrowserUseServerToolItem,
OutputMcpServerToolItem, McpApprovalRequestItem,
OutputTextEditorServerToolItem, OutputTextEditorServerToolItem,
OutputApplyPatchServerToolItem, OutputApplyPatchServerToolItem,
ShellCallItem, CustomToolCallItem,
InputsMessage, InputsMessage,
OutputMemoryServerToolItem, OutputMemoryServerToolItem,
OutputCodeInterpreterCallItem,
OutputCustomToolCallItem, OutputCustomToolCallItem,
OutputComputerCallItem, OutputComputerCallItem,
CustomToolCallItem,
ShellCallOutputItem, ShellCallOutputItem,
McpCallItem, ShellCallItem,
OutputImageGenerationServerToolItem, OutputCodeInterpreterCallItem,
OutputFunctionCallItem,
OutputBashServerToolItem, OutputBashServerToolItem,
OutputImageGenerationServerToolItem,
McpCallItem,
OutputFunctionCallItem,
FunctionCallItem, FunctionCallItem,
ReasoningItem, OutputFilesServerToolItem,
OutputSubagentServerToolItem, OutputSubagentServerToolItem,
InputsReasoning,
OutputCodeInterpreterServerToolItem,
OutputWebFetchServerToolItem,
OutputAdvisorServerToolItem, OutputAdvisorServerToolItem,
OutputWebFetchServerToolItem,
ReasoningItem,
OutputCodeInterpreterServerToolItem,
InputsReasoning,
OutputFusionServerToolItem, OutputFusionServerToolItem,
], ],
) )
@@ -0,0 +1,72 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .toolcallstatus import ToolCallStatus
from openrouter.types import BaseModel, UNSET_SENTINEL
from pydantic import model_serializer
from typing import Literal, Optional
from typing_extensions import NotRequired, TypedDict
OutputFilesServerToolItemType = Literal["openrouter:files",]
class OutputFilesServerToolItemTypedDict(TypedDict):
r"""An openrouter:files server tool output item"""
status: ToolCallStatus
type: OutputFilesServerToolItemType
error: NotRequired[str]
r"""Error message when the file operation failed."""
file_id: NotRequired[str]
r"""The target file id supplied in the tool-call arguments."""
filename: NotRequired[str]
r"""The target filename supplied in the tool-call arguments."""
id: NotRequired[str]
operation: NotRequired[str]
r"""The file operation performed (list, read, write, or edit)."""
result: NotRequired[str]
r"""JSON-serialized result of the file operation."""
class OutputFilesServerToolItem(BaseModel):
r"""An openrouter:files server tool output item"""
status: ToolCallStatus
type: OutputFilesServerToolItemType
error: Optional[str] = None
r"""Error message when the file operation failed."""
file_id: Optional[str] = None
r"""The target file id supplied in the tool-call arguments."""
filename: Optional[str] = None
r"""The target filename supplied in the tool-call arguments."""
id: Optional[str] = None
operation: Optional[str] = None
r"""The file operation performed (list, read, write, or edit)."""
result: Optional[str] = None
r"""JSON-serialized result of the file operation."""
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(
["error", "file_id", "filename", "id", "operation", "result"]
)
serialized = handler(self)
m = {}
for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k, serialized.get(n))
if val != UNSET_SENTINEL:
if val is not None or k not in optional_fields:
m[k] = val
return m
+7
View File
@@ -46,6 +46,10 @@ from .outputfilesearchservertoolitem import (
OutputFileSearchServerToolItem, OutputFileSearchServerToolItem,
OutputFileSearchServerToolItemTypedDict, OutputFileSearchServerToolItemTypedDict,
) )
from .outputfilesservertoolitem import (
OutputFilesServerToolItem,
OutputFilesServerToolItemTypedDict,
)
from .outputfunctioncallitem import ( from .outputfunctioncallitem import (
OutputFunctionCallItem, OutputFunctionCallItem,
OutputFunctionCallItemTypedDict, OutputFunctionCallItemTypedDict,
@@ -145,6 +149,7 @@ OutputItemsTypedDict = TypeAliasType(
OutputReasoningItemTypedDict, OutputReasoningItemTypedDict,
OutputAdvisorServerToolItemTypedDict, OutputAdvisorServerToolItemTypedDict,
OutputSubagentServerToolItemTypedDict, OutputSubagentServerToolItemTypedDict,
OutputFilesServerToolItemTypedDict,
OutputFusionServerToolItemTypedDict, OutputFusionServerToolItemTypedDict,
], ],
) )
@@ -178,6 +183,7 @@ _OUTPUT_ITEMS_VARIANTS: dict[str, Any] = {
"openrouter:datetime": OutputDatetimeItem, "openrouter:datetime": OutputDatetimeItem,
"openrouter:experimental__search_models": OutputSearchModelsServerToolItem, "openrouter:experimental__search_models": OutputSearchModelsServerToolItem,
"openrouter:file_search": OutputFileSearchServerToolItem, "openrouter:file_search": OutputFileSearchServerToolItem,
"openrouter:files": OutputFilesServerToolItem,
"openrouter:fusion": OutputFusionServerToolItem, "openrouter:fusion": OutputFusionServerToolItem,
"openrouter:image_generation": OutputImageGenerationServerToolItem, "openrouter:image_generation": OutputImageGenerationServerToolItem,
"openrouter:mcp": OutputMcpServerToolItem, "openrouter:mcp": OutputMcpServerToolItem,
@@ -212,6 +218,7 @@ OutputItems = Annotated[
OutputDatetimeItem, OutputDatetimeItem,
OutputSearchModelsServerToolItem, OutputSearchModelsServerToolItem,
OutputFileSearchServerToolItem, OutputFileSearchServerToolItem,
OutputFilesServerToolItem,
OutputFusionServerToolItem, OutputFusionServerToolItem,
OutputImageGenerationServerToolItem, OutputImageGenerationServerToolItem,
OutputMcpServerToolItem, OutputMcpServerToolItem,
Generated
+1 -1
View File
@@ -213,7 +213,7 @@ wheels = [
[[package]] [[package]]
name = "openrouter" name = "openrouter"
version = "0.11.2" version = "0.11.3"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "httpcore" }, { name = "httpcore" },