From cf0aab318e0e6763504eff271c33591eb49a74b4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 21 Aug 2026 09:35:55 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.763.6 --- .speakeasy/gen.lock | 94 ++++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +-- RELEASES.md | 12 ++- docs/models/createrealtimesessionrequest.md | 9 +- docs/models/messagetokens.md | 1 + docs/models/prompt.md | 4 +- .../registerdeploymentrequestvespaindex.md | 3 +- .../models/tempotraceattributearrayelement.md | 11 ++- docs/models/tempotraceattributedoublevalue.md | 8 ++ docs/models/tempotraceattributevalue.md | 6 ++ docs/models/usageinfodollardefs.md | 1 + src/mistralai/client/_version.py | 4 +- src/mistralai/client/models/__init__.py | 8 ++ .../models/createrealtimesessionrequest.py | 39 +++++++- src/mistralai/client/models/messagetokens.py | 9 +- src/mistralai/client/models/prompt.py | 12 +++ .../registerdeploymentrequestvespaindex.py | 39 +++++++- .../client/models/tempotraceattribute.py | 6 ++ .../models/tempotraceattributearrayelement.py | 11 ++- .../models/tempotraceattributedoublevalue.py | 23 +++++ .../client/models/usageinfo_dollar_defs.py | 5 + 22 files changed, 247 insertions(+), 72 deletions(-) create mode 100644 docs/models/tempotraceattributedoublevalue.md create mode 100644 src/mistralai/client/models/tempotraceattributedoublevalue.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bf55a93ca..5912f405e 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 2d045ec7-2ebb-4f4d-ad25-40953b132161 management: - docChecksum: d31579d67584c7ae3e4757057ff737bb + docChecksum: fba239e4f19befe05dc9ca1211759a61 docVersion: 1.0.0 speakeasyVersion: 1.763.6 generationVersion: 2.884.13 - releaseVersion: 2.9.3 - configChecksum: 7083e0ed928566c2c43a9f501c3291b5 + releaseVersion: 2.9.4 + configChecksum: f10ecec9092b2223bb3fd46460b22e95 repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: ed4a7adf-e447-41b1-92c8-7ec4b97f7935 - pristine_commit_hash: e26f8994eba9afd57e65b7482d30643dff1a2e16 - pristine_tree_hash: 5e0d4db2cc74696ce363a4045768104029d15f9f + generation_id: 3fff1d7a-4200-4325-bedb-7e5614ba04ae + pristine_commit_hash: ca70374cee691fd2ebd601f17670d13cd698f02b + pristine_tree_hash: 3b7227286e31a906bfca3b0195ccfc1f908b65ad features: python: acceptHeaders: 3.0.0 @@ -998,8 +998,8 @@ trackedFiles: pristine_git_object: b6ea6b5d9049d0ddc0e73325d88171ce773b2371 docs/models/createrealtimesessionrequest.md: id: 430cc39e70f1 - last_write_checksum: sha1:641a1914e6f302cd5704fc3d7f8c877be39365b7 - pristine_git_object: fecfa68a41fc4c9f0f0d77d62e94a5a0ad7d9820 + last_write_checksum: sha1:553b9a00805e0b396fbdfc61d7ae29809ec65331 + pristine_git_object: a56e643c242a583415e926bb6d8ccee1477983f2 docs/models/createrealtimesessionresponse.md: id: 4608ebc5e4af last_write_checksum: sha1:d0050833b12d7f25d71639e1b9bbf90283b50812 @@ -2422,8 +2422,8 @@ trackedFiles: pristine_git_object: 504aa9de165ea21ffd7178dd092b7532fc3f9e6a docs/models/messagetokens.md: id: c348c2448aaa - last_write_checksum: sha1:5f99a25a3f689030756a63e925113030121c5d7e - pristine_git_object: 427e09b524964c521a6b63962e5f71ae0ca1b485 + last_write_checksum: sha1:745a41b9189a9a48cbde2838bf9432e60bb9df62 + pristine_git_object: 79b126d9a6a72f84fa491417bff0f891206f59b4 docs/models/methodtype.md: id: 7c7e0f30b36b last_write_checksum: sha1:1d3d6335473dc65c4964ebfd578ee955403dde7d @@ -2754,8 +2754,8 @@ trackedFiles: pristine_git_object: 68313743c4d926b2cb29037d0e59a2f9d8d25f1c docs/models/prompt.md: id: faf3fe7a5a2e - last_write_checksum: sha1:43f2bc5e4d717a2bb1a63ec069c2a07ee22cc960 - pristine_git_object: 8e572c285c9908f1d10acc8859b600312959a0d4 + last_write_checksum: sha1:42190fe2c5f720fe02366ba7ceb41a8b57577ccf + pristine_git_object: e9e37448180ba556e17e300e1142d07f5ee488a8 docs/models/promptargument.md: id: 5e744dafa422 last_write_checksum: sha1:4b7a10005ef27e91c191ab71e76c8ba0eff789aa @@ -2950,8 +2950,8 @@ trackedFiles: pristine_git_object: 016f77ca191b2bccaa444e70b12b09f04a819ce2 docs/models/registerdeploymentrequestvespaindex.md: id: b1acca3ed627 - last_write_checksum: sha1:944eff9b4e7cda3bf66456f3c760734fa9a8aae0 - pristine_git_object: 59c8181f722b5acdbd1fb68a5082dff8f17378ae + last_write_checksum: sha1:cf79e860676213ab6a38096699a59edfe992d891 + pristine_git_object: e10a763afe7a58ffade4bfbd7565fa980ad22a33 docs/models/registersearchindexresponseindex.md: id: 762403047d13 last_write_checksum: sha1:e2d57be7f7a862a6a44d181c5480d597909ea945 @@ -3462,8 +3462,8 @@ trackedFiles: pristine_git_object: 049dce7d7b8b7da965af6629e45be77e81aa4302 docs/models/tempotraceattributearrayelement.md: id: be9d9005df77 - last_write_checksum: sha1:e970ae3b60c1adaf0bb79e109ec675338f2095de - pristine_git_object: a4b8208099ff361160ad3c403f427eeb5fc143e5 + last_write_checksum: sha1:dbcfaa671dbf005385a4e67f47ee571e14cb2850 + pristine_git_object: 734ca58d705e82191574945654dd16f79e6846d5 docs/models/tempotraceattributearrayvalue.md: id: 619f60780ece last_write_checksum: sha1:889052cfcc2f44c882bbfe32cfbaeb104b9927f4 @@ -3472,6 +3472,10 @@ trackedFiles: id: 0e2767bf14da last_write_checksum: sha1:6e09bcab345a7cbe376c41fd20955017f54243bc pristine_git_object: 07b77e43cd17be26c620a30a8ec627310d67886f + docs/models/tempotraceattributedoublevalue.md: + id: 32cb7a1fb59c + last_write_checksum: sha1:dd6635cbb99d4c6100fee8fc6f1c0da351822c43 + pristine_git_object: bbb97512643dc162ed2a80772e554c536e3e02f8 docs/models/tempotraceattributeintvalue.md: id: 55a1d75f3e12 last_write_checksum: sha1:2381b0f0f84aeb42d9a0a97fe3764ebaa9dee0d9 @@ -3482,8 +3486,8 @@ trackedFiles: pristine_git_object: 61e7eb8ac7f91e718e85fd46b7298095300821f5 docs/models/tempotraceattributevalue.md: id: b5a74866dcac - last_write_checksum: sha1:2acdf3c2c1c7e163ded5d12c51eb649f2a11b95d - pristine_git_object: 3b0a18692fce0a107217c3f274626ece86f22aa2 + last_write_checksum: sha1:0788ed4463c464f9b7785a030339dc9c543d7bf5 + pristine_git_object: 4dd8b56437a422f929a22a8a9932f48aeb985956 docs/models/tempotracebatch.md: id: 1a73bb7f3ee0 last_write_checksum: sha1:778e8837929ee817567c02653ae9daca8d564ea7 @@ -3886,8 +3890,8 @@ trackedFiles: pristine_git_object: fb460774fe5e9affe5d1c0e6795ed6255cf06587 docs/models/usageinfodollardefs.md: id: db2412f29163 - last_write_checksum: sha1:22376657c6afb47bd1d3c6629bca91f7c956fc64 - pristine_git_object: 8e405fc0bc409e1cd5a34742886b87036b5b8235 + last_write_checksum: sha1:a1caeb2f5d3d76a7a3474ebbb475cdce6e0c7d8e + pristine_git_object: 2d8b2ed4bd93d67e45e834e012cb175c45249dbf docs/models/useridentity.md: id: 959b5b6bb365 last_write_checksum: sha1:57c19208b5cccac6058c850e34f98bdb7d6b04e9 @@ -4414,8 +4418,8 @@ trackedFiles: pristine_git_object: 036d44b8cfc51599873bd5c401a6aed30450536c src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:0eb57e3022495b4758b082c3e051422892d5142d - pristine_git_object: e57779051a9ecf145e958ca205451c7de260eced + last_write_checksum: sha1:c15f0e9d80b73265ba1128d017942fbbcf6bf30f + pristine_git_object: 1469c92c2caaa81852e34df6a30f072fffb9b186 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:33d8a0663a647b7a7e1946064d05c3b40e538816 @@ -4566,8 +4570,8 @@ trackedFiles: pristine_git_object: d0b6b4fc091393e6e8a75f158363baa8e2ea21d4 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:c21173f2a0b39ce671fd13f5f5b832fbb4962b1e - pristine_git_object: b24fd3fa3e2cf4b254fcda6d835db1e7a35d17b9 + last_write_checksum: sha1:4caa638259aaeb903692d74228b9f903f1926b2b + pristine_git_object: 2836ced9ce1dd1837c8135800fbe86aeecb191f6 src/mistralai/client/models/activitytaskcompletedattributesresponse.py: id: 8174941767cc last_write_checksum: sha1:b5246e203765ba0532a6a65d391bdd237ab2c891 @@ -5242,8 +5246,8 @@ trackedFiles: pristine_git_object: 32c96a41aef6c5f592c660c2107cd5948d582822 src/mistralai/client/models/createrealtimesessionrequest.py: id: 285bf15f71b1 - last_write_checksum: sha1:4dd0aef3412b0662e47842214fff3f0805e461ed - pristine_git_object: fc5c1f8cf5f21dc85c9c29f4ebb31fff735f1f77 + last_write_checksum: sha1:802d79bb0c9a6e4ad428d863765dc187a6baa90f + pristine_git_object: 10b034121d1352c1bd1df3d31ce636190a450edb src/mistralai/client/models/createrealtimesessionresponse.py: id: 9183c3301002 last_write_checksum: sha1:88de386c1e96d4e5fc0c5d8a0771b8d0523680b6 @@ -6478,8 +6482,8 @@ trackedFiles: pristine_git_object: c8fbdff77b3464b630b0cd18f25d9179c5ff9eca src/mistralai/client/models/messagetokens.py: id: e2a5171d27c5 - last_write_checksum: sha1:361fdea88fe10abec7f0e49ad918e8a02354a801 - pristine_git_object: f3e292bd722e7a0a0b50a7c66a61b0f9808e7b4d + last_write_checksum: sha1:43a2e057d01c19060951f085a6582c3b2eb5a3df + pristine_git_object: a3864640a302f2b1f2ddac9c719689e5190e501b src/mistralai/client/models/metricaggregation.py: id: d83c8202faad last_write_checksum: sha1:40101cc7ab13ece5b0a01c3558ffde92cf769ea2 @@ -6746,8 +6750,8 @@ trackedFiles: pristine_git_object: 15bdce2056f2f642096fbbdb2ac32ce1e5b8c9cf src/mistralai/client/models/prompt.py: id: 488f0cfc226c - last_write_checksum: sha1:853d76b80d8ffc400824934bce1666f0a80cb68e - pristine_git_object: bd12a86255235f3c98abe6c802b9367a0722455b + last_write_checksum: sha1:0a29c102c1aa7b28069b7720ed015a53958d5290 + pristine_git_object: 3679093e233777faee8db7b157d77c25eb4fb74c src/mistralai/client/models/promptargument.py: id: 52e5c885f761 last_write_checksum: sha1:a71c2398080cb96acf20772e3c9436910c5a5b22 @@ -6910,8 +6914,8 @@ trackedFiles: pristine_git_object: a2a4d6b79604ff8c4af0e374afd3f33a8a0a8432 src/mistralai/client/models/registerdeploymentrequestvespaindex.py: id: 2fb0584f27cf - last_write_checksum: sha1:1f439e57926a50e7e5907bb9c17f7c6718e1d7d3 - pristine_git_object: 6478919dda3dd4c7ad218f0c3b11031ec16e2ba8 + last_write_checksum: sha1:408fa9f42cc1c591fe9444a97b1dbb94cf0c589c + pristine_git_object: b8ea5946ac3ee6f04fb74d073225c24ed1356231 src/mistralai/client/models/registersearchindexresponseindex.py: id: e66c7b574b75 last_write_checksum: sha1:7a8397ef0b393f59b61f9dacd2aac124f05fb169 @@ -7286,16 +7290,16 @@ trackedFiles: pristine_git_object: 8575b95430e10a9b8d7e1df0f0e131cda68bb685 src/mistralai/client/models/tempotraceattribute.py: id: 7d0ec3402dc0 - last_write_checksum: sha1:663896264ac81d443679ca397fdad95a96683455 - pristine_git_object: dea530ea8fc2ee80d5218b3e1437b23fa94daf4b + last_write_checksum: sha1:dde2dc49a2e1e3c6340bfcf1533988974bf78e5f + pristine_git_object: bc2da3e0e08b45d80d30ab572f6896b292d0fef4 src/mistralai/client/models/tempotraceattributearraycontainer.py: id: afca3b2e0b21 last_write_checksum: sha1:b4f8414e509c84ca90f2d859f222a313b9948b39 pristine_git_object: 082060373b99b74bfe6c29a30048758f3023bdcb src/mistralai/client/models/tempotraceattributearrayelement.py: id: 4f3b1d9264a3 - last_write_checksum: sha1:d1922dd0b17d26b2aa0e4858a35a90662ebba626 - pristine_git_object: 6fa0ec60f028712573e8947ef2d34e526c64ef81 + last_write_checksum: sha1:84294dee61c41e7ce2a225e403d178225de3975c + pristine_git_object: f506b40eee5968725a0e6da4f5716f508fc92e75 src/mistralai/client/models/tempotraceattributearrayvalue.py: id: d75dd416f9e3 last_write_checksum: sha1:47995b569301c6d8b7a6ca1ad8c04717f16d0868 @@ -7304,6 +7308,10 @@ trackedFiles: id: c7c383a6c05f last_write_checksum: sha1:a40945504a6845a3e43a80d5f901af9f5c5ee96b pristine_git_object: 72fb79d022533d8a7af27c5d7e91258e7cf3a3b5 + src/mistralai/client/models/tempotraceattributedoublevalue.py: + id: 30d063ab0023 + last_write_checksum: sha1:bac10cc4f203fd2dbc471a5c36fc16778f789aff + pristine_git_object: ccad9f4075802a1e629ce097ab416c85578c992b src/mistralai/client/models/tempotraceattributeintvalue.py: id: c4659ad7a2a5 last_write_checksum: sha1:471273678346f841dd718fce1899a6ae8ad7cd1d @@ -7638,8 +7646,8 @@ trackedFiles: pristine_git_object: 5b09dafad3cde3da2fd96b8dbece0386641f8a44 src/mistralai/client/models/usageinfo_dollar_defs.py: id: d543506af998 - last_write_checksum: sha1:dafbaf51ce3997baf25141bdef8b34a92b48ed31 - pristine_git_object: 20686bff2118fc96adf50a0b775d719d68310041 + last_write_checksum: sha1:dca4d64bbb3b067c7089bd10793de09c74dff32e + pristine_git_object: 0c1dd85b7bbb33068b9b10bed888d30ab3a2e282 src/mistralai/client/models/useridentity.py: id: 8b1effdfe1ba last_write_checksum: sha1:7ad7c16feb0b452585a4a30f8f7a7b56deafaf8c @@ -11180,7 +11188,7 @@ examples: application/json: {"name": "", "definition": {"content": ""}} responses: "200": - application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1} + application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1, "versionCreatedAt": "1s"} default: application/json: {"code": "not_found"} prompts_get: @@ -11192,7 +11200,7 @@ examples: version: 1 responses: "200": - application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1} + application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1, "versionCreatedAt": "1s"} default: application/json: {"code": "not_found"} prompts_delete: @@ -11214,7 +11222,7 @@ examples: application/json: {} responses: "200": - application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1} + application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1, "versionCreatedAt": "1s"} default: application/json: {"code": "not_found"} prompts_list_versions: @@ -11247,7 +11255,7 @@ examples: version: 600480 responses: "200": - application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1} + application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1, "versionCreatedAt": "1s"} default: application/json: {"code": "not_found"} prompts_update_version_metadata: @@ -11260,7 +11268,7 @@ examples: application/json: {} responses: "200": - application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1} + application/json: {"version": 1, "createdAt": "1s", "updatedAt": "1s", "latestVersion": 1, "versionCreatedAt": "1s"} default: application/json: {"code": "not_found"} skills_list: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index d4912251b..e9d4a24e9 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.9.3 + version: 2.9.4 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e24f644e1..9af865e27 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,11 +16,11 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:d0ce984b4c030ab9d532545d8935f6e4e12ab160e77dc5ca0b8d5924f7d78480 - sourceBlobDigest: sha256:72d88796291d78aaa55ee4eb609cfc5f62065ee3795180d4d57404c72aa19657 + sourceRevisionDigest: sha256:dd3cb1cdab5ca2e43dc2282376a0ada61a026ec9b822fe85fef08f3ea306f5c2 + sourceBlobDigest: sha256:0f41cfcdccaa12c4bd8175746df7083d932f69fa61823d02a2cefa54e2fec86b tags: - latest - - speakeasy-mistralai-sdk-31716300632-1 + - speakeasy-mistralai-sdk-32468563619-1 targets: mistralai-azure-sdk: source: mistral-azure-source @@ -39,10 +39,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:d0ce984b4c030ab9d532545d8935f6e4e12ab160e77dc5ca0b8d5924f7d78480 - sourceBlobDigest: sha256:72d88796291d78aaa55ee4eb609cfc5f62065ee3795180d4d57404c72aa19657 + sourceRevisionDigest: sha256:dd3cb1cdab5ca2e43dc2282376a0ada61a026ec9b822fe85fef08f3ea306f5c2 + sourceBlobDigest: sha256:0f41cfcdccaa12c4bd8175746df7083d932f69fa61823d02a2cefa54e2fec86b codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:724b545fa704fae1cf00637e8707f37543ddfa00bf96ed4a2d81198eca9715f4 + codeSamplesRevisionDigest: sha256:76e21a69a84e68ff4cb80e73a409c43211d3626a82e6b57b3e703ad06392f6d1 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.763.6 diff --git a/RELEASES.md b/RELEASES.md index 9e57f7d48..c3f7c369e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -838,4 +838,14 @@ Based on: ### Generated - [python v2.9.3] . ### Releases -- [PyPI v2.9.3] https://pypi.org/project/mistralai/2.9.3 - . \ No newline at end of file +- [PyPI v2.9.3] https://pypi.org/project/mistralai/2.9.3 - . + +## 2026-08-21 09:35:18 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.9.4] . +### Releases +- [PyPI v2.9.4] https://pypi.org/project/mistralai/2.9.4 - . \ No newline at end of file diff --git a/docs/models/createrealtimesessionrequest.md b/docs/models/createrealtimesessionrequest.md index fecfa68a4..a56e643c2 100644 --- a/docs/models/createrealtimesessionrequest.md +++ b/docs/models/createrealtimesessionrequest.md @@ -5,7 +5,8 @@ Payload used to create realtime client sessions. ## Fields -| Field | Type | Required | Description | -| --------------------- | --------------------- | --------------------- | --------------------- | -| `purpose` | *Literal["realtime"]* | :heavy_check_mark: | N/A | -| `model` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `purpose` | *Literal["realtime"]* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `ttl_seconds` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/messagetokens.md b/docs/models/messagetokens.md index 427e09b52..79b126d9a 100644 --- a/docs/models/messagetokens.md +++ b/docs/models/messagetokens.md @@ -9,5 +9,6 @@ Information on a single message included in a tokenized prompt as part of an Ins | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | | `role` | [models.Roles](../models/roles.md) | :heavy_check_mark: | N/A | | `total_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `settings_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | `truncated` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `usage_count` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/prompt.md b/docs/models/prompt.md index 8e572c285..e9e374481 100644 --- a/docs/models/prompt.md +++ b/docs/models/prompt.md @@ -16,4 +16,6 @@ | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | RFC 3339 timestamp. | **Example 1:** 1s
**Example 2:** 1.000340012s | | `latest_version` | *Optional[int]* | :heavy_minus_sign: | Latest version number. | 1 | | `title` | *Optional[str]* | :heavy_minus_sign: | Display title. | | -| `description` | *Optional[str]* | :heavy_minus_sign: | Display description. | | \ No newline at end of file +| `description` | *Optional[str]* | :heavy_minus_sign: | Display description. | | +| `created_by` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `version_created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | RFC 3339 timestamp. | **Example 1:** 1s
**Example 2:** 1.000340012s | \ No newline at end of file diff --git a/docs/models/registerdeploymentrequestvespaindex.md b/docs/models/registerdeploymentrequestvespaindex.md index 59c8181f7..e10a763af 100644 --- a/docs/models/registerdeploymentrequestvespaindex.md +++ b/docs/models/registerdeploymentrequestvespaindex.md @@ -7,4 +7,5 @@ | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | | `name` | *str* | :heavy_check_mark: | N/A | | `fields` | List[[models.RegisterDeploymentRequestVespaField](../models/registerdeploymentrequestvespafield.md)] | :heavy_check_mark: | N/A | -| `sd` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `sd` | *str* | :heavy_check_mark: | N/A | +| `embedding_dimensions` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/tempotraceattributearrayelement.md b/docs/models/tempotraceattributearrayelement.md index a4b820809..734ca58d7 100644 --- a/docs/models/tempotraceattributearrayelement.md +++ b/docs/models/tempotraceattributearrayelement.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | -| `string_value` | *OptionalNullable[str]* | :heavy_minus_sign: | A string element in the array | -| `int_value` | *OptionalNullable[str]* | :heavy_minus_sign: | An integer element in the array | -| `bool_value` | *OptionalNullable[bool]* | :heavy_minus_sign: | A boolean element in the array | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `string_value` | *OptionalNullable[str]* | :heavy_minus_sign: | A string element in the array | +| `int_value` | *OptionalNullable[str]* | :heavy_minus_sign: | An integer element in the array | +| `double_value` | *OptionalNullable[float]* | :heavy_minus_sign: | A floating point element in the array | +| `bool_value` | *OptionalNullable[bool]* | :heavy_minus_sign: | A boolean element in the array | \ No newline at end of file diff --git a/docs/models/tempotraceattributedoublevalue.md b/docs/models/tempotraceattributedoublevalue.md new file mode 100644 index 000000000..bbb975126 --- /dev/null +++ b/docs/models/tempotraceattributedoublevalue.md @@ -0,0 +1,8 @@ +# TempoTraceAttributeDoubleValue + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `double_value` | *float* | :heavy_check_mark: | The floating point value of the attribute | \ No newline at end of file diff --git a/docs/models/tempotraceattributevalue.md b/docs/models/tempotraceattributevalue.md index 3b0a18692..4dd8b5643 100644 --- a/docs/models/tempotraceattributevalue.md +++ b/docs/models/tempotraceattributevalue.md @@ -17,6 +17,12 @@ value: models.TempoTraceAttributeStringValue = /* values here */ value: models.TempoTraceAttributeIntValue = /* values here */ ``` +### `models.TempoTraceAttributeDoubleValue` + +```python +value: models.TempoTraceAttributeDoubleValue = /* values here */ +``` + ### `models.TempoTraceAttributeBoolValue` ```python diff --git a/docs/models/usageinfodollardefs.md b/docs/models/usageinfodollardefs.md index 8e405fc0b..2d8b2ed4b 100644 --- a/docs/models/usageinfodollardefs.md +++ b/docs/models/usageinfodollardefs.md @@ -12,5 +12,6 @@ | `request_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | `prompt_tokens_details` | [OptionalNullable[models.PromptTokensDetails]](../models/prompttokensdetails.md) | :heavy_minus_sign: | N/A | | `completion_tokens_details` | [OptionalNullable[models.CompletionTokensDetails]](../models/completiontokensdetails.md) | :heavy_minus_sign: | N/A | +| `service_tier` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `prompt_token_details` | [OptionalNullable[models.PromptTokensDetails]](../models/prompttokensdetails.md) | :heavy_minus_sign: | N/A | | `num_cached_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index e57779051..1469c92c2 100644 --- a/src/mistralai/client/_version.py +++ b/src/mistralai/client/_version.py @@ -4,10 +4,10 @@ import importlib.metadata __title__: str = "mistralai" -__version__: str = "2.9.3" +__version__: str = "2.9.4" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.884.13" -__user_agent__: str = "speakeasy-sdk/python 2.9.3 2.884.13 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 2.9.4 2.884.13 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index b24fd3fa3..2836ced9c 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -2273,6 +2273,10 @@ TempoTraceAttributeBoolValue, TempoTraceAttributeBoolValueTypedDict, ) + from .tempotraceattributedoublevalue import ( + TempoTraceAttributeDoubleValue, + TempoTraceAttributeDoubleValueTypedDict, + ) from .tempotraceattributeintvalue import ( TempoTraceAttributeIntValue, TempoTraceAttributeIntValueTypedDict, @@ -4404,6 +4408,8 @@ "TempoTraceAttributeArrayValueTypedDict", "TempoTraceAttributeBoolValue", "TempoTraceAttributeBoolValueTypedDict", + "TempoTraceAttributeDoubleValue", + "TempoTraceAttributeDoubleValueTypedDict", "TempoTraceAttributeIntValue", "TempoTraceAttributeIntValueTypedDict", "TempoTraceAttributeStringValue", @@ -6383,6 +6389,8 @@ "TempoTraceAttributeArrayValueTypedDict": ".tempotraceattributearrayvalue", "TempoTraceAttributeBoolValue": ".tempotraceattributeboolvalue", "TempoTraceAttributeBoolValueTypedDict": ".tempotraceattributeboolvalue", + "TempoTraceAttributeDoubleValue": ".tempotraceattributedoublevalue", + "TempoTraceAttributeDoubleValueTypedDict": ".tempotraceattributedoublevalue", "TempoTraceAttributeIntValue": ".tempotraceattributeintvalue", "TempoTraceAttributeIntValueTypedDict": ".tempotraceattributeintvalue", "TempoTraceAttributeStringValue": ".tempotraceattributestringvalue", diff --git a/src/mistralai/client/models/createrealtimesessionrequest.py b/src/mistralai/client/models/createrealtimesessionrequest.py index fc5c1f8cf..10b034121 100644 --- a/src/mistralai/client/models/createrealtimesessionrequest.py +++ b/src/mistralai/client/models/createrealtimesessionrequest.py @@ -2,12 +2,19 @@ # @generated-id: 285bf15f71b1 from __future__ import annotations -from mistralai.client.types import BaseModel +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) from mistralai.client.utils import validate_const import pydantic +from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class CreateRealtimeSessionRequestTypedDict(TypedDict): @@ -15,6 +22,7 @@ class CreateRealtimeSessionRequestTypedDict(TypedDict): model: str purpose: Literal["realtime"] + ttl_seconds: NotRequired[Nullable[int]] class CreateRealtimeSessionRequest(BaseModel): @@ -27,6 +35,33 @@ class CreateRealtimeSessionRequest(BaseModel): pydantic.Field(alias="purpose"), ] = "realtime" + ttl_seconds: OptionalNullable[int] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["ttl_seconds"]) + nullable_fields = set(["ttl_seconds"]) + 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)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m + try: CreateRealtimeSessionRequest.model_rebuild() diff --git a/src/mistralai/client/models/messagetokens.py b/src/mistralai/client/models/messagetokens.py index f3e292bd7..a3864640a 100644 --- a/src/mistralai/client/models/messagetokens.py +++ b/src/mistralai/client/models/messagetokens.py @@ -20,6 +20,7 @@ class MessageTokensTypedDict(TypedDict): role: Roles total_tokens: NotRequired[Nullable[int]] + settings_tokens: NotRequired[Nullable[int]] truncated: NotRequired[bool] usage_count: NotRequired[int] @@ -31,14 +32,18 @@ class MessageTokens(BaseModel): total_tokens: OptionalNullable[int] = UNSET + settings_tokens: OptionalNullable[int] = UNSET + truncated: Optional[bool] = False usage_count: Optional[int] = 1 @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["total_tokens", "truncated", "usage_count"]) - nullable_fields = set(["total_tokens"]) + optional_fields = set( + ["total_tokens", "settings_tokens", "truncated", "usage_count"] + ) + nullable_fields = set(["total_tokens", "settings_tokens"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/prompt.py b/src/mistralai/client/models/prompt.py index bd12a8625..3679093e2 100644 --- a/src/mistralai/client/models/prompt.py +++ b/src/mistralai/client/models/prompt.py @@ -34,6 +34,9 @@ class PromptTypedDict(TypedDict): r"""Display title.""" description: NotRequired[str] r"""Display description.""" + created_by: NotRequired[str] + version_created_at: NotRequired[datetime] + r"""RFC 3339 timestamp.""" class Prompt(BaseModel): @@ -74,6 +77,13 @@ class Prompt(BaseModel): description: Optional[str] = None r"""Display description.""" + created_by: Annotated[Optional[str], pydantic.Field(alias="createdBy")] = None + + version_created_at: Annotated[ + Optional[datetime], pydantic.Field(alias="versionCreatedAt") + ] = None + r"""RFC 3339 timestamp.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -90,6 +100,8 @@ def serialize_model(self, handler): "latestVersion", "title", "description", + "createdBy", + "versionCreatedAt", ] ) serialized = handler(self) diff --git a/src/mistralai/client/models/registerdeploymentrequestvespaindex.py b/src/mistralai/client/models/registerdeploymentrequestvespaindex.py index 6478919dd..b8ea5946a 100644 --- a/src/mistralai/client/models/registerdeploymentrequestvespaindex.py +++ b/src/mistralai/client/models/registerdeploymentrequestvespaindex.py @@ -6,15 +6,23 @@ RegisterDeploymentRequestVespaField, RegisterDeploymentRequestVespaFieldTypedDict, ) -from mistralai.client.types import BaseModel +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer from typing import List -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict class RegisterDeploymentRequestVespaIndexTypedDict(TypedDict): name: str fields: List[RegisterDeploymentRequestVespaFieldTypedDict] sd: str + embedding_dimensions: NotRequired[Nullable[int]] class RegisterDeploymentRequestVespaIndex(BaseModel): @@ -23,3 +31,30 @@ class RegisterDeploymentRequestVespaIndex(BaseModel): fields: List[RegisterDeploymentRequestVespaField] sd: str + + embedding_dimensions: OptionalNullable[int] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["embedding_dimensions"]) + nullable_fields = set(["embedding_dimensions"]) + 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)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) + + if val != UNSET_SENTINEL: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val + + return m diff --git a/src/mistralai/client/models/tempotraceattribute.py b/src/mistralai/client/models/tempotraceattribute.py index dea530ea8..bc2da3e0e 100644 --- a/src/mistralai/client/models/tempotraceattribute.py +++ b/src/mistralai/client/models/tempotraceattribute.py @@ -10,6 +10,10 @@ TempoTraceAttributeBoolValue, TempoTraceAttributeBoolValueTypedDict, ) +from .tempotraceattributedoublevalue import ( + TempoTraceAttributeDoubleValue, + TempoTraceAttributeDoubleValueTypedDict, +) from .tempotraceattributeintvalue import ( TempoTraceAttributeIntValue, TempoTraceAttributeIntValueTypedDict, @@ -28,6 +32,7 @@ Union[ TempoTraceAttributeStringValueTypedDict, TempoTraceAttributeIntValueTypedDict, + TempoTraceAttributeDoubleValueTypedDict, TempoTraceAttributeBoolValueTypedDict, TempoTraceAttributeArrayValueTypedDict, ], @@ -40,6 +45,7 @@ Union[ TempoTraceAttributeStringValue, TempoTraceAttributeIntValue, + TempoTraceAttributeDoubleValue, TempoTraceAttributeBoolValue, TempoTraceAttributeArrayValue, ], diff --git a/src/mistralai/client/models/tempotraceattributearrayelement.py b/src/mistralai/client/models/tempotraceattributearrayelement.py index 6fa0ec60f..f506b40ee 100644 --- a/src/mistralai/client/models/tempotraceattributearrayelement.py +++ b/src/mistralai/client/models/tempotraceattributearrayelement.py @@ -19,6 +19,8 @@ class TempoTraceAttributeArrayElementTypedDict(TypedDict): r"""A string element in the array""" int_value: NotRequired[Nullable[str]] r"""An integer element in the array""" + double_value: NotRequired[Nullable[float]] + r"""A floating point element in the array""" bool_value: NotRequired[Nullable[bool]] r"""A boolean element in the array""" @@ -34,6 +36,11 @@ class TempoTraceAttributeArrayElement(BaseModel): ) r"""An integer element in the array""" + double_value: Annotated[ + OptionalNullable[float], pydantic.Field(alias="doubleValue") + ] = UNSET + r"""A floating point element in the array""" + bool_value: Annotated[OptionalNullable[bool], pydantic.Field(alias="boolValue")] = ( UNSET ) @@ -41,8 +48,8 @@ class TempoTraceAttributeArrayElement(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["stringValue", "intValue", "boolValue"]) - nullable_fields = set(["stringValue", "intValue", "boolValue"]) + optional_fields = set(["stringValue", "intValue", "doubleValue", "boolValue"]) + nullable_fields = set(["stringValue", "intValue", "doubleValue", "boolValue"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/tempotraceattributedoublevalue.py b/src/mistralai/client/models/tempotraceattributedoublevalue.py new file mode 100644 index 000000000..ccad9f407 --- /dev/null +++ b/src/mistralai/client/models/tempotraceattributedoublevalue.py @@ -0,0 +1,23 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 30d063ab0023 + +from __future__ import annotations +from mistralai.client.types import BaseModel +import pydantic +from typing_extensions import Annotated, TypedDict + + +class TempoTraceAttributeDoubleValueTypedDict(TypedDict): + double_value: float + r"""The floating point value of the attribute""" + + +class TempoTraceAttributeDoubleValue(BaseModel): + double_value: Annotated[float, pydantic.Field(alias="doubleValue")] + r"""The floating point value of the attribute""" + + +try: + TempoTraceAttributeDoubleValue.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/usageinfo_dollar_defs.py b/src/mistralai/client/models/usageinfo_dollar_defs.py index 20686bff2..0c1dd85b7 100644 --- a/src/mistralai/client/models/usageinfo_dollar_defs.py +++ b/src/mistralai/client/models/usageinfo_dollar_defs.py @@ -27,6 +27,7 @@ class UsageInfoDollarDefsTypedDict(TypedDict): request_count: NotRequired[Nullable[int]] prompt_tokens_details: NotRequired[Nullable[PromptTokensDetailsTypedDict]] completion_tokens_details: NotRequired[Nullable[CompletionTokensDetailsTypedDict]] + service_tier: NotRequired[Nullable[str]] prompt_token_details: NotRequired[Nullable[PromptTokensDetailsTypedDict]] num_cached_tokens: NotRequired[Nullable[int]] @@ -46,6 +47,8 @@ class UsageInfoDollarDefs(BaseModel): completion_tokens_details: OptionalNullable[CompletionTokensDetails] = UNSET + service_tier: OptionalNullable[str] = UNSET + prompt_token_details: OptionalNullable[PromptTokensDetails] = UNSET num_cached_tokens: OptionalNullable[int] = UNSET @@ -61,6 +64,7 @@ def serialize_model(self, handler): "request_count", "prompt_tokens_details", "completion_tokens_details", + "service_tier", "prompt_token_details", "num_cached_tokens", ] @@ -72,6 +76,7 @@ def serialize_model(self, handler): "request_count", "prompt_tokens_details", "completion_tokens_details", + "service_tier", "prompt_token_details", "num_cached_tokens", ] From 7bae29a9f25629f0cdc9154307fbb5ad3dea09cd Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 21 Aug 2026 09:36:23 +0000 Subject: [PATCH 2/2] chore: align package version files to version 2.9.4 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ee70921be..3b0decda5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "2.9.3" +version = "2.9.4" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/uv.lock b/uv.lock index 24778a0dc..7b2b6c1f4 100644 --- a/uv.lock +++ b/uv.lock @@ -1047,7 +1047,7 @@ wheels = [ [[package]] name = "mistralai" -version = "2.9.3" +version = "2.9.4" source = { editable = "." } dependencies = [ { name = "eval-type-backport" },