From 55880061d2fa7f29a55fd45a04cc47c81f0d27c0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 4 Nov 2026 23:06:22 +0000 Subject: [PATCH 1/2] ## Python SDK Changes: * `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult)` **Changed** * `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult)` **Changed** * `open_router.presets.create_presets_responses()`: * `request.input.union(Array<>)[].union(CompactionTriggerItem)` **Added** --- .speakeasy/gen.lock | 89 +++++++++++++------ .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 66 ++++++++++++++ .speakeasy/workflow.lock | 10 +-- RELEASES.md | 12 ++- .../components/alignmentresponsesrejected.mdx | 6 ++ docs/components/compactiontriggeritem.mdx | 12 +++ docs/components/compactiontriggeritemtype.mdx | 15 ++++ docs/components/inputsunion1.mdx | 6 ++ docs/components/outputcompactionitem.mdx | 15 ++++ docs/components/outputcompactionitemtype.mdx | 15 ++++ docs/components/outputitemcompaction.mdx | 12 +++ docs/components/outputitemcompactiontype.mdx | 15 ++++ docs/components/outputitems.mdx | 6 ++ pyproject.toml | 2 +- src/openrouter/_version.py | 4 +- src/openrouter/components/__init__.py | 33 +++++++ .../components/alignmentresponsesrejected.py | 4 + .../components/compactiontriggeritem.py | 21 +++++ src/openrouter/components/inputs_union.py | 59 ++++++------ .../components/outputcompactionitem.py | 47 ++++++++++ .../components/outputitemcompaction.py | 43 +++++++++ src/openrouter/components/outputitems.py | 32 ++++--- uv.lock | 2 +- 24 files changed, 447 insertions(+), 81 deletions(-) create mode 100644 docs/components/compactiontriggeritem.mdx create mode 100644 docs/components/compactiontriggeritemtype.mdx create mode 100644 docs/components/outputcompactionitem.mdx create mode 100644 docs/components/outputcompactionitemtype.mdx create mode 100644 docs/components/outputitemcompaction.mdx create mode 100644 docs/components/outputitemcompactiontype.mdx create mode 100644 src/openrouter/components/compactiontriggeritem.py create mode 100644 src/openrouter/components/outputcompactionitem.py create mode 100644 src/openrouter/components/outputitemcompaction.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0cabaf05d..6236c3fc9 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: c48cf606-fb42-4a45-9c23-8f0555307828 management: - docChecksum: f1d272f8338cc620c6bb140927708742 + docChecksum: dfe297f1e160a1084303efb6211f4058 docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.122 - configChecksum: 739727aa7600e299f85df7dc05019a99 + releaseVersion: 1.3.123 + configChecksum: c674eddd41c9bef60461d13a78688109 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 6308c72a-83ce-48d9-9db8-18754f9430e7 - pristine_commit_hash: 16ceaf4cc9db3d268eed4ddf144dd432a38a7a03 - pristine_tree_hash: b4324856a64edff0a4ee8c191131f1a56a10cb41 + generation_id: e42d1548-440e-42f8-9b16-95e929203bf8 + pristine_commit_hash: e4c78f0be023cd6a88bf208f4bdc975ec659747d + pristine_tree_hash: be0568a86fcd500bef84b71d88d6a2d1c4086eec features: python: acceptHeaders: 3.0.0 @@ -264,8 +264,8 @@ trackedFiles: pristine_git_object: 28ee7a5691f7254183a33644a1d72cdc4202e23b docs/components/alignmentresponsesrejected.mdx: id: eea4008474f0 - last_write_checksum: sha1:89a7955dfbe76d4b1b53555343d93693f113b0ff - pristine_git_object: d658aba23bed75c8d9983fc6b2a6203d65f2436b + last_write_checksum: sha1:7ef08997d1c2e41d524a4dfbe7c788d1f8fe2e9f + pristine_git_object: 3db6e441df47e7e4be0381fe1329d541fffd5275 docs/components/alignmentrule.mdx: id: ce3e91b088a0 last_write_checksum: sha1:86898783d585075925509829c460b5547271af9a @@ -2358,6 +2358,14 @@ trackedFiles: id: 688981b39855 last_write_checksum: sha1:70bb56c5e1b6352f709a63c98103e99c379fc86c pristine_git_object: 335f2a6ac2acfb1afb7523e7e12970b8e8b2e0c4 + docs/components/compactiontriggeritem.mdx: + id: ea3a33480cdc + last_write_checksum: sha1:46d9f6242ccf1e30afe700fb88dd3bf6539b9aff + pristine_git_object: 6aaaa3b032a5299c21c31ebf51ae824e98eb0c57 + docs/components/compactiontriggeritemtype.mdx: + id: 517fbd30bfee + last_write_checksum: sha1:14618d39654a1bfd6524d1dbbb8e70e747727716 + pristine_git_object: 6b81de8a9db511eb2cba57d69029c7c75554b54a docs/components/compoundfilter.mdx: id: 346617a04c59 last_write_checksum: sha1:af900b8b24517dd352fbb50a2c2412c7f8aceddb @@ -4468,8 +4476,8 @@ trackedFiles: pristine_git_object: 33aee92c61bf7ab9beded4e193f50a2c08462378 docs/components/inputsunion1.mdx: id: c216609d21ce - last_write_checksum: sha1:86257e9d9bb124219a25ad5bb1b5824ff45875d3 - pristine_git_object: dab31fe384d6fd44ca993c38e819d8b6ad10b3f0 + last_write_checksum: sha1:55ad93fc0525c68b3b5f14ac38bf2f46afea348f + pristine_git_object: fb20a6372f2061f4f7d53687acc411b65f78c218 docs/components/inputtext.mdx: id: c8a97322a50a last_write_checksum: sha1:7cebf6a159830481658f474b33c1ee2a27c12e41 @@ -5918,6 +5926,14 @@ trackedFiles: id: cf833580c013 last_write_checksum: sha1:00e55bce1f414f5d2f8e8bed708c748df40e4967 pristine_git_object: a9b4162f9f3bf8ffb3d12cbc74bdbf88fa5f9ddc + docs/components/outputcompactionitem.mdx: + id: 5543bc224788 + last_write_checksum: sha1:677584224295024cf5b1bba85200c13a81532506 + pristine_git_object: b13f5270b140247f0a1771fefd71cb622f50ba46 + docs/components/outputcompactionitemtype.mdx: + id: 85d65f6d4645 + last_write_checksum: sha1:63731be51b5485ccd2649d73078b632d87798435 + pristine_git_object: 11b22aab41ddc4f7193a49e337e8c91014d685b0 docs/components/outputcomputercallitem.mdx: id: 0ebf7b2288b9 last_write_checksum: sha1:2a8e8b960059d349a834701b35c6c1c0357106e5 @@ -6058,6 +6074,14 @@ trackedFiles: id: 22a1cf461f7d last_write_checksum: sha1:f8ea4a34aed6507f6bbcdd4ed6ccd34dad5c0840 pristine_git_object: 8772423691c96a16640d6872560519373d3cdf81 + docs/components/outputitemcompaction.mdx: + id: 2ebbd0e9c8df + last_write_checksum: sha1:af6efd98dded99b7c93a282671b167dbb4129e45 + pristine_git_object: 9f0bd7477e1d98825e8a0a6054e120aa8200bb16 + docs/components/outputitemcompactiontype.mdx: + id: 247c255e3e9a + last_write_checksum: sha1:3542aece1fe5e05e4bad5318719812bd89e2ea57 + pristine_git_object: 89db13f8d52f2a22c31a0bbba6676c7b3a455baa docs/components/outputitemcustomtoolcall.mdx: id: 0a250a03da6e last_write_checksum: sha1:60151106523a0b0275a38d3c9a953b880016eae8 @@ -6136,8 +6160,8 @@ trackedFiles: pristine_git_object: 510bb66605a709aea0c2025829cd1b1d1a46e673 docs/components/outputitems.mdx: id: 876e956be23e - last_write_checksum: sha1:57f45a9749b707db18948c55314efee921288748 - pristine_git_object: 6356e3316e80fe92d1f21694614a3fd01054be4a + last_write_checksum: sha1:ca4e8ebaf09e514d2e17832471e76feb8cd9b3cd + pristine_git_object: 5ade7f32a1e57ad769bcaf3516139ebea0a9004e docs/components/outputitemwebsearchcall.mdx: id: 5a7fc683da6e last_write_checksum: sha1:147e2d8107125a6eeddd5b81e4a80fae22030cb3 @@ -10796,8 +10820,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:7ef8766c2cc6ab57fade2a2de5cf85edec9d6b0c - pristine_git_object: 0a8714039c079e9e1ea010294cc892ebec8aa4d0 + last_write_checksum: sha1:5329d9a8a9a1686c5eb37209f0582690781c0c22 + pristine_git_object: a66006a71e2412308f21e53e34b58acafd109be6 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -10824,8 +10848,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:37c1bd097489dc11c6002fae8c163343e373aa64 - pristine_git_object: df7fc645fe4acbdd80e78d9b3ce8ce8d13956f22 + last_write_checksum: sha1:eff4f3a9bc877a572a413e3fa0384027fe0a034a + pristine_git_object: 7250656ffea1731e53d7a49f5f153b4728c199ca src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -10872,8 +10896,8 @@ trackedFiles: pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1 src/openrouter/components/__init__.py: id: 81754e97b3f4 - last_write_checksum: sha1:09084e1a5a58e57bfe6cc87ce767ed02ad625a89 - pristine_git_object: fe54f56dd572f15449d43664debffe999a592e75 + last_write_checksum: sha1:4515fb513d201ae92f0e96aad89bef200973aa80 + pristine_git_object: 212a3d7b1f97f526a713bb58742ac339e0eca83d src/openrouter/components/aabenchmarkentry.py: id: e2e0f0b48c82 last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c @@ -10948,8 +10972,8 @@ trackedFiles: pristine_git_object: b2fa33dbe51cef3ebba3298492fea70c1112dc95 src/openrouter/components/alignmentresponsesrejected.py: id: f95a8a915824 - last_write_checksum: sha1:ddaa0096eebb4f5626fad7a684470efb7ef71e4e - pristine_git_object: 36367144566b6775e5239be50a9cdb519fb784d1 + last_write_checksum: sha1:3c8b322c7ba35e72763d9af6911fa06960b17b5a + pristine_git_object: e95541f48454d045dcef96ffb134206f0f6a7a93 src/openrouter/components/alignmentrule.py: id: 54982e2c3889 last_write_checksum: sha1:b244b847343e4f1e3c1c3c458e6cf44a5e8a6c34 @@ -11858,6 +11882,10 @@ trackedFiles: id: f1535c3a68c3 last_write_checksum: sha1:b00817cc2d5ed1b1ea6762dd851d4bd659aff8a5 pristine_git_object: 6149d001229f241bba774f53b1a374eb0adc553b + src/openrouter/components/compactiontriggeritem.py: + id: 49a3b9357e2f + last_write_checksum: sha1:f65983fb447d1ae694f3e184adc000a9dda2c075 + pristine_git_object: 7641569d09331dcec83e1fcc152ef44e4dc3f8c1 src/openrouter/components/compoundfilter.py: id: 0cab72c7a3bc last_write_checksum: sha1:bcd75c483c9e86c1061a601a3a1e1ebc29863bf0 @@ -12696,8 +12724,8 @@ trackedFiles: pristine_git_object: f499cbbb546232f5cfbfe2c44fb41aefb306c87f src/openrouter/components/inputs_union.py: id: 17d6239cb6a7 - last_write_checksum: sha1:a8661c09796d557821da1354fb5c96381d55b53b - pristine_git_object: 48a23ae29f1fab203a5a74ef0470bcee9c0e3f17 + last_write_checksum: sha1:a5065a0dbdecb23a269ca4e60ca0ce0b0a210b18 + pristine_git_object: a2efac9eee07c47fd1d7db56dd24b27c62b816d4 src/openrouter/components/inputtext.py: id: a995ae96be99 last_write_checksum: sha1:94c720a449e0d5a3f23ee7195f648422f61ac114 @@ -13234,6 +13262,10 @@ trackedFiles: id: 628c3093647e last_write_checksum: sha1:a26aaf9a1ce42a37ff68404c98e62f76f745a10e pristine_git_object: 8820add39183035bdecc5ca43448fe54a638dd36 + src/openrouter/components/outputcompactionitem.py: + id: e0feb927c4ec + last_write_checksum: sha1:c9b9c9c6a007fcebf9b86705811bf66b28d1a00a + pristine_git_object: 8ecfd1e7c478eb9215068c3be05aa6aad92822dc src/openrouter/components/outputcomputercallitem.py: id: b6b688951964 last_write_checksum: sha1:9e958a672534c9c8159817674179fce6116af623 @@ -13282,6 +13314,10 @@ trackedFiles: id: f6aa5e9f6654 last_write_checksum: sha1:080267641dbde023ea0e17144778199383d46c58 pristine_git_object: b4c5517b71876532b1c78ec941d1248b03962368 + src/openrouter/components/outputitemcompaction.py: + id: 6e4d97c96b11 + last_write_checksum: sha1:3c70bd9513e91fc8362b69d18d08f3659cd3c9f8 + pristine_git_object: d02ed3e9b08fea144b6982fddb141b8970a1a5a0 src/openrouter/components/outputitemcustomtoolcall.py: id: 2d3a43ea4086 last_write_checksum: sha1:a658bcb79526ac3f0fd853b3268c825dab2172c4 @@ -13304,8 +13340,8 @@ trackedFiles: pristine_git_object: 616b0f5112e106777b4c096aeea6fef58ff32020 src/openrouter/components/outputitems.py: id: 90f107de3116 - last_write_checksum: sha1:f7a24c9e7b39abfab3d25ce72e093a306608a37f - pristine_git_object: 6059e71fbc40e1dccb0c14b477bd12ae1fb982a8 + last_write_checksum: sha1:b5b931651d18454e9eddc807f9226debf70befdb + pristine_git_object: 53f3d7f01df67fe89520ccae6e5e232a35ff338c src/openrouter/components/outputitemwebsearchcall.py: id: bac8732aecb9 last_write_checksum: sha1:00d5b67226d6ff2c6a5497e6e01c764aeede496e @@ -19924,7 +19960,4 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: | - ## Python SDK Changes: - * `open_router.workspaces.list_members()`: `response.data[].role` **Changed** - * `open_router.workspaces.bulk_add_members()`: `response.data[].role` **Changed** +releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult)` **Changed**\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult)` **Changed**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(CompactionTriggerItem)` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 3437ea5c6..3dbe76e18 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.122 + version: 1.3.123 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 62b1cb5c0..7a15488cf 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -672,6 +672,7 @@ components: mapping: apply_patch_call: '#/components/schemas/OutputItemApplyPatchCall' code_interpreter_call: '#/components/schemas/OutputItemCodeInterpreterCall' + compaction: '#/components/schemas/OutputItemCompaction' custom_tool_call: '#/components/schemas/OutputItemCustomToolCall' file_search_call: '#/components/schemas/OutputItemFileSearchCall' function_call: '#/components/schemas/OutputItemFunctionCall' @@ -690,6 +691,7 @@ components: - $ref: '#/components/schemas/OutputItemImageGenerationCall' - $ref: '#/components/schemas/OutputItemApplyPatchCall' - $ref: '#/components/schemas/OutputItemCodeInterpreterCall' + - $ref: '#/components/schemas/OutputItemCompaction' type: 'array' AlignmentRule: additionalProperties: false @@ -4869,6 +4871,7 @@ components: mapping: apply_patch_call: '#/components/schemas/OutputItemApplyPatchCall' code_interpreter_call: '#/components/schemas/OutputItemCodeInterpreterCall' + compaction: '#/components/schemas/OutputItemCompaction' custom_tool_call: '#/components/schemas/OutputItemCustomToolCall' file_search_call: '#/components/schemas/OutputItemFileSearchCall' function_call: '#/components/schemas/OutputItemFunctionCall' @@ -4887,6 +4890,7 @@ components: - $ref: '#/components/schemas/OutputItemImageGenerationCall' - $ref: '#/components/schemas/OutputItemApplyPatchCall' - $ref: '#/components/schemas/OutputItemCodeInterpreterCall' + - $ref: '#/components/schemas/OutputItemCompaction' type: 'array' output_text: type: 'string' @@ -9173,6 +9177,18 @@ components: - 'type' - 'encrypted_content' type: 'object' + CompactionTriggerItem: + description: 'Asks the model to compact the preceding input into a compaction item' + example: + type: 'compaction_trigger' + properties: + type: + enum: + - 'compaction_trigger' + type: 'string' + required: + - 'type' + type: 'object' CompletedEvent: description: 'Event emitted when a response has completed successfully' example: @@ -16441,6 +16457,7 @@ components: - $ref: '#/components/schemas/McpCallItem' - $ref: '#/components/schemas/CustomToolCallItem' - $ref: '#/components/schemas/CustomToolCallOutputItem' + - $ref: '#/components/schemas/CompactionTriggerItem' - $ref: '#/components/schemas/CompactionItem' - $ref: '#/components/schemas/ContextCompactionItem' - $ref: '#/components/schemas/ItemReferenceItem' @@ -24694,6 +24711,28 @@ components: - 'status' - 'type' type: 'object' + OutputCompactionItem: + description: 'A compaction output item carrying the encrypted summary of the compacted conversation. Emitted in reply to a `compaction_trigger` input item.' + example: + encrypted_content: 'enc_abc123...' + id: 'cmp_abc123' + type: 'compaction' + properties: + created_by: + type: 'string' + encrypted_content: + type: 'string' + id: + type: 'string' + type: + enum: + - 'compaction' + type: 'string' + required: + - 'type' + - 'id' + - 'encrypted_content' + type: 'object' OutputComputerCallItem: example: action: @@ -25058,6 +25097,7 @@ components: mapping: apply_patch_call: '#/components/schemas/OutputItemApplyPatchCall' code_interpreter_call: '#/components/schemas/OutputItemCodeInterpreterCall' + compaction: '#/components/schemas/OutputItemCompaction' custom_tool_call: '#/components/schemas/OutputItemCustomToolCall' file_search_call: '#/components/schemas/OutputItemFileSearchCall' function_call: '#/components/schemas/OutputItemFunctionCall' @@ -25076,6 +25116,7 @@ components: - $ref: '#/components/schemas/OutputItemImageGenerationCall' - $ref: '#/components/schemas/OutputItemApplyPatchCall' - $ref: '#/components/schemas/OutputItemCodeInterpreterCall' + - $ref: '#/components/schemas/OutputItemCompaction' output_index: type: 'integer' sequence_number: @@ -25187,6 +25228,27 @@ components: - 'id' - 'status' type: 'object' + OutputItemCompaction: + example: + encrypted_content: 'enc_abc123...' + id: 'cmp_abc123' + type: 'compaction' + properties: + created_by: + type: 'string' + encrypted_content: + type: 'string' + id: + type: 'string' + type: + enum: + - 'compaction' + type: 'string' + required: + - 'type' + - 'id' + - 'encrypted_content' + type: 'object' OutputItemCustomToolCall: example: call_id: 'call-abc123' @@ -25249,6 +25311,7 @@ components: mapping: apply_patch_call: '#/components/schemas/OutputItemApplyPatchCall' code_interpreter_call: '#/components/schemas/OutputItemCodeInterpreterCall' + compaction: '#/components/schemas/OutputItemCompaction' custom_tool_call: '#/components/schemas/OutputItemCustomToolCall' file_search_call: '#/components/schemas/OutputItemFileSearchCall' function_call: '#/components/schemas/OutputItemFunctionCall' @@ -25267,6 +25330,7 @@ components: - $ref: '#/components/schemas/OutputItemImageGenerationCall' - $ref: '#/components/schemas/OutputItemApplyPatchCall' - $ref: '#/components/schemas/OutputItemCodeInterpreterCall' + - $ref: '#/components/schemas/OutputItemCompaction' output_index: type: 'integer' sequence_number: @@ -25425,6 +25489,7 @@ components: mapping: apply_patch_call: '#/components/schemas/OutputApplyPatchCallItem' code_interpreter_call: '#/components/schemas/OutputCodeInterpreterCallItem' + compaction: '#/components/schemas/OutputCompactionItem' computer_call: '#/components/schemas/OutputComputerCallItem' custom_tool_call: '#/components/schemas/OutputCustomToolCallItem' file_search_call: '#/components/schemas/OutputFileSearchCallItem' @@ -25484,6 +25549,7 @@ components: - $ref: '#/components/schemas/OutputTextEditorServerToolItem' - $ref: '#/components/schemas/OutputApplyPatchServerToolItem' - $ref: '#/components/schemas/OutputApplyPatchCallItem' + - $ref: '#/components/schemas/OutputCompactionItem' - $ref: '#/components/schemas/OutputShellCallItem' - $ref: '#/components/schemas/OutputShellCallOutputItem' - $ref: '#/components/schemas/OutputShellServerToolItem' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 564ca289a..048c64809 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:6543e24dc35f3683ef1a272409683ea2c9c705739ce2bb0f164620836c7e3a92 - sourceBlobDigest: sha256:8554a6b0b3d20fe0439401b4997d5a15a47bd0cf123406d38e5620b78720c1ac + sourceRevisionDigest: sha256:48d683ebca808ecf2a33d82e720da6a0e4c4c8bd9f403e4ae7218eb52a5cc4a5 + sourceBlobDigest: sha256:52a6bbab3c7b34eed54c1028f4467443bc9f24b24181ee7d0ac542caca5ca126 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:6543e24dc35f3683ef1a272409683ea2c9c705739ce2bb0f164620836c7e3a92 - sourceBlobDigest: sha256:8554a6b0b3d20fe0439401b4997d5a15a47bd0cf123406d38e5620b78720c1ac + sourceRevisionDigest: sha256:48d683ebca808ecf2a33d82e720da6a0e4c4c8bd9f403e4ae7218eb52a5cc4a5 + sourceBlobDigest: sha256:52a6bbab3c7b34eed54c1028f4467443bc9f24b24181ee7d0ac542caca5ca126 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:99f67e23f8b00414b53dd7bb2f5e7887771a157c01a8e884e439d165cd6f780d + codeSamplesRevisionDigest: sha256:cd248b5bf76d621f943dd3de7dbd3cefab3ad776e174585b02b40bcb222cd89d workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 89f1abbbc..0d41b58c8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -3989,4 +3989,14 @@ Based on: ### Generated - [python v1.3.122] . ### Releases -- [PyPI v1.3.122] https://pypi.org/project/openrouter/1.3.122 - . \ No newline at end of file +- [PyPI v1.3.122] https://pypi.org/project/openrouter/1.3.122 - . + +## 2026-11-04 23:04:08 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.123] . +### Releases +- [PyPI v1.3.123] https://pypi.org/project/openrouter/1.3.123 - . \ No newline at end of file diff --git a/docs/components/alignmentresponsesrejected.mdx b/docs/components/alignmentresponsesrejected.mdx index d658aba23..3db6e441d 100644 --- a/docs/components/alignmentresponsesrejected.mdx +++ b/docs/components/alignmentresponsesrejected.mdx @@ -16,6 +16,12 @@ value: components.OutputItemApplyPatchCall = /* values here */ value: components.OutputItemCodeInterpreterCall = /* values here */ ``` +### `components.OutputItemCompaction` + +```python +value: components.OutputItemCompaction = /* values here */ +``` + ### `components.OutputItemCustomToolCall` ```python diff --git a/docs/components/compactiontriggeritem.mdx b/docs/components/compactiontriggeritem.mdx new file mode 100644 index 000000000..6aaaa3b03 --- /dev/null +++ b/docs/components/compactiontriggeritem.mdx @@ -0,0 +1,12 @@ +--- +title: "CompactionTriggerItem" +--- + +Asks the model to compact the preceding input into a compaction item + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `type` | [components.CompactionTriggerItemType](../components/compactiontriggeritemtype.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/compactiontriggeritemtype.mdx b/docs/components/compactiontriggeritemtype.mdx new file mode 100644 index 000000000..6b81de8a9 --- /dev/null +++ b/docs/components/compactiontriggeritemtype.mdx @@ -0,0 +1,15 @@ +--- +title: "CompactionTriggerItemType" +--- + +## Example Usage + +```python +from openrouter.components import CompactionTriggerItemType +value: CompactionTriggerItemType = "compaction_trigger" +``` + + +## Values + +- `"compaction_trigger"` diff --git a/docs/components/inputsunion1.mdx b/docs/components/inputsunion1.mdx index dab31fe38..fb20a6372 100644 --- a/docs/components/inputsunion1.mdx +++ b/docs/components/inputsunion1.mdx @@ -268,6 +268,12 @@ value: components.CustomToolCallItem = /* values here */ value: components.CustomToolCallOutputItem = /* values here */ ``` +### `components.CompactionTriggerItem` + +```python +value: components.CompactionTriggerItem = /* values here */ +``` + ### `components.CompactionItem` ```python diff --git a/docs/components/outputcompactionitem.mdx b/docs/components/outputcompactionitem.mdx new file mode 100644 index 000000000..b13f5270b --- /dev/null +++ b/docs/components/outputcompactionitem.mdx @@ -0,0 +1,15 @@ +--- +title: "OutputCompactionItem" +--- + +A compaction output item carrying the encrypted summary of the compacted conversation. Emitted in reply to a `compaction_trigger` input item. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `created_by` | *Optional[str]* | ➖ | N/A | +| `encrypted_content` | *str* | ✔️ | N/A | +| `id` | *str* | ✔️ | N/A | +| `type` | [components.OutputCompactionItemType](../components/outputcompactionitemtype.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/outputcompactionitemtype.mdx b/docs/components/outputcompactionitemtype.mdx new file mode 100644 index 000000000..11b22aab4 --- /dev/null +++ b/docs/components/outputcompactionitemtype.mdx @@ -0,0 +1,15 @@ +--- +title: "OutputCompactionItemType" +--- + +## Example Usage + +```python +from openrouter.components import OutputCompactionItemType +value: OutputCompactionItemType = "compaction" +``` + + +## Values + +- `"compaction"` diff --git a/docs/components/outputitemcompaction.mdx b/docs/components/outputitemcompaction.mdx new file mode 100644 index 000000000..9f0bd7477 --- /dev/null +++ b/docs/components/outputitemcompaction.mdx @@ -0,0 +1,12 @@ +--- +title: "OutputItemCompaction" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `created_by` | *Optional[str]* | ➖ | N/A | +| `encrypted_content` | *str* | ✔️ | N/A | +| `id` | *str* | ✔️ | N/A | +| `type` | [components.OutputItemCompactionType](../components/outputitemcompactiontype.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/outputitemcompactiontype.mdx b/docs/components/outputitemcompactiontype.mdx new file mode 100644 index 000000000..89db13f8d --- /dev/null +++ b/docs/components/outputitemcompactiontype.mdx @@ -0,0 +1,15 @@ +--- +title: "OutputItemCompactionType" +--- + +## Example Usage + +```python +from openrouter.components import OutputItemCompactionType +value: OutputItemCompactionType = "compaction" +``` + + +## Values + +- `"compaction"` diff --git a/docs/components/outputitems.mdx b/docs/components/outputitems.mdx index 6356e3316..5ade7f32a 100644 --- a/docs/components/outputitems.mdx +++ b/docs/components/outputitems.mdx @@ -19,6 +19,12 @@ value: components.OutputApplyPatchCallItem = /* values here */ value: components.OutputCodeInterpreterCallItem = /* values here */ ``` +### `components.OutputCompactionItem` + +```python +value: components.OutputCompactionItem = /* values here */ +``` + ### `components.OutputComputerCallItem` ```python diff --git a/pyproject.toml b/pyproject.toml index 0a8714039..a66006a71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.122" +version = "1.3.123" description = "Official Python Client SDK for OpenRouter." authors = [{ name = "OpenRouter" },] readme = "README-PYPI.md" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index df7fc645f..7250656ff 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.122" +__version__: str = "1.3.123" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.122 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.123 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/__init__.py b/src/openrouter/components/__init__.py index fe54f56dd..212a3d7b1 100644 --- a/src/openrouter/components/__init__.py +++ b/src/openrouter/components/__init__.py @@ -1358,6 +1358,11 @@ CompactionItemType, CompactionItemTypedDict, ) + from .compactiontriggeritem import ( + CompactionTriggerItem, + CompactionTriggerItemType, + CompactionTriggerItemTypedDict, + ) from .compoundfilter import ( CompoundFilter, CompoundFilterType, @@ -3351,6 +3356,11 @@ OutputCodeInterpreterServerToolItemType, OutputCodeInterpreterServerToolItemTypedDict, ) + from .outputcompactionitem import ( + OutputCompactionItem, + OutputCompactionItemType, + OutputCompactionItemTypedDict, + ) from .outputcomputercallitem import ( OutputComputerCallItem, OutputComputerCallItemStatus, @@ -3434,6 +3444,11 @@ OutputItemCodeInterpreterCallTypedDict, UnknownOutputItemCodeInterpreterCallOutput, ) + from .outputitemcompaction import ( + OutputItemCompaction, + OutputItemCompactionType, + OutputItemCompactionTypedDict, + ) from .outputitemcustomtoolcall import ( OutputItemCustomToolCall, OutputItemCustomToolCallStatus, @@ -5625,6 +5640,9 @@ "CompactionItem", "CompactionItemType", "CompactionItemTypedDict", + "CompactionTriggerItem", + "CompactionTriggerItemType", + "CompactionTriggerItemTypedDict", "CompoundFilter", "CompoundFilterType", "CompoundFilterTypedDict", @@ -7055,6 +7073,9 @@ "OutputCodeInterpreterServerToolItem", "OutputCodeInterpreterServerToolItemType", "OutputCodeInterpreterServerToolItemTypedDict", + "OutputCompactionItem", + "OutputCompactionItemType", + "OutputCompactionItemTypedDict", "OutputComputerCallItem", "OutputComputerCallItemStatus", "OutputComputerCallItemType", @@ -7106,6 +7127,9 @@ "OutputItemCodeInterpreterCallStatus", "OutputItemCodeInterpreterCallType", "OutputItemCodeInterpreterCallTypedDict", + "OutputItemCompaction", + "OutputItemCompactionType", + "OutputItemCompactionTypedDict", "OutputItemCustomToolCall", "OutputItemCustomToolCallStatus", "OutputItemCustomToolCallType", @@ -9189,6 +9213,9 @@ "CompactionItem": ".compactionitem", "CompactionItemType": ".compactionitem", "CompactionItemTypedDict": ".compactionitem", + "CompactionTriggerItem": ".compactiontriggeritem", + "CompactionTriggerItemType": ".compactiontriggeritem", + "CompactionTriggerItemTypedDict": ".compactiontriggeritem", "CompoundFilter": ".compoundfilter", "CompoundFilterType": ".compoundfilter", "CompoundFilterTypedDict": ".compoundfilter", @@ -10693,6 +10720,9 @@ "OutputCodeInterpreterServerToolItem": ".outputcodeinterpreterservertoolitem", "OutputCodeInterpreterServerToolItemType": ".outputcodeinterpreterservertoolitem", "OutputCodeInterpreterServerToolItemTypedDict": ".outputcodeinterpreterservertoolitem", + "OutputCompactionItem": ".outputcompactionitem", + "OutputCompactionItemType": ".outputcompactionitem", + "OutputCompactionItemTypedDict": ".outputcompactionitem", "OutputComputerCallItem": ".outputcomputercallitem", "OutputComputerCallItemStatus": ".outputcomputercallitem", "OutputComputerCallItemType": ".outputcomputercallitem", @@ -10752,6 +10782,9 @@ "OutputItemCodeInterpreterCallType": ".outputitemcodeinterpretercall", "OutputItemCodeInterpreterCallTypedDict": ".outputitemcodeinterpretercall", "UnknownOutputItemCodeInterpreterCallOutput": ".outputitemcodeinterpretercall", + "OutputItemCompaction": ".outputitemcompaction", + "OutputItemCompactionType": ".outputitemcompaction", + "OutputItemCompactionTypedDict": ".outputitemcompaction", "OutputItemCustomToolCall": ".outputitemcustomtoolcall", "OutputItemCustomToolCallStatus": ".outputitemcustomtoolcall", "OutputItemCustomToolCallType": ".outputitemcustomtoolcall", diff --git a/src/openrouter/components/alignmentresponsesrejected.py b/src/openrouter/components/alignmentresponsesrejected.py index 363671445..e95541f48 100644 --- a/src/openrouter/components/alignmentresponsesrejected.py +++ b/src/openrouter/components/alignmentresponsesrejected.py @@ -9,6 +9,7 @@ OutputItemCodeInterpreterCall, OutputItemCodeInterpreterCallTypedDict, ) +from .outputitemcompaction import OutputItemCompaction, OutputItemCompactionTypedDict from .outputitemcustomtoolcall import ( OutputItemCustomToolCall, OutputItemCustomToolCallTypedDict, @@ -45,6 +46,7 @@ Union[ OutputItemFileSearchCallTypedDict, OutputItemImageGenerationCallTypedDict, + OutputItemCompactionTypedDict, OutputItemWebSearchCallTypedDict, OutputMessageTypedDict, OutputItemReasoningTypedDict, @@ -69,6 +71,7 @@ class UnknownAlignmentResponsesRejected(BaseModel): _ALIGNMENT_RESPONSES_REJECTED_VARIANTS: dict[str, Any] = { "apply_patch_call": OutputItemApplyPatchCall, "code_interpreter_call": OutputItemCodeInterpreterCall, + "compaction": OutputItemCompaction, "custom_tool_call": OutputItemCustomToolCall, "file_search_call": OutputItemFileSearchCall, "function_call": OutputItemFunctionCall, @@ -83,6 +86,7 @@ class UnknownAlignmentResponsesRejected(BaseModel): Union[ OutputItemApplyPatchCall, OutputItemCodeInterpreterCall, + OutputItemCompaction, OutputItemCustomToolCall, OutputItemFileSearchCall, OutputItemFunctionCall, diff --git a/src/openrouter/components/compactiontriggeritem.py b/src/openrouter/components/compactiontriggeritem.py new file mode 100644 index 000000000..7641569d0 --- /dev/null +++ b/src/openrouter/components/compactiontriggeritem.py @@ -0,0 +1,21 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from openrouter.types import BaseModel +from typing import Literal +from typing_extensions import TypedDict + + +CompactionTriggerItemType = Literal["compaction_trigger",] + + +class CompactionTriggerItemTypedDict(TypedDict): + r"""Asks the model to compact the preceding input into a compaction item""" + + type: CompactionTriggerItemType + + +class CompactionTriggerItem(BaseModel): + r"""Asks the model to compact the preceding input into a compaction item""" + + type: CompactionTriggerItemType diff --git a/src/openrouter/components/inputs_union.py b/src/openrouter/components/inputs_union.py index 48a23ae29..a2efac9ee 100644 --- a/src/openrouter/components/inputs_union.py +++ b/src/openrouter/components/inputs_union.py @@ -9,6 +9,7 @@ ApplyPatchCallOutputItemTypedDict, ) from .compactionitem import CompactionItem, CompactionItemTypedDict +from .compactiontriggeritem import CompactionTriggerItem, CompactionTriggerItemTypedDict from .configurationupdateitem import ( ConfigurationUpdateItem, ConfigurationUpdateItemTypedDict, @@ -381,6 +382,7 @@ def serialize_model(self, handler): InputsUnion1TypedDict = TypeAliasType( "InputsUnion1TypedDict", Union[ + CompactionTriggerItemTypedDict, ItemReferenceItemTypedDict, ConfigurationUpdateItemTypedDict, ContextCompactionItemTypedDict, @@ -390,44 +392,44 @@ def serialize_model(self, handler): OutputFileSearchServerToolItemTypedDict, CustomToolCallOutputItemTypedDict, AdditionalToolsItemTypedDict, - CompactionItemTypedDict, OutputFileSearchCallItemTypedDict, + CompactionItemTypedDict, ApplyPatchCallOutputItemTypedDict, OutputImageGenerationCallItemTypedDict, OutputWebSearchCallItemTypedDict, - OutputMcpServerToolItemTypedDict, OutputWebSearchServerToolItemTypedDict, - McpApprovalResponseItemTypedDict, + OutputMcpServerToolItemTypedDict, ApplyPatchCallItemTypedDict, - McpApprovalRequestItemTypedDict, + McpApprovalResponseItemTypedDict, OutputBrowserUseServerToolItemTypedDict, - McpListToolsItemTypedDict, + McpApprovalRequestItemTypedDict, OutputTextEditorServerToolItemTypedDict, + McpListToolsItemTypedDict, FunctionCallOutputItemTypedDict, LocalShellCallItemTypedDict, OutputDatetimeItemTypedDict, + OutputApplyPatchServerToolItemTypedDict, OutputMemoryServerToolItemTypedDict, - ToolSearchOutputItemTypedDict, - OutputToolSearchServerToolItemTypedDict, OutputSearchModelsServerToolItemTypedDict, + ToolSearchOutputItemTypedDict, ToolSearchCallItemTypedDict, - OutputComputerCallItemTypedDict, - OutputApplyPatchServerToolItemTypedDict, InputsMessageTypedDict, + OutputToolSearchServerToolItemTypedDict, + OutputComputerCallItemTypedDict, AgentMessageItemTypedDict, - ShellCallItemTypedDict, OutputCodeInterpreterCallItemTypedDict, + ShellCallItemTypedDict, McpCallItemTypedDict, - InputsReasoningTypedDict, - OutputWebFetchServerToolItemTypedDict, ReasoningItemTypedDict, + OutputWebFetchServerToolItemTypedDict, OutputAdvisorServerToolItemTypedDict, - OutputCodeInterpreterServerToolItemTypedDict, + InputsReasoningTypedDict, CustomToolCallItemTypedDict, + OutputCodeInterpreterServerToolItemTypedDict, + OutputArmorBlockedItemTypedDict, ShellCallOutputItemTypedDict, OutputImageGenerationServerToolItemTypedDict, OutputFusionServerToolItemTypedDict, - OutputArmorBlockedItemTypedDict, OutputShellServerToolItemTypedDict, OutputFilesServerToolItemTypedDict, FunctionCallItemTypedDict, @@ -440,6 +442,7 @@ def serialize_model(self, handler): InputsUnion1 = TypeAliasType( "InputsUnion1", Union[ + CompactionTriggerItem, ItemReferenceItem, ConfigurationUpdateItem, ContextCompactionItem, @@ -449,44 +452,44 @@ def serialize_model(self, handler): OutputFileSearchServerToolItem, CustomToolCallOutputItem, AdditionalToolsItem, - CompactionItem, OutputFileSearchCallItem, + CompactionItem, ApplyPatchCallOutputItem, OutputImageGenerationCallItem, OutputWebSearchCallItem, - OutputMcpServerToolItem, OutputWebSearchServerToolItem, - McpApprovalResponseItem, + OutputMcpServerToolItem, ApplyPatchCallItem, - McpApprovalRequestItem, + McpApprovalResponseItem, OutputBrowserUseServerToolItem, - McpListToolsItem, + McpApprovalRequestItem, OutputTextEditorServerToolItem, + McpListToolsItem, FunctionCallOutputItem, LocalShellCallItem, OutputDatetimeItem, + OutputApplyPatchServerToolItem, OutputMemoryServerToolItem, - ToolSearchOutputItem, - OutputToolSearchServerToolItem, OutputSearchModelsServerToolItem, + ToolSearchOutputItem, ToolSearchCallItem, - OutputComputerCallItem, - OutputApplyPatchServerToolItem, InputsMessage, + OutputToolSearchServerToolItem, + OutputComputerCallItem, AgentMessageItem, - ShellCallItem, OutputCodeInterpreterCallItem, + ShellCallItem, McpCallItem, - InputsReasoning, - OutputWebFetchServerToolItem, ReasoningItem, + OutputWebFetchServerToolItem, OutputAdvisorServerToolItem, - OutputCodeInterpreterServerToolItem, + InputsReasoning, CustomToolCallItem, + OutputCodeInterpreterServerToolItem, + OutputArmorBlockedItem, ShellCallOutputItem, OutputImageGenerationServerToolItem, OutputFusionServerToolItem, - OutputArmorBlockedItem, OutputShellServerToolItem, OutputFilesServerToolItem, FunctionCallItem, diff --git a/src/openrouter/components/outputcompactionitem.py b/src/openrouter/components/outputcompactionitem.py new file mode 100644 index 000000000..8ecfd1e7c --- /dev/null +++ b/src/openrouter/components/outputcompactionitem.py @@ -0,0 +1,47 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from openrouter.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Literal, Optional +from typing_extensions import NotRequired, TypedDict + + +OutputCompactionItemType = Literal["compaction",] + + +class OutputCompactionItemTypedDict(TypedDict): + r"""A compaction output item carrying the encrypted summary of the compacted conversation. Emitted in reply to a `compaction_trigger` input item.""" + + encrypted_content: str + id: str + type: OutputCompactionItemType + created_by: NotRequired[str] + + +class OutputCompactionItem(BaseModel): + r"""A compaction output item carrying the encrypted summary of the compacted conversation. Emitted in reply to a `compaction_trigger` input item.""" + + encrypted_content: str + + id: str + + type: OutputCompactionItemType + + created_by: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["created_by"]) + 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 diff --git a/src/openrouter/components/outputitemcompaction.py b/src/openrouter/components/outputitemcompaction.py new file mode 100644 index 000000000..d02ed3e9b --- /dev/null +++ b/src/openrouter/components/outputitemcompaction.py @@ -0,0 +1,43 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from openrouter.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Literal, Optional +from typing_extensions import NotRequired, TypedDict + + +OutputItemCompactionType = Literal["compaction",] + + +class OutputItemCompactionTypedDict(TypedDict): + encrypted_content: str + id: str + type: OutputItemCompactionType + created_by: NotRequired[str] + + +class OutputItemCompaction(BaseModel): + encrypted_content: str + + id: str + + type: OutputItemCompactionType + + created_by: Optional[str] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["created_by"]) + 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 diff --git a/src/openrouter/components/outputitems.py b/src/openrouter/components/outputitems.py index 6059e71fb..53f3d7f01 100644 --- a/src/openrouter/components/outputitems.py +++ b/src/openrouter/components/outputitems.py @@ -33,6 +33,7 @@ OutputCodeInterpreterServerToolItem, OutputCodeInterpreterServerToolItemTypedDict, ) +from .outputcompactionitem import OutputCompactionItem, OutputCompactionItemTypedDict from .outputcomputercallitem import ( OutputComputerCallItem, OutputComputerCallItemTypedDict, @@ -133,37 +134,38 @@ OutputItemsTypedDict = TypeAliasType( "OutputItemsTypedDict", Union[ - OutputFileSearchCallItemTypedDict, OutputFileSearchServerToolItemTypedDict, - OutputWebSearchServerToolItemTypedDict, + OutputCompactionItemTypedDict, + OutputFileSearchCallItemTypedDict, OutputMcpServerToolItemTypedDict, - OutputApplyPatchCallItemTypedDict, OutputWebSearchCallItemTypedDict, OutputImageGenerationCallItemTypedDict, + OutputApplyPatchCallItemTypedDict, OutputTextEditorServerToolItemTypedDict, OutputBrowserUseServerToolItemTypedDict, - OutputDatetimeItemTypedDict, - OutputShellCallItemTypedDict, - OutputMessageItemTypedDict, - OutputToolSearchCallItemTypedDict, - OutputComputerCallItemTypedDict, + OutputWebSearchServerToolItemTypedDict, + OutputApplyPatchServerToolItemTypedDict, OutputSearchModelsServerToolItemTypedDict, + OutputToolSearchCallItemTypedDict, + OutputDatetimeItemTypedDict, OutputMemoryServerToolItemTypedDict, - OutputApplyPatchServerToolItemTypedDict, + OutputComputerCallItemTypedDict, + OutputMessageItemTypedDict, OutputToolSearchServerToolItemTypedDict, + OutputShellCallItemTypedDict, OutputCodeInterpreterCallItemTypedDict, + OutputReasoningItemTypedDict, + OutputCustomToolCallItemTypedDict, OutputWebFetchServerToolItemTypedDict, OutputCodeInterpreterServerToolItemTypedDict, - OutputReasoningItemTypedDict, OutputAdvisorServerToolItemTypedDict, - OutputCustomToolCallItemTypedDict, - OutputImageGenerationServerToolItemTypedDict, + OutputShellCallOutputItemTypedDict, OutputArmorBlockedItemTypedDict, + OutputImageGenerationServerToolItemTypedDict, OutputFusionServerToolItemTypedDict, - OutputShellCallOutputItemTypedDict, + OutputFilesServerToolItemTypedDict, OutputShellServerToolItemTypedDict, OutputFunctionCallItemTypedDict, - OutputFilesServerToolItemTypedDict, OutputSubagentServerToolItemTypedDict, OutputBashServerToolItemTypedDict, ], @@ -184,6 +186,7 @@ class UnknownOutputItems(BaseModel): _OUTPUT_ITEMS_VARIANTS: dict[str, Any] = { "apply_patch_call": OutputApplyPatchCallItem, "code_interpreter_call": OutputCodeInterpreterCallItem, + "compaction": OutputCompactionItem, "computer_call": OutputComputerCallItem, "custom_tool_call": OutputCustomToolCallItem, "file_search_call": OutputFileSearchCallItem, @@ -222,6 +225,7 @@ class UnknownOutputItems(BaseModel): Union[ OutputApplyPatchCallItem, OutputCodeInterpreterCallItem, + OutputCompactionItem, OutputComputerCallItem, OutputCustomToolCallItem, OutputFileSearchCallItem, diff --git a/uv.lock b/uv.lock index 5fbe6e29a..1d11bc98e 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.122" +version = "1.3.123" source = { editable = "." } dependencies = [ { name = "httpcore" }, From 4adcc5503e98a20a83a4227e822706da070601f1 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 23:06:30 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow