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
53 changes: 27 additions & 26 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: 4d7bc309d152d9219793784223caa0e2
docChecksum: 6799c71d3ea4f78791dae3d42bbda90e
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.0.2
configChecksum: 0d88423a51b17a0f814a69da6e567287
releaseVersion: 1.0.3
configChecksum: d626fa55bac1f913458f24bff2b8efa6
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: c7290cc8-9e30-476c-814d-ddbb46291b13
pristine_commit_hash: 51e0667d890545728a2326f301008448da6999e7
pristine_tree_hash: 30dba92ec25182ca262a2e72aaba8f67267868e9
generation_id: dfab1d3a-11c2-4d4b-992d-aa95cb09e46c
pristine_commit_hash: ada688def3e4fca7fab968ec4ec22a079ca7c9bc
pristine_tree_hash: c0a8f38491c96bb4c4f15f5c7cc64d2ceac6e5be
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -3710,8 +3710,8 @@ trackedFiles:
pristine_git_object: 2bfc5b85b0a0962d951930f1fd22bf3fb230750a
docs/components/outputsubagentservertoolitem.mdx:
id: afeb6acde438
last_write_checksum: sha1:36325a1dafb79158eae8b60a27cda59c6a56f25f
pristine_git_object: edc8261cf9839725dcf0a28c6a5224787b57a41c
last_write_checksum: sha1:f098a2f49e4a4f2d627148d02a8e49ce2f8a89f0
pristine_git_object: 1b15fce12d6fc2bd2096db911b9b752bf0b2ace8
docs/components/outputsubagentservertoolitemtype.mdx:
id: de66682e96c0
last_write_checksum: sha1:73a7ed6acdb716d85e1cd3b83517f12dcc5ee393
Expand Down Expand Up @@ -4610,12 +4610,12 @@ trackedFiles:
pristine_git_object: 6ff0d51d2b5668291fb70f4cd5ad649fe3f4f6fc
docs/components/subagentservertoolconfig.mdx:
id: f7fa49016554
last_write_checksum: sha1:ca1963d4e1fdf93899b06c47d3b82662e4cd5a45
pristine_git_object: 3ce20c0c2fe0e438349c42e9edf60f2047ae976a
last_write_checksum: sha1:13d1921170bf027092fecb3b5b6eacbf143771af
pristine_git_object: 3a8e769cc39c22e754bb347e8a6b55fa03d3422c
docs/components/subagentservertoolopenrouter.mdx:
id: 8ede88c6400a
last_write_checksum: sha1:2c6d5bf4755ade31c622cd4a4658d874e77042fc
pristine_git_object: c50f5bf89454fc4ce29845ba8a16cc94c9858f19
last_write_checksum: sha1:9f4c3798805099682584724a42d211fe0861f431
pristine_git_object: 3b1eb0a6346f2b92a7843e0c6027f863ec445d99
docs/components/subagentservertoolopenroutertype.mdx:
id: 36a519fbf209
last_write_checksum: sha1:14f4bf5f550f0dfddb8bd950e000ed431a5470e9
Expand Down Expand Up @@ -6694,8 +6694,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:e7ac166ffcdc1b8ee6eb7a4acc7a26d059036b03
pristine_git_object: d5038fdd4789c39bb8cbde28a3045830ad4d2136
last_write_checksum: sha1:d9ce5e0d11cddba48a0f5abc1c55377389b54368
pristine_git_object: 0aceb631a7f6c55a1761d6343a4ac9de8bd146cc
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -6722,8 +6722,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:aa9006eeb9981c347e3a7ad34c37f2665a7d7177
pristine_git_object: 0529b8a8d7c685556c80adfaca339db0803fc2f5
last_write_checksum: sha1:d935fba4a8ccfae2559c8342948738b422afa62c
pristine_git_object: 0eacd0cccbc32377b0fcc31c7a182967f78fae33
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
Expand Down Expand Up @@ -7830,8 +7830,8 @@ trackedFiles:
pristine_git_object: a3d84a96f4553a320f5eee5d63f6bc5c244ab446
src/openrouter/components/inputs_union.py:
id: 17d6239cb6a7
last_write_checksum: sha1:a860c3512d4159191d30833c88d47a19110b9cc3
pristine_git_object: 5b4249f3fa464b7a8a499789415ebaa533ce3775
last_write_checksum: sha1:45bcb56a8e40be9f8c3ed2a2cfd0531ec32e7038
pristine_git_object: 42515e2cfbebd2a731271164a6b7366e79302129
src/openrouter/components/inputtext.py:
id: a995ae96be99
last_write_checksum: sha1:2da9ff645acc96772701908830151c5a707ed021
Expand Down Expand Up @@ -8246,8 +8246,8 @@ trackedFiles:
pristine_git_object: 94af810bbdb87fb8c6800645354f7ec4dd067e7f
src/openrouter/components/outputitems.py:
id: 90f107de3116
last_write_checksum: sha1:fac534b977b1ec4fc578d30158f6775be1ef338c
pristine_git_object: 435d6ec832782df70a815222db371ebfb29998a4
last_write_checksum: sha1:b01b4032be1b5c74a52f0b4209319627ba5acb8c
pristine_git_object: 545d24fc3184380f311b61f8dc593421ef524335
src/openrouter/components/outputmcpservertoolitem.py:
id: bb8c2536a58e
last_write_checksum: sha1:28d33c9226ff4ce6871457fa1fae384b590f676c
Expand Down Expand Up @@ -8290,8 +8290,8 @@ trackedFiles:
pristine_git_object: 18a1f6df264fe768bd78d5c4b7c1c030ecec7b37
src/openrouter/components/outputsubagentservertoolitem.py:
id: 7480e835aa08
last_write_checksum: sha1:c40f96bf2c5e27c2e6a4d91be46ce02461f6f2bf
pristine_git_object: bec70ef526ee26ebdfe6681b7366cb62d081e9a6
last_write_checksum: sha1:27fe8898137bc806619dc444b588cde5a8a32c70
pristine_git_object: 3e4bba1425b99d114f19529ade4de6cf2e7c3f09
src/openrouter/components/outputtexteditorservertoolitem.py:
id: 2a5dc9318fe6
last_write_checksum: sha1:fc1bf715ac0084d7390eb75152f0f27994654fab
Expand Down Expand Up @@ -8762,12 +8762,12 @@ trackedFiles:
pristine_git_object: d34c619b85be547eaae9ae7f96fad370de5c0b43
src/openrouter/components/subagentservertool_openrouter.py:
id: f08524c6985a
last_write_checksum: sha1:0b2445fa5606a93513afcfb9ac4f451603022e77
pristine_git_object: 51cf1e2c1b8603e4933bca7f8ec389a010d4ad4f
last_write_checksum: sha1:c22642aafcdbd55723b853c4e864fd7747b9fad1
pristine_git_object: b801ffef738356454a532bd4258a916858615978
src/openrouter/components/subagentservertoolconfig.py:
id: a8425c790cb6
last_write_checksum: sha1:f434a1ff30f069c379b1809edd62b0435998156a
pristine_git_object: eb9f276769106934801d88ce9d2c5c5c67fe1bc2
last_write_checksum: sha1:7e0e286aa0bce491c000e3c8ff9e099fc57a8bdf
pristine_git_object: 54683b2862ba16d1d1b0540fef29342438d7c410
src/openrouter/components/submitgenerationfeedbackrequest.py:
id: ae68ea802a9c
last_write_checksum: sha1:3d0fb9415d218dfbe5b978791c95bc0f28abb131
Expand Down Expand Up @@ -11201,3 +11201,4 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[]` **Changed**\n * `response` **Changed**\n* `open_router.chat.send()`: \n * `request.tools[].union(SubagentServerTool_OpenRouter).parameters.name` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.tools[].union(SubagentServerTool_OpenRouter).parameters.name` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[]` **Changed**\n"
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.0.2
version: 1.0.3
additionalDependencies:
dev: {}
main: {}
Expand Down
18 changes: 17 additions & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17912,9 +17912,17 @@ components:
type: 'string'
id:
type: 'string'
instance_name:
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.'
example: 'openrouter_subagent__1'
type: 'string'
model:
description: 'Slug of the worker model that executed the task.'
type: 'string'
name:
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.'
example: 'summarizer'
type: 'string'
outcome:
description: 'The worker model''s result (the outcome text returned to the delegating model).'
type: 'string'
Expand Down Expand Up @@ -21883,9 +21891,10 @@ components:
- 'type'
type: 'object'
SubagentServerToolConfig:
description: 'Configuration for the openrouter:subagent server tool.'
description: 'Configuration for one openrouter:subagent server tool entry.'
example:
model: '~anthropic/claude-haiku-latest'
name: 'summarizer'
properties:
instructions:
description: 'System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own.'
Expand All @@ -21905,6 +21914,13 @@ components:
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.'
example: '~anthropic/claude-haiku-latest'
type: 'string'
name:
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.'
example: 'summarizer'
maxLength: 64
minLength: 1
pattern: '^[a-zA-Z0-9 _-]+$'
type: 'string'
reasoning:
$ref: '#/components/schemas/SubagentReasoning'
temperature:
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:90bc553557136c69e7601f536e471df2bd622ce48692f0f0211ed1349c46438e
sourceBlobDigest: sha256:e43cdffbde0cda821063fbf0211aa73a9efe9a2ba8246783fea7fef0f6294e11
sourceRevisionDigest: sha256:3f4bdd779fdea2d6d51fdaa3675d6b4499461dcbef26e04b1e1c9b0fe17d521d
sourceBlobDigest: sha256:e1b02716f3b79f59a9649187d07bfaf4ef7e8b1aee164d3391ea67a788993fa7
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:90bc553557136c69e7601f536e471df2bd622ce48692f0f0211ed1349c46438e
sourceBlobDigest: sha256:e43cdffbde0cda821063fbf0211aa73a9efe9a2ba8246783fea7fef0f6294e11
sourceRevisionDigest: sha256:3f4bdd779fdea2d6d51fdaa3675d6b4499461dcbef26e04b1e1c9b0fe17d521d
sourceBlobDigest: sha256:e1b02716f3b79f59a9649187d07bfaf4ef7e8b1aee164d3391ea67a788993fa7
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:525f3adc33384a65334f916bbee8e617d8a57e9a2685e8c7a681269836e99bc1
codeSamplesRevisionDigest: sha256:d2ad35aae70010e2f82195aef860daa885a5b25ed9dc0dee8f96df0ae0d48fd3
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 @@ -599,4 +599,14 @@ Based on:
### Generated
- [python v1.0.2] .
### Releases
- [PyPI v1.0.2] https://pypi.org/project/openrouter/1.0.2 - .
- [PyPI v1.0.2] https://pypi.org/project/openrouter/1.0.2 - .

## 2026-07-21 05:27:47
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.0.3] .
### Releases
- [PyPI v1.0.3] https://pypi.org/project/openrouter/1.0.3 - .
Loading
Loading