Skip to content

Commit 3588808

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.0.3 (#489)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 5bc75cc commit 3588808

16 files changed

Lines changed: 113 additions & 58 deletions

‎.speakeasy/gen.lock‎

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: 4d7bc309d152d9219793784223caa0e2
4+
docChecksum: 6799c71d3ea4f78791dae3d42bbda90e
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.0.2
9-
configChecksum: 0d88423a51b17a0f814a69da6e567287
8+
releaseVersion: 1.0.3
9+
configChecksum: d626fa55bac1f913458f24bff2b8efa6
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: c7290cc8-9e30-476c-814d-ddbb46291b13
15-
pristine_commit_hash: 51e0667d890545728a2326f301008448da6999e7
16-
pristine_tree_hash: 30dba92ec25182ca262a2e72aaba8f67267868e9
14+
generation_id: dfab1d3a-11c2-4d4b-992d-aa95cb09e46c
15+
pristine_commit_hash: ada688def3e4fca7fab968ec4ec22a079ca7c9bc
16+
pristine_tree_hash: c0a8f38491c96bb4c4f15f5c7cc64d2ceac6e5be
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -3710,8 +3710,8 @@ trackedFiles:
37103710
pristine_git_object: 2bfc5b85b0a0962d951930f1fd22bf3fb230750a
37113711
docs/components/outputsubagentservertoolitem.mdx:
37123712
id: afeb6acde438
3713-
last_write_checksum: sha1:36325a1dafb79158eae8b60a27cda59c6a56f25f
3714-
pristine_git_object: edc8261cf9839725dcf0a28c6a5224787b57a41c
3713+
last_write_checksum: sha1:f098a2f49e4a4f2d627148d02a8e49ce2f8a89f0
3714+
pristine_git_object: 1b15fce12d6fc2bd2096db911b9b752bf0b2ace8
37153715
docs/components/outputsubagentservertoolitemtype.mdx:
37163716
id: de66682e96c0
37173717
last_write_checksum: sha1:73a7ed6acdb716d85e1cd3b83517f12dcc5ee393
@@ -4610,12 +4610,12 @@ trackedFiles:
46104610
pristine_git_object: 6ff0d51d2b5668291fb70f4cd5ad649fe3f4f6fc
46114611
docs/components/subagentservertoolconfig.mdx:
46124612
id: f7fa49016554
4613-
last_write_checksum: sha1:ca1963d4e1fdf93899b06c47d3b82662e4cd5a45
4614-
pristine_git_object: 3ce20c0c2fe0e438349c42e9edf60f2047ae976a
4613+
last_write_checksum: sha1:13d1921170bf027092fecb3b5b6eacbf143771af
4614+
pristine_git_object: 3a8e769cc39c22e754bb347e8a6b55fa03d3422c
46154615
docs/components/subagentservertoolopenrouter.mdx:
46164616
id: 8ede88c6400a
4617-
last_write_checksum: sha1:2c6d5bf4755ade31c622cd4a4658d874e77042fc
4618-
pristine_git_object: c50f5bf89454fc4ce29845ba8a16cc94c9858f19
4617+
last_write_checksum: sha1:9f4c3798805099682584724a42d211fe0861f431
4618+
pristine_git_object: 3b1eb0a6346f2b92a7843e0c6027f863ec445d99
46194619
docs/components/subagentservertoolopenroutertype.mdx:
46204620
id: 36a519fbf209
46214621
last_write_checksum: sha1:14f4bf5f550f0dfddb8bd950e000ed431a5470e9
@@ -6694,8 +6694,8 @@ trackedFiles:
66946694
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
66956695
pyproject.toml:
66966696
id: 5d07e7d72637
6697-
last_write_checksum: sha1:e7ac166ffcdc1b8ee6eb7a4acc7a26d059036b03
6698-
pristine_git_object: d5038fdd4789c39bb8cbde28a3045830ad4d2136
6697+
last_write_checksum: sha1:d9ce5e0d11cddba48a0f5abc1c55377389b54368
6698+
pristine_git_object: 0aceb631a7f6c55a1761d6343a4ac9de8bd146cc
66996699
scripts/prepare_readme.py:
67006700
id: e0c5957a6035
67016701
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6722,8 +6722,8 @@ trackedFiles:
67226722
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
67236723
src/openrouter/_version.py:
67246724
id: d8d15ad6c586
6725-
last_write_checksum: sha1:aa9006eeb9981c347e3a7ad34c37f2665a7d7177
6726-
pristine_git_object: 0529b8a8d7c685556c80adfaca339db0803fc2f5
6725+
last_write_checksum: sha1:d935fba4a8ccfae2559c8342948738b422afa62c
6726+
pristine_git_object: 0eacd0cccbc32377b0fcc31c7a182967f78fae33
67276727
src/openrouter/analytics.py:
67286728
id: cb406b5aaabb
67296729
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -7830,8 +7830,8 @@ trackedFiles:
78307830
pristine_git_object: a3d84a96f4553a320f5eee5d63f6bc5c244ab446
78317831
src/openrouter/components/inputs_union.py:
78327832
id: 17d6239cb6a7
7833-
last_write_checksum: sha1:a860c3512d4159191d30833c88d47a19110b9cc3
7834-
pristine_git_object: 5b4249f3fa464b7a8a499789415ebaa533ce3775
7833+
last_write_checksum: sha1:45bcb56a8e40be9f8c3ed2a2cfd0531ec32e7038
7834+
pristine_git_object: 42515e2cfbebd2a731271164a6b7366e79302129
78357835
src/openrouter/components/inputtext.py:
78367836
id: a995ae96be99
78377837
last_write_checksum: sha1:2da9ff645acc96772701908830151c5a707ed021
@@ -8246,8 +8246,8 @@ trackedFiles:
82468246
pristine_git_object: 94af810bbdb87fb8c6800645354f7ec4dd067e7f
82478247
src/openrouter/components/outputitems.py:
82488248
id: 90f107de3116
8249-
last_write_checksum: sha1:fac534b977b1ec4fc578d30158f6775be1ef338c
8250-
pristine_git_object: 435d6ec832782df70a815222db371ebfb29998a4
8249+
last_write_checksum: sha1:b01b4032be1b5c74a52f0b4209319627ba5acb8c
8250+
pristine_git_object: 545d24fc3184380f311b61f8dc593421ef524335
82518251
src/openrouter/components/outputmcpservertoolitem.py:
82528252
id: bb8c2536a58e
82538253
last_write_checksum: sha1:28d33c9226ff4ce6871457fa1fae384b590f676c
@@ -8290,8 +8290,8 @@ trackedFiles:
82908290
pristine_git_object: 18a1f6df264fe768bd78d5c4b7c1c030ecec7b37
82918291
src/openrouter/components/outputsubagentservertoolitem.py:
82928292
id: 7480e835aa08
8293-
last_write_checksum: sha1:c40f96bf2c5e27c2e6a4d91be46ce02461f6f2bf
8294-
pristine_git_object: bec70ef526ee26ebdfe6681b7366cb62d081e9a6
8293+
last_write_checksum: sha1:27fe8898137bc806619dc444b588cde5a8a32c70
8294+
pristine_git_object: 3e4bba1425b99d114f19529ade4de6cf2e7c3f09
82958295
src/openrouter/components/outputtexteditorservertoolitem.py:
82968296
id: 2a5dc9318fe6
82978297
last_write_checksum: sha1:fc1bf715ac0084d7390eb75152f0f27994654fab
@@ -8762,12 +8762,12 @@ trackedFiles:
87628762
pristine_git_object: d34c619b85be547eaae9ae7f96fad370de5c0b43
87638763
src/openrouter/components/subagentservertool_openrouter.py:
87648764
id: f08524c6985a
8765-
last_write_checksum: sha1:0b2445fa5606a93513afcfb9ac4f451603022e77
8766-
pristine_git_object: 51cf1e2c1b8603e4933bca7f8ec389a010d4ad4f
8765+
last_write_checksum: sha1:c22642aafcdbd55723b853c4e864fd7747b9fad1
8766+
pristine_git_object: b801ffef738356454a532bd4258a916858615978
87678767
src/openrouter/components/subagentservertoolconfig.py:
87688768
id: a8425c790cb6
8769-
last_write_checksum: sha1:f434a1ff30f069c379b1809edd62b0435998156a
8770-
pristine_git_object: eb9f276769106934801d88ce9d2c5c5c67fe1bc2
8769+
last_write_checksum: sha1:7e0e286aa0bce491c000e3c8ff9e099fc57a8bdf
8770+
pristine_git_object: 54683b2862ba16d1d1b0540fef29342438d7c410
87718771
src/openrouter/components/submitgenerationfeedbackrequest.py:
87728772
id: ae68ea802a9c
87738773
last_write_checksum: sha1:3d0fb9415d218dfbe5b978791c95bc0f28abb131
@@ -11201,3 +11201,4 @@ examples:
1120111201
"500":
1120211202
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1120311203
examplesVersion: 1.0.2
11204+
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"

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generation:
3636
documentation: mintlify
3737
preApplyUnionDiscriminators: true
3838
python:
39-
version: 1.0.2
39+
version: 1.0.3
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17912,9 +17912,17 @@ components:
1791217912
type: 'string'
1791317913
id:
1791417914
type: 'string'
17915+
instance_name:
17916+
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.'
17917+
example: 'openrouter_subagent__1'
17918+
type: 'string'
1791517919
model:
1791617920
description: 'Slug of the worker model that executed the task.'
1791717921
type: 'string'
17922+
name:
17923+
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.'
17924+
example: 'summarizer'
17925+
type: 'string'
1791817926
outcome:
1791917927
description: 'The worker model''s result (the outcome text returned to the delegating model).'
1792017928
type: 'string'
@@ -21883,9 +21891,10 @@ components:
2188321891
- 'type'
2188421892
type: 'object'
2188521893
SubagentServerToolConfig:
21886-
description: 'Configuration for the openrouter:subagent server tool.'
21894+
description: 'Configuration for one openrouter:subagent server tool entry.'
2188721895
example:
2188821896
model: '~anthropic/claude-haiku-latest'
21897+
name: 'summarizer'
2188921898
properties:
2189021899
instructions:
2189121900
description: 'System instructions for the subagent. When omitted, the subagent responds with no system prompt of its own.'
@@ -21905,6 +21914,13 @@ components:
2190521914
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.'
2190621915
example: '~anthropic/claude-haiku-latest'
2190721916
type: 'string'
21917+
name:
21918+
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.'
21919+
example: 'summarizer'
21920+
maxLength: 64
21921+
minLength: 1
21922+
pattern: '^[a-zA-Z0-9 _-]+$'
21923+
type: 'string'
2190821924
reasoning:
2190921925
$ref: '#/components/schemas/SubagentReasoning'
2191021926
temperature:

‎.speakeasy/workflow.lock‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:90bc553557136c69e7601f536e471df2bd622ce48692f0f0211ed1349c46438e
6-
sourceBlobDigest: sha256:e43cdffbde0cda821063fbf0211aa73a9efe9a2ba8246783fea7fef0f6294e11
5+
sourceRevisionDigest: sha256:3f4bdd779fdea2d6d51fdaa3675d6b4499461dcbef26e04b1e1c9b0fe17d521d
6+
sourceBlobDigest: sha256:e1b02716f3b79f59a9649187d07bfaf4ef7e8b1aee164d3391ea67a788993fa7
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:90bc553557136c69e7601f536e471df2bd622ce48692f0f0211ed1349c46438e
15-
sourceBlobDigest: sha256:e43cdffbde0cda821063fbf0211aa73a9efe9a2ba8246783fea7fef0f6294e11
14+
sourceRevisionDigest: sha256:3f4bdd779fdea2d6d51fdaa3675d6b4499461dcbef26e04b1e1c9b0fe17d521d
15+
sourceBlobDigest: sha256:e1b02716f3b79f59a9649187d07bfaf4ef7e8b1aee164d3391ea67a788993fa7
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:525f3adc33384a65334f916bbee8e617d8a57e9a2685e8c7a681269836e99bc1
17+
codeSamplesRevisionDigest: sha256:d2ad35aae70010e2f82195aef860daa885a5b25ed9dc0dee8f96df0ae0d48fd3
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

‎RELEASES.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,4 +599,14 @@ Based on:
599599
### Generated
600600
- [python v1.0.2] .
601601
### Releases
602-
- [PyPI v1.0.2] https://pypi.org/project/openrouter/1.0.2 - .
602+
- [PyPI v1.0.2] https://pypi.org/project/openrouter/1.0.2 - .
603+
604+
## 2026-07-21 05:27:47
605+
### Changes
606+
Based on:
607+
- OpenAPI Doc
608+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
609+
### Generated
610+
- [python v1.0.3] .
611+
### Releases
612+
- [PyPI v1.0.3] https://pypi.org/project/openrouter/1.0.3 - .

0 commit comments

Comments
 (0)