From 1efc8fee8dbe6772568e388a6f49f6b20c81007f Mon Sep 17 00:00:00 2001 From: Buildkite CI Date: Fri, 9 Oct 2026 08:31:24 +0000 Subject: [PATCH 1/2] chore: sync generated SDK from upstream @ f8375ca0 Generated upstream and copied here. Do not edit in this repository; changes are overwritten by the next sync. --- .speakeasy/connector-id-or-name-overlay.yaml | 11 + .speakeasy/gen.lock | 513 +++++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- MIGRATION.md | 15 - README-PYPI.md | 11 +- README.md | 11 +- RELEASES.md | 89 ++ docs/models/agentscompletionrequest.md | 7 + docs/models/agentscompletionstreamrequest.md | 7 + docs/models/attributehashsampling.md | 10 + docs/models/chatcompletionchoice.md | 14 +- docs/models/chatcompletionrequest.md | 7 + .../chatcompletionresponsechoicelogprobs.md | 8 + .../chatcompletionresponsetokenlogprobs.md | 11 + ...chatcompletionresponsetokenlogprobstopk.md | 12 + docs/models/chatcompletionstreamrequest.md | 7 + docs/models/completionresponsestreamchoice.md | 4 +- docs/models/createpipelineconfigrequest.md | 13 - docs/models/createpipelinerequest.md | 2 +- docs/models/createserviceaccountrequest.md | 12 +- ...ineconfigspipelineconfigiddeleterequest.md | 8 - ...definition.md => detectiondefinitionv1.md} | 2 +- ...uest.md => evaluationbooleanresultspec.md} | 4 +- .../models/evaluationcategoricalresultspec.md | 9 + docs/models/evaluationnumericresultspec.md | 10 + docs/models/evaluationresultspec.md | 23 + ...ortdefinition.md => exportdefinitionv1.md} | 2 +- ...nfig.md => feedresultgetpipelineresult.md} | 7 +- ...gidputrequest.md => getpipelineresults.md} | 5 +- docs/models/judgedefinition.md | 9 - docs/models/judgedefinitionv1.md | 18 + ...1observabilitypipelineconfigsgetrequest.md | 12 - docs/models/llmjudgereference.md | 12 + ...efinition.md => moderationdefinitionv1.md} | 2 +- docs/models/pipelineconfig.md | 30 +- docs/models/pipelineconfigdefinition.md | 16 +- docs/models/pipelineconfigsampling.md | 17 + docs/models/pipelineconfigsresponse.md | 8 - docs/models/pipelinekind.md | 10 +- docs/models/pipelineresult.md | 15 + docs/models/pipelineresultsrequest.md | 9 + docs/models/principal.md | 19 + docs/models/probabilisticsampling.md | 9 + ...abilitypipelineresultssearchpostrequest.md | 12 + docs/models/setserviceaccountrolesrequest.md | 6 +- docs/models/updatepipelineconfigrequest.md | 13 - docs/models/updatepipelinerequest.md | 2 +- docs/models/usersapiwhoamisecurity.md | 9 + docs/models/voicecreaterequest.md | 2 +- docs/models/whoamiorganization.md | 14 + docs/models/whoamiresponse.md | 17 + docs/models/whoamiserviceaccountprincipal.md | 16 + docs/models/whoamiuserprincipal.md | 18 + docs/sdks/agents/README.md | 14 + docs/sdks/chat/README.md | 14 + docs/sdks/evaluations/README.md | 238 +--- docs/sdks/serviceaccounts/README.md | 28 +- docs/sdks/spans/README.md | 49 + docs/sdks/users/README.md | 43 + docs/sdks/voices/README.md | 4 +- pyproject.toml | 2 +- src/mistralai/client/_version.py | 4 +- src/mistralai/client/agents.py | 84 ++ src/mistralai/client/chat.py | 84 ++ src/mistralai/client/evaluations.py | 1122 +---------------- src/mistralai/client/models/__init__.py | 279 ++-- .../client/models/agentscompletionrequest.py | 35 + .../models/agentscompletionstreamrequest.py | 35 + .../client/models/attributehashsampling.py | 34 + .../client/models/chatcompletionchoice.py | 34 +- .../client/models/chatcompletionrequest.py | 35 + .../chatcompletionresponsechoicelogprobs.py | 18 + .../chatcompletionresponsetokenlogprobs.py | 30 + ...chatcompletionresponsetokenlogprobstopk.py | 71 ++ .../models/chatcompletionstreamrequest.py | 35 + .../models/completionresponsestreamchoice.py | 36 +- .../client/models/createpipelinerequest.py | 6 +- .../models/createserviceaccountrequest.py | 2 + ...ine_configs_pipeline_config_id_deleteop.py | 20 - ...definition.py => detectiondefinitionv1.py} | 4 +- .../models/evaluationbooleanresultspec.py | 26 + .../models/evaluationcategoricalresultspec.py | 31 + .../models/evaluationnumericresultspec.py | 32 + .../client/models/evaluationresultspec.py | 68 + ...ortdefinition.py => exportdefinitionv1.py} | 4 +- ...nfig.py => feedresultgetpipelineresult.py} | 21 +- ...peline_configs_pipeline_config_id_getop.py | 20 - .../client/models/getpipelineresults.py | 17 + .../client/models/judgedefinition.py | 34 - .../client/models/judgedefinitionv1.py | 84 ++ ...econfigrequest.py => llmjudgereference.py} | 42 +- ...efinition.py => moderationdefinitionv1.py} | 4 +- src/mistralai/client/models/pipelineconfig.py | 20 +- .../client/models/pipelineconfigdefinition.py | 26 +- .../client/models/pipelineconfigsampling.py | 48 + .../client/models/pipelineconfigsresponse.py | 17 - src/mistralai/client/models/pipelinekind.py | 8 +- src/mistralai/client/models/pipelineresult.py | 36 + ...igrequest.py => pipelineresultsrequest.py} | 37 +- .../client/models/probabilisticsampling.py | 31 + ...ability_pipeline_results_search_postop.py} | 48 +- .../models/setserviceaccountrolesrequest.py | 29 +- ...peline_configs_pipeline_config_id_putop.py | 30 - .../client/models/updatepipelinerequest.py | 6 +- .../client/models/users_api_whoamiop.py | 57 + .../client/models/voicecreaterequest.py | 22 +- .../client/models/whoamiorganization.py | 72 ++ src/mistralai/client/models/whoamiresponse.py | 122 ++ .../models/whoamiserviceaccountprincipal.py | 87 ++ .../client/models/whoamiuserprincipal.py | 94 ++ src/mistralai/client/service_accounts.py | 16 +- src/mistralai/client/spans.py | 246 ++++ src/mistralai/client/users.py | 172 +++ src/mistralai/client/voices.py | 8 +- uv.lock | 2 +- 116 files changed, 3031 insertions(+), 2089 deletions(-) create mode 100644 .speakeasy/connector-id-or-name-overlay.yaml create mode 100644 docs/models/attributehashsampling.md create mode 100644 docs/models/chatcompletionresponsechoicelogprobs.md create mode 100644 docs/models/chatcompletionresponsetokenlogprobs.md create mode 100644 docs/models/chatcompletionresponsetokenlogprobstopk.md delete mode 100644 docs/models/createpipelineconfigrequest.md delete mode 100644 docs/models/deletepipelineconfigv1observabilitypipelineconfigspipelineconfigiddeleterequest.md rename docs/models/{detectiondefinition.md => detectiondefinitionv1.md} (97%) rename docs/models/{getpipelineconfigv1observabilitypipelineconfigspipelineconfigidgetrequest.md => evaluationbooleanresultspec.md} (62%) create mode 100644 docs/models/evaluationcategoricalresultspec.md create mode 100644 docs/models/evaluationnumericresultspec.md create mode 100644 docs/models/evaluationresultspec.md rename docs/models/{exportdefinition.md => exportdefinitionv1.md} (97%) rename docs/models/{paginatedresultpipelineconfig.md => feedresultgetpipelineresult.md} (73%) rename docs/models/{updatepipelineconfigv1observabilitypipelineconfigspipelineconfigidputrequest.md => getpipelineresults.md} (57%) delete mode 100644 docs/models/judgedefinition.md create mode 100644 docs/models/judgedefinitionv1.md delete mode 100644 docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md create mode 100644 docs/models/llmjudgereference.md rename docs/models/{moderationdefinition.md => moderationdefinitionv1.md} (93%) create mode 100644 docs/models/pipelineconfigsampling.md delete mode 100644 docs/models/pipelineconfigsresponse.md create mode 100644 docs/models/pipelineresult.md create mode 100644 docs/models/pipelineresultsrequest.md create mode 100644 docs/models/principal.md create mode 100644 docs/models/probabilisticsampling.md create mode 100644 docs/models/searchpipelineresultsv1observabilitypipelineresultssearchpostrequest.md delete mode 100644 docs/models/updatepipelineconfigrequest.md create mode 100644 docs/models/usersapiwhoamisecurity.md create mode 100644 docs/models/whoamiorganization.md create mode 100644 docs/models/whoamiresponse.md create mode 100644 docs/models/whoamiserviceaccountprincipal.md create mode 100644 docs/models/whoamiuserprincipal.md create mode 100644 src/mistralai/client/models/attributehashsampling.py create mode 100644 src/mistralai/client/models/chatcompletionresponsechoicelogprobs.py create mode 100644 src/mistralai/client/models/chatcompletionresponsetokenlogprobs.py create mode 100644 src/mistralai/client/models/chatcompletionresponsetokenlogprobstopk.py delete mode 100644 src/mistralai/client/models/delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop.py rename src/mistralai/client/models/{detectiondefinition.py => detectiondefinitionv1.py} (83%) create mode 100644 src/mistralai/client/models/evaluationbooleanresultspec.py create mode 100644 src/mistralai/client/models/evaluationcategoricalresultspec.py create mode 100644 src/mistralai/client/models/evaluationnumericresultspec.py create mode 100644 src/mistralai/client/models/evaluationresultspec.py rename src/mistralai/client/models/{exportdefinition.py => exportdefinitionv1.py} (80%) rename src/mistralai/client/models/{paginatedresultpipelineconfig.py => feedresultgetpipelineresult.py} (69%) delete mode 100644 src/mistralai/client/models/get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop.py create mode 100644 src/mistralai/client/models/getpipelineresults.py delete mode 100644 src/mistralai/client/models/judgedefinition.py create mode 100644 src/mistralai/client/models/judgedefinitionv1.py rename src/mistralai/client/models/{createpipelineconfigrequest.py => llmjudgereference.py} (53%) rename src/mistralai/client/models/{moderationdefinition.py => moderationdefinitionv1.py} (91%) create mode 100644 src/mistralai/client/models/pipelineconfigsampling.py delete mode 100644 src/mistralai/client/models/pipelineconfigsresponse.py create mode 100644 src/mistralai/client/models/pipelineresult.py rename src/mistralai/client/models/{updatepipelineconfigrequest.py => pipelineresultsrequest.py} (55%) create mode 100644 src/mistralai/client/models/probabilisticsampling.py rename src/mistralai/client/models/{list_pipeline_configs_v1_observability_pipeline_configs_getop.py => search_pipeline_results_v1_observability_pipeline_results_search_postop.py} (61%) delete mode 100644 src/mistralai/client/models/update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop.py create mode 100644 src/mistralai/client/models/users_api_whoamiop.py create mode 100644 src/mistralai/client/models/whoamiorganization.py create mode 100644 src/mistralai/client/models/whoamiresponse.py create mode 100644 src/mistralai/client/models/whoamiserviceaccountprincipal.py create mode 100644 src/mistralai/client/models/whoamiuserprincipal.py diff --git a/.speakeasy/connector-id-or-name-overlay.yaml b/.speakeasy/connector-id-or-name-overlay.yaml new file mode 100644 index 000000000..21d4b11c0 --- /dev/null +++ b/.speakeasy/connector-id-or-name-overlay.yaml @@ -0,0 +1,11 @@ +overlay: 1.0.0 +info: + title: Keep connector ID-or-name parameters as strings + version: 1.0.0 +actions: + - target: $.paths..[?(@.name == 'connector_id_or_name')].schema.anyOf + description: Connector names are not UUIDs, so this parameter cannot be UUID-only. + remove: true + - target: $.paths..[?(@.name == 'connector_id_or_name')].schema + update: + type: string diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 13a3d7204..b38339247 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: a4dd8c134c40d6012ac7b618f8e1948b + docChecksum: b3ea5390ecdc3de9617e85391dbf7d8d docVersion: 1.0.0 speakeasyVersion: 1.796.4 generationVersion: 2.935.1 - releaseVersion: 3.1.0 - configChecksum: 2c1bf99b54c81ba37bea26fff0249de0 + releaseVersion: 3.2.0 + configChecksum: 3facf9e36c795cfc1c6d4ddb37a2f547 repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: c9a78e21-1558-46ac-ba07-da91bc85e31f - pristine_commit_hash: 19b05c4198cdfac2d608295481cf91fc3650d401 - pristine_tree_hash: a872f68942df31b6c76d96eb7bfebeb08f8ad87b + generation_id: 833bfb9c-af64-4a45-83d8-bd662291088d + pristine_commit_hash: 1f55df67569e86ef88dfbe0496a1cbfcad422212 + pristine_tree_hash: 32673870f1e59534870fb501d998e5d528d235c8 features: python: acceptHeaders: 3.0.0 @@ -233,8 +233,8 @@ trackedFiles: pristine_git_object: 7548286af5d1db51fbfd29c893eb8afdc3c97c4d docs/models/agentscompletionrequest.md: id: 906b82c214dc - last_write_checksum: sha1:b0ac3cce9a7c05b5072f84bb889e74b9320d660f - pristine_git_object: e011ee0a6e04124f628612e78a9ec38c733104ab + last_write_checksum: sha1:13c391a3254d105e3828d39395ccc99e1eecf02d + pristine_git_object: 6079041110cdcc78f579c1f32ef67ea0fef46ebe docs/models/agentscompletionrequestmessage.md: id: 5337f0644b40 last_write_checksum: sha1:ecf7b7cdf0d24a5e97b520366cf816b8731734bb @@ -253,8 +253,8 @@ trackedFiles: pristine_git_object: 63b9dca9fbb8d829f93d8327a77fbc385a846c76 docs/models/agentscompletionstreamrequest.md: id: 21d09756447b - last_write_checksum: sha1:87a7fca2728b6fc6eb0aac4eb7d0776fb5562c79 - pristine_git_object: a67d25e364f3d7a696bc9004d452fe4a287f2367 + last_write_checksum: sha1:5641f4d94fd7bf44e46f71a747d6aca7b50550ec + pristine_git_object: 351d83873978251e983655258b553832eeded121 docs/models/agentscompletionstreamrequestmessage.md: id: b309ade92081 last_write_checksum: sha1:98744c9646969250242cbbfbdf428dbd7030e4bb @@ -355,6 +355,10 @@ trackedFiles: id: 9f1795bbe642 last_write_checksum: sha1:1ce4066623a8d62d969e5ed3a088d73a9ba26643 pristine_git_object: 047b7cf95f4db203bf2c501680b73ca0562a122d + docs/models/attributehashsampling.md: + id: d631dca0bd41 + last_write_checksum: sha1:d74ea36ac647c31bd9d1064abf6c24bb9a8618dd + pristine_git_object: ecb58c7065ccb47fc1b4613dab2a5163398d3893 docs/models/attributes.md: id: ececf40457de last_write_checksum: sha1:9f23adf16a682cc43346d157f7e971c596b416ef @@ -513,16 +517,16 @@ trackedFiles: pristine_git_object: ba9c95eab2c1e4f080e39e8804a5de222e052ee6 docs/models/chatcompletionchoice.md: id: 0d15c59ab501 - last_write_checksum: sha1:f3c9fa3cc092674a36bf28552b6900d62871b789 - pristine_git_object: 79d24a335c7ca1acb1469213d60ced2ec4987461 + last_write_checksum: sha1:ad872d121000209fca2c236dada4ff942c638bb4 + pristine_git_object: ad33d4d2fa90b8234671ed980aedf4848d6fea4f docs/models/chatcompletionchoicefinishreason.md: id: 225764da91d3 last_write_checksum: sha1:160ff1297bfbaa9158e575b8bd7ab573533c8f9f pristine_git_object: c289272622b137541843bb4ba9654d0e1405ffec docs/models/chatcompletionrequest.md: id: adffe90369d0 - last_write_checksum: sha1:0dddf71ba1e0546e1dfd66593ebcdb348abb7479 - pristine_git_object: f2635c41c7223cf91ef92aac6f889a057e89b6cd + last_write_checksum: sha1:8c907c65d99952ba9fcb1b8624068c5e6a014a15 + pristine_git_object: dff270737f9c80b6d979c466ce1b3e4a6cae201f docs/models/chatcompletionrequestmessage.md: id: 3f5e170d418c last_write_checksum: sha1:7921c5a508a9f88adc01caab34e26182b8035607 @@ -543,10 +547,22 @@ trackedFiles: id: 7c53b24681b9 last_write_checksum: sha1:a56581c0846638cfe6df26d3045fb4f874ccd931 pristine_git_object: a0465ffbfc5558628953e03fbc53b80bbdc8649b + docs/models/chatcompletionresponsechoicelogprobs.md: + id: dc3e83fa645a + last_write_checksum: sha1:a78d8b0881106c4c83f44ea854c65707ac10267d + pristine_git_object: 5059edbd28cfdd50b1bceffaa7de93fc61078c4f + docs/models/chatcompletionresponsetokenlogprobs.md: + id: df8c5d05277e + last_write_checksum: sha1:913b3c8e252ec3210c9acd3873ee386582b3731f + pristine_git_object: 4efd44dcafc6375c4d0d25c1c8462adfb3e41065 + docs/models/chatcompletionresponsetokenlogprobstopk.md: + id: 53553dd720d7 + last_write_checksum: sha1:e4e5a380aae119bb40203369371873caa3ab42b3 + pristine_git_object: 7c7b26cd6c469a82bc16aa4b7a794cf3e506efc7 docs/models/chatcompletionstreamrequest.md: id: cf8f29558a68 - last_write_checksum: sha1:311682fab87baa123dcdab3cd32d0cc8a18256a6 - pristine_git_object: 49acc50011a19b108fe63dbd000889424e3fff28 + last_write_checksum: sha1:494fd61a493326ecc21dd083c85e375464f90868 + pristine_git_object: e966bc1b8516b1dc3b2d7e6a209ffdf8221f6937 docs/models/chatcompletionstreamrequestmessage.md: id: 053a98476cd2 last_write_checksum: sha1:8270692463fab1243d9de4bbef7162daa64e52c5 @@ -661,8 +677,8 @@ trackedFiles: pristine_git_object: 26bcdb1700c8e8ce52c93da302e7c05e97935091 docs/models/completionresponsestreamchoice.md: id: d56824d615a6 - last_write_checksum: sha1:0296a490df009dbfd04893fdebcc88dd6102a872 - pristine_git_object: 1532c25b8fc065d486f52d4610a7f757e5340875 + last_write_checksum: sha1:c4c83ae4fdec894a744f55ec080b27552f2e815b + pristine_git_object: a7f65dd9648512ed69c55fbc9bc80948d9e67121 docs/models/completionresponsestreamchoicefinishreason.md: id: 5f1fbfc90b8e last_write_checksum: sha1:892588ab61324c6328100e402f1b219959ff4097 @@ -1071,14 +1087,10 @@ trackedFiles: id: 252e49cfed8d last_write_checksum: sha1:5171dd689f068c55471b0db360bf7302279378bc pristine_git_object: 1913893746776759f2684528bff4ba4d4dbcc014 - docs/models/createpipelineconfigrequest.md: - id: df6cbc748145 - last_write_checksum: sha1:774e6f7514dc10f4c63467bc51da94cb51ce6ac0 - pristine_git_object: cf46da1a8bed6f3a329ba173b152f3f9bc4b1779 docs/models/createpipelinerequest.md: id: 664a84790fd9 - last_write_checksum: sha1:68e08369df3bef08e283418fd9b04d2121ebb61b - pristine_git_object: b1981c44c6bbb6b091ccadd21086ac7e7bd63f91 + last_write_checksum: sha1:cf49d1832cfd9e5b1e5bbd577e87b482323887a5 + pristine_git_object: b29a7015c409df4db8ad8707e59224754d5bec3d docs/models/createpromptrequest.md: id: a944c1299095 last_write_checksum: sha1:991592a4ffcbdaf0d6c67b2ce0b73383af81a9cd @@ -1101,8 +1113,8 @@ trackedFiles: pristine_git_object: a948c04d0a04cf03da244f6327b703e6358e394f docs/models/createserviceaccountrequest.md: id: 60e3fe6bce5e - last_write_checksum: sha1:43b55fb897491554d226bb0a6fe9df84251c7772 - pristine_git_object: 9380563f4291bd6b6d6f40720b7e7c711d7878a7 + last_write_checksum: sha1:7e907c3dc7e2869e51fa6c0c40a940d714c747ae + pristine_git_object: 780bcd2ed98f8e81f25ab6e79c2fa74619fa9188 docs/models/createskillrequest.md: id: 8696f3d3db5b last_write_checksum: sha1:37e35e3c9dfe4e2f364bb55936e39b6d8e6868dc @@ -1267,10 +1279,6 @@ trackedFiles: id: c838cee0f093 last_write_checksum: sha1:e5b6d18b4f8ab91630ae34a4f50f01e536e08d99 pristine_git_object: d9bc15fe393388f7d0c41abce97ead17e35e2ba4 - docs/models/deletepipelineconfigv1observabilitypipelineconfigspipelineconfigiddeleterequest.md: - id: aa34c6dec8b9 - last_write_checksum: sha1:365031583fa903b460ebff7010ead14d23e380d8 - pristine_git_object: 026bd85935d68bab788db531e25763e4e9262642 docs/models/deletepipelinev1observabilitypipelinespipelineiddeleterequest.md: id: 06769be84a14 last_write_checksum: sha1:0c3baaa2f91cc775dbebd02882760aab7d3cd830 @@ -1383,10 +1391,10 @@ trackedFiles: id: cad5b4a16cab last_write_checksum: sha1:bc75fc1ab4e40698bf0fed8412078d755f96b56c pristine_git_object: 8c857ee32f5f82649568050ba5cd2235f8d9ac51 - docs/models/detectiondefinition.md: - id: e4e320b174a0 - last_write_checksum: sha1:7d683feda1d7a3d75179bcfcaae8a35dffb78a1f - pristine_git_object: d7af2737b85ed7915c410a2d94de320984cb1447 + docs/models/detectiondefinitionv1.md: + id: f256851e81cc + last_write_checksum: sha1:d542ad39f409111eba94f497361028367ec7e736 + pristine_git_object: 503e7a0b37ff6de69623ea4e39cbdd43207744ff docs/models/detectionpattern.md: id: 62aa5918033d last_write_checksum: sha1:17cf41f78367b69594c6a38f5d345a9c4264f1a8 @@ -1487,6 +1495,22 @@ trackedFiles: id: 45565a5249de last_write_checksum: sha1:83342e07ea691cf96f2c21225fbd539d226c2ef3 pristine_git_object: 12882f33ea0172c618d78f5f37e9b85a4f2af9cb + docs/models/evaluationbooleanresultspec.md: + id: de54dcc5a4d3 + last_write_checksum: sha1:68b3e5ade8ed06e482a17aa16006454555c31099 + pristine_git_object: 8c75f5ba7136ac6e9407e07938851470e1841c7f + docs/models/evaluationcategoricalresultspec.md: + id: c498784c71ea + last_write_checksum: sha1:d0336035af098ff6b36847db0fb3eab34c2b6eb0 + pristine_git_object: 46d3b09671c4b80b977eaf549431bec02655d9e4 + docs/models/evaluationnumericresultspec.md: + id: 7907aa802212 + last_write_checksum: sha1:2a0ba0c69eecdc849ca05e01fb30852c4711ae9a + pristine_git_object: 66d7f950c09a0ae6dfadba081fb16ff3c1306904 + docs/models/evaluationresultspec.md: + id: ed90a14a4713 + last_write_checksum: sha1:d11ff8cd65b4f7a4ea56d491256d266b12d47ea7 + pristine_git_object: 36a859a262e66e60e056cb87d958d21a51338196 docs/models/evaluationrunfilterinput.md: id: a8af25c420c3 last_write_checksum: sha1:8c8c0e356717a0ddff17201103fb6497b0fff22e @@ -1587,10 +1611,10 @@ trackedFiles: id: 16660f92d7d1 last_write_checksum: sha1:52a39a0bd7f8813408d676792cc130695fb64326 pristine_git_object: 7ae8408f67e940ed62e5c1b2f37ea3bc77ce8e30 - docs/models/exportdefinition.md: - id: 310eb7ab1bea - last_write_checksum: sha1:67e3504e88c3cdea818edd4b0992920de52aac30 - pristine_git_object: 0061dc97421f808c6d730c57dbf5e1e5979bae44 + docs/models/exportdefinitionv1.md: + id: 53f634b83763 + last_write_checksum: sha1:fea38a1dc0dcb656edc658bc55a4bfa1fa38b8ef + pristine_git_object: 839d4df6c304edb543fd48b28a3673f91afc7b57 docs/models/expression.md: id: 84d49a7056b1 last_write_checksum: sha1:8f871b9f64754b138edaabbd8f64895376694881 @@ -1607,6 +1631,10 @@ trackedFiles: id: 4648efb5b17f last_write_checksum: sha1:ed8488b9d874115b6f2ec65b186dd637abfd4171 pristine_git_object: cf8b8153ba89128af22d6a37d42da7d84b402ef0 + docs/models/feedresultgetpipelineresult.md: + id: 4098e1478d5d + last_write_checksum: sha1:96e517b6bba49fcbdb31f661f1b17c3e5b86c677 + pristine_git_object: 161f5a259f22bcf0d83c3320c07941ce877f1d6a docs/models/feedresultgetspan.md: id: 6d10018d5e0f last_write_checksum: sha1:378b76143ad894eb50292898727fe9375b2f6ec5 @@ -1871,10 +1899,10 @@ trackedFiles: id: 6fea6ca5f2b7 last_write_checksum: sha1:b69d0978b744436db5ce3d0c5bcda3caeb92ed9b pristine_git_object: d4ce239c91078f9ad8355dca10f4a4ac3d9c85a9 - docs/models/getpipelineconfigv1observabilitypipelineconfigspipelineconfigidgetrequest.md: - id: 9987a63f928a - last_write_checksum: sha1:1aae5f440458dbd19254024155f55c250f5d8daa - pristine_git_object: b9fc1024c309cac319d746ce9d00a8cf0330f651 + docs/models/getpipelineresults.md: + id: bc20beac5e00 + last_write_checksum: sha1:da605334a2a64275acd7a4b9f601cab81bda60aa + pristine_git_object: ac4cbd8244125aefba7fe32917c5b633a025db6e docs/models/getpipelinev1observabilitypipelinespipelineidgetrequest.md: id: 38220b2af1c7 last_write_checksum: sha1:407a60ae866f48fd7f962eb2b32a2c128130521b @@ -2375,10 +2403,10 @@ trackedFiles: id: 41e358ee6a41 last_write_checksum: sha1:cc831164ee1feb176796ca2c8ac54356ec7ed646 pristine_git_object: 9ce4f011d6ab9f26b7bf3c720fa48ab0ec65dcf7 - docs/models/judgedefinition.md: - id: e21e5b09244b - last_write_checksum: sha1:bdc3237215e1380c0b179ce44a52ac5b38d6cb7c - pristine_git_object: 8aeb5fe48aab7036c825c226211f95b63efca6af + docs/models/judgedefinitionv1.md: + id: 139bb341a951 + last_write_checksum: sha1:03d23b8690d37bf9658965f2438d97c6663bcd56 + pristine_git_object: 93d74d4feeba98b77db00ee837efe4a8bb4cc6c6 docs/models/judgeoutput.md: id: 7a436a0118b9 last_write_checksum: sha1:fff6b2d6ce5f958a68bcc75ae19718fef7d5a49e @@ -2591,10 +2619,6 @@ trackedFiles: id: 40564e9f4990 last_write_checksum: sha1:549104cc1913e880eb80eca3a9ef9e05aa050b07 pristine_git_object: 8a6a6d3a6c3252e4cc11af5cbcf570a2358f3fe9 - docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md: - id: 355ccbf58e21 - last_write_checksum: sha1:288bdd47a8a28adae2574d68b710a7cebf0a5f32 - pristine_git_object: b99b831ec8a1b4f0669cdeb20e4c3a391d2e316d docs/models/listpipelinesv1observabilitypipelinesgetrequest.md: id: 11d54a25de23 last_write_checksum: sha1:86bfe6a7ee9e9e84ae6cff2744233bd314f64ab8 @@ -2683,6 +2707,10 @@ trackedFiles: id: fd657130fbe9 last_write_checksum: sha1:981bd42ff0de16724cc334291280fd9189c2df2c pristine_git_object: 0ea88aa13886b50674be4bb465fb271ec80640cd + docs/models/llmjudgereference.md: + id: ee397a8fb026 + last_write_checksum: sha1:6183603ed07a8c60a02ff00c5ca348a4b4c8f3a8 + pristine_git_object: d211bc6b1dff0813eaaaf4bda4943a70be5f2aef docs/models/loc.md: id: b071d5a509cc last_write_checksum: sha1:09a04749333ab50ae806c3ac6adcaa90d54df0f1 @@ -2907,10 +2935,10 @@ trackedFiles: id: e2eb639c646f last_write_checksum: sha1:7394ba5645f990163c4d777ebbfc71f24c5d3a74 pristine_git_object: b44e84a00d0c54f8df78650d45de0a409c901048 - docs/models/moderationdefinition.md: - id: 381911cd3aa8 - last_write_checksum: sha1:585fbac3daf0eb217d86c2fd8269bfeb0ff2cfb2 - pristine_git_object: 2ffb4a023fabddc610e32c7f9f2da30a20f0723a + docs/models/moderationdefinitionv1.md: + id: 660b7802490b + last_write_checksum: sha1:c5b02e18ca0e02a8c52e48d565af7dea8bd52280 + pristine_git_object: be5dcfce17cc25ac514abcf0f97fef100a4e6904 docs/models/moderationllmaction.md: id: 26373b4ad9cd last_write_checksum: sha1:d8398d9c6b0da5f6a9947342c2cfc2d04e599519 @@ -3243,10 +3271,6 @@ trackedFiles: id: b2c2a32a3b9f last_write_checksum: sha1:f9d1589299f685be51841600a471adc9ffeff308 pristine_git_object: 26d820be5a7de5efbb7b8988b13fce691f15f902 - docs/models/paginatedresultpipelineconfig.md: - id: 8366cb2d20dd - last_write_checksum: sha1:45453d13980ebfa2b68f93848e8e27f3cb39e6df - pristine_git_object: 1520c7cf04bcf46916d9490d40e584116a3a9c7a docs/models/paginatedresultproject.md: id: e604aed54666 last_write_checksum: sha1:242cef502eaedbacb121ac3462eee6ef38ec9a6b @@ -3289,16 +3313,20 @@ trackedFiles: pristine_git_object: 41a30f2236f0e6bba9d47962463a8488793f7ae6 docs/models/pipelineconfig.md: id: c332380c94c3 - last_write_checksum: sha1:94c60bcb5c4cacb2f16619c659acff0dafa3cb2d - pristine_git_object: f02bd185e1d83776c85dbd0c3bfc63f9ce5a4dfd + last_write_checksum: sha1:27ab0698227eb036ddad8977b32fee9251b90e8e + pristine_git_object: 8486327ddfdb0ff7b81f3b715230acf301b37277 docs/models/pipelineconfigdefinition.md: id: f51917c84914 - last_write_checksum: sha1:3963a203fc3d8e52b324eb60b198a00f64938032 - pristine_git_object: 629dd520ad6a6bf9aa38b364434449d6c8e19b3f + last_write_checksum: sha1:062e85e63a1f2563ec6c100a5aac8a4dfc6d6866 + pristine_git_object: ee4ccb4551e9896a371f6f735a3eedc046d9fa90 docs/models/pipelineconfigheader.md: id: ba30eac115c2 last_write_checksum: sha1:20c93dc9bb73ada0237db66aba76aded6ca50bb2 pristine_git_object: 6bdafbc4b8b582f7254c25c19a1411122399767d + docs/models/pipelineconfigsampling.md: + id: e4bad57efdbb + last_write_checksum: sha1:2d5bc9582a825ab03ed7cbbdb90a3dc61da0df85 + pristine_git_object: 6fe06a7dc702b1f6e1950b0bd45853db8245aaf9 docs/models/pipelineconfigscope.md: id: 675e56d46f46 last_write_checksum: sha1:200e94d63324deb8d8563650436ec4da2cd00d85 @@ -3307,14 +3335,18 @@ trackedFiles: id: 58e73f256fd1 last_write_checksum: sha1:03a14e72ead8952aed3d73e6e4e88dc0c28dba3f pristine_git_object: 29b85c51edf6a482be4fdbec7e4f517ce6aa1f59 - docs/models/pipelineconfigsresponse.md: - id: 37505d9a11f3 - last_write_checksum: sha1:39ec10ca884676a9a8d4999773e556a7919f95d0 - pristine_git_object: 5fec4252cea6ad64b4168d8283e8fb879af1565e docs/models/pipelinekind.md: id: 6ff77216eff6 - last_write_checksum: sha1:bdd0599996d501a066e3e40e577189ccf04ded0b - pristine_git_object: d1039b084421b2943648b79d72a3be4df30fcdfd + last_write_checksum: sha1:e63edcf9dfe2a55192bf4378a293a6b0725c666d + pristine_git_object: dc4056361e122a0b87dc43418fd8514864932033 + docs/models/pipelineresult.md: + id: b9579c9be335 + last_write_checksum: sha1:7178df8099b1e4e65cd86b8e553651b4b4ea6fec + pristine_git_object: c0df237c381ce3dce394136651e79db3e285d464 + docs/models/pipelineresultsrequest.md: + id: f5cfa08d887e + last_write_checksum: sha1:e1276380a50b1abff3bdc3f442321f5bcf217ca3 + pristine_git_object: 6df10129fbd1c60f58aa712551fe85be93f14216 docs/models/pipelinesresponse.md: id: ee771aa6a983 last_write_checksum: sha1:f4b33e0bed60e22e7b8ccc386c77a98b202ac8ef @@ -3339,10 +3371,18 @@ trackedFiles: id: 3c70b2262201 last_write_checksum: sha1:ca8a77219e6113f2358a5363e935288d90df0725 pristine_git_object: fae3c1ca4ba2c2ddb3b7de401ecdc8d56dcc7740 + docs/models/principal.md: + id: bad743a9d9e0 + last_write_checksum: sha1:2cfa8b224b841dd59cfb55974c61c40154c5d05a + pristine_git_object: 9c79ed21e4da937d5aff6bfd6c35451e7d79fd2d docs/models/principaltype.md: id: 0e53e3fb2207 last_write_checksum: sha1:dbf587220ecf75870521e72aef84517f1bbb57b0 pristine_git_object: 9edf6a182d50a34021b758903bcaa229af4e3abc + docs/models/probabilisticsampling.md: + id: 7c57d1fc5597 + last_write_checksum: sha1:ed1a47731bdea63511bc8edce09bc753a5ca1f23 + pristine_git_object: 49b58476d056fc387be3473a8d05a3775b667fc7 docs/models/processingstatus.md: id: 06047222d2ff last_write_checksum: sha1:81a11724ad214bab81874167854e6cbcb55a6cc0 @@ -3875,6 +3915,10 @@ trackedFiles: id: 13375dff718e last_write_checksum: sha1:37eadf03289a7835ca948956233b4c2e05b1f3d9 pristine_git_object: c0bd16222c225c2eea2fd8402d01f7ee8084b27b + docs/models/searchpipelineresultsv1observabilitypipelineresultssearchpostrequest.md: + id: eba11c7caa64 + last_write_checksum: sha1:9b8b5103258cc79eae1a7e383413f18384a52a95 + pristine_git_object: b68b70ae79be867bc3d985054e41a98c45149d6f docs/models/searchrequest.md: id: bc36c5e5aee1 last_write_checksum: sha1:e1d05007422f9d649dca80a9c627b0c6715bb61a @@ -3929,8 +3973,8 @@ trackedFiles: pristine_git_object: ef043e1e11dbfc81638c568c0b23b5d17477cf7c docs/models/setserviceaccountrolesrequest.md: id: 771647c6c67f - last_write_checksum: sha1:02187dd1670415cb5cedfdf61dc45693a29a5431 - pristine_git_object: e2b1477588b254ef88db96e53f27b9ff172e45d5 + last_write_checksum: sha1:12d8132f8b2d4472ba6c08c51fe4836b1ff9cd2f + pristine_git_object: 0acc4248c3948d84b198d577f4ae4f3f2a07efbe docs/models/setserviceaccountrolesv1serviceaccountsserviceaccountidrolesputrequest.md: id: cf024d826315 last_write_checksum: sha1:e4856b72fe102cda219950b38725d86e46953169 @@ -4715,18 +4759,10 @@ trackedFiles: id: 8eabdced3e0e last_write_checksum: sha1:96879df11c005b591f2e59975897feff8fc8656e pristine_git_object: 56b84c59c48ac135345394235c71ce77d384e33e - docs/models/updatepipelineconfigrequest.md: - id: a5647ffa8f3c - last_write_checksum: sha1:c3fb4f751fe4ccbb4de625791488ffc09c3209ff - pristine_git_object: 7d0b1ba95643a340b9d6b29ecfeb39312e166b2a - docs/models/updatepipelineconfigv1observabilitypipelineconfigspipelineconfigidputrequest.md: - id: c3441f5225c7 - last_write_checksum: sha1:613c534e9fddb4e1ed5449d5e66f1ddf3fbd505f - pristine_git_object: 0eb31092cc21530e6acd9a5b3320c6b7b114927d docs/models/updatepipelinerequest.md: id: 1efe6e900bce - last_write_checksum: sha1:f4c3dad9b5716bceb5b5abe117ba10988a2ceb65 - pristine_git_object: cd85a51d7e46fab419c2d47a2df8e8e580eab1ca + last_write_checksum: sha1:435855fb937e08132f0149bf23d4b2cd7e944ee1 + pristine_git_object: 6008a65fc8bd448807d590feebbfbd47568bbfec docs/models/updatepipelinev1observabilitypipelinespipelineidputrequest.md: id: ee1b796b2663 last_write_checksum: sha1:22b53a87753672f80911c58c6428129d2cee54fd @@ -4847,6 +4883,10 @@ trackedFiles: id: 2f546e515eb8 last_write_checksum: sha1:e5192f676a61f96e042d137c7f4c6f76798019e0 pristine_git_object: 477f35e56c77c81b3f9ae6809eb4863b73ceb9e2 + docs/models/usersapiwhoamisecurity.md: + id: e90cf2968545 + last_write_checksum: sha1:bf4014479e49e5484bfbff84f38d69f9c5931848 + pristine_git_object: fbc52dbc21425f1ce28c9ad3c577199b618e20fc docs/models/userworkspace.md: id: e35426656a3c last_write_checksum: sha1:8aee61aa245bd3a4392f74faea4cab26933e11a8 @@ -4869,8 +4909,8 @@ trackedFiles: pristine_git_object: 924f2bdd9bcaa0bc59ba7a28733ce53fa968f822 docs/models/voicecreaterequest.md: id: 1014a6e8d549 - last_write_checksum: sha1:390c49792fcb2da2a55439f4357d2d902b131f87 - pristine_git_object: c1381cb692e074e07d2e96fdc70364d74e30cf1a + last_write_checksum: sha1:329f21c64fbfe54d13313c51ac92a57d268fe5c3 + pristine_git_object: 5cc2d972e9b2ca13b19b63cc796537ab7618859b docs/models/voicegender.md: id: 64611cefbb5a last_write_checksum: sha1:84778b9e7284f24d5abf2b88f283665dbe7ab991 @@ -4907,6 +4947,22 @@ trackedFiles: id: fc4df52fb9b5 last_write_checksum: sha1:72636dc7ae74264bb5158d284ef6f83da5290b27 pristine_git_object: 4ca7333c412ad819e3e02c61debe402e3f9b0af9 + docs/models/whoamiorganization.md: + id: c5079bea780b + last_write_checksum: sha1:08e3eee456b349bd77f4504de1ad4ea363c69133 + pristine_git_object: d7fc2774bf1df2a01651571bbb6f731e027027d4 + docs/models/whoamiresponse.md: + id: 10707b1b5e9a + last_write_checksum: sha1:a9fdd52f7ba25f49b83daa8bf2638fe5bc9ef645 + pristine_git_object: 922a68a5f03b163887df0d4749d1c728494db33c + docs/models/whoamiserviceaccountprincipal.md: + id: 26b8c526a269 + last_write_checksum: sha1:e260ed681488c6af18a3bfabbfd94ff7ef0b8545 + pristine_git_object: f24a810aec4b3ece84e1869c6d945657e0cec658 + docs/models/whoamiuserprincipal.md: + id: 0dc448dc8cbc + last_write_checksum: sha1:6661f94b37edfdf6e5b2ae3fab4a3f9362074ff0 + pristine_git_object: b54d7fdcf70e1b34e085f65ef21ca36b4e1005ab docs/models/workerstatus.md: id: 571aceff5d27 last_write_checksum: sha1:80aa73b5ab2009ddce7a65f01c370cebfbf60f55 @@ -5153,8 +5209,8 @@ trackedFiles: pristine_git_object: a3b9532316559ac9d244cae4b623884d60b1fe62 docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:90783da4c7ded2b1cc9d9214383c6e8c1484491f - pristine_git_object: 449d90ad7b730a9819ac6a896cf11eab17076ddc + last_write_checksum: sha1:c7cb5ea8a69b71811d6fc8ecedc0be5e80e2c182 + pristine_git_object: cb950f4bb9a3949fe3c6af4b24f921684e688794 docs/sdks/betaagents/README.md: id: 5df79b1612d8 last_write_checksum: sha1:d3009dde4dd252a1a932547ea581c6800a9e393d @@ -5165,8 +5221,8 @@ trackedFiles: pristine_git_object: 8c22824d97140d957da9b3ab24ff3d7898420efc docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:10471097451914bf1979b32e6d46226e08e20f14 - pristine_git_object: e9bbc68dd66930a45f909a37aa5b1848d169e847 + last_write_checksum: sha1:7931819abfc89aefde57a970974f3463d1bec9ec + pristine_git_object: f2741b6a3ebdcaf497af64365e18fdd0473427ac docs/sdks/classifiers/README.md: id: 74eb09b8d620 last_write_checksum: sha1:9f11740f8cf1a3af44fff15b63916305f1882505 @@ -5201,8 +5257,8 @@ trackedFiles: pristine_git_object: cb207d8be2ca86b00dc797fc06eabd1498adb770 docs/sdks/evaluations/README.md: id: d40a3d898554 - last_write_checksum: sha1:676af42517482879389290b07be58fea15ed5a2e - pristine_git_object: 4d55bc784a329b489469cc0f3c42396a9111ffdd + last_write_checksum: sha1:d56825bb51f351ec11427c415fb8201948bd620c + pristine_git_object: 8a4ff27bd62d9a70b6bbb1952e272f6462b2d0cf docs/sdks/evaluationsprojects/README.md: id: bbc4beec3a63 last_write_checksum: sha1:1a64335c47f3419bd29601acfb1be740f159a563 @@ -5281,8 +5337,8 @@ trackedFiles: pristine_git_object: bf6c052b2dd3f473524a6401bfac46670dca2241 docs/sdks/serviceaccounts/README.md: id: f172389e7190 - last_write_checksum: sha1:cd8abf90059fb09f37eb2036597dd6a8db1bf305 - pristine_git_object: 5c782e397d840ef3145fc8bfe06dbe35fe39c759 + last_write_checksum: sha1:b5ef427193fad28f1b156cb0137fe54a27f2c79d + pristine_git_object: 28ba82968d32757bfc2f742f2a22b4b3b00bbb04 docs/sdks/sessions/README.md: id: 57ad62844f79 last_write_checksum: sha1:73bdf3ff4e98863534439cd1b37b455a27cf4cd7 @@ -5293,8 +5349,8 @@ trackedFiles: pristine_git_object: c0339ef9d33793b7e15581fdf0693fc4ce5b9f21 docs/sdks/spans/README.md: id: 594028be109d - last_write_checksum: sha1:5765cc3d25b81e08dc25e2704a5d21a4de60dd46 - pristine_git_object: 10aa9a19f066293d2b2f5c36a7849049ec51785a + last_write_checksum: sha1:20c480912fcd4b344a0c053e358add1f51777827 + pristine_git_object: 866e70a5420ee2e0dcd716ea7135159f9efb0c5b docs/sdks/speech/README.md: id: d5924688d48c last_write_checksum: sha1:7b2cdc86749dceb8cd0aae6310b60be563a4681c @@ -5309,12 +5365,12 @@ trackedFiles: pristine_git_object: 97703c9b4dc942385ee04ae96cbd100c3f632a17 docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:b9e7a083aa34479ca5f66c49b320dcc517fcf333 - pristine_git_object: a7c2bd7324612444b808198b6541f20b165a1b1e + last_write_checksum: sha1:d974bb8c02961043a289d55a1d9cee5c21fafc36 + pristine_git_object: 2add30581e137a01bf6d49928fcba2c5b24d33c7 docs/sdks/voices/README.md: id: 4f1a657c8f68 - last_write_checksum: sha1:2c58bde9893dc9c3735d3620de9688d1ae588c06 - pristine_git_object: 9cce61ba2f1897a7e8a462f2f685a681a9fc165c + last_write_checksum: sha1:67ec532489866fd7a915cac72b0a7f0389504395 + pristine_git_object: ee10d1b0b525d73677d1e10e0cf8666d2dc4644d docs/sdks/workflows/README.md: id: 80c76ce944c0 last_write_checksum: sha1:4ffa1eec7f076e12280b9bcc86dbda538096ef24 @@ -5357,16 +5413,16 @@ trackedFiles: pristine_git_object: 5052bb072d14c65419bf49bdc1a47500cb03ae56 src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:1039a9fe30fb0a172c432cee3650296638d6ddfb - pristine_git_object: 8ab8f2837d466193885c868607e2de767ab4274c + last_write_checksum: sha1:ac42a54f32156f6b616be84998e26daf35736dfb + pristine_git_object: 18c019953e12059d229eb3d4adea87895b6fb2c5 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:2fcb8bfce98ee0c3207e6e037320416f7bb1f900 pristine_git_object: 704aceee5505519655340ed211ee5d8cda7f46c0 src/mistralai/client/agents.py: id: e946546e3eaa - last_write_checksum: sha1:f09ea4bc867e1fb6da89bc8cd20d1108377d21ea - pristine_git_object: 131deb53f0add5d2bdb2243aa127336ef0d01207 + last_write_checksum: sha1:c3888537a6954b56aa1927b498da86c4ebbbf619 + pristine_git_object: 33c5dc7a4df43b29440c9dbad331ac8d7687f7fa src/mistralai/client/audio.py: id: 7a8ed2e90d61 last_write_checksum: sha1:d013638b57a09d5363746178770e7919d39b5511 @@ -5393,8 +5449,8 @@ trackedFiles: pristine_git_object: f8ac8d4220c28c3348fae7f6d5cf1f5cce45e465 src/mistralai/client/chat.py: id: 7eba0f088d47 - last_write_checksum: sha1:d997d9c19f50bc7c15bc5c01e4c7603678d72c47 - pristine_git_object: ccf49091331dcea529d3069da21868cd4f96f913 + last_write_checksum: sha1:91e3d0ff55629e9c06beeb3a3491d4a8017bb0d5 + pristine_git_object: 73136f81370480f8982f658a23379f1fd17782ef src/mistralai/client/classifiers.py: id: 26e773725732 last_write_checksum: sha1:249e22ad7f9e92afeefc5502e2a94f9b9fc30d6a @@ -5457,8 +5513,8 @@ trackedFiles: pristine_git_object: 20a13102ef688244e888cad21e49afb86b157944 src/mistralai/client/evaluations.py: id: 911a1a741d81 - last_write_checksum: sha1:5c80848de141806e61f3947ad3cc731ecae564d5 - pristine_git_object: 7ea645a19197cbdc1a167888182d9ba9bee75e86 + last_write_checksum: sha1:c165128062f0a937d456ed23e391935fe8184bf8 + pristine_git_object: 487e0b7c3e2f17fbd192b4e6e078bea5491c76c3 src/mistralai/client/evaluations_projects.py: id: 89e90553c9da last_write_checksum: sha1:7f0820b2d0647f9c52cb23243f9fec4821216a44 @@ -5521,8 +5577,8 @@ trackedFiles: pristine_git_object: 41d7f799e8a2afa860b4193f7752e094f1c624b2 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:47daa81c9e9793e476aa14077bd5f4ce2df76170 - pristine_git_object: 3b65d19f9e93f9a8d7a1165f6663cd7505614172 + last_write_checksum: sha1:8babf04ca95956c81ae786d2dfa324c7daadbc3b + pristine_git_object: 511fa9f5afd3ff2bee17c50768acc8eb3863a200 src/mistralai/client/models/accepteddocumentresponse.py: id: f529b784daff last_write_checksum: sha1:2eb3c7dc0d7165987aefda841b1ceada6698c15d @@ -5669,12 +5725,12 @@ trackedFiles: pristine_git_object: 8bce3ce519a69a6d1cb36383b22fb801768c4868 src/mistralai/client/models/agentscompletionrequest.py: id: 3960bc4c545f - last_write_checksum: sha1:017eceb25074387be5b9a41119e23e71b6d86510 - pristine_git_object: dc2374714ecbfe1e358c1468f11d95a22197e4b4 + last_write_checksum: sha1:2f9f222002488fe4740649c002e953a8f9516ff8 + pristine_git_object: 84dbe04a004c7548f21d354b9835e80cfedc69e3 src/mistralai/client/models/agentscompletionstreamrequest.py: id: 1b73f90befc2 - last_write_checksum: sha1:8260a020fd020174182f53aeb58c3ee3fa1bfe78 - pristine_git_object: 96062f45ad3f5c96ccc0cd76f0cc0018739f437f + last_write_checksum: sha1:9e6e7c501843e728e346e8351a23f3a114883596 + pristine_git_object: 0d0b6332264db24043cd2328760a2777c7d2bcec src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py: id: 3fe59a78e3d0 last_write_checksum: sha1:5aa309d247dcabf1688c648bcde6939c5ea31bc4 @@ -5739,6 +5795,10 @@ trackedFiles: id: 2b49546e0742 last_write_checksum: sha1:3f29cd1fa6ea948917a3b7777b04e6ce63863f87 pristine_git_object: cc33d9e7821fc12ebadabb0c4e97551adc32d7ba + src/mistralai/client/models/attributehashsampling.py: + id: 23dbf8934719 + last_write_checksum: sha1:fb990a8f7258c93407f8fb73241d0917ce39c40b + pristine_git_object: 69a83610605fca57f58270b876099b600c64724b src/mistralai/client/models/audio_v2_voices_listop.py: id: db554547c0eb last_write_checksum: sha1:5d0d76afd47ca9381daef96cc66bdff0af5ac6c3 @@ -5861,20 +5921,32 @@ trackedFiles: pristine_git_object: f9cadc3134e31a9b3f8c421faa7be72de0f9e5d8 src/mistralai/client/models/chatcompletionchoice.py: id: 7e6a512f6a04 - last_write_checksum: sha1:3d1937dc9eba76aa53985caedecb6a7357b67704 - pristine_git_object: ab010dc9997d0531ce0a18c39ba31893960b08bb + last_write_checksum: sha1:dd76363f9dd49dd9e9b3a62de180f9da3e482026 + pristine_git_object: 7838646c81fa366310cb308cdc39ed07ef44536f src/mistralai/client/models/chatcompletionrequest.py: id: 9979805d8c38 - last_write_checksum: sha1:f4c0e8dc95552c02eb41851e48b12baeea4a5174 - pristine_git_object: 193c7674e8255d2ac6734a3e94307acb4c51bf31 + last_write_checksum: sha1:e97e97317d49056698c01be017798a6e58c2b7ff + pristine_git_object: e0bb38a3b4e2c64611faba8833df0a4a419ff1c8 src/mistralai/client/models/chatcompletionresponse.py: id: 669d996b8e82 last_write_checksum: sha1:af8071e660b09437a32482cdb25fd07096edc080 pristine_git_object: 60a1f561ff29c3bc28ee6aea69b60b9d47c51471 + src/mistralai/client/models/chatcompletionresponsechoicelogprobs.py: + id: a0cd36e56034 + last_write_checksum: sha1:cfa7544c2b3e019ff34efd33eea7369aeb74bdbd + pristine_git_object: 6f8d2479c264ae99948196a34e9bb969ea8daaa3 + src/mistralai/client/models/chatcompletionresponsetokenlogprobs.py: + id: 7e4a6dffb621 + last_write_checksum: sha1:e9141812701d29956af42029c43352d1519e459c + pristine_git_object: 5eb51db65f6225910de56a20e5150ce7677a5b0c + src/mistralai/client/models/chatcompletionresponsetokenlogprobstopk.py: + id: 9703f4ac5a98 + last_write_checksum: sha1:8fcd33e5820f1208e70d385aa1df6054eb051135 + pristine_git_object: 12284588b152da93599bcdacec994a1aec8125a0 src/mistralai/client/models/chatcompletionstreamrequest.py: id: 18cb2b2415d4 - last_write_checksum: sha1:7740d0d4e3930663374625375d40bdb10ff8894e - pristine_git_object: 9fa4a8736b06ad17a8969de64fa34c75125cdb0c + last_write_checksum: sha1:86a9981026bd2830df311c01117b860d0e35a47a + pristine_git_object: c394bbbad6c4b6ab63d5f5da4720ccd54e6a29a8 src/mistralai/client/models/chatmoderationrequest.py: id: 057aecb07275 last_write_checksum: sha1:55fd2b53fd4b9e4ab3da4209846b65ceebcf8ff6 @@ -5949,8 +6021,8 @@ trackedFiles: pristine_git_object: 52b5c30fbb69302a88e6095ab4e55a53e5ca92f4 src/mistralai/client/models/completionresponsestreamchoice.py: id: 5969a6bc07f3 - last_write_checksum: sha1:9e1eaa15994108209fe2819644864770bbfc2c13 - pristine_git_object: b90dee84ffd9c887cbcd995c478ed2b4f07c6492 + last_write_checksum: sha1:fa87bf647f75a695cc61a8254e9b130f94b4ebf8 + pristine_git_object: a6f7409479262e75a357c108400adb3ec25b02e7 src/mistralai/client/models/completiontokensdetails.py: id: 8e822f11a1b2 last_write_checksum: sha1:117cc6daf733fa5bb2286dc01e2b220165ae074b @@ -6235,14 +6307,10 @@ trackedFiles: id: cfb7d0f96759 last_write_checksum: sha1:e44d50f0dc28164ba0df595ffd362a941048d6e2 pristine_git_object: 616f212f4f07534b26b9b677117f2678aa11dbfe - src/mistralai/client/models/createpipelineconfigrequest.py: - id: b13c0360ed4d - last_write_checksum: sha1:ce399f6166a0eff2a4e6da5c1a78177cae59faca - pristine_git_object: 7f4ed20f9032de3794293457911177aacc6c9c17 src/mistralai/client/models/createpipelinerequest.py: id: 269c83965d38 - last_write_checksum: sha1:751900b7bfe61aa20127d4a84012cd6528d2690c - pristine_git_object: eb772f7e0b75980efa72f2da18345e37933f36f0 + last_write_checksum: sha1:757c9377deb477f91516e97a53badf4db76645e2 + pristine_git_object: 0b9ace1d98725fbe584f8809417844078c14d4a9 src/mistralai/client/models/createpromptrequest.py: id: 5e7efdfa82b5 last_write_checksum: sha1:ee3de2cf86f4ccbb9e676a0c7446b3976fa34a8b @@ -6261,8 +6329,8 @@ trackedFiles: pristine_git_object: 3eb05f2e539531a61bf699b0206794192d5c548a src/mistralai/client/models/createserviceaccountrequest.py: id: fb57eff2a21c - last_write_checksum: sha1:e7d600ffe39b6108211ceb582c68131a59a74486 - pristine_git_object: 19aad5236a7b763e39df1bf1a18358813991eeb3 + last_write_checksum: sha1:8bc137060b0b87447ac7eb2aad0698147dbe6c05 + pristine_git_object: 03f2e458ea768d1b618215e97baaa867237b6a64 src/mistralai/client/models/createskillrequest.py: id: 226c4222df28 last_write_checksum: sha1:bb1e79bcc7d51dcd77caa09280ef88e231aa11ae @@ -6395,10 +6463,6 @@ trackedFiles: id: 767aba526e43 last_write_checksum: sha1:9a8f9917fc5de154e8a6fdb44a1dd7db55bb1de5 pristine_git_object: 1cd36128a231a6d4be328fde53d1f048ff7c2ccd - src/mistralai/client/models/delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop.py: - id: 52788b71c0d8 - last_write_checksum: sha1:5a11027fa83dc284532c50e64ec6c5764916f1ed - pristine_git_object: 3e65952f80ad4ed4f7a5f93430af0523c2916566 src/mistralai/client/models/delete_pipeline_v1_observability_pipelines_pipeline_id_deleteop.py: id: 6c25545f26ce last_write_checksum: sha1:dc14a061f07863941ad455be7fbaf5a715da2d98 @@ -6527,10 +6591,10 @@ trackedFiles: id: e56d154527fd last_write_checksum: sha1:bdfa3a8d8905479a71b18b016eccf9d6404a9cee pristine_git_object: 5b44534527c1508027157655e0516d56484e2171 - src/mistralai/client/models/detectiondefinition.py: - id: b48b6429cb1e - last_write_checksum: sha1:30917971f2768d189666c662a5bf2ffb79ad319a - pristine_git_object: b746713caca7a27241146b7c258bacca50f63e83 + src/mistralai/client/models/detectiondefinitionv1.py: + id: a37492166ac9 + last_write_checksum: sha1:8b3faadaf93fe76468bfc55ed9326f28ed0ce9a8 + pristine_git_object: ab3c73f34384117c016ac4e70965de2609e7e58f src/mistralai/client/models/detectionpattern.py: id: 6668b80e0502 last_write_checksum: sha1:e55300753eef9cea672199383c6f09d04a4ee9f6 @@ -6603,6 +6667,22 @@ trackedFiles: id: 7e27f8202d48 last_write_checksum: sha1:bf4a8532401a068fb245aad9aedd6de4ec8ce907 pristine_git_object: 0dca8201d06ea9e85e0c88bb649f97d329245057 + src/mistralai/client/models/evaluationbooleanresultspec.py: + id: d96cf0d56837 + last_write_checksum: sha1:97ef57a8ff3d3de9c2271ae78dab3623b061375d + pristine_git_object: 109a754d705e6810405c93e3b922cd1f542a6832 + src/mistralai/client/models/evaluationcategoricalresultspec.py: + id: d3d909202aa3 + last_write_checksum: sha1:89459dcc73590bbb02b2b9ae8c4805b38487fbd4 + pristine_git_object: 1aff3a6ba09bffc54218411d835e6ab52801c0ea + src/mistralai/client/models/evaluationnumericresultspec.py: + id: 1ca2ebf118fe + last_write_checksum: sha1:70145ef6c839de9d8610ae8050c55d90bd47b163 + pristine_git_object: 886cb73b90c25d0a21de2a9a38a245e6f09069e9 + src/mistralai/client/models/evaluationresultspec.py: + id: 776c57c5781a + last_write_checksum: sha1:b19d35d98d7f6a32c0165aa7b843b2793f484b4a + pristine_git_object: 3e08654686966cc3d9a0ec3cb6af0d22898a0832 src/mistralai/client/models/evaluationrunfilterinput.py: id: eb0b53418ebc last_write_checksum: sha1:240a04003a7842fde49c4e14d0b92e04f25e70e7 @@ -6699,10 +6779,10 @@ trackedFiles: id: 22cc29d258db last_write_checksum: sha1:7b9a02caf6f2f2d44411b41055282b355524a6f7 pristine_git_object: e3d99e24950b8d172451a5581ec6308e22b94b69 - src/mistralai/client/models/exportdefinition.py: - id: 5c9cf6e59905 - last_write_checksum: sha1:dc23b970991dacf99dc23523bb1325ec4ad2b6cc - pristine_git_object: 8d8949aafeac67d810c9043b5ab9ea40c4f086a2 + src/mistralai/client/models/exportdefinitionv1.py: + id: 49a7a99e72a0 + last_write_checksum: sha1:b3dc389711869f18858652f24f1e144746f32e4d + pristine_git_object: 691c6d80b60f816dce36be33a2b19fdcac12255c src/mistralai/client/models/extendedoauthservermetadata.py: id: 967e2e08f18c last_write_checksum: sha1:a732c4f73df678eb7accc58e847bf951b0de4a0b @@ -6715,6 +6795,10 @@ trackedFiles: id: 35106cf21e36 last_write_checksum: sha1:f0e5f7339b4e1966a1b7ad76509118157a131907 pristine_git_object: 2f6fb2a81fd120f5edb797ad06bd10723a25d807 + src/mistralai/client/models/feedresultgetpipelineresult.py: + id: 3156245d400c + last_write_checksum: sha1:35968f60c4dd60641f9faef735e70bebe9f5378f + pristine_git_object: 31ffa02afcd0240784e786d46fd7be32af285623 src/mistralai/client/models/feedresultgetspan.py: id: 39914702ec21 last_write_checksum: sha1:1338b1cb40fb872aea8ac1692c97dcdef52d5721 @@ -6911,10 +6995,6 @@ trackedFiles: id: 4991089a525a last_write_checksum: sha1:8268ed86e8fe9308752d25b9c10cba3a9bb1fa32 pristine_git_object: d5d177f5f315477d081d09d9f96106d910f23ffb - src/mistralai/client/models/get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop.py: - id: a6675e628904 - last_write_checksum: sha1:9835caa8c604d789820cc5c4a3a8d7f470fd9d1f - pristine_git_object: 6429a23100af5ea572caae2e959b67c2cb278bd0 src/mistralai/client/models/get_pipeline_v1_observability_pipelines_pipeline_id_getop.py: id: 552fe66cb0c9 last_write_checksum: sha1:219273cdf9049edc2e3a66d741bdcc64a05b9e83 @@ -7079,6 +7159,10 @@ trackedFiles: id: e93e67a4d749 last_write_checksum: sha1:6f7a50ee015957cc7fb5a387a8e1740727258dc4 pristine_git_object: f73b7fd9b1e3cf004063a6f3f82c35b2940625f7 + src/mistralai/client/models/getpipelineresults.py: + id: f501dff8f77e + last_write_checksum: sha1:4b44ade613e95fe67dfb23144a280ba70870d8ee + pristine_git_object: 842e0c28fa90675919ef24043ceea85c2042ef49 src/mistralai/client/models/getsignedurlresponse.py: id: cee4e4197372 last_write_checksum: sha1:5618ddcde19331cd0bfba7b31b1d1fe6b61e133d @@ -7375,10 +7459,10 @@ trackedFiles: id: 9ad8915328dd last_write_checksum: sha1:606991e1ff78a256c0c4d1219848ba70a1967502 pristine_git_object: 4d95c4d72e0898bd9bbbf2dbe6969df0e45d7bb1 - src/mistralai/client/models/judgedefinition.py: - id: aeaee44c4839 - last_write_checksum: sha1:2b710531d9d31def58df6782d929ba7606ba3195 - pristine_git_object: 586e4387da6d4c23d8935b47198e2ff3fda3162c + src/mistralai/client/models/judgedefinitionv1.py: + id: e0720bb9c32f + last_write_checksum: sha1:390ffb1be12e4bc5da500191fa567b74ccfa66d3 + pristine_git_object: 187504c37d8b5222dc6942cf2677ab63098cb47f src/mistralai/client/models/judgeoutput.py: id: 8c8099403e62 last_write_checksum: sha1:fb27c41d7f65e31651a06b37b73f21b5992bb748 @@ -7511,10 +7595,6 @@ trackedFiles: id: 088a33214e9b last_write_checksum: sha1:f616535f8b844d12a7e049d058b8600bd7e7740b pristine_git_object: b6836f41d73e8aaf34aeb23a71089555b5a2251a - src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py: - id: 3c9d91b81d59 - last_write_checksum: sha1:5c6520504a7b74ac4c3e02894d1e9b9a52719388 - pristine_git_object: aa39fa9cbb957384d00d4babe10975e53a00e2c0 src/mistralai/client/models/list_pipelines_v1_observability_pipelines_getop.py: id: 6ed3acb08e52 last_write_checksum: sha1:6c8520d14a712c78a2219f9b2f0bf763b0a82195 @@ -7639,6 +7719,10 @@ trackedFiles: id: 42d87f615991 last_write_checksum: sha1:521ecb0a85473d659d054a7bb4c76605fed1eb60 pristine_git_object: fcc7de9ad6720698ab15c5b429567875620d0a2a + src/mistralai/client/models/llmjudgereference.py: + id: c9c6a338d33f + last_write_checksum: sha1:6cdfc5b392a1e8247c5b3ac59dff5611dfc07848 + pristine_git_object: 205c280884c57d66600f289c09087bb050b05a52 src/mistralai/client/models/locationtype.py: id: 72a73946b20e last_write_checksum: sha1:6076c74e7d67301de8be0c0b1dd3bcd90f630c9d @@ -7803,10 +7887,10 @@ trackedFiles: id: 00693c7eec60 last_write_checksum: sha1:a1a8c702a5ead1858bb9391100c7373cb7d6c14d pristine_git_object: d4236a3bd7ec46a271b12651335ae3b7a9dbeeeb - src/mistralai/client/models/moderationdefinition.py: - id: 4948723a9e9c - last_write_checksum: sha1:63a053ec6d2a4fc291559652173ec3d74d652fcb - pristine_git_object: 6267c98ab69df3598ee60bdde6efc716c9b4e0cc + src/mistralai/client/models/moderationdefinitionv1.py: + id: e39535f78b02 + last_write_checksum: sha1:4c05e1a445be14df0cc37e70bc872fc931bec3c6 + pristine_git_object: 11304952928159950fdc146e3d6c13422ccd04c2 src/mistralai/client/models/moderationllmaction.py: id: 7b18ccbd8ca9 last_write_checksum: sha1:3e8a883551c9a1eefa771857a549fdd1d16a5b7e @@ -8103,10 +8187,6 @@ trackedFiles: id: 609f0478584c last_write_checksum: sha1:2346b9d55eaf319e2057de3b810e68a29962d19a pristine_git_object: 7d9da80b523b9a9e097f9c2d6a3040a644d46bec - src/mistralai/client/models/paginatedresultpipelineconfig.py: - id: ffac23900246 - last_write_checksum: sha1:05c58a144d1e2f88726084a74b40aca5cf28f6c6 - pristine_git_object: dd8ce5f30d0a98d44d2dbfb596343a230e30684a src/mistralai/client/models/paginatedresultproject.py: id: 3b73025cf6a8 last_write_checksum: sha1:6eedab7c096b9baab55d7fa4604803b7cd6d3b64 @@ -8137,16 +8217,20 @@ trackedFiles: pristine_git_object: 11cb857d3c6ab966acad7036996ccab45138beba src/mistralai/client/models/pipelineconfig.py: id: 7696668e13a4 - last_write_checksum: sha1:1ae19a600df132375bb6d803da344758c9df6f1b - pristine_git_object: 621f0b8148c8ed1672e689c6676944f7ae8617b9 + last_write_checksum: sha1:766879211c5349684e050f8a604522e5cd1a29c5 + pristine_git_object: 7eda1b52bb4daef66ab34a4fada49c4bcf596f8f src/mistralai/client/models/pipelineconfigdefinition.py: id: 4650cd1a8fff - last_write_checksum: sha1:f01166627ed0743674a11069ee6dfd6b73662221 - pristine_git_object: beea83cf93983a20087bc06dc308d6a2f1de66af + last_write_checksum: sha1:a3fe0a2b77f543a1c82266985c8e92f938c27312 + pristine_git_object: f98bd97438d043d18e9585f88d434a0df994f968 src/mistralai/client/models/pipelineconfigheader.py: id: 87378a2ccfe8 last_write_checksum: sha1:c1bb0e52ee91c5ca2d14348a6d562fb8b1d5629c pristine_git_object: 94fca51bb1b1879727b2a40e7e922d4813049988 + src/mistralai/client/models/pipelineconfigsampling.py: + id: c7b72e6acd0e + last_write_checksum: sha1:8256b1312be0eeeb9f716e24168233557dbf8ed4 + pristine_git_object: 308d2bf34547c5dc44843e99cebbcb881280ef63 src/mistralai/client/models/pipelineconfigscope.py: id: 0dd00ad629e3 last_write_checksum: sha1:fade9abea752e3e891ff13d6348f2d818948967e @@ -8155,14 +8239,18 @@ trackedFiles: id: aada2e35bbf4 last_write_checksum: sha1:2fd8b03966775cd89cbd93fec29ed1f0627aab46 pristine_git_object: e3c3f4ae3ac6b492459b373d85afcfdb6c25bcc9 - src/mistralai/client/models/pipelineconfigsresponse.py: - id: 797a435def03 - last_write_checksum: sha1:0389a3a4d93e45621bb71b8ee250fde9f58d3ac5 - pristine_git_object: 0bf379456c0a8b9b7b0224bce4556d4f882434df src/mistralai/client/models/pipelinekind.py: id: f4d24825fef3 - last_write_checksum: sha1:21a2cb6c15619fe42d5827b3050515b28d5e377f - pristine_git_object: 0a514eb98f634ebe7ec96625b0e79693335d2136 + last_write_checksum: sha1:05d15c80c7433f8da252522aa4b262b283b741f0 + pristine_git_object: 83c8b6bd8b34c6feb9952fdbfe195c19c9160fa9 + src/mistralai/client/models/pipelineresult.py: + id: 44ad7aed3c78 + last_write_checksum: sha1:c78f4d7c58c5dd3f5c8e5013925e2127ed20b7a8 + pristine_git_object: ae06ab285a4aea0c082deee80760fdaf37405033 + src/mistralai/client/models/pipelineresultsrequest.py: + id: 043c3f738118 + last_write_checksum: sha1:eb92b1e1713cb12aa0dc1fceca4ff145c875a69b + pristine_git_object: a875eef46be7121c0b33ae3fcc82db443a840ee0 src/mistralai/client/models/pipelinesresponse.py: id: c29d9ce9b853 last_write_checksum: sha1:a7f84b409ae082595577e499ea36e70f1e13eacc @@ -8191,6 +8279,10 @@ trackedFiles: id: beb42b23cde7 last_write_checksum: sha1:dc19708fcfd458f9739ff697f05d2bb598198550 pristine_git_object: de5e17c69604f06a191348ccdc753c4944991e9a + src/mistralai/client/models/probabilisticsampling.py: + id: ba0bb5e45a56 + last_write_checksum: sha1:fe7aa789ac4d415bd8070dcf71674affc1fe8b14 + pristine_git_object: 0a5800565a3d984e191e115f36459f458b96762b src/mistralai/client/models/processingstatus.py: id: 28146eaecfcf last_write_checksum: sha1:612649a72b946049f7edd247941127a173dc5781 @@ -8615,6 +8707,10 @@ trackedFiles: id: 601f46c3df14 last_write_checksum: sha1:16d77558da3da947372e2ab66386cbd4e0ed39ed pristine_git_object: b13b94056101cc022b6c140032e1074726d4f68b + src/mistralai/client/models/search_pipeline_results_v1_observability_pipeline_results_search_postop.py: + id: 90054186187d + last_write_checksum: sha1:f44ba90aa34c6910355ae8c5fabcecb228f31308 + pristine_git_object: a5061efdc5fd7521a00c7dc509882fe0d6fef81b src/mistralai/client/models/search_span_evaluations_v1_observability_spans_evaluations_search_postop.py: id: 13b5c72c2e76 last_write_checksum: sha1:3297f22187ceb723b44bf50a61f52cb4afb0c81e @@ -8681,8 +8777,8 @@ trackedFiles: pristine_git_object: cb889f1a650f1bcbcddcac0cdc4f933e64998f7f src/mistralai/client/models/setserviceaccountrolesrequest.py: id: bcebdb912e75 - last_write_checksum: sha1:556d0dbb308fbce2c52927ac1abd94acdc0f82e4 - pristine_git_object: d3cba8cad9594bef1e160af5e41fa53fd6a1e9b7 + last_write_checksum: sha1:920cda7f7071f13d504db5978b3f1af582e59b29 + pristine_git_object: bb848d65a8e34e1d2dbd49b467fa862138b9887b src/mistralai/client/models/shareenum.py: id: a0e2a7a16bf8 last_write_checksum: sha1:0beaa4472ed607142b485c9e208441f9050746b9 @@ -9223,10 +9319,6 @@ trackedFiles: id: a1bace5342e6 last_write_checksum: sha1:122977758c266273a62bd82346480d2221a134ba pristine_git_object: 3da59f3534d143de77eb3376b22b1d8e0abb25a3 - src/mistralai/client/models/update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop.py: - id: c9c533cb8143 - last_write_checksum: sha1:5e44df8bc218aa41c82f2e001cd43ec1d0177886 - pristine_git_object: 2de5ac01c6ffca1ab04258853829d4d9f2595411 src/mistralai/client/models/update_pipeline_v1_observability_pipelines_pipeline_id_putop.py: id: 4855ed933db5 last_write_checksum: sha1:0a7f4889e1fa8b930e6cf8eb4434fa73feb1f899 @@ -9319,14 +9411,10 @@ trackedFiles: id: fe649967751e last_write_checksum: sha1:8d4375309ea7a2bb5cecfed0ea229226608b5469 pristine_git_object: 1cce099feaa0111812d68ad27b3ece040d51c168 - src/mistralai/client/models/updatepipelineconfigrequest.py: - id: b8b6ad05d8ba - last_write_checksum: sha1:ff026c3f8725fa21277b13484aa2371d58477720 - pristine_git_object: 5fc62fa33c495064084d02ec00ec61d221368ac4 src/mistralai/client/models/updatepipelinerequest.py: id: e47da38e2c2c - last_write_checksum: sha1:f17236ad9e82d73c578e49b52bac53bffe94e123 - pristine_git_object: 7edf03d531fa088a9ca162bb183877abe647cb07 + last_write_checksum: sha1:395080db4f53d3224e48df66fa3a6341d0a618aa + pristine_git_object: 018294ea3f3fcbaa3367f34f78ce44cf1277b20d src/mistralai/client/models/updateruninfo.py: id: 4330bdaa00b9 last_write_checksum: sha1:be38b9f04bcd120298ea9f54f69f915528951368 @@ -9383,6 +9471,10 @@ trackedFiles: id: 71c247d21aeb last_write_checksum: sha1:e8ceb5b5b4e16d82f8be441069a9e30aff105592 pristine_git_object: ab994d63efd81dc5835e60da3f4b8dd8b1ac585e + src/mistralai/client/models/users_api_whoamiop.py: + id: 50a49130a3c2 + last_write_checksum: sha1:672704594f5f1785c0752235c4119cdc7b25a475 + pristine_git_object: 7603966303b40f08ed33afc976eac561baaf7e2f src/mistralai/client/models/userworkspace.py: id: 66ffd9d93482 last_write_checksum: sha1:7457923fe58b667e9a4afd79b10d19dae249506b @@ -9397,8 +9489,8 @@ trackedFiles: pristine_git_object: 8e4c8432d29649cd850afd9dbb5cc35486a15e2e src/mistralai/client/models/voicecreaterequest.py: id: 9a1752117dec - last_write_checksum: sha1:5a5668163a0907553772615aa458ac1b44c321fb - pristine_git_object: c9bf384babc320fd8ab52bd6302811cc6f2890c5 + last_write_checksum: sha1:69e830f1b942aeb9146f408bf8dac2e8bc5c2990 + pristine_git_object: 9cc46db7c09e8a7966ca0ffe963846ab119a3626 src/mistralai/client/models/voicegender.py: id: bd01f8fe635e last_write_checksum: sha1:0f128cf6a50f32adb311bfcdab78be1c5a3919d6 @@ -9431,6 +9523,22 @@ trackedFiles: id: 26b0903423e5 last_write_checksum: sha1:0dc71acbf781d667965b52db60ef2e872521c42a pristine_git_object: 5254d1719f37e154a10b9a312edbe0b4ca045380 + src/mistralai/client/models/whoamiorganization.py: + id: 620645b57f6c + last_write_checksum: sha1:e6d9b9bad6e8ee85dd26cf18cdd16a2695b599b9 + pristine_git_object: 996df2d8eded4f440ec049d208e836f12647c786 + src/mistralai/client/models/whoamiresponse.py: + id: 01077fb139e6 + last_write_checksum: sha1:9cd2f32a975cc4a125c52d2b61c51d695130ba09 + pristine_git_object: f90f96bb3e9694e63c10121b9c932471d9d6a705 + src/mistralai/client/models/whoamiserviceaccountprincipal.py: + id: 4e59d30111f6 + last_write_checksum: sha1:01f46d08bbfef162c63308b68a463d8d41468b9a + pristine_git_object: a5354ab86ccfe746ff0dfc5fa8b846ec1eb9d91b + src/mistralai/client/models/whoamiuserprincipal.py: + id: 99104b513089 + last_write_checksum: sha1:3659e84e57db9cd5531e6dc6d39c2512d4463a6d + pristine_git_object: 7f0b2c060035317f1490c74ae5640dd9666ad101 src/mistralai/client/models/workflow.py: id: 1548cd73984e last_write_checksum: sha1:6d05a1927fc994d1df1305bb6c25c361ede42cc2 @@ -9709,8 +9817,8 @@ trackedFiles: pristine_git_object: 678d56b573d1c7892149c4f83bac4a9bf2078472 src/mistralai/client/service_accounts.py: id: d4210b455fcf - last_write_checksum: sha1:25d8a9c4769cf316095092aeda2280df6d3a7efd - pristine_git_object: d0289caaba2fd470fdb6357f0dadd0bd67746223 + last_write_checksum: sha1:17f5088e8ed3896289ea84be6a06c2cbf3b56dce + pristine_git_object: fad87b856438d8c6eed16de19ed6b21d40ecf671 src/mistralai/client/sessions.py: id: 6387fd8f7623 last_write_checksum: sha1:e5d98f9367780e9c6febb3ee6f484b5d9001a5bc @@ -9721,8 +9829,8 @@ trackedFiles: pristine_git_object: 8765d9befa939c6e7d2f83e08bb3c2d71a4e36e9 src/mistralai/client/spans.py: id: 408477ccb9d4 - last_write_checksum: sha1:109da9167b8808a62b52eb56a034eec6a717f35d - pristine_git_object: 59cead7d80d71ebfabd9715b398556fa89249569 + last_write_checksum: sha1:4cafd3c81c0e824d55d00f860fdc68585cb7a9c7 + pristine_git_object: 1b4825b58317804f4a4ae738d63c4113bf837f43 src/mistralai/client/speech.py: id: 5c1f1109aa5e last_write_checksum: sha1:097028ff496a8637bed34bc09e36338711257e84 @@ -9749,8 +9857,8 @@ trackedFiles: pristine_git_object: a9a640a1a7048736383f96c67c6290c86bf536ee src/mistralai/client/users.py: id: 81be4772253e - last_write_checksum: sha1:aaf10df08d0df268cbbbbc5be4a5d61cc76e9f2a - pristine_git_object: 7a8e0388eee4609f9e060d557f7b55813a6b2a27 + last_write_checksum: sha1:a44c8edf6dd157c2a4ff5bcf94a65be0c9069447 + pristine_git_object: 639c44d68746bffbecef969305f199003e8b9d6f src/mistralai/client/utils/__init__.py: id: b69505f4b269 last_write_checksum: sha1:7bab4464f8e01656349d991d21d1e093b012b7bc @@ -9829,8 +9937,8 @@ trackedFiles: pristine_git_object: 2bba1465bded520b0acc8c51d6ec77d3b601d338 src/mistralai/client/voices.py: id: ab76b1377d79 - last_write_checksum: sha1:4970d68076c248b9ae566e819c8371fb350e3110 - pristine_git_object: 3e526c3072b65dd1c502d5602aad555b751c7c11 + last_write_checksum: sha1:fd66614f0f8ae21cf140ca1644a18b301b46cfff + pristine_git_object: fe5cfbe943cfca9a3226ecd9e647edf7f3ea09e0 src/mistralai/client/workflows.py: id: e2a0381191f6 last_write_checksum: sha1:d81b7d2fe6863cbc3665cc1748056c0f7f488f75 @@ -11808,7 +11916,7 @@ examples: create_voice_v1_audio_voices_post: speakeasy-default-create-voice-v1-audio-voices-post: requestBody: - application/json: {"name": "", "retention_notice": 30, "sample_audio": ""} + application/json: {"name": "", "retention_notice": 30} responses: "200": application/json: {"name": "", "retention_notice": 30, "id": "40b08db1-3b52-4ceb-9a0a-1c667e00001b", "created_at": "2024-01-06T19:50:35.147Z", "user_id": "", "type": "preset"} @@ -13470,7 +13578,7 @@ examples: path: service_account_id: "d4686916-124a-42f1-966f-9248b120b13c" requestBody: - application/json: {} + application/json: {"role_ids": ["7e69e493-caf6-4671-af60-84951754d9fc"]} responses: "200": application/json: {"items": []} @@ -13746,7 +13854,7 @@ examples: application/json: {} responses: "200": - application/json: {"id": "8158c835-0f52-4f37-81ea-34dcabc427fe", "created_at": "2025-03-27T06:42:02.980Z", "updated_at": "2026-04-25T11:18:51.427Z", "workspace_id": "1bb4db83-ca1e-4ec8-8ce1-35b7a0e3b73d", "name": "", "slug": "", "description": "oof once appliance fooey vibraphone teammate whereas kindly barring whoever", "selectors": [], "enabled": true, "creator_id": "150d7d2a-3944-4f56-a00d-31456b7572da", "pipeline_configs": [{"id": "53ddc603-0af9-4653-8fd8-748a718f6e3d", "created_at": "2026-09-14T08:30:49.632Z", "updated_at": "2025-07-12T10:22:59.203Z", "deleted_at": "2024-07-28T00:55:20.161Z", "scope": "workspace", "workspace_id": "65e6d72f-08c9-4a95-a9f1-85fa6c4202d7", "name": "", "pipeline_kind": "export", "selectors": [], "enabled": true, "definition": {"model": "mistral-moderation-latest"}}]} + application/json: {"id": "8158c835-0f52-4f37-81ea-34dcabc427fe", "created_at": "2025-03-27T06:42:02.980Z", "updated_at": "2026-04-25T11:18:51.427Z", "workspace_id": "1bb4db83-ca1e-4ec8-8ce1-35b7a0e3b73d", "name": "", "slug": "", "description": "oof once appliance fooey vibraphone teammate whereas kindly barring whoever", "selectors": [], "enabled": true, "creator_id": "150d7d2a-3944-4f56-a00d-31456b7572da", "pipeline_configs": [{"id": "53ddc603-0af9-4653-8fd8-748a718f6e3d", "created_at": "2026-09-14T08:30:49.632Z", "updated_at": "2025-07-12T10:22:59.203Z", "deleted_at": "2024-07-28T00:55:20.161Z", "scope": "workspace", "workspace_id": "65e6d72f-08c9-4a95-a9f1-85fa6c4202d7", "name": "", "slug": "", "pipeline_kind": "judge-v1", "selectors": [], "enabled": true, "definition": {"model": "mistral-moderation-latest"}}]} "400": application/json: {"detail": {"message": "", "error_code": "DATABASE_TIMEOUT"}} delete_pipeline_v1_observability_pipelines__pipeline_id__delete: @@ -13997,9 +14105,26 @@ examples: application/json: {"trials": {"count": 520843}} "400": application/json: {"detail": {"message": "", "error_code": "AUTH_FORBIDDEN_NOT_WORKSPACE_ADMIN"}} + search_pipeline_results_v1_observability_pipeline_results_search_post: + speakeasy-default-search-pipeline-results-v1-observability-pipeline-results-search-post: + parameters: + query: + page_size: 50 + requestBody: + application/json: {"pipeline_config_slugs": [""]} + responses: + "200": + application/json: {"pipeline_results": {}} + "400": + application/json: {"detail": {"message": "", "error_code": "EVALUATION_NOT_FOUND"}} + users_api_whoami: + speakeasy-default-users-api-whoami: + responses: + "200": + application/json: {"principal": {"principal_type": "user", "id": "8f14e45f-ceea-4e0a-9b0e-8f7d3c2a1b4e"}, "organization": {"id": "1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d", "name": "Acme Corp", "org_tier": "E", "internal": false, "kind": "S"}} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Python SDK Changes:\n* `mistral.beta.connectors.create()`: \n * `request.union(mcp).auth_methods[].union(oauth2).union(authorization_code).oauth2_server_metadata` **Changed**\n * `response` **Changed** (Breaking ⚠️)\n* `mistral.beta.connectors.list()`: `response.items[]` **Changed** (Breaking ⚠️)\n* `mistral.beta.connectors.get()`: `response` **Changed** (Breaking ⚠️)\n* `mistral.beta.connectors.update()`: \n * `request_body.union(mcp).auth_methods[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.list()`: **Added**\n* `mistral.beta.observability.evaluations.get()`: **Added**\n* `mistral.beta.observability.evaluations.projects.list()`: **Added**\n* `mistral.beta.observability.evaluations.projects.get()`: **Added**\n* `mistral.beta.observability.evaluations.runs.search()`: **Added**\n* `mistral.beta.observability.evaluations.runs.search_all()`: **Added**\n* `mistral.beta.observability.evaluations.runs.get()`: **Added**\n* `mistral.beta.observability.evaluations.runs.get_statistics()`: **Added**\n* `mistral.beta.observability.evaluations.runs.compute_statistics()`: **Added**\n* `mistral.beta.observability.evaluations.records.get()`: **Added**\n* `mistral.beta.observability.evaluations.records.search()`: **Added**\n* `mistral.beta.observability.evaluations.optimizations.list()`: **Added**\n* `mistral.beta.observability.evaluations.optimizations.get()`: **Added**\n* `mistral.beta.observability.evaluations.optimizations.list_trials()`: **Added**\n* `mistral.beta.observability.judges.create()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.judges.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.judges.fetch()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.judges.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.judges.update()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.judges.judge_conversation()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.create()`: \n * `response.slug` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list()`: \n * `response.datasets.results[].slug` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.fetch()`: \n * `response.slug` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.update()`: \n * `response.slug` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list_records()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.create_record()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_file()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_playground()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_dataset_records()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.export_to_jsonl()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.fetch_task()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list_tasks()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.fetch()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.bulk_delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.judge()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.update_payload()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.update_properties()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.create_pipeline_config()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.list_pipeline_configs()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.get_pipeline_config()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.update_pipeline_config()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.delete_pipeline_config()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.create_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.list_pipelines()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.get_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.update_pipeline()`: \n * `request` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.delete_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.search()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.fetch_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.search()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.aggregate()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_by_id()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.fetch_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_span_by_id()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.aggregate()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.aggregate_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_latest_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_span_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_span_eval_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.fetch_span_field_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.fetch_span_eval_field_options()`: `error.detail.error_code` **Changed**\n* `mistral.files.upload()`: \n * `request.purpose` **Changed**\n * `response.purpose.enum(agentic_safety)` **Added**\n* `mistral.files.list()`: \n * `request.purpose` **Changed**\n * `response.data[].purpose.enum(agentic_safety)` **Added**\n* `mistral.files.retrieve()`: `response.purpose.enum(agentic_safety)` **Added**\n* `mistral.chat.complete()`: \n * `request.messages[].union(assistant).content.union(Array)[]` **Changed**\n * `response.choices[].message.content.union(Array)[]` **Changed**\n* `mistral.fim.complete()`: `response.choices[].message.content.union(Array)[]` **Changed**\n* `mistral.agents.complete()`: \n * `request.messages[].union(user).content.union(Array)[]` **Changed**\n * `response.choices[].message.content.union(Array)[]` **Changed**\n* `mistral.classifiers.moderate_chat()`: \n * `request.inputs.union(Array<>)[].union(assistant).content.union(Array)[]` **Changed**\n* `mistral.classifiers.classify_chat()`: \n * `request.input.union(InstructRequest).messages[].union(assistant).content.union(Array)[]` **Changed**\n* `mistral.audio.voices.list()`: `response.items[].kind` **Added**\n* `mistral.audio.voices.create()`: `response.kind` **Added**\n* `mistral.audio.voices.delete()`: `response.kind` **Added**\n* `mistral.audio.voices.update()`: `response.kind` **Added**\n* `mistral.audio.voices.get()`: `response.kind` **Added**\n* `mistral.audio.voices.search()`: `response.data[].kind` **Added**\n* `mistral.workflows.get_workflow_registrations()`: `request.workflow_name` **Added**\n" +releaseNotes: "## Python SDK Changes:\n* `mistral.beta.service_accounts.set_roles()`: `request.role_ids` **Changed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.update_pipeline()`: \n * `request.definitions[].sampling` **Added**\n * `response.pipeline_configs[]` **Changed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.get_pipeline()`: `response.pipeline_configs[]` **Changed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.list_pipelines()`: `response.pipelines.results[].pipeline_configs[]` **Changed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.create_pipeline()`: \n * `request.definitions[].sampling` **Added**\n * `response.pipeline_configs[]` **Changed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.get_pipeline_config()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.delete_pipeline_config()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.update_pipeline_config()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.observability.spans.search_pipeline_results()`: **Added**\n* `mistral.beta.observability.evaluations.list_pipeline_configs()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.observability.evaluations.create_pipeline_config()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.users.whoami()`: **Added**\n* `mistral.chat.complete()`: \n * `request` **Changed**\n * `response.choices[]` **Changed**\n* `mistral.fim.complete()`: `response.choices[]` **Changed**\n* `mistral.agents.complete()`: \n * `request` **Changed**\n * `response.choices[]` **Changed**\n* `mistral.audio.voices.create()`: `request.sample_audio` **Changed**\n" generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 54485ddc4..c7de417ef 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 3.1.0 + version: 3.2.0 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 515eaa7a7..f8aa0bd6c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,8 +16,8 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:0f0cd5f8c49b7aef4ce394319ea6d3d528b13db1687fd74758e95aa24ccf0080 - sourceBlobDigest: sha256:042ce5a3793fde34859bd5dc853ba71d866a369949d8555207cccf50e07432b3 + sourceRevisionDigest: sha256:70a19eb0e9b0dc04c743393a6ccd1f9f3dee19a2515497be1553e49723224a5a + sourceBlobDigest: sha256:9d5e60c1d8d4b518dd474b43aa3c51973b5036c4b077054e0f9efb7260f5add3 tags: - latest - 1.0.0 @@ -39,10 +39,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:0f0cd5f8c49b7aef4ce394319ea6d3d528b13db1687fd74758e95aa24ccf0080 - sourceBlobDigest: sha256:042ce5a3793fde34859bd5dc853ba71d866a369949d8555207cccf50e07432b3 + sourceRevisionDigest: sha256:70a19eb0e9b0dc04c743393a6ccd1f9f3dee19a2515497be1553e49723224a5a + sourceBlobDigest: sha256:9d5e60c1d8d4b518dd474b43aa3c51973b5036c4b077054e0f9efb7260f5add3 codeSamplesNamespace: mistral-openapi-python-code-samples - codeSamplesRevisionDigest: sha256:5648198ba0c5b8fdee77c5502e11b89b7d5307291bc72f134c38cbb622b1eacc + codeSamplesRevisionDigest: sha256:f56eb82503ad8298d6c12c9accd1658a915c4c10f06587cfe9cc29ac297ac4c6 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.796.4 @@ -56,6 +56,8 @@ workflow: mistral-openapi: inputs: - location: ../openapi/specs/v2/main-sdk.yaml + overlays: + - location: .speakeasy/connector-id-or-name-overlay.yaml registry: location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi targets: diff --git a/MIGRATION.md b/MIGRATION.md index 629163254..099839d1a 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -23,21 +23,6 @@ The SDK depends on `httpx2` instead of `httpx`, and the `agents` extra on `mcp>= - `mistral.beta.connectors.http_client()` returns an `httpx2.AsyncClient`. - MCP results use MCP 2.2 field names, e.g. `structured_content` instead of `structuredContent`. -## Service-Account Authentication - -`Mistral()` reads a service-account token from the file at `MISTRAL_SA_TOKEN_PATH` when one is configured. Credentials resolve in this order: - -1. An `Authorization` header you set yourself, through `http_headers` or per request -2. An explicit `api_key` or `security` passed to the client -3. The token file at `MISTRAL_SA_TOKEN_PATH` -4. `MISTRAL_API_KEY` - -Set both `MISTRAL_SA_TOKEN_PATH` and `MISTRAL_API_KEY` and the token file wins, so an environment carrying both authenticates as the service account where v2 used the API key. - -The file is re-read on every request so rotation is picked up without a restart. If `MISTRAL_SA_TOKEN_PATH` is set but the file is missing, unreadable or empty, every request that would otherwise use the token file or `MISTRAL_API_KEY` raises `ServiceAccountTokenError`, with no fallback; unset the variable rather than leaving it pointing at a path that does not exist. An explicit `api_key` or `security` short-circuits the lookup, so it is unaffected. - -The token is sent to whatever `server_url` the client is configured with. `MistralAzure` and `MistralGCP` do not read it. - ## Chat and Agents Completions `chat.complete`, `chat.stream`, `agents.complete` and `agents.stream` no longer accept the `web_search`, `web_search_premium` and `code_interpreter` tools. Use them through the Conversations API (`beta.conversations`) or an agent created with `beta.agents.create`, where `WebSearchTool`, `WebSearchPremiumTool` and `CodeInterpreterTool` remain available. diff --git a/README-PYPI.md b/README-PYPI.md index d61b540c3..8097d959f 100644 --- a/README-PYPI.md +++ b/README-PYPI.md @@ -618,11 +618,6 @@ print(res.choices[0].message.content) ### [Beta.Observability.Evaluations](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md) -* [create_pipeline_config](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#create_pipeline_config) - Create a worker pipeline configuration -* [list_pipeline_configs](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#list_pipeline_configs) - List worker pipeline configurations -* [get_pipeline_config](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#get_pipeline_config) - Get a worker pipeline configuration -* [update_pipeline_config](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#update_pipeline_config) - Replace a worker pipeline configuration -* [delete_pipeline_config](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#delete_pipeline_config) - Delete a worker pipeline configuration * [create_pipeline](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#create_pipeline) - Create a pipeline * [list_pipelines](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#list_pipelines) - List pipelines * [get_pipeline](https://github.com/mistralai/client-python/blob/main/docs/sdks/evaluations/README.md#get_pipeline) - Get a pipeline @@ -677,6 +672,7 @@ print(res.choices[0].message.content) * [aggregate_span_evaluations](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#aggregate_span_evaluations) - Aggregate span evaluations * [search_span_evaluations](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#search_span_evaluations) - Search span evaluations * [search_latest_span_evaluations](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#search_latest_span_evaluations) - Search latest span evaluations +* [search_pipeline_results](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#search_pipeline_results) - Search pipeline results * [list_span_fields](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#list_span_fields) - Get span field definitions * [list_span_eval_fields](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#list_span_eval_fields) - Get span evaluation field definitions * [fetch_span_field_options](https://github.com/mistralai/client-python/blob/main/docs/sdks/spans/README.md#fetch_span_field_options) - Get options for a span field @@ -760,6 +756,7 @@ print(res.choices[0].message.content) * [get_identity](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#get_identity) - Get Identity * [list_organizations](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#list_organizations) - List Organizations * [list_workspaces](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#list_workspaces) - List Workspaces +* [whoami](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#whoami) - Whoami ### [Chat](https://github.com/mistralai/client-python/blob/main/docs/sdks/chat/README.md) @@ -1102,8 +1099,8 @@ with Mistral( **Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/mistralerror.py)**: -* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 165 of 278 methods.* -* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 69 of 278 methods.* +* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 165 of 275 methods.* +* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 65 of 275 methods.* * [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute. diff --git a/README.md b/README.md index 456bb726b..62fadc416 100644 --- a/README.md +++ b/README.md @@ -618,11 +618,6 @@ print(res.choices[0].message.content) ### [Beta.Observability.Evaluations](docs/sdks/evaluations/README.md) -* [create_pipeline_config](docs/sdks/evaluations/README.md#create_pipeline_config) - Create a worker pipeline configuration -* [list_pipeline_configs](docs/sdks/evaluations/README.md#list_pipeline_configs) - List worker pipeline configurations -* [get_pipeline_config](docs/sdks/evaluations/README.md#get_pipeline_config) - Get a worker pipeline configuration -* [update_pipeline_config](docs/sdks/evaluations/README.md#update_pipeline_config) - Replace a worker pipeline configuration -* [delete_pipeline_config](docs/sdks/evaluations/README.md#delete_pipeline_config) - Delete a worker pipeline configuration * [create_pipeline](docs/sdks/evaluations/README.md#create_pipeline) - Create a pipeline * [list_pipelines](docs/sdks/evaluations/README.md#list_pipelines) - List pipelines * [get_pipeline](docs/sdks/evaluations/README.md#get_pipeline) - Get a pipeline @@ -677,6 +672,7 @@ print(res.choices[0].message.content) * [aggregate_span_evaluations](docs/sdks/spans/README.md#aggregate_span_evaluations) - Aggregate span evaluations * [search_span_evaluations](docs/sdks/spans/README.md#search_span_evaluations) - Search span evaluations * [search_latest_span_evaluations](docs/sdks/spans/README.md#search_latest_span_evaluations) - Search latest span evaluations +* [search_pipeline_results](docs/sdks/spans/README.md#search_pipeline_results) - Search pipeline results * [list_span_fields](docs/sdks/spans/README.md#list_span_fields) - Get span field definitions * [list_span_eval_fields](docs/sdks/spans/README.md#list_span_eval_fields) - Get span evaluation field definitions * [fetch_span_field_options](docs/sdks/spans/README.md#fetch_span_field_options) - Get options for a span field @@ -760,6 +756,7 @@ print(res.choices[0].message.content) * [get_identity](docs/sdks/users/README.md#get_identity) - Get Identity * [list_organizations](docs/sdks/users/README.md#list_organizations) - List Organizations * [list_workspaces](docs/sdks/users/README.md#list_workspaces) - List Workspaces +* [whoami](docs/sdks/users/README.md#whoami) - Whoami ### [Chat](docs/sdks/chat/README.md) @@ -1102,8 +1099,8 @@ with Mistral( **Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**: -* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 165 of 278 methods.* -* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 69 of 278 methods.* +* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 165 of 275 methods.* +* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 65 of 275 methods.* * [`ResponseValidationError`](./src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute. diff --git a/RELEASES.md b/RELEASES.md index 97a3783f0..9d6a6499e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1289,3 +1289,92 @@ Based on: - [python v3.1.0] . ### Releases - [PyPI v3.1.0] https://pypi.org/project/mistralai/3.1.0 - . + +## 2026-10-09 08:29:55 +### Generated SDK baseline differences +The published SDK or generator baseline differs from the baseline used by the OpenAPI changelog. + +
+Generated surface details + +#### Stable type changes +Changed types or signatures on the stable surface (2): +- `VoiceCreateRequest.sample_audio: str -> OptionalNullable[str]` +- `VoiceCreateRequestTypedDict.sample_audio: str -> NotRequired[Nullable[str]]` +#### Beta surface changes +Removed from the beta surface (64): +- `CreatePipelineConfigRequest` +- `DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest` +- `DetectionDefinition` +- `ExportDefinition` +- `GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest` +- `JudgeDefinition` +- `ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest` +- `ModerationDefinition` +- `PaginatedResultPipelineConfig` +- `PipelineConfigsResponse` +- `UpdatePipelineConfigRequest` +- `UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest` +- `CreatePipelineConfigRequest.definition` +- `CreatePipelineConfigRequest.description` +- `CreatePipelineConfigRequest.enabled` +- `CreatePipelineConfigRequest.name` +- `CreatePipelineConfigRequest.pipeline_kind` +- `CreatePipelineConfigRequest.selectors` +- `DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest.pipeline_config_id` +- `DetectionDefinition.patterns` +- `DetectionDefinition.target_attributes` +- `ExportDefinition.destination` +- `GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest.pipeline_config_id` +- `JudgeDefinition.mapping` +- `JudgeDefinition.slug` +- ...and 39 more + +Changed types or signatures in beta (6): +- `CreatePipelineRequest.definitions: List[JudgeDefinition] -> List[LlmJudgeReference]` +- `CreatePipelineRequestTypedDict.definitions: List[JudgeDefinitionTypedDict] -> List[LlmJudgeReferenceTypedDict]` +- `SetServiceAccountRolesRequest.role_ids: Optional[List[str]] -> List[str]` +- `SetServiceAccountRolesRequestTypedDict.role_ids: NotRequired[List[str]] -> List[str]` +- `UpdatePipelineRequest.definitions: Optional[List[JudgeDefinition]] -> Optional[List[LlmJudgeReference]]` +- `UpdatePipelineRequestTypedDict.definitions: NotRequired[List[JudgeDefinitionTypedDict]] -> NotRequired[List[LlmJudgeReferenceTypedDict]]` + +Now required on an existing beta model (2): +- `PipelineConfig.slug` +- `SetServiceAccountRolesRequest.role_ids` +
+ +### API changes +#### Beta API changes + +- Removed beta operations: `sdk.beta.observability.evaluations.get_pipeline_config()`, `sdk.beta.observability.evaluations.delete_pipeline_config()`, `sdk.beta.observability.evaluations.update_pipeline_config()`, `sdk.beta.observability.evaluations.create_pipeline_config()`, and `sdk.beta.observability.evaluations.list_pipeline_configs()`. +- Changed field `role_ids` in `sdk.beta.service_accounts.set_roles()`. +- Removed variants `DetectionDefinition`, `ExportDefinition`, `JudgeDefinition`, and `ModerationDefinition` from response `definition` in `sdk.beta.observability.evaluations.update_pipeline()`, `sdk.beta.observability.evaluations.get_pipeline()`, `sdk.beta.observability.evaluations.create_pipeline()`, and `sdk.beta.observability.evaluations.list_pipelines()`. +- Added variants `DetectionDefinitionV1`, `ExportDefinitionV1`, `JudgeDefinitionV1`, and `ModerationDefinitionV1` to response `definition` in `sdk.beta.observability.evaluations.update_pipeline()`, `sdk.beta.observability.evaluations.get_pipeline()`, `sdk.beta.observability.evaluations.create_pipeline()`, and `sdk.beta.observability.evaluations.list_pipelines()`. +- Removed fields `definitions` and `description` from response `pipeline_configs[]` in `sdk.beta.observability.evaluations.update_pipeline()`, `sdk.beta.observability.evaluations.get_pipeline()`, and `sdk.beta.observability.evaluations.create_pipeline()`. +- Removed enum values `detection`, `export`, `judge`, and `moderation` from response `pipeline_kind` in `sdk.beta.observability.evaluations.update_pipeline()`, `sdk.beta.observability.evaluations.get_pipeline()`, `sdk.beta.observability.evaluations.create_pipeline()`, and `sdk.beta.observability.evaluations.list_pipelines()`. +- Removed fields `definitions` and `description` from response `pipelines.results[].pipeline_configs[]` in `sdk.beta.observability.evaluations.list_pipelines()`. + +#### Added operations + +Beta: + +- `sdk.beta.observability.spans.search_pipeline_results()` +- `sdk.beta.users.whoami()` + +#### Schema changes + +- Added request field `sampling` in `sdk.beta.observability.evaluations.update_pipeline()` and `sdk.beta.observability.evaluations.create_pipeline()`. +- Added response enum values `detection_v1`, `export_v1`, `judge_v1`, and `moderation_v1` in `sdk.beta.observability.evaluations.update_pipeline()`, `sdk.beta.observability.evaluations.get_pipeline()`, `sdk.beta.observability.evaluations.create_pipeline()`, and `sdk.beta.observability.evaluations.list_pipelines()`. +- Added response fields `sampling` and `slug` in `sdk.beta.observability.evaluations.update_pipeline()`, `sdk.beta.observability.evaluations.get_pipeline()`, `sdk.beta.observability.evaluations.create_pipeline()`, and `sdk.beta.observability.evaluations.list_pipelines()`. +- Added request fields `logprobs`, `min_tokens`, `prompt_logprobs`, `repetition_penalty`, `top_k`, `top_logprobs`, and `top_prompt_logprobs` in `sdk.chat.complete()` and `sdk.agents.complete()`. +- Added response fields `logprobs` and `prompt_logprobs` in `sdk.chat.complete()`, `sdk.fim.complete()`, and `sdk.agents.complete()`. +- Changed request field `sample_audio` in `sdk.audio.voices.create()`. + +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v3.2.0] . +### Releases +- [PyPI v3.2.0] https://pypi.org/project/mistralai/3.2.0 - . diff --git a/docs/models/agentscompletionrequest.md b/docs/models/agentscompletionrequest.md index e011ee0a6..607904111 100644 --- a/docs/models/agentscompletionrequest.md +++ b/docs/models/agentscompletionrequest.md @@ -16,6 +16,13 @@ | `tool_choice` | [Optional[models.AgentsCompletionRequestToolChoice]](../models/agentscompletionrequesttoolchoice.md) | :heavy_minus_sign: | N/A | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | N/A | | diff --git a/docs/models/agentscompletionstreamrequest.md b/docs/models/agentscompletionstreamrequest.md index a67d25e36..351d83873 100644 --- a/docs/models/agentscompletionstreamrequest.md +++ b/docs/models/agentscompletionstreamrequest.md @@ -16,6 +16,13 @@ | `tool_choice` | [Optional[models.AgentsCompletionStreamRequestToolChoice]](../models/agentscompletionstreamrequesttoolchoice.md) | :heavy_minus_sign: | N/A | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | N/A | | diff --git a/docs/models/attributehashsampling.md b/docs/models/attributehashsampling.md new file mode 100644 index 000000000..ecb58c706 --- /dev/null +++ b/docs/models/attributehashsampling.md @@ -0,0 +1,10 @@ +# AttributeHashSampling + + +## Fields + +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `type` | *Literal["attribute_hash"]* | :heavy_check_mark: | N/A | +| `attribute` | *str* | :heavy_check_mark: | N/A | +| `percentage` | *float* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionchoice.md b/docs/models/chatcompletionchoice.md index 79d24a335..ad33d4d2f 100644 --- a/docs/models/chatcompletionchoice.md +++ b/docs/models/chatcompletionchoice.md @@ -3,9 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `index` | *int* | :heavy_check_mark: | N/A | 0 | -| `message` | [Optional[models.AssistantMessage]](../models/assistantmessage.md) | :heavy_minus_sign: | N/A | | -| `messages` | List[[models.DeltaMessage](../models/deltamessage.md)] | :heavy_minus_sign: | N/A | | -| `finish_reason` | [models.ChatCompletionChoiceFinishReason](../models/chatcompletionchoicefinishreason.md) | :heavy_check_mark: | N/A | stop | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `index` | *int* | :heavy_check_mark: | N/A | 0 | +| `message` | [Optional[models.AssistantMessage]](../models/assistantmessage.md) | :heavy_minus_sign: | N/A | | +| `messages` | List[[models.DeltaMessage](../models/deltamessage.md)] | :heavy_minus_sign: | N/A | | +| `finish_reason` | [models.ChatCompletionChoiceFinishReason](../models/chatcompletionchoicefinishreason.md) | :heavy_check_mark: | N/A | stop | +| `logprobs` | [OptionalNullable[models.ChatCompletionResponseChoiceLogprobs]](../models/chatcompletionresponsechoicelogprobs.md) | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | [OptionalNullable[models.ChatCompletionResponseChoiceLogprobs]](../models/chatcompletionresponsechoicelogprobs.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/chatcompletionrequest.md b/docs/models/chatcompletionrequest.md index f2635c41c..dff270737 100644 --- a/docs/models/chatcompletionrequest.md +++ b/docs/models/chatcompletionrequest.md @@ -19,6 +19,13 @@ | `tool_choice` | [Optional[models.ChatCompletionRequestToolChoice]](../models/chatcompletionrequesttoolchoice.md) | :heavy_minus_sign: | Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. | | diff --git a/docs/models/chatcompletionresponsechoicelogprobs.md b/docs/models/chatcompletionresponsechoicelogprobs.md new file mode 100644 index 000000000..5059edbd2 --- /dev/null +++ b/docs/models/chatcompletionresponsechoicelogprobs.md @@ -0,0 +1,8 @@ +# ChatCompletionResponseChoiceLogprobs + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `content` | List[[models.ChatCompletionResponseTokenLogprobsTopK](../models/chatcompletionresponsetokenlogprobstopk.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionresponsetokenlogprobs.md b/docs/models/chatcompletionresponsetokenlogprobs.md new file mode 100644 index 000000000..4efd44dca --- /dev/null +++ b/docs/models/chatcompletionresponsetokenlogprobs.md @@ -0,0 +1,11 @@ +# ChatCompletionResponseTokenLogprobs + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `token` | *str* | :heavy_check_mark: | N/A | +| `logprob` | *float* | :heavy_check_mark: | N/A | +| `bytes_` | List[*int*] | :heavy_check_mark: | N/A | +| `token_id` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionresponsetokenlogprobstopk.md b/docs/models/chatcompletionresponsetokenlogprobstopk.md new file mode 100644 index 000000000..7c7b26cd6 --- /dev/null +++ b/docs/models/chatcompletionresponsetokenlogprobstopk.md @@ -0,0 +1,12 @@ +# ChatCompletionResponseTokenLogprobsTopK + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `token` | *str* | :heavy_check_mark: | N/A | +| `logprob` | *float* | :heavy_check_mark: | N/A | +| `bytes_` | List[*int*] | :heavy_check_mark: | N/A | +| `token_id` | *int* | :heavy_check_mark: | N/A | +| `top_logprobs` | List[[models.ChatCompletionResponseTokenLogprobs](../models/chatcompletionresponsetokenlogprobs.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionstreamrequest.md b/docs/models/chatcompletionstreamrequest.md index 49acc5001..e966bc1b8 100644 --- a/docs/models/chatcompletionstreamrequest.md +++ b/docs/models/chatcompletionstreamrequest.md @@ -19,6 +19,13 @@ | `tool_choice` | [Optional[models.ChatCompletionStreamRequestToolChoice]](../models/chatcompletionstreamrequesttoolchoice.md) | :heavy_minus_sign: | Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. | | diff --git a/docs/models/completionresponsestreamchoice.md b/docs/models/completionresponsestreamchoice.md index 1532c25b8..a7f65dd96 100644 --- a/docs/models/completionresponsestreamchoice.md +++ b/docs/models/completionresponsestreamchoice.md @@ -7,4 +7,6 @@ | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | `index` | *int* | :heavy_check_mark: | N/A | | `delta` | [models.DeltaMessage](../models/deltamessage.md) | :heavy_check_mark: | N/A | -| `finish_reason` | [Nullable[models.CompletionResponseStreamChoiceFinishReason]](../models/completionresponsestreamchoicefinishreason.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `finish_reason` | [Nullable[models.CompletionResponseStreamChoiceFinishReason]](../models/completionresponsestreamchoicefinishreason.md) | :heavy_check_mark: | N/A | +| `logprobs` | [OptionalNullable[models.ChatCompletionResponseChoiceLogprobs]](../models/chatcompletionresponsechoicelogprobs.md) | :heavy_minus_sign: | N/A | +| `prompt_logprobs` | [OptionalNullable[models.ChatCompletionResponseChoiceLogprobs]](../models/chatcompletionresponsechoicelogprobs.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createpipelineconfigrequest.md b/docs/models/createpipelineconfigrequest.md deleted file mode 100644 index cf46da1a8..000000000 --- a/docs/models/createpipelineconfigrequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# CreatePipelineConfigRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createpipelinerequest.md b/docs/models/createpipelinerequest.md index b1981c44c..b29a7015c 100644 --- a/docs/models/createpipelinerequest.md +++ b/docs/models/createpipelinerequest.md @@ -8,5 +8,5 @@ | `name` | *str* | :heavy_check_mark: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definitions` | List[[models.JudgeDefinition](../models/judgedefinition.md)] | :heavy_check_mark: | N/A | +| `definitions` | List[[models.LlmJudgeReference](../models/llmjudgereference.md)] | :heavy_check_mark: | N/A | | `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createserviceaccountrequest.md b/docs/models/createserviceaccountrequest.md index 9380563f4..780bcd2ed 100644 --- a/docs/models/createserviceaccountrequest.md +++ b/docs/models/createserviceaccountrequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `workspace_id` | *str* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `role_ids` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `workspace_id` | *str* | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `role_ids` | List[*str*] | :heavy_minus_sign: | Workspace role UUIDs to assign. Omitted or empty lists default to member, which grants no role permissions. Workspace-wide sharing may still grant access. | \ No newline at end of file diff --git a/docs/models/deletepipelineconfigv1observabilitypipelineconfigspipelineconfigiddeleterequest.md b/docs/models/deletepipelineconfigv1observabilitypipelineconfigspipelineconfigiddeleterequest.md deleted file mode 100644 index 026bd8593..000000000 --- a/docs/models/deletepipelineconfigv1observabilitypipelineconfigspipelineconfigiddeleterequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------- | -------------------- | -------------------- | -------------------- | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/detectiondefinition.md b/docs/models/detectiondefinitionv1.md similarity index 97% rename from docs/models/detectiondefinition.md rename to docs/models/detectiondefinitionv1.md index d7af2737b..503e7a0b3 100644 --- a/docs/models/detectiondefinition.md +++ b/docs/models/detectiondefinitionv1.md @@ -1,4 +1,4 @@ -# DetectionDefinition +# DetectionDefinitionV1 ## Fields diff --git a/docs/models/getpipelineconfigv1observabilitypipelineconfigspipelineconfigidgetrequest.md b/docs/models/evaluationbooleanresultspec.md similarity index 62% rename from docs/models/getpipelineconfigv1observabilitypipelineconfigspipelineconfigidgetrequest.md rename to docs/models/evaluationbooleanresultspec.md index b9fc1024c..8c75f5ba7 100644 --- a/docs/models/getpipelineconfigv1observabilitypipelineconfigspipelineconfigidgetrequest.md +++ b/docs/models/evaluationbooleanresultspec.md @@ -1,8 +1,8 @@ -# GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest +# EvaluationBooleanResultSpec ## Fields | Field | Type | Required | Description | | -------------------- | -------------------- | -------------------- | -------------------- | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | *Literal["boolean"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/evaluationcategoricalresultspec.md b/docs/models/evaluationcategoricalresultspec.md new file mode 100644 index 000000000..46d3b0967 --- /dev/null +++ b/docs/models/evaluationcategoricalresultspec.md @@ -0,0 +1,9 @@ +# EvaluationCategoricalResultSpec + + +## Fields + +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `type` | *Literal["categorical"]* | :heavy_check_mark: | N/A | +| `labels` | List[*str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/evaluationnumericresultspec.md b/docs/models/evaluationnumericresultspec.md new file mode 100644 index 000000000..66d7f950c --- /dev/null +++ b/docs/models/evaluationnumericresultspec.md @@ -0,0 +1,10 @@ +# EvaluationNumericResultSpec + + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `type` | *Literal["numeric"]* | :heavy_check_mark: | N/A | +| `min` | *float* | :heavy_check_mark: | N/A | +| `max` | *float* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/evaluationresultspec.md b/docs/models/evaluationresultspec.md new file mode 100644 index 000000000..36a859a26 --- /dev/null +++ b/docs/models/evaluationresultspec.md @@ -0,0 +1,23 @@ +# EvaluationResultSpec + + +## Supported Types + +### `models.EvaluationBooleanResultSpec` + +```python +value: models.EvaluationBooleanResultSpec = /* values here */ +``` + +### `models.EvaluationCategoricalResultSpec` + +```python +value: models.EvaluationCategoricalResultSpec = /* values here */ +``` + +### `models.EvaluationNumericResultSpec` + +```python +value: models.EvaluationNumericResultSpec = /* values here */ +``` + diff --git a/docs/models/exportdefinition.md b/docs/models/exportdefinitionv1.md similarity index 97% rename from docs/models/exportdefinition.md rename to docs/models/exportdefinitionv1.md index 0061dc974..839d4df6c 100644 --- a/docs/models/exportdefinition.md +++ b/docs/models/exportdefinitionv1.md @@ -1,4 +1,4 @@ -# ExportDefinition +# ExportDefinitionV1 ## Fields diff --git a/docs/models/paginatedresultpipelineconfig.md b/docs/models/feedresultgetpipelineresult.md similarity index 73% rename from docs/models/paginatedresultpipelineconfig.md rename to docs/models/feedresultgetpipelineresult.md index 1520c7cf0..161f5a259 100644 --- a/docs/models/paginatedresultpipelineconfig.md +++ b/docs/models/feedresultgetpipelineresult.md @@ -1,11 +1,10 @@ -# PaginatedResultPipelineConfig +# FeedResultGetPipelineResult ## Fields | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `results` | List[[models.PipelineConfig](../models/pipelineconfig.md)] | :heavy_minus_sign: | N/A | -| `count` | *int* | :heavy_check_mark: | N/A | +| `results` | List[[models.PipelineResult](../models/pipelineresult.md)] | :heavy_minus_sign: | N/A | | `next` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `previous` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/updatepipelineconfigv1observabilitypipelineconfigspipelineconfigidputrequest.md b/docs/models/getpipelineresults.md similarity index 57% rename from docs/models/updatepipelineconfigv1observabilitypipelineconfigspipelineconfigidputrequest.md rename to docs/models/getpipelineresults.md index 0eb31092c..ac4cbd824 100644 --- a/docs/models/updatepipelineconfigv1observabilitypipelineconfigspipelineconfigidputrequest.md +++ b/docs/models/getpipelineresults.md @@ -1,9 +1,8 @@ -# UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest +# GetPipelineResults ## Fields | Field | Type | Required | Description | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | -| `update_pipeline_config_request` | [models.UpdatePipelineConfigRequest](../models/updatepipelineconfigrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `pipeline_results` | [models.FeedResultGetPipelineResult](../models/feedresultgetpipelineresult.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/judgedefinition.md b/docs/models/judgedefinition.md deleted file mode 100644 index 8aeb5fe48..000000000 --- a/docs/models/judgedefinition.md +++ /dev/null @@ -1,9 +0,0 @@ -# JudgeDefinition - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `slug` | *str* | :heavy_check_mark: | N/A | -| `mapping` | Dict[str, *str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/judgedefinitionv1.md b/docs/models/judgedefinitionv1.md new file mode 100644 index 000000000..93d74d4fe --- /dev/null +++ b/docs/models/judgedefinitionv1.md @@ -0,0 +1,18 @@ +# JudgeDefinitionV1 + +The fully materialized LLM judge behavior stored in a pipeline config. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `model` | *str* | :heavy_check_mark: | N/A | +| `prompt` | *str* | :heavy_check_mark: | N/A | +| `temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `top_p` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `max_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `random_seed` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `result_spec` | [models.EvaluationResultSpec](../models/evaluationresultspec.md) | :heavy_check_mark: | N/A | +| `mapping` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `use_cache` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md b/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md deleted file mode 100644 index b99b831ec..000000000 --- a/docs/models/listpipelineconfigsv1observabilitypipelineconfigsgetrequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `pipeline_kind` | [OptionalNullable[models.PipelineKind]](../models/pipelinekind.md) | :heavy_minus_sign: | N/A | -| `enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `q` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/llmjudgereference.md b/docs/models/llmjudgereference.md new file mode 100644 index 000000000..d211bc6b1 --- /dev/null +++ b/docs/models/llmjudgereference.md @@ -0,0 +1,12 @@ +# LlmJudgeReference + +The scorer selected to build a judge pipeline configuration. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `slug` | *str* | :heavy_check_mark: | N/A | +| `mapping` | Dict[str, *str*] | :heavy_minus_sign: | N/A | +| `sampling` | [OptionalNullable[models.PipelineConfigSampling]](../models/pipelineconfigsampling.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/moderationdefinition.md b/docs/models/moderationdefinitionv1.md similarity index 93% rename from docs/models/moderationdefinition.md rename to docs/models/moderationdefinitionv1.md index 2ffb4a023..be5dcfce1 100644 --- a/docs/models/moderationdefinition.md +++ b/docs/models/moderationdefinitionv1.md @@ -1,4 +1,4 @@ -# ModerationDefinition +# ModerationDefinitionV1 ## Fields diff --git a/docs/models/pipelineconfig.md b/docs/models/pipelineconfig.md index f02bd185e..8486327dd 100644 --- a/docs/models/pipelineconfig.md +++ b/docs/models/pipelineconfig.md @@ -3,18 +3,18 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `id` | *str* | :heavy_check_mark: | N/A | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `scope` | [models.PipelineConfigScope](../models/pipelineconfigscope.md) | :heavy_check_mark: | N/A | -| `workspace_id` | *str* | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `enabled` | *bool* | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `definitions` | List[[models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `deleted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `scope` | [models.PipelineConfigScope](../models/pipelineconfigscope.md) | :heavy_check_mark: | N/A | +| `workspace_id` | *str* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `slug` | *str* | :heavy_check_mark: | N/A | +| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | +| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | +| `sampling` | [OptionalNullable[models.PipelineConfigSampling]](../models/pipelineconfigsampling.md) | :heavy_minus_sign: | N/A | +| `enabled` | *bool* | :heavy_check_mark: | N/A | +| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/pipelineconfigdefinition.md b/docs/models/pipelineconfigdefinition.md index 629dd520a..ee4ccb455 100644 --- a/docs/models/pipelineconfigdefinition.md +++ b/docs/models/pipelineconfigdefinition.md @@ -3,27 +3,27 @@ ## Supported Types -### `models.DetectionDefinition` +### `models.DetectionDefinitionV1` ```python -value: models.DetectionDefinition = /* values here */ +value: models.DetectionDefinitionV1 = /* values here */ ``` -### `models.ModerationDefinition` +### `models.ModerationDefinitionV1` ```python -value: models.ModerationDefinition = /* values here */ +value: models.ModerationDefinitionV1 = /* values here */ ``` -### `models.JudgeDefinition` +### `models.JudgeDefinitionV1` ```python -value: models.JudgeDefinition = /* values here */ +value: models.JudgeDefinitionV1 = /* values here */ ``` -### `models.ExportDefinition` +### `models.ExportDefinitionV1` ```python -value: models.ExportDefinition = /* values here */ +value: models.ExportDefinitionV1 = /* values here */ ``` diff --git a/docs/models/pipelineconfigsampling.md b/docs/models/pipelineconfigsampling.md new file mode 100644 index 000000000..6fe06a7dc --- /dev/null +++ b/docs/models/pipelineconfigsampling.md @@ -0,0 +1,17 @@ +# PipelineConfigSampling + + +## Supported Types + +### `models.AttributeHashSampling` + +```python +value: models.AttributeHashSampling = /* values here */ +``` + +### `models.ProbabilisticSampling` + +```python +value: models.ProbabilisticSampling = /* values here */ +``` + diff --git a/docs/models/pipelineconfigsresponse.md b/docs/models/pipelineconfigsresponse.md deleted file mode 100644 index 5fec4252c..000000000 --- a/docs/models/pipelineconfigsresponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# PipelineConfigsResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `pipeline_configs` | [models.PaginatedResultPipelineConfig](../models/paginatedresultpipelineconfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/pipelinekind.md b/docs/models/pipelinekind.md index d1039b084..dc4056361 100644 --- a/docs/models/pipelinekind.md +++ b/docs/models/pipelinekind.md @@ -6,7 +6,7 @@ from mistralai.client.models import PipelineKind # Open enum: unrecognized values are captured as UnrecognizedStr -value: PipelineKind = "detection" +value: PipelineKind = "detection-v1" ``` @@ -14,7 +14,7 @@ value: PipelineKind = "detection" This is an open enum. Unrecognized values will not fail type checks. -- `"detection"` -- `"moderation"` -- `"judge"` -- `"export"` +- `"detection-v1"` +- `"moderation-v1"` +- `"judge-v1"` +- `"export-v1"` diff --git a/docs/models/pipelineresult.md b/docs/models/pipelineresult.md new file mode 100644 index 000000000..c0df237c3 --- /dev/null +++ b/docs/models/pipelineresult.md @@ -0,0 +1,15 @@ +# PipelineResult + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `trace_id` | *str* | :heavy_check_mark: | N/A | +| `span_id` | *str* | :heavy_check_mark: | N/A | +| `span_name` | *str* | :heavy_check_mark: | N/A | +| `duration_ns` | *int* | :heavy_check_mark: | N/A | +| `evaluated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `judge_scores` | Dict[str, *float*] | :heavy_check_mark: | N/A | +| `judge_labels` | Dict[str, *str*] | :heavy_check_mark: | N/A | +| `judge_explanations` | Dict[str, *str*] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/pipelineresultsrequest.md b/docs/models/pipelineresultsrequest.md new file mode 100644 index 000000000..6df10129f --- /dev/null +++ b/docs/models/pipelineresultsrequest.md @@ -0,0 +1,9 @@ +# PipelineResultsRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `pipeline_config_slugs` | List[*str*] | :heavy_check_mark: | N/A | +| `search_expression` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/principal.md b/docs/models/principal.md new file mode 100644 index 000000000..9c79ed21e --- /dev/null +++ b/docs/models/principal.md @@ -0,0 +1,19 @@ +# Principal + +The authenticated principal: either a user or a service account. + + +## Supported Types + +### `models.WhoamiServiceAccountPrincipal` + +```python +value: models.WhoamiServiceAccountPrincipal = /* values here */ +``` + +### `models.WhoamiUserPrincipal` + +```python +value: models.WhoamiUserPrincipal = /* values here */ +``` + diff --git a/docs/models/probabilisticsampling.md b/docs/models/probabilisticsampling.md new file mode 100644 index 000000000..49b58476d --- /dev/null +++ b/docs/models/probabilisticsampling.md @@ -0,0 +1,9 @@ +# ProbabilisticSampling + + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `type` | *Literal["probabilistic"]* | :heavy_check_mark: | N/A | +| `percentage` | *float* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/searchpipelineresultsv1observabilitypipelineresultssearchpostrequest.md b/docs/models/searchpipelineresultsv1observabilitypipelineresultssearchpostrequest.md new file mode 100644 index 000000000..b68b70ae7 --- /dev/null +++ b/docs/models/searchpipelineresultsv1observabilitypipelineresultssearchpostrequest.md @@ -0,0 +1,12 @@ +# SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `pipeline_results_request` | [models.PipelineResultsRequest](../models/pipelineresultsrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/setserviceaccountrolesrequest.md b/docs/models/setserviceaccountrolesrequest.md index e2b147758..0acc4248c 100644 --- a/docs/models/setserviceaccountrolesrequest.md +++ b/docs/models/setserviceaccountrolesrequest.md @@ -5,6 +5,6 @@ Request body for replacing the workspace roles assigned to a service account. ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `role_ids` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `role_ids` | List[*str*] | :heavy_check_mark: | Workspace role UUIDs to assign. Required and non-empty; omitted or empty lists return 422. Select member explicitly for no role-granted permissions; workspace-wide sharing may still grant access. | [
"7e69e493-caf6-4671-af60-84951754d9fc"
] | \ No newline at end of file diff --git a/docs/models/updatepipelineconfigrequest.md b/docs/models/updatepipelineconfigrequest.md deleted file mode 100644 index 7d0b1ba95..000000000 --- a/docs/models/updatepipelineconfigrequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# UpdatePipelineConfigRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `pipeline_kind` | [models.PipelineKind](../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `enabled` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatepipelinerequest.md b/docs/models/updatepipelinerequest.md index cd85a51d7..6008a65fc 100644 --- a/docs/models/updatepipelinerequest.md +++ b/docs/models/updatepipelinerequest.md @@ -8,5 +8,5 @@ | `name` | *Optional[str]* | :heavy_minus_sign: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `selectors` | List[[models.PipelineConfigSelector](../models/pipelineconfigselector.md)] | :heavy_minus_sign: | N/A | -| `definitions` | List[[models.JudgeDefinition](../models/judgedefinition.md)] | :heavy_minus_sign: | N/A | +| `definitions` | List[[models.LlmJudgeReference](../models/llmjudgereference.md)] | :heavy_minus_sign: | N/A | | `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/usersapiwhoamisecurity.md b/docs/models/usersapiwhoamisecurity.md new file mode 100644 index 000000000..fbc52dbc2 --- /dev/null +++ b/docs/models/usersapiwhoamisecurity.md @@ -0,0 +1,9 @@ +# UsersAPIWhoamiSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `dashboard_user_or_service_account_context_auth` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `bearer_user_context_auth` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/voicecreaterequest.md b/docs/models/voicecreaterequest.md index c1381cb69..5cc2d972e 100644 --- a/docs/models/voicecreaterequest.md +++ b/docs/models/voicecreaterequest.md @@ -16,5 +16,5 @@ Request model for creating a new voice with base64 audio. | `color` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `retention_notice` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `sample_audio` | *str* | :heavy_check_mark: | Base64-encoded audio file | +| `sample_audio` | *OptionalNullable[str]* | :heavy_minus_sign: | Base64-encoded audio file | | `sample_filename` | *OptionalNullable[str]* | :heavy_minus_sign: | Original filename for extension detection | \ No newline at end of file diff --git a/docs/models/whoamiorganization.md b/docs/models/whoamiorganization.md new file mode 100644 index 000000000..d7fc2774b --- /dev/null +++ b/docs/models/whoamiorganization.md @@ -0,0 +1,14 @@ +# WhoamiOrganization + +Organization identity and context for the authenticated caller. + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The organization's unique identifier. | 1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d | +| `name` | *str* | :heavy_check_mark: | The organization's display name. | Acme Corp | +| `org_tier` | *OptionalNullable[str]* | :heavy_minus_sign: | The organization's billing tier (e.g. 'E' for Enterprise). Null when not set. | E | +| `internal` | *Optional[bool]* | :heavy_minus_sign: | Whether this is a Mistral-internal organization. | **Example 1:** false
**Example 2:** true | +| `kind` | *Optional[str]* | :heavy_minus_sign: | The organization kind (e.g. 'S' standard, 'C' company internal, 'D' dogfooding). | **Example 1:** S
**Example 2:** C | \ No newline at end of file diff --git a/docs/models/whoamiresponse.md b/docs/models/whoamiresponse.md new file mode 100644 index 000000000..922a68a5f --- /dev/null +++ b/docs/models/whoamiresponse.md @@ -0,0 +1,17 @@ +# WhoamiResponse + +Principal-agnostic identity of the authenticated caller. + +Supersedes the user-centric ``/v1/users/me`` and ``/api/users/v2/me`` by +resolving any principal (user or service account) through a single call. The +``principal`` field is a discriminated union; the remaining fields are the +shared session context and apply to either principal kind. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `principal` | [models.Principal](../models/principal.md) | :heavy_check_mark: | The authenticated principal: either a user or a service account. | +| `organization` | [OptionalNullable[models.WhoamiOrganization]](../models/whoamiorganization.md) | :heavy_minus_sign: | The organization the caller's session is scoped to, when set. | +| `workspace` | [OptionalNullable[models.UserIdentityWorkspace]](../models/useridentityworkspace.md) | :heavy_minus_sign: | The workspace the caller's session is scoped to, when set. | \ No newline at end of file diff --git a/docs/models/whoamiserviceaccountprincipal.md b/docs/models/whoamiserviceaccountprincipal.md new file mode 100644 index 000000000..f24a810ae --- /dev/null +++ b/docs/models/whoamiserviceaccountprincipal.md @@ -0,0 +1,16 @@ +# WhoamiServiceAccountPrincipal + +Identity of a service-account principal. + +Carries service-account-only fields. Service accounts have no user profile +(no email or name of a person); ``name`` is the service account's own display +name. Resolved independently of the authentication mechanism. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `principal_type` | *Literal["service_account"]* | :heavy_check_mark: | Discriminator identifying a service-account principal. | service_account | +| `service_account_id` | *str* | :heavy_check_mark: | The service account's unique identifier. | 3b241101-e2bb-4255-8caf-4136c566a962 | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The service account's display name, when known. | ci-deploy-bot | \ No newline at end of file diff --git a/docs/models/whoamiuserprincipal.md b/docs/models/whoamiuserprincipal.md new file mode 100644 index 000000000..b54d7fdcf --- /dev/null +++ b/docs/models/whoamiuserprincipal.md @@ -0,0 +1,18 @@ +# WhoamiUserPrincipal + +Identity of a human user principal. + +Carries user-only fields. The ``principal_type`` discriminator makes this +variant mutually exclusive with the service-account variant, so a payload can +never carry both a user id and a service-account id. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `principal_type` | *Literal["user"]* | :heavy_check_mark: | Discriminator identifying a human user principal. | user | +| `id` | *str* | :heavy_check_mark: | The user's unique identifier. | 8f14e45f-ceea-4e0a-9b0e-8f7d3c2a1b4e | +| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | The user's email address, when known. | ada@example.com | +| `first_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The user's first name, when known. | Ada | +| `last_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The user's last name, when known. | Lovelace | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index 449d90ad7..cb950f4bb 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -55,6 +55,13 @@ with Mistral( | `tool_choice` | [Optional[models.AgentsCompletionRequestToolChoice]](../../models/agentscompletionrequesttoolchoice.md) | :heavy_minus_sign: | N/A | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | N/A | | @@ -124,6 +131,13 @@ with Mistral( | `tool_choice` | [Optional[models.AgentsCompletionStreamRequestToolChoice]](../../models/agentscompletionstreamrequesttoolchoice.md) | :heavy_minus_sign: | N/A | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | N/A | | diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index e9bbc68dd..f2741b6a3 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -57,6 +57,13 @@ with Mistral( | `tool_choice` | [Optional[models.ChatCompletionRequestToolChoice]](../../models/chatcompletionrequesttoolchoice.md) | :heavy_minus_sign: | Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. | | @@ -129,6 +136,13 @@ with Mistral( | `tool_choice` | [Optional[models.ChatCompletionStreamRequestToolChoice]](../../models/chatcompletionstreamrequesttoolchoice.md) | :heavy_minus_sign: | Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. | | | `presence_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. | | | `frequency_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. | | +| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `repetition_penalty` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | +| `top_k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | +| `prompt_logprobs` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `top_prompt_logprobs` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | | `n` | *OptionalNullable[int]* | :heavy_minus_sign: | Number of completions to return for each request, input tokens are only billed once. | | | `prediction` | [Optional[models.Prediction]](../../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | | | `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. | | diff --git a/docs/sdks/evaluations/README.md b/docs/sdks/evaluations/README.md index 4d55bc784..8a4ff27bd 100644 --- a/docs/sdks/evaluations/README.md +++ b/docs/sdks/evaluations/README.md @@ -4,11 +4,6 @@ ### Available Operations -* [create_pipeline_config](#create_pipeline_config) - Create a worker pipeline configuration -* [list_pipeline_configs](#list_pipeline_configs) - List worker pipeline configurations -* [get_pipeline_config](#get_pipeline_config) - Get a worker pipeline configuration -* [update_pipeline_config](#update_pipeline_config) - Replace a worker pipeline configuration -* [delete_pipeline_config](#delete_pipeline_config) - Delete a worker pipeline configuration * [create_pipeline](#create_pipeline) - Create a pipeline * [list_pipelines](#list_pipelines) - List pipelines * [get_pipeline](#get_pipeline) - Get a pipeline @@ -17,235 +12,6 @@ * [list](#list) - List evaluations for a project * [get](#get) - Get evaluation by slug -## create_pipeline_config - -Create a worker pipeline configuration - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.observability.evaluations.create_pipeline_config(name="", pipeline_kind="judge", selectors=[], definition={ - "slug": "", - }, enabled=True) - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `pipeline_kind` | [models.PipelineKind](../../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.PipelineConfig](../../models/pipelineconfig.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------- | ------------------------- | ------------------------- | -| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## list_pipeline_configs - -List worker pipeline configurations - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.observability.evaluations.list_pipeline_configs(page_size=50, page=1) - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `pipeline_kind` | [OptionalNullable[models.PipelineKind]](../../models/pipelinekind.md) | :heavy_minus_sign: | N/A | -| `enabled` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `q` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.PipelineConfigsResponse](../../models/pipelineconfigsresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------- | ------------------------- | ------------------------- | -| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get_pipeline_config - -Get a worker pipeline configuration - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.observability.evaluations.get_pipeline_config(pipeline_config_id="939fdf7d-2edf-45ca-bb75-a47326da1799") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.PipelineConfig](../../models/pipelineconfig.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------- | ------------------------- | ------------------------- | -| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## update_pipeline_config - -Replace a worker pipeline configuration - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.observability.evaluations.update_pipeline_config(pipeline_config_id="4ee75abd-cccd-4232-9858-0c535465bfd5", name="", pipeline_kind="detection", selectors=[], definition={ - "target_attributes": [ - "", - ], - "patterns": [ - { - "name": "", - "regex": "", - "category": "", - "confidence": "", - }, - ], - }, enabled=True) - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `pipeline_kind` | [models.PipelineKind](../../models/pipelinekind.md) | :heavy_check_mark: | N/A | -| `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definition` | [models.PipelineConfigDefinition](../../models/pipelineconfigdefinition.md) | :heavy_check_mark: | N/A | -| `enabled` | *bool* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Response - -**[models.PipelineConfig](../../models/pipelineconfig.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------- | ------------------------- | ------------------------- | -| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## delete_pipeline_config - -Delete a worker pipeline configuration - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - mistral.beta.observability.evaluations.delete_pipeline_config(pipeline_config_id="816cdd49-f7b2-4941-a73d-af3c25958c4d") - - # Use the SDK ... - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `pipeline_config_id` | *str* | :heavy_check_mark: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------- | ------------------------- | ------------------------- | -| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - ## create_pipeline Create a pipeline @@ -279,7 +45,7 @@ with Mistral( | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `name` | *str* | :heavy_check_mark: | N/A | | `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_check_mark: | N/A | -| `definitions` | List[[models.JudgeDefinition](../../models/judgedefinition.md)] | :heavy_check_mark: | N/A | +| `definitions` | List[[models.LlmJudgeReference](../../models/llmjudgereference.md)] | :heavy_check_mark: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | @@ -411,7 +177,7 @@ with Mistral( | `name` | *Optional[str]* | :heavy_minus_sign: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `selectors` | List[[models.PipelineConfigSelector](../../models/pipelineconfigselector.md)] | :heavy_minus_sign: | N/A | -| `definitions` | List[[models.JudgeDefinition](../../models/judgedefinition.md)] | :heavy_minus_sign: | N/A | +| `definitions` | List[[models.LlmJudgeReference](../../models/llmjudgereference.md)] | :heavy_minus_sign: | N/A | | `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | diff --git a/docs/sdks/serviceaccounts/README.md b/docs/sdks/serviceaccounts/README.md index 5c782e397..28ba82968 100644 --- a/docs/sdks/serviceaccounts/README.md +++ b/docs/sdks/serviceaccounts/README.md @@ -38,13 +38,13 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `workspace_id` | *str* | :heavy_check_mark: | N/A | -| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `role_ids` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `workspace_id` | *str* | :heavy_check_mark: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `role_ids` | List[*str*] | :heavy_minus_sign: | Workspace role UUIDs to assign. Omitted or empty lists default to member, which grants no role permissions. Workspace-wide sharing may still grant access. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -298,7 +298,9 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.service_accounts.set_roles(service_account_id="d4686916-124a-42f1-966f-9248b120b13c") + res = mistral.beta.service_accounts.set_roles(service_account_id="d4686916-124a-42f1-966f-9248b120b13c", role_ids=[ + "7e69e493-caf6-4671-af60-84951754d9fc", + ]) # Handle response print(res) @@ -307,11 +309,11 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `service_account_id` | *str* | :heavy_check_mark: | N/A | -| `role_ids` | List[*str*] | :heavy_minus_sign: | N/A | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `service_account_id` | *str* | :heavy_check_mark: | N/A | | +| `role_ids` | List[*str*] | :heavy_check_mark: | Workspace role UUIDs to assign. Required and non-empty; omitted or empty lists return 422. Select member explicitly for no role-granted permissions; workspace-wide sharing may still grant access. | [
"7e69e493-caf6-4671-af60-84951754d9fc"
] | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response diff --git a/docs/sdks/spans/README.md b/docs/sdks/spans/README.md index 10aa9a19f..866e70a54 100644 --- a/docs/sdks/spans/README.md +++ b/docs/sdks/spans/README.md @@ -9,6 +9,7 @@ * [aggregate_span_evaluations](#aggregate_span_evaluations) - Aggregate span evaluations * [search_span_evaluations](#search_span_evaluations) - Search span evaluations * [search_latest_span_evaluations](#search_latest_span_evaluations) - Search latest span evaluations +* [search_pipeline_results](#search_pipeline_results) - Search pipeline results * [list_span_fields](#list_span_fields) - Get span field definitions * [list_span_eval_fields](#list_span_eval_fields) - Get span evaluation field definitions * [fetch_span_field_options](#fetch_span_field_options) - Get options for a span field @@ -251,6 +252,54 @@ with Mistral( | errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## search_pipeline_results + +Search pipeline results + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.observability.spans.search_pipeline_results(pipeline_config_slugs=[ + "", + ], page_size=50) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `pipeline_config_slugs` | List[*str*] | :heavy_check_mark: | N/A | +| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `cursor` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `search_expression` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.GetPipelineResults](../../models/getpipelineresults.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## list_span_fields Get span field definitions diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index a7c2bd732..2add30581 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -7,6 +7,7 @@ * [get_identity](#get_identity) - Get Identity * [list_organizations](#list_organizations) - List Organizations * [list_workspaces](#list_workspaces) - List Workspaces +* [whoami](#whoami) - Whoami ## get_identity @@ -137,6 +138,48 @@ with Mistral() as mistral: ### Errors +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## whoami + +Return the authenticated caller's identity. + +Principal-agnostic: resolves both users and service accounts. + +### Example Usage + + +```python +from mistralai.client import Mistral, models +import os + + +with Mistral() as mistral: + + res = mistral.beta.users.whoami(security=models.UsersAPIWhoamiSecurity( + dashboard_user_or_service_account_context_auth=os.getenv("MISTRAL_DASHBOARD_USER_OR_SERVICE_ACCOUNT_CONTEXT_AUTH", ""), + )) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `security` | [models.UsersAPIWhoamiSecurity](../../usersapiwhoamisecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.WhoamiResponse](../../models/whoamiresponse.md)** + +### Errors + | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/voices/README.md b/docs/sdks/voices/README.md index 9cce61ba2..ee10d1b0b 100644 --- a/docs/sdks/voices/README.md +++ b/docs/sdks/voices/README.md @@ -73,7 +73,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.audio.voices.create(name="", sample_audio="", retention_notice=30) + res = mistral.audio.voices.create(name="", retention_notice=30) # Handle response print(res) @@ -85,7 +85,6 @@ with Mistral( | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `name` | *str* | :heavy_check_mark: | N/A | -| `sample_audio` | *str* | :heavy_check_mark: | Base64-encoded audio file | | `slug` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `languages` | List[*str*] | :heavy_minus_sign: | N/A | | `gender` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | @@ -94,6 +93,7 @@ with Mistral( | `color` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `retention_notice` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `sample_audio` | *OptionalNullable[str]* | :heavy_minus_sign: | Base64-encoded audio file | | `sample_filename` | *OptionalNullable[str]* | :heavy_minus_sign: | Original filename for extension detection | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | diff --git a/pyproject.toml b/pyproject.toml index 1711f6f6b..2570f0bac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "3.1.0" +version = "3.2.0" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index 8ab8f2837..18c019953 100644 --- a/src/mistralai/client/_version.py +++ b/src/mistralai/client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "mistralai" -__version__: str = "3.1.0" +__version__: str = "3.2.0" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.935.1" -__user_agent__: str = "speakeasy-sdk/python 3.1.0 2.935.1 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 3.2.0 2.935.1 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/agents.py b/src/mistralai/client/agents.py index 131deb53f..33c5dc7a4 100644 --- a/src/mistralai/client/agents.py +++ b/src/mistralai/client/agents.py @@ -47,6 +47,13 @@ def complete( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -81,6 +88,13 @@ def complete( :param tool_choice: :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: @@ -129,6 +143,13 @@ def complete( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] @@ -241,6 +262,13 @@ async def complete_async( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -275,6 +303,13 @@ async def complete_async( :param tool_choice: :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: @@ -323,6 +358,13 @@ async def complete_async( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] @@ -435,6 +477,13 @@ def stream( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -471,6 +520,13 @@ def stream( :param tool_choice: :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: @@ -519,6 +575,13 @@ def stream( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] @@ -641,6 +704,13 @@ async def stream_async( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -677,6 +747,13 @@ async def stream_async( :param tool_choice: :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: @@ -725,6 +802,13 @@ async def stream_async( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] diff --git a/src/mistralai/client/chat.py b/src/mistralai/client/chat.py index ccf490913..73136f813 100644 --- a/src/mistralai/client/chat.py +++ b/src/mistralai/client/chat.py @@ -134,6 +134,13 @@ def complete( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -171,6 +178,13 @@ def complete( :param tool_choice: Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool. :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. @@ -223,6 +237,13 @@ def complete( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] @@ -337,6 +358,13 @@ async def complete_async( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -374,6 +402,13 @@ async def complete_async( :param tool_choice: Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool. :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. @@ -426,6 +461,13 @@ async def complete_async( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] @@ -540,6 +582,13 @@ def stream( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -579,6 +628,13 @@ def stream( :param tool_choice: Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool. :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. @@ -631,6 +687,13 @@ def stream( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] @@ -755,6 +818,13 @@ async def stream_async( ] = None, presence_penalty: OptionalNullable[float] = UNSET, frequency_penalty: OptionalNullable[float] = UNSET, + min_tokens: OptionalNullable[int] = UNSET, + repetition_penalty: OptionalNullable[float] = UNSET, + top_k: OptionalNullable[int] = UNSET, + logprobs: OptionalNullable[bool] = UNSET, + top_logprobs: OptionalNullable[int] = UNSET, + prompt_logprobs: OptionalNullable[bool] = UNSET, + top_prompt_logprobs: OptionalNullable[int] = UNSET, n: OptionalNullable[int] = UNSET, prediction: Optional[ Union[models.Prediction, models.PredictionTypedDict] @@ -794,6 +864,13 @@ async def stream_async( :param tool_choice: Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `any` or `required` means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool. :param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative. :param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition. + :param min_tokens: + :param repetition_penalty: + :param top_k: + :param logprobs: + :param top_logprobs: + :param prompt_logprobs: + :param top_prompt_logprobs: :param n: Number of completions to return for each request, input tokens are only billed once. :param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. :param parallel_tool_calls: Whether to enable parallel function calling during tool use, when enabled the model can call multiple tools in parallel. @@ -846,6 +923,13 @@ async def stream_async( ), presence_penalty=presence_penalty, frequency_penalty=frequency_penalty, + min_tokens=min_tokens, + repetition_penalty=repetition_penalty, + top_k=top_k, + logprobs=logprobs, + top_logprobs=top_logprobs, + prompt_logprobs=prompt_logprobs, + top_prompt_logprobs=top_prompt_logprobs, n=n, prediction=utils.get_pydantic_model( prediction, Optional[models.Prediction] diff --git a/src/mistralai/client/evaluations.py b/src/mistralai/client/evaluations.py index 7ea645a19..487e0b7c3 100644 --- a/src/mistralai/client/evaluations.py +++ b/src/mistralai/client/evaluations.py @@ -39,1106 +39,6 @@ def _init_sdks(self): self.sdk_configuration, parent_ref=self.parent_ref ) - def create_pipeline_config( - self, - *, - name: str, - pipeline_kind: models.PipelineKind, - selectors: Union[ - Iterable[models.PipelineConfigSelector], - Iterable[models.PipelineConfigSelectorTypedDict], - ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict - ], - description: OptionalNullable[str] = UNSET, - enabled: Optional[bool] = True, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfig: - r"""Create a worker pipeline configuration - - :param name: - :param pipeline_kind: - :param selectors: - :param definition: - :param description: - :param enabled: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.CreatePipelineConfigRequest( - name=name, - pipeline_kind=pipeline_kind, - description=description, - selectors=utils.get_pydantic_model( - selectors, List[models.PipelineConfigSelector] - ), - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition - ), - enabled=enabled, - ) - - req = self._build_request( - method="POST", - path="/v1/observability/pipeline-configs", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=False, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreatePipelineConfigRequest - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="create_pipeline_config_v1_observability_pipeline_configs_post", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "201", "application/json"): - return unmarshal_json_response(models.PipelineConfig, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def create_pipeline_config_async( - self, - *, - name: str, - pipeline_kind: models.PipelineKind, - selectors: Union[ - Iterable[models.PipelineConfigSelector], - Iterable[models.PipelineConfigSelectorTypedDict], - ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict - ], - description: OptionalNullable[str] = UNSET, - enabled: Optional[bool] = True, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfig: - r"""Create a worker pipeline configuration - - :param name: - :param pipeline_kind: - :param selectors: - :param definition: - :param description: - :param enabled: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.CreatePipelineConfigRequest( - name=name, - pipeline_kind=pipeline_kind, - description=description, - selectors=utils.get_pydantic_model( - selectors, List[models.PipelineConfigSelector] - ), - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition - ), - enabled=enabled, - ) - - req = self._build_request_async( - method="POST", - path="/v1/observability/pipeline-configs", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=False, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.CreatePipelineConfigRequest - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="create_pipeline_config_v1_observability_pipeline_configs_post", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "201", "application/json"): - return unmarshal_json_response(models.PipelineConfig, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def list_pipeline_configs( - self, - *, - pipeline_kind: OptionalNullable[models.PipelineKind] = UNSET, - enabled: OptionalNullable[bool] = UNSET, - page_size: Optional[int] = 50, - page: Optional[int] = 1, - q: OptionalNullable[str] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfigsResponse: - r"""List worker pipeline configurations - - :param pipeline_kind: - :param enabled: - :param page_size: - :param page: - :param q: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest( - pipeline_kind=pipeline_kind, - enabled=enabled, - page_size=page_size, - page=page, - q=q, - ) - - req = self._build_request( - method="GET", - path="/v1/observability/pipeline-configs", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=False, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="list_pipeline_configs_v1_observability_pipeline_configs_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.PipelineConfigsResponse, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def list_pipeline_configs_async( - self, - *, - pipeline_kind: OptionalNullable[models.PipelineKind] = UNSET, - enabled: OptionalNullable[bool] = UNSET, - page_size: Optional[int] = 50, - page: Optional[int] = 1, - q: OptionalNullable[str] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfigsResponse: - r"""List worker pipeline configurations - - :param pipeline_kind: - :param enabled: - :param page_size: - :param page: - :param q: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest( - pipeline_kind=pipeline_kind, - enabled=enabled, - page_size=page_size, - page=page, - q=q, - ) - - req = self._build_request_async( - method="GET", - path="/v1/observability/pipeline-configs", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=False, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="list_pipeline_configs_v1_observability_pipeline_configs_get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.PipelineConfigsResponse, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def get_pipeline_config( - self, - *, - pipeline_config_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfig: - r"""Get a worker pipeline configuration - - :param pipeline_config_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest( - pipeline_config_id=pipeline_config_id, - ) - - req = self._build_request( - method="GET", - path="/v1/observability/pipeline-configs/{pipeline_config_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.PipelineConfig, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def get_pipeline_config_async( - self, - *, - pipeline_config_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfig: - r"""Get a worker pipeline configuration - - :param pipeline_config_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest( - pipeline_config_id=pipeline_config_id, - ) - - req = self._build_request_async( - method="GET", - path="/v1/observability/pipeline-configs/{pipeline_config_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="get_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__get", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.PipelineConfig, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def update_pipeline_config( - self, - *, - pipeline_config_id: str, - name: str, - pipeline_kind: models.PipelineKind, - selectors: Union[ - Iterable[models.PipelineConfigSelector], - Iterable[models.PipelineConfigSelectorTypedDict], - ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict - ], - enabled: bool, - description: OptionalNullable[str] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfig: - r"""Replace a worker pipeline configuration - - :param pipeline_config_id: - :param name: - :param pipeline_kind: - :param selectors: - :param definition: - :param enabled: - :param description: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest( - pipeline_config_id=pipeline_config_id, - update_pipeline_config_request=models.UpdatePipelineConfigRequest( - name=name, - pipeline_kind=pipeline_kind, - description=description, - selectors=utils.get_pydantic_model( - selectors, List[models.PipelineConfigSelector] - ), - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition - ), - enabled=enabled, - ), - ) - - req = self._build_request( - method="PUT", - path="/v1/observability/pipeline-configs/{pipeline_config_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.update_pipeline_config_request, - False, - False, - "json", - models.UpdatePipelineConfigRequest, - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="update_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__put", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.PipelineConfig, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def update_pipeline_config_async( - self, - *, - pipeline_config_id: str, - name: str, - pipeline_kind: models.PipelineKind, - selectors: Union[ - Iterable[models.PipelineConfigSelector], - Iterable[models.PipelineConfigSelectorTypedDict], - ], - definition: Union[ - models.PipelineConfigDefinition, models.PipelineConfigDefinitionTypedDict - ], - enabled: bool, - description: OptionalNullable[str] = UNSET, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.PipelineConfig: - r"""Replace a worker pipeline configuration - - :param pipeline_config_id: - :param name: - :param pipeline_kind: - :param selectors: - :param definition: - :param enabled: - :param description: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest( - pipeline_config_id=pipeline_config_id, - update_pipeline_config_request=models.UpdatePipelineConfigRequest( - name=name, - pipeline_kind=pipeline_kind, - description=description, - selectors=utils.get_pydantic_model( - selectors, List[models.PipelineConfigSelector] - ), - definition=utils.get_pydantic_model( - definition, models.PipelineConfigDefinition - ), - enabled=enabled, - ), - ) - - req = self._build_request_async( - method="PUT", - path="/v1/observability/pipeline-configs/{pipeline_config_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=True, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - get_serialized_body=lambda: utils.serialize_request_body( - request.update_pipeline_config_request, - False, - False, - "json", - models.UpdatePipelineConfigRequest, - ), - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="update_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__put", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.PipelineConfig, http_res) - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - def delete_pipeline_config( - self, - *, - pipeline_config_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ): - r"""Delete a worker pipeline configuration - - :param pipeline_config_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest( - pipeline_config_id=pipeline_config_id, - ) - - req = self._build_request( - method="DELETE", - path="/v1/observability/pipeline-configs/{pipeline_config_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = self.do_request( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="delete_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__delete", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "204", "*"): - return - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - - async def delete_pipeline_config_async( - self, - *, - pipeline_config_id: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ): - r"""Delete a worker pipeline configuration - - :param pipeline_config_id: - :param retries: Override the default retry configuration for this method - :param server_url: Override the default server URL for this method - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if timeout_ms is None: - timeout_ms = 300000 - - if server_url is not None: - base_url = server_url - else: - base_url = self._get_url(base_url, url_variables) - - request = models.DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest( - pipeline_config_id=pipeline_config_id, - ) - - req = self._build_request_async( - method="DELETE", - path="/v1/observability/pipeline-configs/{pipeline_config_id}", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - allow_empty_value=None, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["429", "500", "502", "503", "504"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - config=self.sdk_configuration, - base_url=base_url or "", - operation_id="delete_pipeline_config_v1_observability_pipeline_configs__pipeline_config_id__delete", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.observability.evaluations"], - extensions=None, - ), - request=req, - is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "204", "*"): - return - if utils.match_response( - http_res, ["400", "404", "408", "409", "422"], "application/json" - ): - response_data = unmarshal_json_response( - errors.ObservabilityErrorData, http_res - ) - raise errors.ObservabilityError(response_data, http_res) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError("API error occurred", http_res, http_res_text) - - raise errors.SDKError("Unexpected response received", http_res) - def create_pipeline( self, *, @@ -1148,7 +48,8 @@ def create_pipeline( Iterable[models.PipelineConfigSelectorTypedDict], ], definitions: Union[ - Iterable[models.JudgeDefinition], Iterable[models.JudgeDefinitionTypedDict] + Iterable[models.LlmJudgeReference], + Iterable[models.LlmJudgeReferenceTypedDict], ], description: OptionalNullable[str] = UNSET, enabled: Optional[bool] = True, @@ -1189,7 +90,7 @@ def create_pipeline( selectors, List[models.PipelineConfigSelector] ), definitions=utils.get_pydantic_model( - definitions, List[models.JudgeDefinition] + definitions, List[models.LlmJudgeReference] ), enabled=enabled, ) @@ -1267,7 +168,8 @@ async def create_pipeline_async( Iterable[models.PipelineConfigSelectorTypedDict], ], definitions: Union[ - Iterable[models.JudgeDefinition], Iterable[models.JudgeDefinitionTypedDict] + Iterable[models.LlmJudgeReference], + Iterable[models.LlmJudgeReferenceTypedDict], ], description: OptionalNullable[str] = UNSET, enabled: Optional[bool] = True, @@ -1308,7 +210,7 @@ async def create_pipeline_async( selectors, List[models.PipelineConfigSelector] ), definitions=utils.get_pydantic_model( - definitions, List[models.JudgeDefinition] + definitions, List[models.LlmJudgeReference] ), enabled=enabled, ) @@ -1789,8 +691,8 @@ def update_pipeline( ] = None, definitions: Optional[ Union[ - Iterable[models.JudgeDefinition], - Iterable[models.JudgeDefinitionTypedDict], + Iterable[models.LlmJudgeReference], + Iterable[models.LlmJudgeReferenceTypedDict], ] ] = None, enabled: Optional[bool] = None, @@ -1834,7 +736,7 @@ def update_pipeline( selectors, Optional[List[models.PipelineConfigSelector]] ), definitions=utils.get_pydantic_model( - definitions, Optional[List[models.JudgeDefinition]] + definitions, Optional[List[models.LlmJudgeReference]] ), enabled=enabled, ), @@ -1922,8 +824,8 @@ async def update_pipeline_async( ] = None, definitions: Optional[ Union[ - Iterable[models.JudgeDefinition], - Iterable[models.JudgeDefinitionTypedDict], + Iterable[models.LlmJudgeReference], + Iterable[models.LlmJudgeReferenceTypedDict], ] ] = None, enabled: Optional[bool] = None, @@ -1967,7 +869,7 @@ async def update_pipeline_async( selectors, Optional[List[models.PipelineConfigSelector]] ), definitions=utils.get_pydantic_model( - definitions, Optional[List[models.JudgeDefinition]] + definitions, Optional[List[models.LlmJudgeReference]] ), enabled=enabled, ), diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index 3b65d19f9..511fa9f5a 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -230,6 +230,10 @@ AssistantMessageContentTypedDict, AssistantMessageTypedDict, ) + from .attributehashsampling import ( + AttributeHashSampling, + AttributeHashSamplingTypedDict, + ) from .audio_v2_voices_listop import ( AudioV2VoicesListRequest, AudioV2VoicesListRequestTypedDict, @@ -320,6 +324,18 @@ ChatCompletionResponse, ChatCompletionResponseTypedDict, ) + from .chatcompletionresponsechoicelogprobs import ( + ChatCompletionResponseChoiceLogprobs, + ChatCompletionResponseChoiceLogprobsTypedDict, + ) + from .chatcompletionresponsetokenlogprobs import ( + ChatCompletionResponseTokenLogprobs, + ChatCompletionResponseTokenLogprobsTypedDict, + ) + from .chatcompletionresponsetokenlogprobstopk import ( + ChatCompletionResponseTokenLogprobsTopK, + ChatCompletionResponseTokenLogprobsTopKTypedDict, + ) from .chatcompletionstreamrequest import ( ChatCompletionStreamRequest, ChatCompletionStreamRequestMessage, @@ -691,10 +707,6 @@ CreateManagedIndexRequest, CreateManagedIndexRequestTypedDict, ) - from .createpipelineconfigrequest import ( - CreatePipelineConfigRequest, - CreatePipelineConfigRequestTypedDict, - ) from .createpipelinerequest import ( CreatePipelineRequest, CreatePipelineRequestTypedDict, @@ -824,10 +836,6 @@ DeleteModelV1ModelsModelIDDeleteRequest, DeleteModelV1ModelsModelIDDeleteRequestTypedDict, ) - from .delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop import ( - DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest, - DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequestTypedDict, - ) from .delete_pipeline_v1_observability_pipelines_pipeline_id_deleteop import ( DeletePipelineV1ObservabilityPipelinesPipelineIDDeleteRequest, DeletePipelineV1ObservabilityPipelinesPipelineIDDeleteRequestTypedDict, @@ -941,7 +949,10 @@ DeploymentWorkerSpecResponseTypedDict, UnknownBackendSpec, ) - from .detectiondefinition import DetectionDefinition, DetectionDefinitionTypedDict + from .detectiondefinitionv1 import ( + DetectionDefinitionV1, + DetectionDefinitionV1TypedDict, + ) from .detectionpattern import DetectionPattern, DetectionPatternTypedDict from .distancemetric import DistanceMetric from .document import Document, DocumentTypedDict @@ -981,6 +992,23 @@ from .encryptedpatchvalue import EncryptedPatchValue, EncryptedPatchValueTypedDict from .entitytype import EntityType from .equal import Equal, EqualTypedDict, EqualValue, EqualValueTypedDict + from .evaluationbooleanresultspec import ( + EvaluationBooleanResultSpec, + EvaluationBooleanResultSpecTypedDict, + ) + from .evaluationcategoricalresultspec import ( + EvaluationCategoricalResultSpec, + EvaluationCategoricalResultSpecTypedDict, + ) + from .evaluationnumericresultspec import ( + EvaluationNumericResultSpec, + EvaluationNumericResultSpecTypedDict, + ) + from .evaluationresultspec import ( + EvaluationResultSpec, + EvaluationResultSpecTypedDict, + UnknownEvaluationResultSpec, + ) from .evaluationrunfilterinput import ( EvaluationRunFilterInput, EvaluationRunFilterInputTypedDict, @@ -1060,13 +1088,17 @@ ExportDatasetResponse, ExportDatasetResponseTypedDict, ) - from .exportdefinition import ExportDefinition, ExportDefinitionTypedDict + from .exportdefinitionv1 import ExportDefinitionV1, ExportDefinitionV1TypedDict from .extendedoauthservermetadata import ( ExtendedOAuthServerMetadata, ExtendedOAuthServerMetadataTypedDict, ) from .failure import Failure, FailureTypedDict from .feedresultgetlog import FeedResultGetLog, FeedResultGetLogTypedDict + from .feedresultgetpipelineresult import ( + FeedResultGetPipelineResult, + FeedResultGetPipelineResultTypedDict, + ) from .feedresultgetspan import FeedResultGetSpan, FeedResultGetSpanTypedDict from .feedresultgetspanevaluation import ( FeedResultGetSpanEvaluation, @@ -1228,10 +1260,6 @@ GetOptimizationV1ObservabilityOptimizationsOptimizationIDGetRequest, GetOptimizationV1ObservabilityOptimizationsOptimizationIDGetRequestTypedDict, ) - from .get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop import ( - GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest, - GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequestTypedDict, - ) from .get_pipeline_v1_observability_pipelines_pipeline_id_getop import ( GetPipelineV1ObservabilityPipelinesPipelineIDGetRequest, GetPipelineV1ObservabilityPipelinesPipelineIDGetRequestTypedDict, @@ -1400,6 +1428,7 @@ from .getlogfieldoptions import GetLogFieldOptions, GetLogFieldOptionsTypedDict from .getlogfields import GetLogFields, GetLogFieldsTypedDict from .getlogs import GetLogs, GetLogsTypedDict + from .getpipelineresults import GetPipelineResults, GetPipelineResultsTypedDict from .getsignedurlresponse import ( GetSignedURLResponse, GetSignedURLResponseTypedDict, @@ -1599,7 +1628,7 @@ JudgeDatasetRecordRequest, JudgeDatasetRecordRequestTypedDict, ) - from .judgedefinition import JudgeDefinition, JudgeDefinitionTypedDict + from .judgedefinitionv1 import JudgeDefinitionV1, JudgeDefinitionV1TypedDict from .judgeoutput import Answer, AnswerTypedDict, JudgeOutput, JudgeOutputTypedDict from .judgeoutputtype import JudgeOutputType from .judgeregressionoutput import ( @@ -1732,10 +1761,6 @@ ListOptimizationsV1ObservabilityOptimizationsGetRequest, ListOptimizationsV1ObservabilityOptimizationsGetRequestTypedDict, ) - from .list_pipeline_configs_v1_observability_pipeline_configs_getop import ( - ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest, - ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequestTypedDict, - ) from .list_pipelines_v1_observability_pipelines_getop import ( ListPipelinesV1ObservabilityPipelinesGetRequest, ListPipelinesV1ObservabilityPipelinesGetRequestTypedDict, @@ -1850,6 +1875,7 @@ ListWorkspacesResponse, ListWorkspacesResponseTypedDict, ) + from .llmjudgereference import LlmJudgeReference, LlmJudgeReferenceTypedDict from .locationtype import LocationType from .logsrequest import LogsRequest, LogsRequestTypedDict, Order from .longarrayfielddefinition import ( @@ -1975,9 +2001,9 @@ ModelListTypedDict, UnknownModelListData, ) - from .moderationdefinition import ( - ModerationDefinition, - ModerationDefinitionTypedDict, + from .moderationdefinitionv1 import ( + ModerationDefinitionV1, + ModerationDefinitionV1TypedDict, ) from .moderationllmaction import ModerationLLMAction from .moderationllmv1categorythresholds import ( @@ -2161,10 +2187,6 @@ PaginatedResultPipeline, PaginatedResultPipelineTypedDict, ) - from .paginatedresultpipelineconfig import ( - PaginatedResultPipelineConfig, - PaginatedResultPipelineConfigTypedDict, - ) from .paginatedresultproject import ( PaginatedResultProject, PaginatedResultProjectTypedDict, @@ -2195,16 +2217,22 @@ PipelineConfigHeader, PipelineConfigHeaderTypedDict, ) + from .pipelineconfigsampling import ( + PipelineConfigSampling, + PipelineConfigSamplingTypedDict, + UnknownPipelineConfigSampling, + ) from .pipelineconfigscope import PipelineConfigScope from .pipelineconfigselector import ( PipelineConfigSelector, PipelineConfigSelectorTypedDict, ) - from .pipelineconfigsresponse import ( - PipelineConfigsResponse, - PipelineConfigsResponseTypedDict, - ) from .pipelinekind import PipelineKind + from .pipelineresult import PipelineResult, PipelineResultTypedDict + from .pipelineresultsrequest import ( + PipelineResultsRequest, + PipelineResultsRequestTypedDict, + ) from .pipelinesresponse import PipelinesResponse, PipelinesResponseTypedDict from .post_dataset_records_from_dataset_v1_observability_datasets_dataset_id_imports_from_dataset_postop import ( PostDatasetRecordsFromDatasetV1ObservabilityDatasetsDatasetIDImportsFromDatasetPostRequest, @@ -2224,6 +2252,10 @@ ) from .prediction import Prediction, PredictionTypedDict from .principaltype import PrincipalType + from .probabilisticsampling import ( + ProbabilisticSampling, + ProbabilisticSamplingTypedDict, + ) from .processingstatus import ProcessingStatus, ProcessingStatusTypedDict from .processstatus import ProcessStatus from .project import Project, ProjectTypedDict @@ -2539,6 +2571,10 @@ SearchLogsV1ObservabilityLogsSearchPostRequest, SearchLogsV1ObservabilityLogsSearchPostRequestTypedDict, ) + from .search_pipeline_results_v1_observability_pipeline_results_search_postop import ( + SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest, + SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequestTypedDict, + ) from .search_span_evaluations_v1_observability_spans_evaluations_search_postop import ( SearchSpanEvaluationsV1ObservabilitySpansEvaluationsSearchPostRequest, SearchSpanEvaluationsV1ObservabilitySpansEvaluationsSearchPostRequestTypedDict, @@ -3025,10 +3061,6 @@ UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequest, UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequestTypedDict, ) - from .update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop import ( - UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest, - UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequestTypedDict, - ) from .update_pipeline_v1_observability_pipelines_pipeline_id_putop import ( UpdatePipelineV1ObservabilityPipelinesPipelineIDPutRequest, UpdatePipelineV1ObservabilityPipelinesPipelineIDPutRequestTypedDict, @@ -3127,10 +3159,6 @@ UpdateMetricsRequestIndexMetricsTypedDict, ) from .updatemodelrequest import UpdateModelRequest, UpdateModelRequestTypedDict - from .updatepipelineconfigrequest import ( - UpdatePipelineConfigRequest, - UpdatePipelineConfigRequestTypedDict, - ) from .updatepipelinerequest import ( UpdatePipelineRequest, UpdatePipelineRequestTypedDict, @@ -3183,6 +3211,10 @@ UsersAPIListWorkspacesSecurity, UsersAPIListWorkspacesSecurityTypedDict, ) + from .users_api_whoamiop import ( + UsersAPIWhoamiSecurity, + UsersAPIWhoamiSecurityTypedDict, + ) from .userworkspace import UserWorkspace, UserWorkspaceTypedDict from .validationerror import ( Context, @@ -3205,6 +3237,19 @@ WebSearchPremiumToolTypedDict, ) from .websearchtool import WebSearchTool, WebSearchToolTypedDict + from .whoamiorganization import WhoamiOrganization, WhoamiOrganizationTypedDict + from .whoamiresponse import ( + Principal, + PrincipalTypedDict, + UnknownPrincipal, + WhoamiResponse, + WhoamiResponseTypedDict, + ) + from .whoamiserviceaccountprincipal import ( + WhoamiServiceAccountPrincipal, + WhoamiServiceAccountPrincipalTypedDict, + ) + from .whoamiuserprincipal import WhoamiUserPrincipal, WhoamiUserPrincipalTypedDict from .workflow import Workflow, WorkflowTypedDict from .workflowarchiveresponse import ( WorkflowArchiveResponse, @@ -3560,6 +3605,8 @@ "AssistantMessageContent", "AssistantMessageContentTypedDict", "AssistantMessageTypedDict", + "AttributeHashSampling", + "AttributeHashSamplingTypedDict", "Attributes", "AttributesTypedDict", "Audience", @@ -3643,6 +3690,12 @@ "ChatCompletionRequestToolTypedDict", "ChatCompletionRequestTypedDict", "ChatCompletionResponse", + "ChatCompletionResponseChoiceLogprobs", + "ChatCompletionResponseChoiceLogprobsTypedDict", + "ChatCompletionResponseTokenLogprobs", + "ChatCompletionResponseTokenLogprobsTopK", + "ChatCompletionResponseTokenLogprobsTopKTypedDict", + "ChatCompletionResponseTokenLogprobsTypedDict", "ChatCompletionResponseTypedDict", "ChatCompletionStreamRequest", "ChatCompletionStreamRequestMessage", @@ -3888,8 +3941,6 @@ "CreateLibraryRequestTypedDict", "CreateManagedIndexRequest", "CreateManagedIndexRequestTypedDict", - "CreatePipelineConfigRequest", - "CreatePipelineConfigRequestTypedDict", "CreatePipelineRequest", "CreatePipelineRequestTypedDict", "CreatePromptRequest", @@ -3984,8 +4035,6 @@ "DeleteModelResponseTypedDict", "DeleteModelV1ModelsModelIDDeleteRequest", "DeleteModelV1ModelsModelIDDeleteRequestTypedDict", - "DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest", - "DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequestTypedDict", "DeletePipelineV1ObservabilityPipelinesPipelineIDDeleteRequest", "DeletePipelineV1ObservabilityPipelinesPipelineIDDeleteRequestTypedDict", "DeletePromptResponse", @@ -4039,8 +4088,8 @@ "DeploymentWorkerSpecInputTypedDict", "DeploymentWorkerSpecResponse", "DeploymentWorkerSpecResponseTypedDict", - "DetectionDefinition", - "DetectionDefinitionTypedDict", + "DetectionDefinitionV1", + "DetectionDefinitionV1TypedDict", "DetectionPattern", "DetectionPatternTypedDict", "DistanceMetric", @@ -4086,6 +4135,14 @@ "EqualTypedDict", "EqualValue", "EqualValueTypedDict", + "EvaluationBooleanResultSpec", + "EvaluationBooleanResultSpecTypedDict", + "EvaluationCategoricalResultSpec", + "EvaluationCategoricalResultSpecTypedDict", + "EvaluationNumericResultSpec", + "EvaluationNumericResultSpecTypedDict", + "EvaluationResultSpec", + "EvaluationResultSpecTypedDict", "EvaluationRunFilterInput", "EvaluationRunFilterInputTypedDict", "EvaluationRunGenerationV2", @@ -4132,8 +4189,8 @@ "ExportDatasetResponseTypedDict", "ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequest", "ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequestTypedDict", - "ExportDefinition", - "ExportDefinitionTypedDict", + "ExportDefinitionV1", + "ExportDefinitionV1TypedDict", "Expression", "ExpressionTypedDict", "ExtendedOAuthServerMetadata", @@ -4155,6 +4212,8 @@ "FailureTypedDict", "FeedResultGetLog", "FeedResultGetLogTypedDict", + "FeedResultGetPipelineResult", + "FeedResultGetPipelineResultTypedDict", "FeedResultGetSpan", "FeedResultGetSpanEvaluation", "FeedResultGetSpanEvaluationTypedDict", @@ -4264,8 +4323,8 @@ "GetLogsTypedDict", "GetOptimizationV1ObservabilityOptimizationsOptimizationIDGetRequest", "GetOptimizationV1ObservabilityOptimizationsOptimizationIDGetRequestTypedDict", - "GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest", - "GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequestTypedDict", + "GetPipelineResults", + "GetPipelineResultsTypedDict", "GetPipelineV1ObservabilityPipelinesPipelineIDGetRequest", "GetPipelineV1ObservabilityPipelinesPipelineIDGetRequestTypedDict", "GetProjectEvaluationsV2V1ObservabilityProjectsProjectSlugEvaluationsV2GetRequest", @@ -4502,8 +4561,8 @@ "JudgeDatasetRecordRequestTypedDict", "JudgeDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIDLiveJudgingPostRequest", "JudgeDatasetRecordV1ObservabilityDatasetRecordsDatasetRecordIDLiveJudgingPostRequestTypedDict", - "JudgeDefinition", - "JudgeDefinitionTypedDict", + "JudgeDefinitionV1", + "JudgeDefinitionV1TypedDict", "JudgeOutput", "JudgeOutputType", "JudgeOutputTypedDict", @@ -4608,8 +4667,6 @@ "ListOptimizationsV1ObservabilityOptimizationsGetRequestTypedDict", "ListOrganizationsResponse", "ListOrganizationsResponseTypedDict", - "ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest", - "ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequestTypedDict", "ListPipelinesV1ObservabilityPipelinesGetRequest", "ListPipelinesV1ObservabilityPipelinesGetRequestTypedDict", "ListPromptVersionsResponse", @@ -4650,6 +4707,8 @@ "ListWorkflowEventResponseTypedDict", "ListWorkspacesResponse", "ListWorkspacesResponseTypedDict", + "LlmJudgeReference", + "LlmJudgeReferenceTypedDict", "Loc", "LocTypedDict", "Location", @@ -4756,8 +4815,8 @@ "ModelListData", "ModelListDataTypedDict", "ModelListTypedDict", - "ModerationDefinition", - "ModerationDefinitionTypedDict", + "ModerationDefinitionV1", + "ModerationDefinitionV1TypedDict", "ModerationLLMAction", "ModerationLlmv1CategoryThresholds", "ModerationLlmv1CategoryThresholdsTypedDict", @@ -4912,8 +4971,6 @@ "PaginatedResultOptimizationTrialWithObservationsTypedDict", "PaginatedResultOptimizationTypedDict", "PaginatedResultPipeline", - "PaginatedResultPipelineConfig", - "PaginatedResultPipelineConfigTypedDict", "PaginatedResultPipelineTypedDict", "PaginatedResultProject", "PaginatedResultProjectTypedDict", @@ -4939,13 +4996,17 @@ "PipelineConfigDefinitionTypedDict", "PipelineConfigHeader", "PipelineConfigHeaderTypedDict", + "PipelineConfigSampling", + "PipelineConfigSamplingTypedDict", "PipelineConfigScope", "PipelineConfigSelector", "PipelineConfigSelectorTypedDict", "PipelineConfigTypedDict", - "PipelineConfigsResponse", - "PipelineConfigsResponseTypedDict", "PipelineKind", + "PipelineResult", + "PipelineResultTypedDict", + "PipelineResultsRequest", + "PipelineResultsRequestTypedDict", "PipelineTypedDict", "PipelinesResponse", "PipelinesResponseTypedDict", @@ -4959,7 +5020,11 @@ "PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequestTypedDict", "Prediction", "PredictionTypedDict", + "Principal", "PrincipalType", + "PrincipalTypedDict", + "ProbabilisticSampling", + "ProbabilisticSamplingTypedDict", "ProcessStatus", "ProcessingStatus", "ProcessingStatusTypedDict", @@ -5207,6 +5272,8 @@ "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict", "SearchLogsV1ObservabilityLogsSearchPostRequest", "SearchLogsV1ObservabilityLogsSearchPostRequestTypedDict", + "SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest", + "SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequestTypedDict", "SearchRequest", "SearchRequestRetriever", "SearchRequestRetrieverTypedDict", @@ -5551,6 +5618,7 @@ "UnknownConversationEventsData", "UnknownDocumentFields", "UnknownEmbedding", + "UnknownEvaluationResultSpec", "UnknownGetDeploymentSummariesResponseDeploymentDeployment", "UnknownJSONPatch", "UnknownJobsAPIRoutesFineTuningUpdateFineTunedModelResponse", @@ -5558,6 +5626,8 @@ "UnknownModelConversationTool", "UnknownModelListData", "UnknownPayload", + "UnknownPipelineConfigSampling", + "UnknownPrincipal", "UnknownResourceChunkContent", "UnknownResponseRetrieveModelV1ModelsModelIDGet", "UnknownResult", @@ -5626,10 +5696,6 @@ "UpdateMetricsRequestIndexMetricsTypedDict", "UpdateModelRequest", "UpdateModelRequestTypedDict", - "UpdatePipelineConfigRequest", - "UpdatePipelineConfigRequestTypedDict", - "UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest", - "UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequestTypedDict", "UpdatePipelineRequest", "UpdatePipelineRequestTypedDict", "UpdatePipelineV1ObservabilityPipelinesPipelineIDPutRequest", @@ -5694,6 +5760,8 @@ "UsersAPIListWorkspacesResponseTypedDict", "UsersAPIListWorkspacesSecurity", "UsersAPIListWorkspacesSecurityTypedDict", + "UsersAPIWhoamiSecurity", + "UsersAPIWhoamiSecurityTypedDict", "ValidationError", "ValidationErrorTypedDict", "VectorDType", @@ -5715,6 +5783,14 @@ "WebSearchPremiumToolTypedDict", "WebSearchTool", "WebSearchToolTypedDict", + "WhoamiOrganization", + "WhoamiOrganizationTypedDict", + "WhoamiResponse", + "WhoamiResponseTypedDict", + "WhoamiServiceAccountPrincipal", + "WhoamiServiceAccountPrincipalTypedDict", + "WhoamiUserPrincipal", + "WhoamiUserPrincipalTypedDict", "WorkerStatus", "Workflow", "WorkflowArchiveResponse", @@ -5973,6 +6049,8 @@ "AssistantMessageContent": ".assistantmessage", "AssistantMessageContentTypedDict": ".assistantmessage", "AssistantMessageTypedDict": ".assistantmessage", + "AttributeHashSampling": ".attributehashsampling", + "AttributeHashSamplingTypedDict": ".attributehashsampling", "AudioV2VoicesListRequest": ".audio_v2_voices_listop", "AudioV2VoicesListRequestTypedDict": ".audio_v2_voices_listop", "AudioV2VoicesListResponse": ".audio_v2_voices_listop", @@ -6045,6 +6123,12 @@ "ChatCompletionRequestTypedDict": ".chatcompletionrequest", "ChatCompletionResponse": ".chatcompletionresponse", "ChatCompletionResponseTypedDict": ".chatcompletionresponse", + "ChatCompletionResponseChoiceLogprobs": ".chatcompletionresponsechoicelogprobs", + "ChatCompletionResponseChoiceLogprobsTypedDict": ".chatcompletionresponsechoicelogprobs", + "ChatCompletionResponseTokenLogprobs": ".chatcompletionresponsetokenlogprobs", + "ChatCompletionResponseTokenLogprobsTypedDict": ".chatcompletionresponsetokenlogprobs", + "ChatCompletionResponseTokenLogprobsTopK": ".chatcompletionresponsetokenlogprobstopk", + "ChatCompletionResponseTokenLogprobsTopKTypedDict": ".chatcompletionresponsetokenlogprobstopk", "ChatCompletionStreamRequest": ".chatcompletionstreamrequest", "ChatCompletionStreamRequestMessage": ".chatcompletionstreamrequest", "ChatCompletionStreamRequestMessageTypedDict": ".chatcompletionstreamrequest", @@ -6295,8 +6379,6 @@ "OwnerType": ".createlibraryrequest", "CreateManagedIndexRequest": ".createmanagedindexrequest", "CreateManagedIndexRequestTypedDict": ".createmanagedindexrequest", - "CreatePipelineConfigRequest": ".createpipelineconfigrequest", - "CreatePipelineConfigRequestTypedDict": ".createpipelineconfigrequest", "CreatePipelineRequest": ".createpipelinerequest", "CreatePipelineRequestTypedDict": ".createpipelinerequest", "CreatePromptRequest": ".createpromptrequest", @@ -6379,8 +6461,6 @@ "DeleteJudgeV1ObservabilityJudgesJudgeIDDeleteRequestTypedDict": ".delete_judge_v1_observability_judges_judge_id_deleteop", "DeleteModelV1ModelsModelIDDeleteRequest": ".delete_model_v1_models_model_id_deleteop", "DeleteModelV1ModelsModelIDDeleteRequestTypedDict": ".delete_model_v1_models_model_id_deleteop", - "DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest": ".delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop", - "DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequestTypedDict": ".delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop", "DeletePipelineV1ObservabilityPipelinesPipelineIDDeleteRequest": ".delete_pipeline_v1_observability_pipelines_pipeline_id_deleteop", "DeletePipelineV1ObservabilityPipelinesPipelineIDDeleteRequestTypedDict": ".delete_pipeline_v1_observability_pipelines_pipeline_id_deleteop", "DeleteServiceAccountV1ServiceAccountsServiceAccountIDDeleteRequest": ".delete_service_account_v1_service_accounts_service_account_id_deleteop", @@ -6450,8 +6530,8 @@ "DeploymentWorkerSpecResponse": ".deploymentworkerspecresponse", "DeploymentWorkerSpecResponseTypedDict": ".deploymentworkerspecresponse", "UnknownBackendSpec": ".deploymentworkerspecresponse", - "DetectionDefinition": ".detectiondefinition", - "DetectionDefinitionTypedDict": ".detectiondefinition", + "DetectionDefinitionV1": ".detectiondefinitionv1", + "DetectionDefinitionV1TypedDict": ".detectiondefinitionv1", "DetectionPattern": ".detectionpattern", "DetectionPatternTypedDict": ".detectionpattern", "DistanceMetric": ".distancemetric", @@ -6491,6 +6571,15 @@ "EqualTypedDict": ".equal", "EqualValue": ".equal", "EqualValueTypedDict": ".equal", + "EvaluationBooleanResultSpec": ".evaluationbooleanresultspec", + "EvaluationBooleanResultSpecTypedDict": ".evaluationbooleanresultspec", + "EvaluationCategoricalResultSpec": ".evaluationcategoricalresultspec", + "EvaluationCategoricalResultSpecTypedDict": ".evaluationcategoricalresultspec", + "EvaluationNumericResultSpec": ".evaluationnumericresultspec", + "EvaluationNumericResultSpecTypedDict": ".evaluationnumericresultspec", + "EvaluationResultSpec": ".evaluationresultspec", + "EvaluationResultSpecTypedDict": ".evaluationresultspec", + "UnknownEvaluationResultSpec": ".evaluationresultspec", "EvaluationRunFilterInput": ".evaluationrunfilterinput", "EvaluationRunFilterInputTypedDict": ".evaluationrunfilterinput", "EvaluationRunGenerationV2": ".evaluationrungenerationv2", @@ -6546,14 +6635,16 @@ "ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequestTypedDict": ".export_dataset_to_jsonl_v1_observability_datasets_dataset_id_exports_to_jsonl_getop", "ExportDatasetResponse": ".exportdatasetresponse", "ExportDatasetResponseTypedDict": ".exportdatasetresponse", - "ExportDefinition": ".exportdefinition", - "ExportDefinitionTypedDict": ".exportdefinition", + "ExportDefinitionV1": ".exportdefinitionv1", + "ExportDefinitionV1TypedDict": ".exportdefinitionv1", "ExtendedOAuthServerMetadata": ".extendedoauthservermetadata", "ExtendedOAuthServerMetadataTypedDict": ".extendedoauthservermetadata", "Failure": ".failure", "FailureTypedDict": ".failure", "FeedResultGetLog": ".feedresultgetlog", "FeedResultGetLogTypedDict": ".feedresultgetlog", + "FeedResultGetPipelineResult": ".feedresultgetpipelineresult", + "FeedResultGetPipelineResultTypedDict": ".feedresultgetpipelineresult", "FeedResultGetSpan": ".feedresultgetspan", "FeedResultGetSpanTypedDict": ".feedresultgetspan", "FeedResultGetSpanEvaluation": ".feedresultgetspanevaluation", @@ -6658,8 +6749,6 @@ "GetLogFieldOptionsV1ObservabilityLogsFieldsFieldNameOptionsGetRequestTypedDict": ".get_log_field_options_v1_observability_logs_fields_field_name_options_getop", "GetOptimizationV1ObservabilityOptimizationsOptimizationIDGetRequest": ".get_optimization_v1_observability_optimizations_optimization_id_getop", "GetOptimizationV1ObservabilityOptimizationsOptimizationIDGetRequestTypedDict": ".get_optimization_v1_observability_optimizations_optimization_id_getop", - "GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest": ".get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop", - "GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequestTypedDict": ".get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop", "GetPipelineV1ObservabilityPipelinesPipelineIDGetRequest": ".get_pipeline_v1_observability_pipelines_pipeline_id_getop", "GetPipelineV1ObservabilityPipelinesPipelineIDGetRequestTypedDict": ".get_pipeline_v1_observability_pipelines_pipeline_id_getop", "GetProjectEvaluationsV2V1ObservabilityProjectsProjectSlugEvaluationsV2GetRequest": ".get_project_evaluations_v2_v1_observability_projects_project_slug_evaluations_v2_getop", @@ -6761,6 +6850,8 @@ "GetLogFieldsTypedDict": ".getlogfields", "GetLogs": ".getlogs", "GetLogsTypedDict": ".getlogs", + "GetPipelineResults": ".getpipelineresults", + "GetPipelineResultsTypedDict": ".getpipelineresults", "GetSignedURLResponse": ".getsignedurlresponse", "GetSignedURLResponseTypedDict": ".getsignedurlresponse", "GetSpan": ".getspan", @@ -6925,8 +7016,8 @@ "JudgeConversationRequestTypedDict": ".judgeconversationrequest", "JudgeDatasetRecordRequest": ".judgedatasetrecordrequest", "JudgeDatasetRecordRequestTypedDict": ".judgedatasetrecordrequest", - "JudgeDefinition": ".judgedefinition", - "JudgeDefinitionTypedDict": ".judgedefinition", + "JudgeDefinitionV1": ".judgedefinitionv1", + "JudgeDefinitionV1TypedDict": ".judgedefinitionv1", "Answer": ".judgeoutput", "AnswerTypedDict": ".judgeoutput", "JudgeOutput": ".judgeoutput", @@ -7003,8 +7094,6 @@ "ListOptimizationTrialsV1ObservabilityOptimizationsOptimizationIDTrialsGetRequestTypedDict": ".list_optimization_trials_v1_observability_optimizations_optimization_id_trials_getop", "ListOptimizationsV1ObservabilityOptimizationsGetRequest": ".list_optimizations_v1_observability_optimizations_getop", "ListOptimizationsV1ObservabilityOptimizationsGetRequestTypedDict": ".list_optimizations_v1_observability_optimizations_getop", - "ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest": ".list_pipeline_configs_v1_observability_pipeline_configs_getop", - "ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequestTypedDict": ".list_pipeline_configs_v1_observability_pipeline_configs_getop", "ListPipelinesV1ObservabilityPipelinesGetRequest": ".list_pipelines_v1_observability_pipelines_getop", "ListPipelinesV1ObservabilityPipelinesGetRequestTypedDict": ".list_pipelines_v1_observability_pipelines_getop", "ListRunsV1WorkflowsRunsGetOrder": ".list_runs_v1_workflows_runs_getop", @@ -7076,6 +7165,8 @@ "ListWorkflowEventResponseTypedDict": ".listworkfloweventresponse", "ListWorkspacesResponse": ".listworkspacesresponse", "ListWorkspacesResponseTypedDict": ".listworkspacesresponse", + "LlmJudgeReference": ".llmjudgereference", + "LlmJudgeReferenceTypedDict": ".llmjudgereference", "LocationType": ".locationtype", "LogsRequest": ".logsrequest", "LogsRequestTypedDict": ".logsrequest", @@ -7185,8 +7276,8 @@ "ModelListDataTypedDict": ".modellist", "ModelListTypedDict": ".modellist", "UnknownModelListData": ".modellist", - "ModerationDefinition": ".moderationdefinition", - "ModerationDefinitionTypedDict": ".moderationdefinition", + "ModerationDefinitionV1": ".moderationdefinitionv1", + "ModerationDefinitionV1TypedDict": ".moderationdefinitionv1", "ModerationLLMAction": ".moderationllmaction", "ModerationLlmv1CategoryThresholds": ".moderationllmv1categorythresholds", "ModerationLlmv1CategoryThresholdsTypedDict": ".moderationllmv1categorythresholds", @@ -7339,8 +7430,6 @@ "PaginatedResultOptimizationTrialWithObservationsTypedDict": ".paginatedresultoptimizationtrialwithobservations", "PaginatedResultPipeline": ".paginatedresultpipeline", "PaginatedResultPipelineTypedDict": ".paginatedresultpipeline", - "PaginatedResultPipelineConfig": ".paginatedresultpipelineconfig", - "PaginatedResultPipelineConfigTypedDict": ".paginatedresultpipelineconfig", "PaginatedResultProject": ".paginatedresultproject", "PaginatedResultProjectTypedDict": ".paginatedresultproject", "PaginationInfo": ".paginationinfo", @@ -7363,12 +7452,17 @@ "PipelineConfigDefinitionTypedDict": ".pipelineconfigdefinition", "PipelineConfigHeader": ".pipelineconfigheader", "PipelineConfigHeaderTypedDict": ".pipelineconfigheader", + "PipelineConfigSampling": ".pipelineconfigsampling", + "PipelineConfigSamplingTypedDict": ".pipelineconfigsampling", + "UnknownPipelineConfigSampling": ".pipelineconfigsampling", "PipelineConfigScope": ".pipelineconfigscope", "PipelineConfigSelector": ".pipelineconfigselector", "PipelineConfigSelectorTypedDict": ".pipelineconfigselector", - "PipelineConfigsResponse": ".pipelineconfigsresponse", - "PipelineConfigsResponseTypedDict": ".pipelineconfigsresponse", "PipelineKind": ".pipelinekind", + "PipelineResult": ".pipelineresult", + "PipelineResultTypedDict": ".pipelineresult", + "PipelineResultsRequest": ".pipelineresultsrequest", + "PipelineResultsRequestTypedDict": ".pipelineresultsrequest", "PipelinesResponse": ".pipelinesresponse", "PipelinesResponseTypedDict": ".pipelinesresponse", "PostDatasetRecordsFromDatasetV1ObservabilityDatasetsDatasetIDImportsFromDatasetPostRequest": ".post_dataset_records_from_dataset_v1_observability_datasets_dataset_id_imports_from_dataset_postop", @@ -7382,6 +7476,8 @@ "Prediction": ".prediction", "PredictionTypedDict": ".prediction", "PrincipalType": ".principaltype", + "ProbabilisticSampling": ".probabilisticsampling", + "ProbabilisticSamplingTypedDict": ".probabilisticsampling", "ProcessingStatus": ".processingstatus", "ProcessingStatusTypedDict": ".processingstatus", "ProcessStatus": ".processstatus", @@ -7618,6 +7714,8 @@ "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict": ".search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop", "SearchLogsV1ObservabilityLogsSearchPostRequest": ".search_logs_v1_observability_logs_search_postop", "SearchLogsV1ObservabilityLogsSearchPostRequestTypedDict": ".search_logs_v1_observability_logs_search_postop", + "SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest": ".search_pipeline_results_v1_observability_pipeline_results_search_postop", + "SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequestTypedDict": ".search_pipeline_results_v1_observability_pipeline_results_search_postop", "SearchSpanEvaluationsV1ObservabilitySpansEvaluationsSearchPostRequest": ".search_span_evaluations_v1_observability_spans_evaluations_search_postop", "SearchSpanEvaluationsV1ObservabilitySpansEvaluationsSearchPostRequestTypedDict": ".search_span_evaluations_v1_observability_spans_evaluations_search_postop", "SearchSpansV1ObservabilitySpansSearchPostRequest": ".search_spans_v1_observability_spans_search_postop", @@ -7986,8 +8084,6 @@ "UpdateIndexV1RagManagedIndexesIndexNamePutRequestTypedDict": ".update_index_v1_rag_managed_indexes_index_name_putop", "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequest": ".update_judge_v1_observability_judges_judge_id_putop", "UpdateJudgeV1ObservabilityJudgesJudgeIDPutRequestTypedDict": ".update_judge_v1_observability_judges_judge_id_putop", - "UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest": ".update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop", - "UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequestTypedDict": ".update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop", "UpdatePipelineV1ObservabilityPipelinesPipelineIDPutRequest": ".update_pipeline_v1_observability_pipelines_pipeline_id_putop", "UpdatePipelineV1ObservabilityPipelinesPipelineIDPutRequestTypedDict": ".update_pipeline_v1_observability_pipelines_pipeline_id_putop", "UpdateRunInfoV1RagIngestionPipelineConfigurationsIDRunInfoPutRequest": ".update_run_info_v1_rag_ingestion_pipeline_configurations_id_run_info_putop", @@ -8046,8 +8142,6 @@ "UpdateMetricsRequestIndexMetricsTypedDict": ".updatemetricsrequestindexmetrics", "UpdateModelRequest": ".updatemodelrequest", "UpdateModelRequestTypedDict": ".updatemodelrequest", - "UpdatePipelineConfigRequest": ".updatepipelineconfigrequest", - "UpdatePipelineConfigRequestTypedDict": ".updatepipelineconfigrequest", "UpdatePipelineRequest": ".updatepipelinerequest", "UpdatePipelineRequestTypedDict": ".updatepipelinerequest", "UpdateRunInfo": ".updateruninfo", @@ -8088,6 +8182,8 @@ "UsersAPIListWorkspacesResponseTypedDict": ".users_api_list_workspacesop", "UsersAPIListWorkspacesSecurity": ".users_api_list_workspacesop", "UsersAPIListWorkspacesSecurityTypedDict": ".users_api_list_workspacesop", + "UsersAPIWhoamiSecurity": ".users_api_whoamiop", + "UsersAPIWhoamiSecurityTypedDict": ".users_api_whoamiop", "UserWorkspace": ".userworkspace", "UserWorkspaceTypedDict": ".userworkspace", "Context": ".validationerror", @@ -8114,6 +8210,17 @@ "WebSearchPremiumToolTypedDict": ".websearchpremiumtool", "WebSearchTool": ".websearchtool", "WebSearchToolTypedDict": ".websearchtool", + "WhoamiOrganization": ".whoamiorganization", + "WhoamiOrganizationTypedDict": ".whoamiorganization", + "Principal": ".whoamiresponse", + "PrincipalTypedDict": ".whoamiresponse", + "UnknownPrincipal": ".whoamiresponse", + "WhoamiResponse": ".whoamiresponse", + "WhoamiResponseTypedDict": ".whoamiresponse", + "WhoamiServiceAccountPrincipal": ".whoamiserviceaccountprincipal", + "WhoamiServiceAccountPrincipalTypedDict": ".whoamiserviceaccountprincipal", + "WhoamiUserPrincipal": ".whoamiuserprincipal", + "WhoamiUserPrincipalTypedDict": ".whoamiuserprincipal", "Workflow": ".workflow", "WorkflowTypedDict": ".workflow", "WorkflowArchiveResponse": ".workflowarchiveresponse", diff --git a/src/mistralai/client/models/agentscompletionrequest.py b/src/mistralai/client/models/agentscompletionrequest.py index dc2374714..84dbe04a0 100644 --- a/src/mistralai/client/models/agentscompletionrequest.py +++ b/src/mistralai/client/models/agentscompletionrequest.py @@ -119,6 +119,13 @@ class AgentsCompletionRequestTypedDict(TypedDict): r"""The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.""" frequency_penalty: NotRequired[Nullable[float]] r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: NotRequired[Nullable[int]] + repetition_penalty: NotRequired[Nullable[float]] + top_k: NotRequired[Nullable[int]] + logprobs: NotRequired[Nullable[bool]] + top_logprobs: NotRequired[Nullable[int]] + prompt_logprobs: NotRequired[Nullable[bool]] + top_prompt_logprobs: NotRequired[Nullable[int]] n: NotRequired[Nullable[int]] r"""Number of completions to return for each request, input tokens are only billed once.""" prediction: NotRequired[PredictionTypedDict] @@ -167,6 +174,20 @@ class AgentsCompletionRequest(BaseModel): frequency_penalty: OptionalNullable[float] = UNSET r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: OptionalNullable[int] = UNSET + + repetition_penalty: OptionalNullable[float] = UNSET + + top_k: OptionalNullable[int] = UNSET + + logprobs: OptionalNullable[bool] = UNSET + + top_logprobs: OptionalNullable[int] = UNSET + + prompt_logprobs: OptionalNullable[bool] = UNSET + + top_prompt_logprobs: OptionalNullable[int] = UNSET + n: OptionalNullable[int] = UNSET r"""Number of completions to return for each request, input tokens are only billed once.""" @@ -201,6 +222,13 @@ def serialize_model(self, handler): "tool_choice", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "prediction", "parallel_tool_calls", @@ -220,6 +248,13 @@ def serialize_model(self, handler): "tools", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "reasoning_effort", "prompt_mode", diff --git a/src/mistralai/client/models/agentscompletionstreamrequest.py b/src/mistralai/client/models/agentscompletionstreamrequest.py index 96062f45a..0d0b63322 100644 --- a/src/mistralai/client/models/agentscompletionstreamrequest.py +++ b/src/mistralai/client/models/agentscompletionstreamrequest.py @@ -118,6 +118,13 @@ class AgentsCompletionStreamRequestTypedDict(TypedDict): r"""The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.""" frequency_penalty: NotRequired[Nullable[float]] r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: NotRequired[Nullable[int]] + repetition_penalty: NotRequired[Nullable[float]] + top_k: NotRequired[Nullable[int]] + logprobs: NotRequired[Nullable[bool]] + top_logprobs: NotRequired[Nullable[int]] + prompt_logprobs: NotRequired[Nullable[bool]] + top_prompt_logprobs: NotRequired[Nullable[int]] n: NotRequired[Nullable[int]] r"""Number of completions to return for each request, input tokens are only billed once.""" prediction: NotRequired[PredictionTypedDict] @@ -165,6 +172,20 @@ class AgentsCompletionStreamRequest(BaseModel): frequency_penalty: OptionalNullable[float] = UNSET r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: OptionalNullable[int] = UNSET + + repetition_penalty: OptionalNullable[float] = UNSET + + top_k: OptionalNullable[int] = UNSET + + logprobs: OptionalNullable[bool] = UNSET + + top_logprobs: OptionalNullable[int] = UNSET + + prompt_logprobs: OptionalNullable[bool] = UNSET + + top_prompt_logprobs: OptionalNullable[int] = UNSET + n: OptionalNullable[int] = UNSET r"""Number of completions to return for each request, input tokens are only billed once.""" @@ -199,6 +220,13 @@ def serialize_model(self, handler): "tool_choice", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "prediction", "parallel_tool_calls", @@ -218,6 +246,13 @@ def serialize_model(self, handler): "tools", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "reasoning_effort", "prompt_mode", diff --git a/src/mistralai/client/models/attributehashsampling.py b/src/mistralai/client/models/attributehashsampling.py new file mode 100644 index 000000000..69a836106 --- /dev/null +++ b/src/mistralai/client/models/attributehashsampling.py @@ -0,0 +1,34 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class AttributeHashSamplingTypedDict(TypedDict): + attribute: str + percentage: float + type: Literal["attribute_hash"] + + +class AttributeHashSampling(BaseModel): + attribute: str + + percentage: float + + type: Annotated[ + Annotated[ + Literal["attribute_hash"], AfterValidator(validate_const("attribute_hash")) + ], + pydantic.Field(alias="type"), + ] = "attribute_hash" + + +try: + AttributeHashSampling.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/chatcompletionchoice.py b/src/mistralai/client/models/chatcompletionchoice.py index ab010dc99..7838646c8 100644 --- a/src/mistralai/client/models/chatcompletionchoice.py +++ b/src/mistralai/client/models/chatcompletionchoice.py @@ -2,8 +2,19 @@ from __future__ import annotations from .assistantmessage import AssistantMessage, AssistantMessageTypedDict +from .chatcompletionresponsechoicelogprobs import ( + ChatCompletionResponseChoiceLogprobs, + ChatCompletionResponseChoiceLogprobsTypedDict, +) from .deltamessage import DeltaMessage, DeltaMessageTypedDict -from mistralai.client.types import BaseModel, UNSET_SENTINEL, UnrecognizedStr +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, +) from pydantic import model_serializer from typing import List, Literal, Optional, Union from typing_extensions import NotRequired, TypedDict @@ -26,6 +37,10 @@ class ChatCompletionChoiceTypedDict(TypedDict): finish_reason: ChatCompletionChoiceFinishReason message: NotRequired[AssistantMessageTypedDict] messages: NotRequired[List[DeltaMessageTypedDict]] + logprobs: NotRequired[Nullable[ChatCompletionResponseChoiceLogprobsTypedDict]] + prompt_logprobs: NotRequired[ + Nullable[ChatCompletionResponseChoiceLogprobsTypedDict] + ] class ChatCompletionChoice(BaseModel): @@ -37,18 +52,31 @@ class ChatCompletionChoice(BaseModel): messages: Optional[List[DeltaMessage]] = None + logprobs: OptionalNullable[ChatCompletionResponseChoiceLogprobs] = UNSET + + prompt_logprobs: OptionalNullable[ChatCompletionResponseChoiceLogprobs] = UNSET + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["message", "messages"]) + optional_fields = set(["message", "messages", "logprobs", "prompt_logprobs"]) + nullable_fields = set(["logprobs", "prompt_logprobs"]) 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: + 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/chatcompletionrequest.py b/src/mistralai/client/models/chatcompletionrequest.py index 193c7674e..e0bb38a3b 100644 --- a/src/mistralai/client/models/chatcompletionrequest.py +++ b/src/mistralai/client/models/chatcompletionrequest.py @@ -127,6 +127,13 @@ class ChatCompletionRequestTypedDict(TypedDict): r"""The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.""" frequency_penalty: NotRequired[Nullable[float]] r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: NotRequired[Nullable[int]] + repetition_penalty: NotRequired[Nullable[float]] + top_k: NotRequired[Nullable[int]] + logprobs: NotRequired[Nullable[bool]] + top_logprobs: NotRequired[Nullable[int]] + prompt_logprobs: NotRequired[Nullable[bool]] + top_prompt_logprobs: NotRequired[Nullable[int]] n: NotRequired[Nullable[int]] r"""Number of completions to return for each request, input tokens are only billed once.""" prediction: NotRequired[PredictionTypedDict] @@ -186,6 +193,20 @@ class ChatCompletionRequest(BaseModel): frequency_penalty: OptionalNullable[float] = UNSET r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: OptionalNullable[int] = UNSET + + repetition_penalty: OptionalNullable[float] = UNSET + + top_k: OptionalNullable[int] = UNSET + + logprobs: OptionalNullable[bool] = UNSET + + top_logprobs: OptionalNullable[int] = UNSET + + prompt_logprobs: OptionalNullable[bool] = UNSET + + top_prompt_logprobs: OptionalNullable[int] = UNSET + n: OptionalNullable[int] = UNSET r"""Number of completions to return for each request, input tokens are only billed once.""" @@ -226,6 +247,13 @@ def serialize_model(self, handler): "tool_choice", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "prediction", "parallel_tool_calls", @@ -248,6 +276,13 @@ def serialize_model(self, handler): "tools", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "reasoning_effort", "prompt_mode", diff --git a/src/mistralai/client/models/chatcompletionresponsechoicelogprobs.py b/src/mistralai/client/models/chatcompletionresponsechoicelogprobs.py new file mode 100644 index 000000000..6f8d2479c --- /dev/null +++ b/src/mistralai/client/models/chatcompletionresponsechoicelogprobs.py @@ -0,0 +1,18 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .chatcompletionresponsetokenlogprobstopk import ( + ChatCompletionResponseTokenLogprobsTopK, + ChatCompletionResponseTokenLogprobsTopKTypedDict, +) +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class ChatCompletionResponseChoiceLogprobsTypedDict(TypedDict): + content: List[ChatCompletionResponseTokenLogprobsTopKTypedDict] + + +class ChatCompletionResponseChoiceLogprobs(BaseModel): + content: List[ChatCompletionResponseTokenLogprobsTopK] diff --git a/src/mistralai/client/models/chatcompletionresponsetokenlogprobs.py b/src/mistralai/client/models/chatcompletionresponsetokenlogprobs.py new file mode 100644 index 000000000..5eb51db65 --- /dev/null +++ b/src/mistralai/client/models/chatcompletionresponsetokenlogprobs.py @@ -0,0 +1,30 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel +import pydantic +from typing import List +from typing_extensions import Annotated, TypedDict + + +class ChatCompletionResponseTokenLogprobsTypedDict(TypedDict): + token: str + logprob: float + bytes_: List[int] + token_id: int + + +class ChatCompletionResponseTokenLogprobs(BaseModel): + token: str + + logprob: float + + bytes_: Annotated[List[int], pydantic.Field(alias="bytes")] + + token_id: int + + +try: + ChatCompletionResponseTokenLogprobs.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/chatcompletionresponsetokenlogprobstopk.py b/src/mistralai/client/models/chatcompletionresponsetokenlogprobstopk.py new file mode 100644 index 000000000..12284588b --- /dev/null +++ b/src/mistralai/client/models/chatcompletionresponsetokenlogprobstopk.py @@ -0,0 +1,71 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .chatcompletionresponsetokenlogprobs import ( + ChatCompletionResponseTokenLogprobs, + ChatCompletionResponseTokenLogprobsTypedDict, +) +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +import pydantic +from pydantic import model_serializer +from typing import List +from typing_extensions import Annotated, NotRequired, TypedDict + + +class ChatCompletionResponseTokenLogprobsTopKTypedDict(TypedDict): + token: str + logprob: float + bytes_: List[int] + token_id: int + top_logprobs: NotRequired[ + Nullable[List[ChatCompletionResponseTokenLogprobsTypedDict]] + ] + + +class ChatCompletionResponseTokenLogprobsTopK(BaseModel): + token: str + + logprob: float + + bytes_: Annotated[List[int], pydantic.Field(alias="bytes")] + + token_id: int + + top_logprobs: OptionalNullable[List[ChatCompletionResponseTokenLogprobs]] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["top_logprobs"]) + nullable_fields = set(["top_logprobs"]) + 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: + ChatCompletionResponseTokenLogprobsTopK.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/chatcompletionstreamrequest.py b/src/mistralai/client/models/chatcompletionstreamrequest.py index 9fa4a8736..c394bbbad 100644 --- a/src/mistralai/client/models/chatcompletionstreamrequest.py +++ b/src/mistralai/client/models/chatcompletionstreamrequest.py @@ -126,6 +126,13 @@ class ChatCompletionStreamRequestTypedDict(TypedDict): r"""The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.""" frequency_penalty: NotRequired[Nullable[float]] r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: NotRequired[Nullable[int]] + repetition_penalty: NotRequired[Nullable[float]] + top_k: NotRequired[Nullable[int]] + logprobs: NotRequired[Nullable[bool]] + top_logprobs: NotRequired[Nullable[int]] + prompt_logprobs: NotRequired[Nullable[bool]] + top_prompt_logprobs: NotRequired[Nullable[int]] n: NotRequired[Nullable[int]] r"""Number of completions to return for each request, input tokens are only billed once.""" prediction: NotRequired[PredictionTypedDict] @@ -184,6 +191,20 @@ class ChatCompletionStreamRequest(BaseModel): frequency_penalty: OptionalNullable[float] = UNSET r"""The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" + min_tokens: OptionalNullable[int] = UNSET + + repetition_penalty: OptionalNullable[float] = UNSET + + top_k: OptionalNullable[int] = UNSET + + logprobs: OptionalNullable[bool] = UNSET + + top_logprobs: OptionalNullable[int] = UNSET + + prompt_logprobs: OptionalNullable[bool] = UNSET + + top_prompt_logprobs: OptionalNullable[int] = UNSET + n: OptionalNullable[int] = UNSET r"""Number of completions to return for each request, input tokens are only billed once.""" @@ -224,6 +245,13 @@ def serialize_model(self, handler): "tool_choice", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "prediction", "parallel_tool_calls", @@ -246,6 +274,13 @@ def serialize_model(self, handler): "tools", "presence_penalty", "frequency_penalty", + "min_tokens", + "repetition_penalty", + "top_k", + "logprobs", + "top_logprobs", + "prompt_logprobs", + "top_prompt_logprobs", "n", "reasoning_effort", "prompt_mode", diff --git a/src/mistralai/client/models/completionresponsestreamchoice.py b/src/mistralai/client/models/completionresponsestreamchoice.py index b90dee84f..a6f740947 100644 --- a/src/mistralai/client/models/completionresponsestreamchoice.py +++ b/src/mistralai/client/models/completionresponsestreamchoice.py @@ -1,11 +1,22 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .chatcompletionresponsechoicelogprobs import ( + ChatCompletionResponseChoiceLogprobs, + ChatCompletionResponseChoiceLogprobsTypedDict, +) from .deltamessage import DeltaMessage, DeltaMessageTypedDict -from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL, UnrecognizedStr +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, +) from pydantic import model_serializer from typing import Literal, Union -from typing_extensions import TypedDict +from typing_extensions import NotRequired, TypedDict CompletionResponseStreamChoiceFinishReason = Union[ @@ -23,6 +34,10 @@ class CompletionResponseStreamChoiceTypedDict(TypedDict): index: int delta: DeltaMessageTypedDict finish_reason: Nullable[CompletionResponseStreamChoiceFinishReason] + logprobs: NotRequired[Nullable[ChatCompletionResponseChoiceLogprobsTypedDict]] + prompt_logprobs: NotRequired[ + Nullable[ChatCompletionResponseChoiceLogprobsTypedDict] + ] class CompletionResponseStreamChoice(BaseModel): @@ -32,16 +47,31 @@ class CompletionResponseStreamChoice(BaseModel): finish_reason: Nullable[CompletionResponseStreamChoiceFinishReason] + logprobs: OptionalNullable[ChatCompletionResponseChoiceLogprobs] = UNSET + + prompt_logprobs: OptionalNullable[ChatCompletionResponseChoiceLogprobs] = UNSET + @model_serializer(mode="wrap") def serialize_model(self, handler): + optional_fields = set(["logprobs", "prompt_logprobs"]) + nullable_fields = set(["finish_reason", "logprobs", "prompt_logprobs"]) 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: - m[k] = val + 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/createpipelinerequest.py b/src/mistralai/client/models/createpipelinerequest.py index eb772f7e0..0b9ace1d9 100644 --- a/src/mistralai/client/models/createpipelinerequest.py +++ b/src/mistralai/client/models/createpipelinerequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .judgedefinition import JudgeDefinition, JudgeDefinitionTypedDict +from .llmjudgereference import LlmJudgeReference, LlmJudgeReferenceTypedDict from .pipelineconfigselector import ( PipelineConfigSelector, PipelineConfigSelectorTypedDict, @@ -21,7 +21,7 @@ class CreatePipelineRequestTypedDict(TypedDict): name: str selectors: List[PipelineConfigSelectorTypedDict] - definitions: List[JudgeDefinitionTypedDict] + definitions: List[LlmJudgeReferenceTypedDict] description: NotRequired[Nullable[str]] enabled: NotRequired[bool] @@ -31,7 +31,7 @@ class CreatePipelineRequest(BaseModel): selectors: List[PipelineConfigSelector] - definitions: List[JudgeDefinition] + definitions: List[LlmJudgeReference] description: OptionalNullable[str] = UNSET diff --git a/src/mistralai/client/models/createserviceaccountrequest.py b/src/mistralai/client/models/createserviceaccountrequest.py index 19aad5236..03f2e458e 100644 --- a/src/mistralai/client/models/createserviceaccountrequest.py +++ b/src/mistralai/client/models/createserviceaccountrequest.py @@ -18,6 +18,7 @@ class CreateServiceAccountRequestTypedDict(TypedDict): workspace_id: str description: NotRequired[Nullable[str]] role_ids: NotRequired[List[str]] + r"""Workspace role UUIDs to assign. Omitted or empty lists default to member, which grants no role permissions. Workspace-wide sharing may still grant access.""" class CreateServiceAccountRequest(BaseModel): @@ -28,6 +29,7 @@ class CreateServiceAccountRequest(BaseModel): description: OptionalNullable[str] = UNSET role_ids: Optional[List[str]] = None + r"""Workspace role UUIDs to assign. Omitted or empty lists default to member, which grants no role permissions. Workspace-wide sharing may still grant access.""" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/mistralai/client/models/delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop.py b/src/mistralai/client/models/delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop.py deleted file mode 100644 index 3e65952f8..000000000 --- a/src/mistralai/client/models/delete_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_deleteop.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequestTypedDict( - TypedDict -): - pipeline_config_id: str - - -class DeletePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDDeleteRequest( - BaseModel -): - pipeline_config_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/detectiondefinition.py b/src/mistralai/client/models/detectiondefinitionv1.py similarity index 83% rename from src/mistralai/client/models/detectiondefinition.py rename to src/mistralai/client/models/detectiondefinitionv1.py index b746713ca..ab3c73f34 100644 --- a/src/mistralai/client/models/detectiondefinition.py +++ b/src/mistralai/client/models/detectiondefinitionv1.py @@ -7,12 +7,12 @@ from typing_extensions import TypedDict -class DetectionDefinitionTypedDict(TypedDict): +class DetectionDefinitionV1TypedDict(TypedDict): target_attributes: List[str] patterns: List[DetectionPatternTypedDict] -class DetectionDefinition(BaseModel): +class DetectionDefinitionV1(BaseModel): target_attributes: List[str] patterns: List[DetectionPattern] diff --git a/src/mistralai/client/models/evaluationbooleanresultspec.py b/src/mistralai/client/models/evaluationbooleanresultspec.py new file mode 100644 index 000000000..109a754d7 --- /dev/null +++ b/src/mistralai/client/models/evaluationbooleanresultspec.py @@ -0,0 +1,26 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class EvaluationBooleanResultSpecTypedDict(TypedDict): + type: Literal["boolean"] + + +class EvaluationBooleanResultSpec(BaseModel): + type: Annotated[ + Annotated[Literal["boolean"], AfterValidator(validate_const("boolean"))], + pydantic.Field(alias="type"), + ] = "boolean" + + +try: + EvaluationBooleanResultSpec.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/evaluationcategoricalresultspec.py b/src/mistralai/client/models/evaluationcategoricalresultspec.py new file mode 100644 index 000000000..1aff3a6ba --- /dev/null +++ b/src/mistralai/client/models/evaluationcategoricalresultspec.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import List, Literal +from typing_extensions import Annotated, TypedDict + + +class EvaluationCategoricalResultSpecTypedDict(TypedDict): + labels: List[str] + type: Literal["categorical"] + + +class EvaluationCategoricalResultSpec(BaseModel): + labels: List[str] + + type: Annotated[ + Annotated[ + Literal["categorical"], AfterValidator(validate_const("categorical")) + ], + pydantic.Field(alias="type"), + ] = "categorical" + + +try: + EvaluationCategoricalResultSpec.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/evaluationnumericresultspec.py b/src/mistralai/client/models/evaluationnumericresultspec.py new file mode 100644 index 000000000..886cb73b9 --- /dev/null +++ b/src/mistralai/client/models/evaluationnumericresultspec.py @@ -0,0 +1,32 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class EvaluationNumericResultSpecTypedDict(TypedDict): + min: float + max: float + type: Literal["numeric"] + + +class EvaluationNumericResultSpec(BaseModel): + min: float + + max: float + + type: Annotated[ + Annotated[Literal["numeric"], AfterValidator(validate_const("numeric"))], + pydantic.Field(alias="type"), + ] = "numeric" + + +try: + EvaluationNumericResultSpec.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/evaluationresultspec.py b/src/mistralai/client/models/evaluationresultspec.py new file mode 100644 index 000000000..3e0865468 --- /dev/null +++ b/src/mistralai/client/models/evaluationresultspec.py @@ -0,0 +1,68 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .evaluationbooleanresultspec import ( + EvaluationBooleanResultSpec, + EvaluationBooleanResultSpecTypedDict, +) +from .evaluationcategoricalresultspec import ( + EvaluationCategoricalResultSpec, + EvaluationCategoricalResultSpecTypedDict, +) +from .evaluationnumericresultspec import ( + EvaluationNumericResultSpec, + EvaluationNumericResultSpecTypedDict, +) +from functools import partial +from mistralai.client.types import BaseModel +from mistralai.client.utils.unions import parse_open_union +from pydantic import ConfigDict +from pydantic.functional_validators import BeforeValidator +from typing import Any, Literal, Union +from typing_extensions import Annotated, TypeAliasType + + +EvaluationResultSpecTypedDict = TypeAliasType( + "EvaluationResultSpecTypedDict", + Union[ + EvaluationBooleanResultSpecTypedDict, + EvaluationCategoricalResultSpecTypedDict, + EvaluationNumericResultSpecTypedDict, + ], +) + + +class UnknownEvaluationResultSpec(BaseModel): + r"""A EvaluationResultSpec variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_EVALUATION_RESULT_SPEC_VARIANTS: dict[str, Any] = { + "boolean": EvaluationBooleanResultSpec, + "categorical": EvaluationCategoricalResultSpec, + "numeric": EvaluationNumericResultSpec, +} + + +EvaluationResultSpec = Annotated[ + Union[ + EvaluationBooleanResultSpec, + EvaluationCategoricalResultSpec, + EvaluationNumericResultSpec, + UnknownEvaluationResultSpec, + ], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_EVALUATION_RESULT_SPEC_VARIANTS, + unknown_cls=UnknownEvaluationResultSpec, + union_name="EvaluationResultSpec", + ) + ), +] diff --git a/src/mistralai/client/models/exportdefinition.py b/src/mistralai/client/models/exportdefinitionv1.py similarity index 80% rename from src/mistralai/client/models/exportdefinition.py rename to src/mistralai/client/models/exportdefinitionv1.py index 8d8949aaf..691c6d80b 100644 --- a/src/mistralai/client/models/exportdefinition.py +++ b/src/mistralai/client/models/exportdefinitionv1.py @@ -6,9 +6,9 @@ from typing_extensions import TypedDict -class ExportDefinitionTypedDict(TypedDict): +class ExportDefinitionV1TypedDict(TypedDict): destination: OTLPDestinationTypedDict -class ExportDefinition(BaseModel): +class ExportDefinitionV1(BaseModel): destination: OTLPDestination diff --git a/src/mistralai/client/models/paginatedresultpipelineconfig.py b/src/mistralai/client/models/feedresultgetpipelineresult.py similarity index 69% rename from src/mistralai/client/models/paginatedresultpipelineconfig.py rename to src/mistralai/client/models/feedresultgetpipelineresult.py index dd8ce5f30..31ffa02af 100644 --- a/src/mistralai/client/models/paginatedresultpipelineconfig.py +++ b/src/mistralai/client/models/feedresultgetpipelineresult.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .pipelineconfig import PipelineConfig, PipelineConfigTypedDict +from .pipelineresult import PipelineResult, PipelineResultTypedDict from mistralai.client.types import ( BaseModel, Nullable, @@ -14,26 +14,23 @@ from typing_extensions import NotRequired, TypedDict -class PaginatedResultPipelineConfigTypedDict(TypedDict): - count: int - results: NotRequired[List[PipelineConfigTypedDict]] +class FeedResultGetPipelineResultTypedDict(TypedDict): + results: NotRequired[List[PipelineResultTypedDict]] next: NotRequired[Nullable[str]] - previous: NotRequired[Nullable[str]] + cursor: NotRequired[Nullable[str]] -class PaginatedResultPipelineConfig(BaseModel): - count: int - - results: Optional[List[PipelineConfig]] = None +class FeedResultGetPipelineResult(BaseModel): + results: Optional[List[PipelineResult]] = None next: OptionalNullable[str] = UNSET - previous: OptionalNullable[str] = UNSET + cursor: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["results", "next", "previous"]) - nullable_fields = set(["next", "previous"]) + optional_fields = set(["results", "next", "cursor"]) + nullable_fields = set(["next", "cursor"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop.py b/src/mistralai/client/models/get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop.py deleted file mode 100644 index 6429a2310..000000000 --- a/src/mistralai/client/models/get_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_getop.py +++ /dev/null @@ -1,20 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequestTypedDict( - TypedDict -): - pipeline_config_id: str - - -class GetPipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDGetRequest( - BaseModel -): - pipeline_config_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/getpipelineresults.py b/src/mistralai/client/models/getpipelineresults.py new file mode 100644 index 000000000..842e0c28f --- /dev/null +++ b/src/mistralai/client/models/getpipelineresults.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .feedresultgetpipelineresult import ( + FeedResultGetPipelineResult, + FeedResultGetPipelineResultTypedDict, +) +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class GetPipelineResultsTypedDict(TypedDict): + pipeline_results: FeedResultGetPipelineResultTypedDict + + +class GetPipelineResults(BaseModel): + pipeline_results: FeedResultGetPipelineResult diff --git a/src/mistralai/client/models/judgedefinition.py b/src/mistralai/client/models/judgedefinition.py deleted file mode 100644 index 586e4387d..000000000 --- a/src/mistralai/client/models/judgedefinition.py +++ /dev/null @@ -1,34 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from mistralai.client.types import BaseModel, UNSET_SENTINEL -from pydantic import model_serializer -from typing import Dict, Optional -from typing_extensions import NotRequired, TypedDict - - -class JudgeDefinitionTypedDict(TypedDict): - slug: str - mapping: NotRequired[Dict[str, str]] - - -class JudgeDefinition(BaseModel): - slug: str - - mapping: Optional[Dict[str, str]] = None - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["mapping"]) - 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/mistralai/client/models/judgedefinitionv1.py b/src/mistralai/client/models/judgedefinitionv1.py new file mode 100644 index 000000000..187504c37 --- /dev/null +++ b/src/mistralai/client/models/judgedefinitionv1.py @@ -0,0 +1,84 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .evaluationresultspec import EvaluationResultSpec, EvaluationResultSpecTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing import Dict, Optional +from typing_extensions import NotRequired, TypedDict + + +class JudgeDefinitionV1TypedDict(TypedDict): + r"""The fully materialized LLM judge behavior stored in a pipeline config.""" + + model: str + prompt: str + result_spec: EvaluationResultSpecTypedDict + temperature: NotRequired[Nullable[float]] + top_p: NotRequired[Nullable[float]] + max_tokens: NotRequired[Nullable[int]] + random_seed: NotRequired[Nullable[int]] + mapping: NotRequired[Dict[str, str]] + use_cache: NotRequired[bool] + + +class JudgeDefinitionV1(BaseModel): + r"""The fully materialized LLM judge behavior stored in a pipeline config.""" + + model: str + + prompt: str + + result_spec: EvaluationResultSpec + + temperature: OptionalNullable[float] = UNSET + + top_p: OptionalNullable[float] = UNSET + + max_tokens: OptionalNullable[int] = UNSET + + random_seed: OptionalNullable[int] = UNSET + + mapping: Optional[Dict[str, str]] = None + + use_cache: Optional[bool] = True + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "temperature", + "top_p", + "max_tokens", + "random_seed", + "mapping", + "use_cache", + ] + ) + nullable_fields = set(["temperature", "top_p", "max_tokens", "random_seed"]) + 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/createpipelineconfigrequest.py b/src/mistralai/client/models/llmjudgereference.py similarity index 53% rename from src/mistralai/client/models/createpipelineconfigrequest.py rename to src/mistralai/client/models/llmjudgereference.py index 7f4ed20f9..205c28088 100644 --- a/src/mistralai/client/models/createpipelineconfigrequest.py +++ b/src/mistralai/client/models/llmjudgereference.py @@ -1,15 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .pipelineconfigdefinition import ( - PipelineConfigDefinition, - PipelineConfigDefinitionTypedDict, +from .pipelineconfigsampling import ( + PipelineConfigSampling, + PipelineConfigSamplingTypedDict, ) -from .pipelineconfigselector import ( - PipelineConfigSelector, - PipelineConfigSelectorTypedDict, -) -from .pipelinekind import PipelineKind from mistralai.client.types import ( BaseModel, Nullable, @@ -18,36 +13,31 @@ UNSET_SENTINEL, ) from pydantic import model_serializer -from typing import List, Optional +from typing import Dict, Optional from typing_extensions import NotRequired, TypedDict -class CreatePipelineConfigRequestTypedDict(TypedDict): - name: str - pipeline_kind: PipelineKind - selectors: List[PipelineConfigSelectorTypedDict] - definition: PipelineConfigDefinitionTypedDict - description: NotRequired[Nullable[str]] - enabled: NotRequired[bool] - +class LlmJudgeReferenceTypedDict(TypedDict): + r"""The scorer selected to build a judge pipeline configuration.""" -class CreatePipelineConfigRequest(BaseModel): - name: str + slug: str + mapping: NotRequired[Dict[str, str]] + sampling: NotRequired[Nullable[PipelineConfigSamplingTypedDict]] - pipeline_kind: PipelineKind - selectors: List[PipelineConfigSelector] +class LlmJudgeReference(BaseModel): + r"""The scorer selected to build a judge pipeline configuration.""" - definition: PipelineConfigDefinition + slug: str - description: OptionalNullable[str] = UNSET + mapping: Optional[Dict[str, str]] = None - enabled: Optional[bool] = True + sampling: OptionalNullable[PipelineConfigSampling] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description", "enabled"]) - nullable_fields = set(["description"]) + optional_fields = set(["mapping", "sampling"]) + nullable_fields = set(["sampling"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/moderationdefinition.py b/src/mistralai/client/models/moderationdefinitionv1.py similarity index 91% rename from src/mistralai/client/models/moderationdefinition.py rename to src/mistralai/client/models/moderationdefinitionv1.py index 6267c98ab..113049529 100644 --- a/src/mistralai/client/models/moderationdefinition.py +++ b/src/mistralai/client/models/moderationdefinitionv1.py @@ -7,12 +7,12 @@ from typing_extensions import NotRequired, TypedDict -class ModerationDefinitionTypedDict(TypedDict): +class ModerationDefinitionV1TypedDict(TypedDict): model: NotRequired[str] target_attributes: NotRequired[List[str]] -class ModerationDefinition(BaseModel): +class ModerationDefinitionV1(BaseModel): model: Optional[str] = "mistral-moderation-latest" target_attributes: Optional[List[str]] = None diff --git a/src/mistralai/client/models/pipelineconfig.py b/src/mistralai/client/models/pipelineconfig.py index 621f0b814..7eda1b52b 100644 --- a/src/mistralai/client/models/pipelineconfig.py +++ b/src/mistralai/client/models/pipelineconfig.py @@ -5,6 +5,10 @@ PipelineConfigDefinition, PipelineConfigDefinitionTypedDict, ) +from .pipelineconfigsampling import ( + PipelineConfigSampling, + PipelineConfigSamplingTypedDict, +) from .pipelineconfigscope import PipelineConfigScope from .pipelineconfigselector import ( PipelineConfigSelector, @@ -20,7 +24,7 @@ UNSET_SENTINEL, ) from pydantic import model_serializer -from typing import List, Optional +from typing import List from typing_extensions import NotRequired, TypedDict @@ -32,12 +36,12 @@ class PipelineConfigTypedDict(TypedDict): scope: PipelineConfigScope workspace_id: str name: str + slug: str pipeline_kind: PipelineKind selectors: List[PipelineConfigSelectorTypedDict] enabled: bool definition: PipelineConfigDefinitionTypedDict - description: NotRequired[Nullable[str]] - definitions: NotRequired[List[PipelineConfigDefinitionTypedDict]] + sampling: NotRequired[Nullable[PipelineConfigSamplingTypedDict]] class PipelineConfig(BaseModel): @@ -55,6 +59,8 @@ class PipelineConfig(BaseModel): name: str + slug: str + pipeline_kind: PipelineKind selectors: List[PipelineConfigSelector] @@ -63,14 +69,12 @@ class PipelineConfig(BaseModel): definition: PipelineConfigDefinition - description: OptionalNullable[str] = UNSET - - definitions: Optional[List[PipelineConfigDefinition]] = None + sampling: OptionalNullable[PipelineConfigSampling] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description", "definitions"]) - nullable_fields = set(["deleted_at", "description"]) + optional_fields = set(["sampling"]) + nullable_fields = set(["deleted_at", "sampling"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/pipelineconfigdefinition.py b/src/mistralai/client/models/pipelineconfigdefinition.py index beea83cf9..f98bd9743 100644 --- a/src/mistralai/client/models/pipelineconfigdefinition.py +++ b/src/mistralai/client/models/pipelineconfigdefinition.py @@ -1,10 +1,13 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .detectiondefinition import DetectionDefinition, DetectionDefinitionTypedDict -from .exportdefinition import ExportDefinition, ExportDefinitionTypedDict -from .judgedefinition import JudgeDefinition, JudgeDefinitionTypedDict -from .moderationdefinition import ModerationDefinition, ModerationDefinitionTypedDict +from .detectiondefinitionv1 import DetectionDefinitionV1, DetectionDefinitionV1TypedDict +from .exportdefinitionv1 import ExportDefinitionV1, ExportDefinitionV1TypedDict +from .judgedefinitionv1 import JudgeDefinitionV1, JudgeDefinitionV1TypedDict +from .moderationdefinitionv1 import ( + ModerationDefinitionV1, + ModerationDefinitionV1TypedDict, +) from typing import Union from typing_extensions import TypeAliasType @@ -12,15 +15,20 @@ PipelineConfigDefinitionTypedDict = TypeAliasType( "PipelineConfigDefinitionTypedDict", Union[ - ExportDefinitionTypedDict, - DetectionDefinitionTypedDict, - ModerationDefinitionTypedDict, - JudgeDefinitionTypedDict, + ExportDefinitionV1TypedDict, + DetectionDefinitionV1TypedDict, + ModerationDefinitionV1TypedDict, + JudgeDefinitionV1TypedDict, ], ) PipelineConfigDefinition = TypeAliasType( "PipelineConfigDefinition", - Union[ExportDefinition, DetectionDefinition, ModerationDefinition, JudgeDefinition], + Union[ + ExportDefinitionV1, + DetectionDefinitionV1, + ModerationDefinitionV1, + JudgeDefinitionV1, + ], ) diff --git a/src/mistralai/client/models/pipelineconfigsampling.py b/src/mistralai/client/models/pipelineconfigsampling.py new file mode 100644 index 000000000..308d2bf34 --- /dev/null +++ b/src/mistralai/client/models/pipelineconfigsampling.py @@ -0,0 +1,48 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .attributehashsampling import AttributeHashSampling, AttributeHashSamplingTypedDict +from .probabilisticsampling import ProbabilisticSampling, ProbabilisticSamplingTypedDict +from functools import partial +from mistralai.client.types import BaseModel +from mistralai.client.utils.unions import parse_open_union +from pydantic import ConfigDict +from pydantic.functional_validators import BeforeValidator +from typing import Any, Literal, Union +from typing_extensions import Annotated, TypeAliasType + + +PipelineConfigSamplingTypedDict = TypeAliasType( + "PipelineConfigSamplingTypedDict", + Union[ProbabilisticSamplingTypedDict, AttributeHashSamplingTypedDict], +) + + +class UnknownPipelineConfigSampling(BaseModel): + r"""A PipelineConfigSampling variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_PIPELINE_CONFIG_SAMPLING_VARIANTS: dict[str, Any] = { + "attribute_hash": AttributeHashSampling, + "probabilistic": ProbabilisticSampling, +} + + +PipelineConfigSampling = Annotated[ + Union[AttributeHashSampling, ProbabilisticSampling, UnknownPipelineConfigSampling], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_PIPELINE_CONFIG_SAMPLING_VARIANTS, + unknown_cls=UnknownPipelineConfigSampling, + union_name="PipelineConfigSampling", + ) + ), +] diff --git a/src/mistralai/client/models/pipelineconfigsresponse.py b/src/mistralai/client/models/pipelineconfigsresponse.py deleted file mode 100644 index 0bf379456..000000000 --- a/src/mistralai/client/models/pipelineconfigsresponse.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .paginatedresultpipelineconfig import ( - PaginatedResultPipelineConfig, - PaginatedResultPipelineConfigTypedDict, -) -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict - - -class PipelineConfigsResponseTypedDict(TypedDict): - pipeline_configs: PaginatedResultPipelineConfigTypedDict - - -class PipelineConfigsResponse(BaseModel): - pipeline_configs: PaginatedResultPipelineConfig diff --git a/src/mistralai/client/models/pipelinekind.py b/src/mistralai/client/models/pipelinekind.py index 0a514eb98..83c8b6bd8 100644 --- a/src/mistralai/client/models/pipelinekind.py +++ b/src/mistralai/client/models/pipelinekind.py @@ -7,10 +7,10 @@ PipelineKind = Union[ Literal[ - "detection", - "moderation", - "judge", - "export", + "detection-v1", + "moderation-v1", + "judge-v1", + "export-v1", ], UnrecognizedStr, ] diff --git a/src/mistralai/client/models/pipelineresult.py b/src/mistralai/client/models/pipelineresult.py new file mode 100644 index 000000000..ae06ab285 --- /dev/null +++ b/src/mistralai/client/models/pipelineresult.py @@ -0,0 +1,36 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from datetime import datetime +from mistralai.client.types import BaseModel +from typing import Dict +from typing_extensions import TypedDict + + +class PipelineResultTypedDict(TypedDict): + trace_id: str + span_id: str + span_name: str + duration_ns: int + evaluated_at: datetime + judge_scores: Dict[str, float] + judge_labels: Dict[str, str] + judge_explanations: Dict[str, str] + + +class PipelineResult(BaseModel): + trace_id: str + + span_id: str + + span_name: str + + duration_ns: int + + evaluated_at: datetime + + judge_scores: Dict[str, float] + + judge_labels: Dict[str, str] + + judge_explanations: Dict[str, str] diff --git a/src/mistralai/client/models/updatepipelineconfigrequest.py b/src/mistralai/client/models/pipelineresultsrequest.py similarity index 55% rename from src/mistralai/client/models/updatepipelineconfigrequest.py rename to src/mistralai/client/models/pipelineresultsrequest.py index 5fc62fa33..a875eef46 100644 --- a/src/mistralai/client/models/updatepipelineconfigrequest.py +++ b/src/mistralai/client/models/pipelineresultsrequest.py @@ -1,15 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .pipelineconfigdefinition import ( - PipelineConfigDefinition, - PipelineConfigDefinitionTypedDict, -) -from .pipelineconfigselector import ( - PipelineConfigSelector, - PipelineConfigSelectorTypedDict, -) -from .pipelinekind import PipelineKind from mistralai.client.types import ( BaseModel, Nullable, @@ -22,32 +13,20 @@ from typing_extensions import NotRequired, TypedDict -class UpdatePipelineConfigRequestTypedDict(TypedDict): - name: str - pipeline_kind: PipelineKind - selectors: List[PipelineConfigSelectorTypedDict] - definition: PipelineConfigDefinitionTypedDict - enabled: bool - description: NotRequired[Nullable[str]] - - -class UpdatePipelineConfigRequest(BaseModel): - name: str - - pipeline_kind: PipelineKind - - selectors: List[PipelineConfigSelector] +class PipelineResultsRequestTypedDict(TypedDict): + pipeline_config_slugs: List[str] + search_expression: NotRequired[Nullable[str]] - definition: PipelineConfigDefinition - enabled: bool +class PipelineResultsRequest(BaseModel): + pipeline_config_slugs: List[str] - description: OptionalNullable[str] = UNSET + search_expression: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description"]) - nullable_fields = set(["description"]) + optional_fields = set(["search_expression"]) + nullable_fields = set(["search_expression"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/probabilisticsampling.py b/src/mistralai/client/models/probabilisticsampling.py new file mode 100644 index 000000000..0a5800565 --- /dev/null +++ b/src/mistralai/client/models/probabilisticsampling.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class ProbabilisticSamplingTypedDict(TypedDict): + percentage: float + type: Literal["probabilistic"] + + +class ProbabilisticSampling(BaseModel): + percentage: float + + type: Annotated[ + Annotated[ + Literal["probabilistic"], AfterValidator(validate_const("probabilistic")) + ], + pydantic.Field(alias="type"), + ] = "probabilistic" + + +try: + ProbabilisticSampling.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py b/src/mistralai/client/models/search_pipeline_results_v1_observability_pipeline_results_search_postop.py similarity index 61% rename from src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py rename to src/mistralai/client/models/search_pipeline_results_v1_observability_pipeline_results_search_postop.py index aa39fa9cb..a5061efdc 100644 --- a/src/mistralai/client/models/list_pipeline_configs_v1_observability_pipeline_configs_getop.py +++ b/src/mistralai/client/models/search_pipeline_results_v1_observability_pipeline_results_search_postop.py @@ -1,7 +1,11 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .pipelinekind import PipelineKind +from .pipelineresultsrequest import ( + PipelineResultsRequest, + PipelineResultsRequestTypedDict, +) +from datetime import datetime from mistralai.client.types import ( BaseModel, Nullable, @@ -9,28 +13,37 @@ UNSET, UNSET_SENTINEL, ) -from mistralai.client.utils import FieldMetadata, QueryParamMetadata +from mistralai.client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +import pydantic from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -class ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequestTypedDict(TypedDict): - pipeline_kind: NotRequired[Nullable[PipelineKind]] - enabled: NotRequired[Nullable[bool]] +class SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequestTypedDict( + TypedDict +): + pipeline_results_request: PipelineResultsRequestTypedDict + from_: NotRequired[Nullable[datetime]] + to: NotRequired[Nullable[datetime]] page_size: NotRequired[int] - page: NotRequired[int] - q: NotRequired[Nullable[str]] + cursor: NotRequired[Nullable[str]] + +class SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest(BaseModel): + pipeline_results_request: Annotated[ + PipelineResultsRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] -class ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest(BaseModel): - pipeline_kind: Annotated[ - OptionalNullable[PipelineKind], + from_: Annotated[ + OptionalNullable[datetime], + pydantic.Field(alias="from"), FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - enabled: Annotated[ - OptionalNullable[bool], + to: Annotated[ + OptionalNullable[datetime], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET @@ -39,20 +52,15 @@ class ListPipelineConfigsV1ObservabilityPipelineConfigsGetRequest(BaseModel): FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = 50 - page: Annotated[ - Optional[int], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = 1 - - q: Annotated[ + cursor: Annotated[ OptionalNullable[str], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["pipeline_kind", "enabled", "page_size", "page", "q"]) - nullable_fields = set(["pipeline_kind", "enabled", "q"]) + optional_fields = set(["from", "to", "page_size", "cursor"]) + nullable_fields = set(["from", "to", "cursor"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/setserviceaccountrolesrequest.py b/src/mistralai/client/models/setserviceaccountrolesrequest.py index d3cba8cad..bb848d65a 100644 --- a/src/mistralai/client/models/setserviceaccountrolesrequest.py +++ b/src/mistralai/client/models/setserviceaccountrolesrequest.py @@ -1,35 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from mistralai.client.types import BaseModel, UNSET_SENTINEL -from pydantic import model_serializer -from typing import List, Optional -from typing_extensions import NotRequired, TypedDict +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict class SetServiceAccountRolesRequestTypedDict(TypedDict): r"""Request body for replacing the workspace roles assigned to a service account.""" - role_ids: NotRequired[List[str]] + role_ids: List[str] + r"""Workspace role UUIDs to assign. Required and non-empty; omitted or empty lists return 422. Select member explicitly for no role-granted permissions; workspace-wide sharing may still grant access.""" class SetServiceAccountRolesRequest(BaseModel): r"""Request body for replacing the workspace roles assigned to a service account.""" - role_ids: Optional[List[str]] = None - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = set(["role_ids"]) - 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 + role_ids: List[str] + r"""Workspace role UUIDs to assign. Required and non-empty; omitted or empty lists return 422. Select member explicitly for no role-granted permissions; workspace-wide sharing may still grant access.""" diff --git a/src/mistralai/client/models/update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop.py b/src/mistralai/client/models/update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop.py deleted file mode 100644 index 2de5ac01c..000000000 --- a/src/mistralai/client/models/update_pipeline_config_v1_observability_pipeline_configs_pipeline_config_id_putop.py +++ /dev/null @@ -1,30 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .updatepipelineconfigrequest import ( - UpdatePipelineConfigRequest, - UpdatePipelineConfigRequestTypedDict, -) -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata -from typing_extensions import Annotated, TypedDict - - -class UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequestTypedDict( - TypedDict -): - pipeline_config_id: str - update_pipeline_config_request: UpdatePipelineConfigRequestTypedDict - - -class UpdatePipelineConfigV1ObservabilityPipelineConfigsPipelineConfigIDPutRequest( - BaseModel -): - pipeline_config_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - update_pipeline_config_request: Annotated[ - UpdatePipelineConfigRequest, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] diff --git a/src/mistralai/client/models/updatepipelinerequest.py b/src/mistralai/client/models/updatepipelinerequest.py index 7edf03d53..018294ea3 100644 --- a/src/mistralai/client/models/updatepipelinerequest.py +++ b/src/mistralai/client/models/updatepipelinerequest.py @@ -1,7 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .judgedefinition import JudgeDefinition, JudgeDefinitionTypedDict +from .llmjudgereference import LlmJudgeReference, LlmJudgeReferenceTypedDict from .pipelineconfigselector import ( PipelineConfigSelector, PipelineConfigSelectorTypedDict, @@ -22,7 +22,7 @@ class UpdatePipelineRequestTypedDict(TypedDict): name: NotRequired[str] description: NotRequired[Nullable[str]] selectors: NotRequired[List[PipelineConfigSelectorTypedDict]] - definitions: NotRequired[List[JudgeDefinitionTypedDict]] + definitions: NotRequired[List[LlmJudgeReferenceTypedDict]] enabled: NotRequired[bool] @@ -33,7 +33,7 @@ class UpdatePipelineRequest(BaseModel): selectors: Optional[List[PipelineConfigSelector]] = None - definitions: Optional[List[JudgeDefinition]] = None + definitions: Optional[List[LlmJudgeReference]] = None enabled: Optional[bool] = None diff --git a/src/mistralai/client/models/users_api_whoamiop.py b/src/mistralai/client/models/users_api_whoamiop.py new file mode 100644 index 000000000..760396630 --- /dev/null +++ b/src/mistralai/client/models/users_api_whoamiop.py @@ -0,0 +1,57 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from mistralai.client.utils import FieldMetadata, SecurityMetadata +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class UsersAPIWhoamiSecurityTypedDict(TypedDict): + dashboard_user_or_service_account_context_auth: NotRequired[str] + bearer_user_context_auth: NotRequired[str] + + +class UsersAPIWhoamiSecurity(BaseModel): + dashboard_user_or_service_account_context_auth: Annotated[ + Optional[str], + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="apiKey", + sub_type="header", + field_name="x-api-key", + ) + ), + ] = None + + bearer_user_context_auth: Annotated[ + Optional[str], + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["DashboardUserOrServiceAccountContextAuth", "BearerUserContextAuth"] + ) + 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/mistralai/client/models/voicecreaterequest.py b/src/mistralai/client/models/voicecreaterequest.py index c9bf384ba..9cc46db7c 100644 --- a/src/mistralai/client/models/voicecreaterequest.py +++ b/src/mistralai/client/models/voicecreaterequest.py @@ -17,8 +17,6 @@ class VoiceCreateRequestTypedDict(TypedDict): r"""Request model for creating a new voice with base64 audio.""" name: str - sample_audio: str - r"""Base64-encoded audio file""" slug: NotRequired[Nullable[str]] languages: NotRequired[List[str]] gender: NotRequired[Nullable[str]] @@ -27,6 +25,8 @@ class VoiceCreateRequestTypedDict(TypedDict): color: NotRequired[Nullable[str]] description: NotRequired[Nullable[str]] retention_notice: NotRequired[int] + sample_audio: NotRequired[Nullable[str]] + r"""Base64-encoded audio file""" sample_filename: NotRequired[Nullable[str]] r"""Original filename for extension detection""" @@ -36,9 +36,6 @@ class VoiceCreateRequest(BaseModel): name: str - sample_audio: str - r"""Base64-encoded audio file""" - slug: OptionalNullable[str] = UNSET languages: Optional[List[str]] = None @@ -55,6 +52,9 @@ class VoiceCreateRequest(BaseModel): retention_notice: Optional[int] = 30 + sample_audio: OptionalNullable[str] = UNSET + r"""Base64-encoded audio file""" + sample_filename: OptionalNullable[str] = UNSET r"""Original filename for extension detection""" @@ -70,11 +70,21 @@ def serialize_model(self, handler): "color", "description", "retention_notice", + "sample_audio", "sample_filename", ] ) nullable_fields = set( - ["slug", "gender", "age", "tags", "color", "description", "sample_filename"] + [ + "slug", + "gender", + "age", + "tags", + "color", + "description", + "sample_audio", + "sample_filename", + ] ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/whoamiorganization.py b/src/mistralai/client/models/whoamiorganization.py new file mode 100644 index 000000000..996df2d8e --- /dev/null +++ b/src/mistralai/client/models/whoamiorganization.py @@ -0,0 +1,72 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class WhoamiOrganizationTypedDict(TypedDict): + r"""Organization identity and context for the authenticated caller.""" + + id: str + r"""The organization's unique identifier.""" + name: str + r"""The organization's display name.""" + org_tier: NotRequired[Nullable[str]] + r"""The organization's billing tier (e.g. 'E' for Enterprise). Null when not set.""" + internal: NotRequired[bool] + r"""Whether this is a Mistral-internal organization.""" + kind: NotRequired[str] + r"""The organization kind (e.g. 'S' standard, 'C' company internal, 'D' dogfooding).""" + + +class WhoamiOrganization(BaseModel): + r"""Organization identity and context for the authenticated caller.""" + + id: str + r"""The organization's unique identifier.""" + + name: str + r"""The organization's display name.""" + + org_tier: OptionalNullable[str] = UNSET + r"""The organization's billing tier (e.g. 'E' for Enterprise). Null when not set.""" + + internal: Optional[bool] = False + r"""Whether this is a Mistral-internal organization.""" + + kind: Optional[str] = "S" + r"""The organization kind (e.g. 'S' standard, 'C' company internal, 'D' dogfooding).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["org_tier", "internal", "kind"]) + nullable_fields = set(["org_tier"]) + 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/whoamiresponse.py b/src/mistralai/client/models/whoamiresponse.py new file mode 100644 index 000000000..f90f96bb3 --- /dev/null +++ b/src/mistralai/client/models/whoamiresponse.py @@ -0,0 +1,122 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .useridentityworkspace import UserIdentityWorkspace, UserIdentityWorkspaceTypedDict +from .whoamiorganization import WhoamiOrganization, WhoamiOrganizationTypedDict +from .whoamiserviceaccountprincipal import ( + WhoamiServiceAccountPrincipal, + WhoamiServiceAccountPrincipalTypedDict, +) +from .whoamiuserprincipal import WhoamiUserPrincipal, WhoamiUserPrincipalTypedDict +from functools import partial +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils.unions import parse_open_union +from pydantic import ConfigDict, model_serializer +from pydantic.functional_validators import BeforeValidator +from typing import Any, Literal, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +PrincipalTypedDict = TypeAliasType( + "PrincipalTypedDict", + Union[WhoamiServiceAccountPrincipalTypedDict, WhoamiUserPrincipalTypedDict], +) +r"""The authenticated principal: either a user or a service account.""" + + +class UnknownPrincipal(BaseModel): + r"""A Principal variant the SDK doesn't recognize. Preserves the raw payload.""" + + principal_type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_PRINCIPAL_VARIANTS: dict[str, Any] = { + "service_account": WhoamiServiceAccountPrincipal, + "user": WhoamiUserPrincipal, +} + + +Principal = Annotated[ + Union[WhoamiServiceAccountPrincipal, WhoamiUserPrincipal, UnknownPrincipal], + BeforeValidator( + partial( + parse_open_union, + disc_key="principal_type", + variants=_PRINCIPAL_VARIANTS, + unknown_cls=UnknownPrincipal, + union_name="Principal", + ) + ), +] +r"""The authenticated principal: either a user or a service account.""" + + +class WhoamiResponseTypedDict(TypedDict): + r"""Principal-agnostic identity of the authenticated caller. + + Supersedes the user-centric ``/v1/users/me`` and ``/api/users/v2/me`` by + resolving any principal (user or service account) through a single call. The + ``principal`` field is a discriminated union; the remaining fields are the + shared session context and apply to either principal kind. + """ + + principal: PrincipalTypedDict + r"""The authenticated principal: either a user or a service account.""" + organization: NotRequired[Nullable[WhoamiOrganizationTypedDict]] + r"""The organization the caller's session is scoped to, when set.""" + workspace: NotRequired[Nullable[UserIdentityWorkspaceTypedDict]] + r"""The workspace the caller's session is scoped to, when set.""" + + +class WhoamiResponse(BaseModel): + r"""Principal-agnostic identity of the authenticated caller. + + Supersedes the user-centric ``/v1/users/me`` and ``/api/users/v2/me`` by + resolving any principal (user or service account) through a single call. The + ``principal`` field is a discriminated union; the remaining fields are the + shared session context and apply to either principal kind. + """ + + principal: Principal + r"""The authenticated principal: either a user or a service account.""" + + organization: OptionalNullable[WhoamiOrganization] = UNSET + r"""The organization the caller's session is scoped to, when set.""" + + workspace: OptionalNullable[UserIdentityWorkspace] = UNSET + r"""The workspace the caller's session is scoped to, when set.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["organization", "workspace"]) + nullable_fields = set(["organization", "workspace"]) + 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/whoamiserviceaccountprincipal.py b/src/mistralai/client/models/whoamiserviceaccountprincipal.py new file mode 100644 index 000000000..a5354ab86 --- /dev/null +++ b/src/mistralai/client/models/whoamiserviceaccountprincipal.py @@ -0,0 +1,87 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +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, NotRequired, TypedDict + + +class WhoamiServiceAccountPrincipalTypedDict(TypedDict): + r"""Identity of a service-account principal. + + Carries service-account-only fields. Service accounts have no user profile + (no email or name of a person); ``name`` is the service account's own display + name. Resolved independently of the authentication mechanism. + """ + + service_account_id: str + r"""The service account's unique identifier.""" + principal_type: Literal["service_account"] + r"""Discriminator identifying a service-account principal.""" + name: NotRequired[Nullable[str]] + r"""The service account's display name, when known.""" + + +class WhoamiServiceAccountPrincipal(BaseModel): + r"""Identity of a service-account principal. + + Carries service-account-only fields. Service accounts have no user profile + (no email or name of a person); ``name`` is the service account's own display + name. Resolved independently of the authentication mechanism. + """ + + service_account_id: str + r"""The service account's unique identifier.""" + + principal_type: Annotated[ + Annotated[ + Literal["service_account"], + AfterValidator(validate_const("service_account")), + ], + pydantic.Field(alias="principal_type"), + ] = "service_account" + r"""Discriminator identifying a service-account principal.""" + + name: OptionalNullable[str] = UNSET + r"""The service account's display name, when known.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["name"]) + nullable_fields = set(["name"]) + 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: + WhoamiServiceAccountPrincipal.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/whoamiuserprincipal.py b/src/mistralai/client/models/whoamiuserprincipal.py new file mode 100644 index 000000000..7f0b2c060 --- /dev/null +++ b/src/mistralai/client/models/whoamiuserprincipal.py @@ -0,0 +1,94 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +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, NotRequired, TypedDict + + +class WhoamiUserPrincipalTypedDict(TypedDict): + r"""Identity of a human user principal. + + Carries user-only fields. The ``principal_type`` discriminator makes this + variant mutually exclusive with the service-account variant, so a payload can + never carry both a user id and a service-account id. + """ + + id: str + r"""The user's unique identifier.""" + principal_type: Literal["user"] + r"""Discriminator identifying a human user principal.""" + email: NotRequired[Nullable[str]] + r"""The user's email address, when known.""" + first_name: NotRequired[Nullable[str]] + r"""The user's first name, when known.""" + last_name: NotRequired[Nullable[str]] + r"""The user's last name, when known.""" + + +class WhoamiUserPrincipal(BaseModel): + r"""Identity of a human user principal. + + Carries user-only fields. The ``principal_type`` discriminator makes this + variant mutually exclusive with the service-account variant, so a payload can + never carry both a user id and a service-account id. + """ + + id: str + r"""The user's unique identifier.""" + + principal_type: Annotated[ + Annotated[Literal["user"], AfterValidator(validate_const("user"))], + pydantic.Field(alias="principal_type"), + ] = "user" + r"""Discriminator identifying a human user principal.""" + + email: OptionalNullable[str] = UNSET + r"""The user's email address, when known.""" + + first_name: OptionalNullable[str] = UNSET + r"""The user's first name, when known.""" + + last_name: OptionalNullable[str] = UNSET + r"""The user's last name, when known.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["email", "first_name", "last_name"]) + nullable_fields = set(["email", "first_name", "last_name"]) + 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: + WhoamiUserPrincipal.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/service_accounts.py b/src/mistralai/client/service_accounts.py index d0289caab..fad87b856 100644 --- a/src/mistralai/client/service_accounts.py +++ b/src/mistralai/client/service_accounts.py @@ -30,7 +30,7 @@ def create( :param name: :param workspace_id: :param description: - :param role_ids: + :param role_ids: Workspace role UUIDs to assign. Omitted or empty lists default to member, which grants no role permissions. Workspace-wide sharing may still grant access. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -137,7 +137,7 @@ async def create_async( :param name: :param workspace_id: :param description: - :param role_ids: + :param role_ids: Workspace role UUIDs to assign. Omitted or empty lists default to member, which grants no role permissions. Workspace-wide sharing may still grant access. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -1348,7 +1348,7 @@ def set_roles( self, *, service_account_id: str, - role_ids: Optional[Iterable[str]] = None, + role_ids: Iterable[str], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -1361,7 +1361,7 @@ def set_roles( Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: - :param role_ids: + :param role_ids: Workspace role UUIDs to assign. Required and non-empty; omitted or empty lists return 422. Select member explicitly for no role-granted permissions; workspace-wide sharing may still grant access. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -1383,7 +1383,7 @@ def set_roles( request = models.SetServiceAccountRolesV1ServiceAccountsServiceAccountIDRolesPutRequest( service_account_id=service_account_id, set_service_account_roles_request=models.SetServiceAccountRolesRequest( - role_ids=utils.unmarshal(role_ids, Optional[List[str]]), + role_ids=utils.unmarshal(role_ids, List[str]), ), ) @@ -1459,7 +1459,7 @@ async def set_roles_async( self, *, service_account_id: str, - role_ids: Optional[Iterable[str]] = None, + role_ids: Iterable[str], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -1472,7 +1472,7 @@ async def set_roles_async( Requires the Workspace admin (`workspace_admin`) role. :param service_account_id: - :param role_ids: + :param role_ids: Workspace role UUIDs to assign. Required and non-empty; omitted or empty lists return 422. Select member explicitly for no role-granted permissions; workspace-wide sharing may still grant access. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method :param timeout_ms: Override the default request timeout configuration for this method in milliseconds @@ -1494,7 +1494,7 @@ async def set_roles_async( request = models.SetServiceAccountRolesV1ServiceAccountsServiceAccountIDRolesPutRequest( service_account_id=service_account_id, set_service_account_roles_request=models.SetServiceAccountRolesRequest( - role_ids=utils.unmarshal(role_ids, Optional[List[str]]), + role_ids=utils.unmarshal(role_ids, List[str]), ), ) diff --git a/src/mistralai/client/spans.py b/src/mistralai/client/spans.py index 59cead7d8..1b4825b58 100644 --- a/src/mistralai/client/spans.py +++ b/src/mistralai/client/spans.py @@ -1239,6 +1239,252 @@ async def search_latest_span_evaluations_async( raise errors.SDKError("Unexpected response received", http_res) + def search_pipeline_results( + self, + *, + pipeline_config_slugs: Iterable[str], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + page_size: Optional[int] = 50, + cursor: OptionalNullable[str] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.GetPipelineResults: + r"""Search pipeline results + + :param pipeline_config_slugs: + :param from_: + :param to: + :param page_size: + :param cursor: + :param search_expression: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = ( + models.SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest( + from_=from_, + to=to, + page_size=page_size, + cursor=cursor, + pipeline_results_request=models.PipelineResultsRequest( + pipeline_config_slugs=utils.unmarshal( + pipeline_config_slugs, List[str] + ), + search_expression=search_expression, + ), + ) + ) + + req = self._build_request( + method="POST", + path="/v1/observability/pipeline-results/search", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.pipeline_results_request, + False, + False, + "json", + models.PipelineResultsRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="search_pipeline_results_v1_observability_pipeline_results_search_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.observability.spans"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.GetPipelineResults, http_res) + if utils.match_response( + http_res, ["400", "404", "408", "409", "422"], "application/json" + ): + response_data = unmarshal_json_response( + errors.ObservabilityErrorData, http_res + ) + raise errors.ObservabilityError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + async def search_pipeline_results_async( + self, + *, + pipeline_config_slugs: Iterable[str], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + page_size: Optional[int] = 50, + cursor: OptionalNullable[str] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.GetPipelineResults: + r"""Search pipeline results + + :param pipeline_config_slugs: + :param from_: + :param to: + :param page_size: + :param cursor: + :param search_expression: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + + request = ( + models.SearchPipelineResultsV1ObservabilityPipelineResultsSearchPostRequest( + from_=from_, + to=to, + page_size=page_size, + cursor=cursor, + pipeline_results_request=models.PipelineResultsRequest( + pipeline_config_slugs=utils.unmarshal( + pipeline_config_slugs, List[str] + ), + search_expression=search_expression, + ), + ) + ) + + req = self._build_request_async( + method="POST", + path="/v1/observability/pipeline-results/search", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=True, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + get_serialized_body=lambda: utils.serialize_request_body( + request.pipeline_results_request, + False, + False, + "json", + models.PipelineResultsRequest, + ), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="search_pipeline_results_v1_observability_pipeline_results_search_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.observability.spans"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.GetPipelineResults, http_res) + if utils.match_response( + http_res, ["400", "404", "408", "409", "422"], "application/json" + ): + response_data = unmarshal_json_response( + errors.ObservabilityErrorData, http_res + ) + raise errors.ObservabilityError(response_data, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + def list_span_fields( self, *, diff --git a/src/mistralai/client/users.py b/src/mistralai/client/users.py index 7a8e0388e..639c44d68 100644 --- a/src/mistralai/client/users.py +++ b/src/mistralai/client/users.py @@ -708,3 +708,175 @@ async def empty_result(): raise errors.SDKError("API error occurred", http_res, http_res_text) raise errors.SDKError("Unexpected response received", http_res) + + def whoami( + self, + *, + security: Union[ + models.UsersAPIWhoamiSecurity, models.UsersAPIWhoamiSecurityTypedDict + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.WhoamiResponse: + r"""Whoami + + Return the authenticated caller's identity. + + Principal-agnostic: resolves both users and service accounts. + + :param security: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + req = self._build_request( + method="GET", + path="/v1/whoami", + base_url=base_url, + url_variables=url_variables, + request=None, + request_body_required=False, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=utils.get_pydantic_model(security, models.UsersAPIWhoamiSecurity), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = self.do_request( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="users_api_whoami", + oauth2_scopes=None, + security_source=get_security_from_env(security, models.Security), + tags=["beta.users"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.WhoamiResponse, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) + + async def whoami_async( + self, + *, + security: Union[ + models.UsersAPIWhoamiSecurity, models.UsersAPIWhoamiSecurityTypedDict + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.WhoamiResponse: + r"""Whoami + + Return the authenticated caller's identity. + + Principal-agnostic: resolves both users and service accounts. + + :param security: + :param retries: Override the default retry configuration for this method + :param server_url: Override the default server URL for this method + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if timeout_ms is None: + timeout_ms = 300000 + + if server_url is not None: + base_url = server_url + else: + base_url = self._get_url(base_url, url_variables) + req = self._build_request_async( + method="GET", + path="/v1/whoami", + base_url=base_url, + url_variables=url_variables, + request=None, + request_body_required=False, + request_has_path_params=False, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=utils.get_pydantic_model(security, models.UsersAPIWhoamiSecurity), + allow_empty_value=None, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["429", "500", "502", "503", "504"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + config=self.sdk_configuration, + base_url=base_url or "", + operation_id="users_api_whoami", + oauth2_scopes=None, + security_source=get_security_from_env(security, models.Security), + tags=["beta.users"], + extensions=None, + ), + request=req, + is_error_status_code=lambda c: utils.match_status_codes(["4XX", "5XX"], c), + retry_config=retry_config, + ) + + if utils.match_response(http_res, "200", "application/json"): + return unmarshal_json_response(models.WhoamiResponse, http_res) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError("API error occurred", http_res, http_res_text) + + raise errors.SDKError("Unexpected response received", http_res) diff --git a/src/mistralai/client/voices.py b/src/mistralai/client/voices.py index 3e526c307..fe5cfbe94 100644 --- a/src/mistralai/client/voices.py +++ b/src/mistralai/client/voices.py @@ -233,7 +233,6 @@ def create( self, *, name: str, - sample_audio: str, slug: OptionalNullable[str] = UNSET, languages: Optional[Iterable[str]] = None, gender: OptionalNullable[str] = UNSET, @@ -242,6 +241,7 @@ def create( color: OptionalNullable[str] = UNSET, description: OptionalNullable[str] = UNSET, retention_notice: Optional[int] = 30, + sample_audio: OptionalNullable[str] = UNSET, sample_filename: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -253,7 +253,6 @@ def create( Create a new voice with a base64-encoded audio sample :param name: - :param sample_audio: Base64-encoded audio file :param slug: :param languages: :param gender: @@ -262,6 +261,7 @@ def create( :param color: :param description: :param retention_notice: + :param sample_audio: Base64-encoded audio file :param sample_filename: Original filename for extension detection :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -361,7 +361,6 @@ async def create_async( self, *, name: str, - sample_audio: str, slug: OptionalNullable[str] = UNSET, languages: Optional[Iterable[str]] = None, gender: OptionalNullable[str] = UNSET, @@ -370,6 +369,7 @@ async def create_async( color: OptionalNullable[str] = UNSET, description: OptionalNullable[str] = UNSET, retention_notice: Optional[int] = 30, + sample_audio: OptionalNullable[str] = UNSET, sample_filename: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -381,7 +381,6 @@ async def create_async( Create a new voice with a base64-encoded audio sample :param name: - :param sample_audio: Base64-encoded audio file :param slug: :param languages: :param gender: @@ -390,6 +389,7 @@ async def create_async( :param color: :param description: :param retention_notice: + :param sample_audio: Base64-encoded audio file :param sample_filename: Original filename for extension detection :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method diff --git a/uv.lock b/uv.lock index f0013d338..7b3c676f3 100644 --- a/uv.lock +++ b/uv.lock @@ -1212,7 +1212,7 @@ wheels = [ [[package]] name = "mistralai" -version = "3.1.0" +version = "3.2.0" source = { editable = "." } dependencies = [ { name = "eval-type-backport" }, From 380121a54c3fd22a181428efc55046eaa93f28b5 Mon Sep 17 00:00:00 2001 From: andreaonofrei01 Date: Fri, 9 Oct 2026 11:37:49 +0200 Subject: [PATCH 2/2] chore: drop connector-id-or-name overlay and MIGRATION.md change from sync The overlay is not referenced by the public workflow.yaml, and the MIGRATION.md removal should not ship with this sync. --- .speakeasy/connector-id-or-name-overlay.yaml | 11 ----------- MIGRATION.md | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) delete mode 100644 .speakeasy/connector-id-or-name-overlay.yaml diff --git a/.speakeasy/connector-id-or-name-overlay.yaml b/.speakeasy/connector-id-or-name-overlay.yaml deleted file mode 100644 index 21d4b11c0..000000000 --- a/.speakeasy/connector-id-or-name-overlay.yaml +++ /dev/null @@ -1,11 +0,0 @@ -overlay: 1.0.0 -info: - title: Keep connector ID-or-name parameters as strings - version: 1.0.0 -actions: - - target: $.paths..[?(@.name == 'connector_id_or_name')].schema.anyOf - description: Connector names are not UUIDs, so this parameter cannot be UUID-only. - remove: true - - target: $.paths..[?(@.name == 'connector_id_or_name')].schema - update: - type: string diff --git a/MIGRATION.md b/MIGRATION.md index 099839d1a..629163254 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -23,6 +23,21 @@ The SDK depends on `httpx2` instead of `httpx`, and the `agents` extra on `mcp>= - `mistral.beta.connectors.http_client()` returns an `httpx2.AsyncClient`. - MCP results use MCP 2.2 field names, e.g. `structured_content` instead of `structuredContent`. +## Service-Account Authentication + +`Mistral()` reads a service-account token from the file at `MISTRAL_SA_TOKEN_PATH` when one is configured. Credentials resolve in this order: + +1. An `Authorization` header you set yourself, through `http_headers` or per request +2. An explicit `api_key` or `security` passed to the client +3. The token file at `MISTRAL_SA_TOKEN_PATH` +4. `MISTRAL_API_KEY` + +Set both `MISTRAL_SA_TOKEN_PATH` and `MISTRAL_API_KEY` and the token file wins, so an environment carrying both authenticates as the service account where v2 used the API key. + +The file is re-read on every request so rotation is picked up without a restart. If `MISTRAL_SA_TOKEN_PATH` is set but the file is missing, unreadable or empty, every request that would otherwise use the token file or `MISTRAL_API_KEY` raises `ServiceAccountTokenError`, with no fallback; unset the variable rather than leaving it pointing at a path that does not exist. An explicit `api_key` or `security` short-circuits the lookup, so it is unaffected. + +The token is sent to whatever `server_url` the client is configured with. `MistralAzure` and `MistralGCP` do not read it. + ## Chat and Agents Completions `chat.complete`, `chat.stream`, `agents.complete` and `agents.stream` no longer accept the `web_search`, `web_search_premium` and `code_interpreter` tools. Use them through the Conversations API (`beta.conversations`) or an agent created with `beta.agents.create`, where `WebSearchTool`, `WebSearchPremiumTool` and `CodeInterpreterTool` remain available.