From 04359288fb3b18465cf9cd5868f0bc2bf7fe1b47 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 22 Sep 2026 14:30:28 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.796.1 --- .speakeasy/gen.lock | 569 ++++++++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 24 +- README.md | 20 +- RELEASES.md | 11 + docs/models/agentscompletionrequesttool.md | 18 - .../agentscompletionstreamrequesttool.md | 18 - ...ityspansevaluationsaggregatepostrequest.md | 10 + docs/models/builtinconnectors.md | 1 + docs/models/chatcompletionrequesttool.md | 18 - .../models/chatcompletionstreamrequesttool.md | 18 - ...connectordeletecredentialsconsumerscope.md | 15 + .../connectordeletecredentialsrequest.md | 10 + ...rdeleteorganizationcredentialsv1request.md | 9 - ...connectordeleteusercredentialsv1request.md | 9 - ...ctordeleteworkspacecredentialsv1request.md | 9 - docs/models/connectorgetv1request.md | 9 +- docs/models/deploymentkoyebbackendspec.md | 11 +- docs/models/deploymentsecretbinding.md | 11 + ...indexesindexnamechunkschunkidgetrequest.md | 9 + ...gmanagedindexesindexnamegreppostrequest.md | 9 + docs/models/grepmode.md | 14 + docs/models/greprequest.md | 12 + docs/models/importdatasetfromspansrequest.md | 9 + docs/models/keywordretriever.md | 2 +- ...oymentsv1workflowsdeploymentsgetrequest.md | 1 + ...istindexesv1ragmanagedindexesgetrequest.md | 11 +- .../listrunsv1workflowsrunsgetrequest.md | 38 +- docs/models/manageddeploymentresponse.md | 4 +- docs/models/managedindexresponse.md | 1 + ...agedindexesindexnamenavigatepostrequest.md | 9 + docs/models/navigaterequest.md | 13 + docs/models/navigationchunkresponse.md | 19 + docs/models/navigationdirection.md | 14 + docs/models/navigationresponse.md | 10 + docs/models/nearestneighbourretriever.md | 3 +- docs/models/otelfielddefinition.md | 17 +- ...etsdatasetidimportsfromspanspostrequest.md | 9 + docs/models/principaltype.md | 19 + ...gmanagedindexesindexnamereadpostrequest.md | 9 + docs/models/readrequest.md | 12 + docs/models/rrfretriever.md | 15 + docs/models/rrfretrieverfilter.md | 41 + ...{retriever.md => rrfretrieverretriever.md} | 2 +- docs/models/searchrequest.md | 6 +- docs/models/searchrequestretriever.md | 23 + docs/models/spandatasetmapping.md | 9 + docs/models/spandatasetmappingcontract.md | 15 + docs/models/spandatasetsourcenamespace.md | 16 + docs/models/spandatasetsourcereference.md | 9 + docs/models/telemetryspanreference.md | 11 + ...loymentsdeploymentidunhardenpostrequest.md | 9 + docs/models/usageinfodollardefs.md | 1 + docs/models/usersapigetidentitysecurity.md | 3 +- .../usersapilistorganizationssecurity.md | 3 +- docs/models/usersapilistworkspacessecurity.md | 3 +- docs/sdks/connectors/README.md | 126 +-- docs/sdks/datasets/README.md | 60 ++ docs/sdks/deployments/README.md | 38 + docs/sdks/managedindexes/README.md | 202 +++- docs/sdks/runs/README.md | 40 +- docs/sdks/spans/README.md | 52 + src/mistralai/client/_version.py | 6 +- src/mistralai/client/connectors.py | 435 +------- src/mistralai/client/datasets.py | 254 ++++- src/mistralai/client/deployments.py | 186 ++++ src/mistralai/client/managed_indexes.py | 936 +++++++++++++++++- src/mistralai/client/models/__init__.py | 206 +++- .../client/models/agentscompletionrequest.py | 9 - .../models/agentscompletionstreamrequest.py | 9 - ...lity_spans_evaluations_aggregate_postop.py | 70 ++ .../client/models/builtinconnectors.py | 1 + .../client/models/chatcompletionrequest.py | 9 - .../models/chatcompletionstreamrequest.py | 9 - ...p.py => connector_delete_credentialsop.py} | 20 +- ...ector_delete_workspace_credentials_v1op.py | 22 - .../client/models/connector_get_v1op.py | 10 +- .../models/deploymentkoyebbackendspec.py | 15 +- .../client/models/deploymentsecretbinding.py | 25 + ...dexes_index_name_chunks_chunk_id_getop.py} | 16 +- ..._managed_indexes_index_name_grep_postop.py | 24 + src/mistralai/client/models/grepmode.py | 11 + src/mistralai/client/models/greprequest.py | 45 + .../models/importdatasetfromspansrequest.py | 40 + .../client/models/keywordretriever.py | 4 +- ...loyments_v1_workflows_deployments_getop.py | 10 + ...st_indexes_v1_rag_managed_indexes_getop.py | 31 +- .../list_runs_v1_workflows_runs_getop.py | 4 +- .../models/manageddeploymentresponse.py | 19 +- .../client/models/managedindexresponse.py | 3 + ...aged_indexes_index_name_navigate_postop.py | 24 + .../client/models/navigaterequest.py | 48 + .../client/models/navigationchunkresponse.py | 92 ++ .../client/models/navigationdirection.py | 11 + .../client/models/navigationresponse.py | 23 + .../models/nearestneighbourretriever.py | 11 +- .../client/models/otelfielddefinition.py | 9 +- ...ts_dataset_id_imports_from_spans_postop.py | 31 + src/mistralai/client/models/principaltype.py | 16 + ..._managed_indexes_index_name_read_postop.py | 24 + src/mistralai/client/models/readrequest.py | 59 ++ src/mistralai/client/models/rrfretriever.py | 121 +++ src/mistralai/client/models/searchrequest.py | 20 +- .../client/models/spandatasetmapping.py | 23 + .../models/spandatasetmappingcontract.py | 45 + .../models/spandatasetsourcenamespace.py | 12 + .../models/spandatasetsourcereference.py | 22 + .../client/models/telemetryspanreference.py | 21 + ...ployments_deployment_id_unharden_postop.py | 61 ++ .../client/models/usageinfo_dollar_defs.py | 7 + .../client/models/users_api_get_identityop.py | 41 +- .../models/users_api_list_organizationsop.py | 35 +- .../models/users_api_list_workspacesop.py | 35 +- src/mistralai/client/runs.py | 4 +- src/mistralai/client/spans.py | 270 +++++ 115 files changed, 4200 insertions(+), 1014 deletions(-) create mode 100644 docs/models/aggregatespanevaluationsv1observabilityspansevaluationsaggregatepostrequest.md create mode 100644 docs/models/connectordeletecredentialsconsumerscope.md create mode 100644 docs/models/connectordeletecredentialsrequest.md delete mode 100644 docs/models/connectordeleteorganizationcredentialsv1request.md delete mode 100644 docs/models/connectordeleteusercredentialsv1request.md delete mode 100644 docs/models/connectordeleteworkspacecredentialsv1request.md create mode 100644 docs/models/deploymentsecretbinding.md create mode 100644 docs/models/getchunkindexv1ragmanagedindexesindexnamechunkschunkidgetrequest.md create mode 100644 docs/models/grepindexv1ragmanagedindexesindexnamegreppostrequest.md create mode 100644 docs/models/grepmode.md create mode 100644 docs/models/greprequest.md create mode 100644 docs/models/importdatasetfromspansrequest.md create mode 100644 docs/models/navigateindexv1ragmanagedindexesindexnamenavigatepostrequest.md create mode 100644 docs/models/navigaterequest.md create mode 100644 docs/models/navigationchunkresponse.md create mode 100644 docs/models/navigationdirection.md create mode 100644 docs/models/navigationresponse.md create mode 100644 docs/models/postdatasetrecordsfromspansv1observabilitydatasetsdatasetidimportsfromspanspostrequest.md create mode 100644 docs/models/principaltype.md create mode 100644 docs/models/readindexv1ragmanagedindexesindexnamereadpostrequest.md create mode 100644 docs/models/readrequest.md create mode 100644 docs/models/rrfretriever.md create mode 100644 docs/models/rrfretrieverfilter.md rename docs/models/{retriever.md => rrfretrieverretriever.md} (90%) create mode 100644 docs/models/searchrequestretriever.md create mode 100644 docs/models/spandatasetmapping.md create mode 100644 docs/models/spandatasetmappingcontract.md create mode 100644 docs/models/spandatasetsourcenamespace.md create mode 100644 docs/models/spandatasetsourcereference.md create mode 100644 docs/models/telemetryspanreference.md create mode 100644 docs/models/unhardendeploymentv1workflowsdeploymentsdeploymentidunhardenpostrequest.md create mode 100644 src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py rename src/mistralai/client/models/{connector_delete_organization_credentials_v1op.py => connector_delete_credentialsop.py} (53%) delete mode 100644 src/mistralai/client/models/connector_delete_workspace_credentials_v1op.py create mode 100644 src/mistralai/client/models/deploymentsecretbinding.py rename src/mistralai/client/models/{connector_delete_user_credentials_v1op.py => get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop.py} (60%) create mode 100644 src/mistralai/client/models/grep_index_v1_rag_managed_indexes_index_name_grep_postop.py create mode 100644 src/mistralai/client/models/grepmode.py create mode 100644 src/mistralai/client/models/greprequest.py create mode 100644 src/mistralai/client/models/importdatasetfromspansrequest.py create mode 100644 src/mistralai/client/models/navigate_index_v1_rag_managed_indexes_index_name_navigate_postop.py create mode 100644 src/mistralai/client/models/navigaterequest.py create mode 100644 src/mistralai/client/models/navigationchunkresponse.py create mode 100644 src/mistralai/client/models/navigationdirection.py create mode 100644 src/mistralai/client/models/navigationresponse.py create mode 100644 src/mistralai/client/models/post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop.py create mode 100644 src/mistralai/client/models/principaltype.py create mode 100644 src/mistralai/client/models/read_index_v1_rag_managed_indexes_index_name_read_postop.py create mode 100644 src/mistralai/client/models/readrequest.py create mode 100644 src/mistralai/client/models/rrfretriever.py create mode 100644 src/mistralai/client/models/spandatasetmapping.py create mode 100644 src/mistralai/client/models/spandatasetmappingcontract.py create mode 100644 src/mistralai/client/models/spandatasetsourcenamespace.py create mode 100644 src/mistralai/client/models/spandatasetsourcereference.py create mode 100644 src/mistralai/client/models/telemetryspanreference.py create mode 100644 src/mistralai/client/models/unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4ec9d636b..941843081 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: a9c16d46ae1923d832640cabafc693c6 + docChecksum: cc8dadf10cf929fe718540a3d80ad529 docVersion: 1.0.0 - speakeasyVersion: 1.796.4 - generationVersion: 2.935.1 - releaseVersion: 2.10.1 - configChecksum: 6c53df88b0ef67507b9a5049929112a1 + speakeasyVersion: 1.796.1 + generationVersion: 2.933.0 + releaseVersion: 2.10.2 + configChecksum: ba55889b5c99a44bd263a6de096d9944 repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: aea6e2cf-f892-4093-9d63-7b7543e71ee1 - pristine_commit_hash: 80200e9898c9d59df95afa280ae0dcdbe602c65b - pristine_tree_hash: b7c5712b0f249666998df1f0baefa56db06a9644 + generation_id: b82f8add-baaf-47dc-ba73-f6ccaf7c834f + pristine_commit_hash: 6d98de03dd2deeecf6aa1fb5a8d0aa9ab0a96f11 + pristine_tree_hash: 536ecb10e4dde4c7753b2681805d2bc24f08b26d features: python: acceptHeaders: 3.0.0 @@ -47,7 +47,7 @@ features: operationTimeout: 0.3.1 pagination: 3.0.10 responseFormat: 1.1.0 - retries: 3.1.2 + retries: 3.1.1 sdkHooks: 1.3.0 serverEvents: 1.1.1 serverEventsSentinels: 0.1.0 @@ -55,6 +55,10 @@ features: unions: 3.1.9 uploadStreams: 1.0.3 trackedFiles: + .gitattributes: + id: 24139dae6567 + last_write_checksum: sha1:53134de3ada576f37c22276901e1b5b6d85cd2da + pristine_git_object: 4d75d59008e4d8609876d263419a9dc56c8d6f3a .vscode/settings.json: id: 89aa447020cd last_write_checksum: sha1:f84632c81029fcdda8c3b0c768d02b836fc80526 @@ -246,8 +250,8 @@ trackedFiles: pristine_git_object: 21ce6fb539238168e6d1dfc5a8206d55d33018d3 docs/models/agentscompletionrequesttool.md: id: 242b6dce104d - last_write_checksum: sha1:1ba227813be0c1047edfaf41b00bc14506374878 - pristine_git_object: c20358664c677d0e6c4179a7ac44c7e633125352 + last_write_checksum: sha1:50b88e66bbea8852587dc1093052a6c10008e26c + pristine_git_object: 71e35c17b5dbb53a295b8fe29a9f3b73012281fc docs/models/agentscompletionrequesttoolchoice.md: id: bd8a6f9fbb47 last_write_checksum: sha1:f3d9ec3c82b6bbd2c3cbc320a71b927edcc292b1 @@ -266,8 +270,8 @@ trackedFiles: pristine_git_object: 981005f3ff2277eae57c56787edb5f1f62d1fe46 docs/models/agentscompletionstreamrequesttool.md: id: 03d75b677f51 - last_write_checksum: sha1:3e9ef8be5631387c05584ba64f66f5b6fe2d4386 - pristine_git_object: 6a11b0420d94f7c42ea1ffa6b7577552f1d3c0d1 + last_write_checksum: sha1:e56c4ea2e77b9c4c1410fd8ddf06d30a622b8495 + pristine_git_object: 2170f32cfe9cfa24ab0fb30f658af4b403c20720 docs/models/agentscompletionstreamrequesttoolchoice.md: id: b1f76f7a4e1c last_write_checksum: sha1:843c4946d5cab61df2cba458af40835c4e8bcafe @@ -276,6 +280,10 @@ trackedFiles: id: 513b8b7bc0b7 last_write_checksum: sha1:8dedf7bcaa05492689ce0828e5644380258d5a7e pristine_git_object: 0722e955359c8569a219f3c2c9b3d9dbb7449ee0 + docs/models/aggregatespanevaluationsv1observabilityspansevaluationsaggregatepostrequest.md: + id: d38596604910 + last_write_checksum: sha1:954198c644c5900bdcc93f755ee7a1169f8b0467 + pristine_git_object: 4e1149480486505d969273c5f1cf04bf673b8392 docs/models/aggregatespansv1observabilityspansaggregatepostrequest.md: id: 71333abc025a last_write_checksum: sha1:8a38edff34faedbad4967eb6946c810f1e832e0c @@ -474,8 +482,8 @@ trackedFiles: pristine_git_object: 43c275a9e2125fe60a73dcf4c56953a9aad38356 docs/models/builtinconnectors.md: id: 9d14e972f08a - last_write_checksum: sha1:ad790344ffc177d10a7eff06482c39d722cd7b95 - pristine_git_object: 11dfd48a87d5341883fbcdf2aad1cfff8aed5587 + last_write_checksum: sha1:8dfff3054ed086ad8e3abee1bd69353a33290c81 + pristine_git_object: 45ba222b015366ac63ca2e9baa29acaae320bea3 docs/models/cancelworkflowexecutionv1workflowsexecutionsexecutionidcancelpostrequest.md: id: 69e393daf019 last_write_checksum: sha1:51a5c5fa815093aa1e91ec0f41567066b025abf3 @@ -506,8 +514,8 @@ trackedFiles: pristine_git_object: 749296d420c0671d2a1d6d22483b51f577a86485 docs/models/chatcompletionrequesttool.md: id: 01554a1b158a - last_write_checksum: sha1:e7259e65ba3c614e5e70d0d55c88db03e90097d0 - pristine_git_object: 572d12ca006caead244387a5e91000ac33b0aa0e + last_write_checksum: sha1:d682d551e7a2398cfaf907335b9f084f20c1f2cb + pristine_git_object: 52d4935542f9adac9ba43e868a31f09b20226022 docs/models/chatcompletionrequesttoolchoice.md: id: b97041b2f15b last_write_checksum: sha1:7ad7eb133f70e07d0d6a9def36aadd08b35cf861 @@ -530,8 +538,8 @@ trackedFiles: pristine_git_object: a48460a92ac47fec1de2188ba46b238229736d32 docs/models/chatcompletionstreamrequesttool.md: id: cbfb16fb3b03 - last_write_checksum: sha1:163ad1e31d7ba4eaef7797b399d1323465e97110 - pristine_git_object: 48998fcbb16a8ce5f5a4fd8b2794125d97e935ac + last_write_checksum: sha1:dc03dcf2779444a15d820fe73b06e2c3df025a91 + pristine_git_object: 446b7712a2ae9deb8a628206a126064e7aba646e docs/models/chatcompletionstreamrequesttoolchoice.md: id: 210d5e5b1413 last_write_checksum: sha1:0543164caf3f4fb2bef3061dbd1a5e6b34b17ae9 @@ -704,22 +712,18 @@ trackedFiles: id: aee76bcb9648 last_write_checksum: sha1:495f75627085cf18c0c0346a8c2ed93dc178dd34 pristine_git_object: 683554fb16cd8ea69c8b2616a3aca506bf065fd0 - docs/models/connectordeleteorganizationcredentialsv1request.md: - id: 922f5267f2c0 - last_write_checksum: sha1:23af2d809a20c093ece79bcd1e6ebc551be4b368 - pristine_git_object: eaf4d00cc70f2d15e29634ff99f1cfedcdeea189 - docs/models/connectordeleteusercredentialsv1request.md: - id: 294334281c1c - last_write_checksum: sha1:2dfb1be1e57d3c48c0a5df7c642212e572731b34 - pristine_git_object: fd52cf921a5db428757407e216c918853f5e67cb + docs/models/connectordeletecredentialsconsumerscope.md: + id: 5ff67defa69b + last_write_checksum: sha1:c403299c1a55efe838be3ed97b165b4f63328435 + pristine_git_object: 116362f6bc41d4c5aa792930755367e8c9cba59b + docs/models/connectordeletecredentialsrequest.md: + id: 39625cc7647e + last_write_checksum: sha1:83a5ecfb5302ea048e92d257d326ae8f776948e7 + pristine_git_object: fc6d069dc6e984468e66462824aa75414935cde4 docs/models/connectordeletev1request.md: id: 8d5621ba6395 last_write_checksum: sha1:881b88b2e0788f7c16938115a6cada5f0ebe144b pristine_git_object: e50c7296f28bbf48daf724af3c848a50e8424ad7 - docs/models/connectordeleteworkspacecredentialsv1request.md: - id: 058a4c7be62f - last_write_checksum: sha1:c5185ed84e0f26596bcc1c573009d694a064f21f - pristine_git_object: 3bc3d7c9e7f25bb3ee716e0fc9011dfa40b844c5 docs/models/connectorgetauthenticationmethodsv1request.md: id: 50edde04fff0 last_write_checksum: sha1:78305fe0052b6b90036ca72302a42dcf9093e3d3 @@ -730,8 +734,8 @@ trackedFiles: pristine_git_object: bc1f53389615a2762ecc013468c23e37a983bfad docs/models/connectorgetv1request.md: id: 844c1f489684 - last_write_checksum: sha1:1eab3b3b0f1a780df635aeca9393d667221b8e30 - pristine_git_object: 124ab1e5162bca3887a7bbd7585b5654c505418e + last_write_checksum: sha1:2ce0a9b44c78e04d1918f1265087f1553c0614dc + pristine_git_object: 4047bca3c6c88ca58acd4333ca856b60c81a0d57 docs/models/connectorlistorganizationcredentialsv1request.md: id: cc1870566c72 last_write_checksum: sha1:a6b5cd03c244abcd1d5e4d6a48c066f9cf438acc @@ -1254,8 +1258,8 @@ trackedFiles: pristine_git_object: dcb861b96dd80547c9f29a81bdd225022223a7c2 docs/models/deploymentkoyebbackendspec.md: id: 567a9aa4815a - last_write_checksum: sha1:5683d30b31c9f25b15e6f6cb0ceac66a4a450a62 - pristine_git_object: 24284389c54c38964091c943622db4528b0cce77 + last_write_checksum: sha1:8a882859b34ebde0290b790a638dffba22a24f75 + pristine_git_object: 4f57d45cfc558954ba6bcf3d45cc9a4fde0c81d6 docs/models/deploymentlistresponse.md: id: 45a11caf1008 last_write_checksum: sha1:e0d0d588f994f72dd7adcc096129cfdac50efb33 @@ -1288,6 +1292,10 @@ trackedFiles: id: a9da842850c4 last_write_checksum: sha1:bf75c978bf0aeb41964e6adadfa2b4779f830d45 pristine_git_object: e805fcca3257e3df396788d69d06e48811bd0b3d + docs/models/deploymentsecretbinding.md: + id: 8e58922196c7 + last_write_checksum: sha1:bab7ab1103f99cc97472737a8bab9b7d3552363b + pristine_git_object: f30250fdc65e14ab8f46d5ca21b583a9857a7301 docs/models/deploymentstatus.md: id: b039895c72a9 last_write_checksum: sha1:fe2f0489b2fea1fa58454ea8abe7426d01b17794 @@ -1632,6 +1640,10 @@ trackedFiles: id: 5fb499088cdf last_write_checksum: sha1:a9a3b6530b1c48a8575402b48cde7b65efb33a7d pristine_git_object: 0226b7045c9d82186e1111bb2025e96a4de90bd6 + docs/models/getchunkindexv1ragmanagedindexesindexnamechunkschunkidgetrequest.md: + id: 48234a5745b2 + last_write_checksum: sha1:79ed9e84d11d2bf21f007dc926c1f78a6ab76202 + pristine_git_object: a12c4ca0be3fc989aef15767d7ac2c3544eacec1 docs/models/getdatasetbyidv1observabilitydatasetsdatasetidgetrequest.md: id: a5811667ed1e last_write_checksum: sha1:91f96f1449ad0adf83fccf11fdf270682a3e3cb4 @@ -1948,6 +1960,18 @@ trackedFiles: id: 3cee51c03dea last_write_checksum: sha1:7ac3b029b14105672460c3fab1b8ae56637fb979 pristine_git_object: d409e523ec385ba2170afb8b7299ab2f971c9c4a + docs/models/grepindexv1ragmanagedindexesindexnamegreppostrequest.md: + id: 632e5a09ba18 + last_write_checksum: sha1:374e97e36c96386e9e067431650772bc267626f5 + pristine_git_object: 0330507228dd492f65b11919dcd50148de76084a + docs/models/grepmode.md: + id: 20c2b5e3634b + last_write_checksum: sha1:379358ce01ab60d0260e7533e34d72a5df28a0ae + pristine_git_object: f6a4e94c1548bdbecc84673c7d3f7da786aad62d + docs/models/greprequest.md: + id: 688b4e89af79 + last_write_checksum: sha1:cdb40fbb654d6e0481fd602dfc2573d74984df42 + pristine_git_object: 87cb5c51e8d327de78c63219a6c4e9ec34bb1399 docs/models/gt.md: id: 140a4c2dfe7b last_write_checksum: sha1:0b80e420c4eaaac6fe255ca6e79352f6c43303c9 @@ -2004,6 +2028,10 @@ trackedFiles: id: 74bd521abc26 last_write_checksum: sha1:a4efe4ff8c52137af47d6ab750d1d2f7cba77e7c pristine_git_object: 72a586bc65f6219abed50105d9df9cb8b6ec8d02 + docs/models/importdatasetfromspansrequest.md: + id: 491f834aecc3 + last_write_checksum: sha1:781d9ad1f7eb72ecfe10fb522598bb0b80bcf91a + pristine_git_object: 1dbc28f5daba38528d45336a3f8809b4d52fceed docs/models/in_.md: id: 9520707758f0 last_write_checksum: sha1:8db5ba33fa9c50f199d1a7bbae3c1616e65203b8 @@ -2198,8 +2226,8 @@ trackedFiles: pristine_git_object: f76b86aed2bdf889181a1a7922ce83d0654cbb6c docs/models/keywordretriever.md: id: 6ee7aba8d363 - last_write_checksum: sha1:013d65bc293715c7c5055627ff2521684a79d67b - pristine_git_object: 36eeb6d4a76d5ebe24ddc19eb8bbab63753cf5bc + last_write_checksum: sha1:93d993c6ab785f6eaa93433db429c25e377bb3b5 + pristine_git_object: 37ae2b6c0340466ac0e5a650a3546b5d6226f8fc docs/models/keywordretrieverfilter.md: id: 3d0460c874e0 last_write_checksum: sha1:2880aa294c7db44ab0cc225ab06e82e1e9ea2935 @@ -2318,8 +2346,8 @@ trackedFiles: pristine_git_object: 554266f5c9bd5d25d8735e58a62f32347f016915 docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md: id: 7c9f534b899b - last_write_checksum: sha1:44216e5da8714b7e412739c50ef777469d9a67b0 - pristine_git_object: 7eb76ad7779a49ffa9f86cb9b14aada572d7990b + last_write_checksum: sha1:3dca28f262d6b2ad627e40a41861f04c3768449f + pristine_git_object: 23b27aac81155eccac42d7aa3a51340ebd97e275 docs/models/listdeploymentworkersv1workflowsdeploymentsnameworkersgetrequest.md: id: fbdc29434ada last_write_checksum: sha1:fb828cc92b49284efe410dddc8c128d2b7937fc6 @@ -2334,8 +2362,8 @@ trackedFiles: pristine_git_object: 802f685fb3a76afb86a69cf41e6de9339cd6fbc7 docs/models/listindexesv1ragmanagedindexesgetrequest.md: id: d29f21547878 - last_write_checksum: sha1:00031363f35d718d84a7d87947974a03efc2c6f1 - pristine_git_object: 1c737d5aa49fa510e68c13e2d91ee9b626513188 + last_write_checksum: sha1:b1d692dc209c3cd445fdf65a8a04f4fe5064d71d + pristine_git_object: a99444dafc939b15ce422b37be60fcd5f92fe963 docs/models/listindexesv1ragmanagedindexesgetresponse.md: id: a3c656fc6549 last_write_checksum: sha1:f87cfe79c88729b1b845459aab7e1d63da2d6aa5 @@ -2378,8 +2406,8 @@ trackedFiles: pristine_git_object: 645719816f34b6ce88aaada4f4a7dc546ff096b2 docs/models/listrunsv1workflowsrunsgetrequest.md: id: 132927390b33 - last_write_checksum: sha1:58c3ce4432fb9795e1d13c38dcf13efa7c716ac6 - pristine_git_object: 8238bdc5b90aa880b66d9984656bab2d50b9ead6 + last_write_checksum: sha1:a12db69be2a28e10228fa85522d031c7a3ed737b + pristine_git_object: d954d3952fab26494ce23b3296d6328600a66800 docs/models/listrunsv1workflowsrunsgetresponse.md: id: da55980ef20d last_write_checksum: sha1:e176049e48a9f78b47be166b6dc8f47bca3e7da7 @@ -2490,8 +2518,8 @@ trackedFiles: pristine_git_object: 82973fa4eb26efec6e75369c73599f342e304d93 docs/models/manageddeploymentresponse.md: id: fba53130778a - last_write_checksum: sha1:54eb7049a7f9d9cc4a1865f6527682aa13b493d7 - pristine_git_object: be39058e6a3bdb3647acc5011d324e0afeacc53c + last_write_checksum: sha1:3c858c3f30d4024b3f466cf0af0b91f279610499 + pristine_git_object: 450f2f391e9ba4e7adfa6c0773b0ec14380c65c2 docs/models/managedindexconfig.md: id: 642ff59b1373 last_write_checksum: sha1:9704f80fc125c343ee439697ec14e6c39d747e8b @@ -2502,8 +2530,8 @@ trackedFiles: pristine_git_object: b2616f6ddd5ee772f3e3f63c3670614b7ab51287 docs/models/managedindexresponse.md: id: 389c98065299 - last_write_checksum: sha1:8bdbf4521fb7308cbe0adbe624d6e931b7872bb5 - pristine_git_object: d7a126658511fb189a4938bcfc331cc7cae7eebe + last_write_checksum: sha1:3b12d92b76d750c2c4da15a9ca560fb908765841 + pristine_git_object: c0a8b8013b34f9d10144785a7c69c29245d5a571 docs/models/managedindexstatus.md: id: 9ac947c8b23b last_write_checksum: sha1:93491eadf0a938a5ac3fe71ffc92481ac3b283f1 @@ -2696,10 +2724,30 @@ trackedFiles: id: f5be2d861921 last_write_checksum: sha1:624f30759b7b7de1913b1ef3b8bb2187a95b9570 pristine_git_object: 9d7a00c44e1507edd12f16fbb6b3864f1c0bbd81 + docs/models/navigateindexv1ragmanagedindexesindexnamenavigatepostrequest.md: + id: 1f48255d8986 + last_write_checksum: sha1:54abdcfbfd5d7eae91dd9ae3d2c3e8d6e82317f9 + pristine_git_object: fe54e7dde28172af5f52a8eb3bb8c6194e7659f1 + docs/models/navigaterequest.md: + id: a19131f003bd + last_write_checksum: sha1:2621e592095e237eccbeb63affc953c0328fbc38 + pristine_git_object: 5b99a467d792819e3dfc53989abf7d4207022e69 + docs/models/navigationchunkresponse.md: + id: 8045485a0ee0 + last_write_checksum: sha1:e78c487c331442c7c6ff73a2471a44dabbca820a + pristine_git_object: 793af7cc8c1eb3d32ebac0759aaa2d4011058b81 + docs/models/navigationdirection.md: + id: 294da3e9257f + last_write_checksum: sha1:86f8514a2fb0e02d627902b09ab8beb2da057bcb + pristine_git_object: 397bc828d8b4b0f9f4162ad854602b7aabc66d09 + docs/models/navigationresponse.md: + id: aaf46372e541 + last_write_checksum: sha1:0400b249342ac49cb43ab59c4991912d33f30114 + pristine_git_object: 32a3b4f18890499e750cdc6a11625e4105261bc5 docs/models/nearestneighbourretriever.md: id: 6df392a159b7 - last_write_checksum: sha1:e400227a9bc9c8a3c0c9f29996943c354d03ad7c - pristine_git_object: df41d5f80cd889ebf765492f8abd2ddfc5cb6c7d + last_write_checksum: sha1:c39880c31136e2dc3706393b6e0a5a1573f6ad96 + pristine_git_object: 47c7c8018647ede9417074b16780075a4b3d7e60 docs/models/nearestneighbourretrieverfilter.md: id: 209c95127bea last_write_checksum: sha1:3d5085ec08c652bb065a011e58d960b5fdd434af @@ -2874,8 +2922,8 @@ trackedFiles: pristine_git_object: cdb11118bad4d954b3cf84126635f59680d4d3ee docs/models/otelfielddefinition.md: id: a631910a6c2c - last_write_checksum: sha1:332a8fb238653396370c554d0c1f3b455360fd7e - pristine_git_object: 5ae1345b3248e89f8469b87cf3a2f40edcba58a9 + last_write_checksum: sha1:2282907c6daa8cf0f4a949d5cb7fe6cad10bcfb7 + pristine_git_object: 291cc84f9bca9a99a61da2e2081c86c0d7291e35 docs/models/otelfielddefinitiontype.md: id: 894f9ac0eb7f last_write_checksum: sha1:64bad53995233259436e7d14f75d75ed085f1cbb @@ -2984,10 +3032,18 @@ trackedFiles: id: a3c711a50d05 last_write_checksum: sha1:130c16a00743f65394279d00af233e6ee4337451 pristine_git_object: 86ab87b8d016644f31b762a9010b368337c3b141 + docs/models/postdatasetrecordsfromspansv1observabilitydatasetsdatasetidimportsfromspanspostrequest.md: + id: ef891ce33670 + last_write_checksum: sha1:a39d9e95577d9bc45f25c8a2b310ea42bc4411d2 + pristine_git_object: 503a5bb7130cc7b54460d3761f6cbdc2866401d9 docs/models/prediction.md: id: 3c70b2262201 last_write_checksum: sha1:ca8a77219e6113f2358a5363e935288d90df0725 pristine_git_object: fae3c1ca4ba2c2ddb3b7de401ecdc8d56dcc7740 + docs/models/principaltype.md: + id: 0e53e3fb2207 + last_write_checksum: sha1:dbf587220ecf75870521e72aef84517f1bbb57b0 + pristine_git_object: 9edf6a182d50a34021b758903bcaa229af4e3abc docs/models/processingstatus.md: id: 06047222d2ff last_write_checksum: sha1:81a11724ad214bab81874167854e6cbcb55a6cc0 @@ -3120,6 +3176,14 @@ trackedFiles: id: 5b84ba3d9dbe last_write_checksum: sha1:75c51d48629dbc67ff8ff0ce6b6d19607e7c9740 pristine_git_object: 3713254e1117aa1799a9ef6321146bc314d6f44a + docs/models/readindexv1ragmanagedindexesindexnamereadpostrequest.md: + id: 020404737c20 + last_write_checksum: sha1:5ad5245cee0487330f8066dd2851627213fc89c2 + pristine_git_object: 93d3a44933cc746c8035226db34998dc00ceb1b2 + docs/models/readrequest.md: + id: 1323016410bd + last_write_checksum: sha1:553cf2fa061b2ac0cd52d04c287927d7d8f01b10 + pristine_git_object: 657af9de97a1863eef9f9484303b939ad854fe01 docs/models/realtimetranscriptionerror.md: id: 4bc5e819565b last_write_checksum: sha1:c93e4b19a0aa68723ea69973a9f22a581c7b2ff6 @@ -3308,10 +3372,6 @@ trackedFiles: id: ac567924689c last_write_checksum: sha1:7534c5ec5f1ae1e750c8f610f81f2106587e81a9 pristine_git_object: f1280f8862e9d3212a5cfccd9453884b4055710a - docs/models/retriever.md: - id: ea2ad3ed76c1 - last_write_checksum: sha1:3712bd9a0e8e56d043ea23e74c365de17cb887e5 - pristine_git_object: d5d94a92581895229983df3794a52a8bb14c5e9f docs/models/role.md: id: b694540a5b1e last_write_checksum: sha1:dd140bf891a9b08db014fde4a99af28839e10dfb @@ -3324,6 +3384,18 @@ trackedFiles: id: 7cc1a16f90b4 last_write_checksum: sha1:65f29860fb46023e6feb61ed5775d4fef4774a92 pristine_git_object: f025431df291c6ab11241b2adfd33e5b915488c5 + docs/models/rrfretriever.md: + id: 2808f9bbc227 + last_write_checksum: sha1:165c590b31f6f900e6350eadcf9c0fc02c169d15 + pristine_git_object: 30f1c21b2506249430ed74bbecc4d92bdcf74c34 + docs/models/rrfretrieverfilter.md: + id: fe9a76e3cd59 + last_write_checksum: sha1:a471f42fb1f8e65db90bc4a80ca4e68f0b8d668b + pristine_git_object: c7fa02af08d934ad22438797c7e62c13a513b165 + docs/models/rrfretrieverretriever.md: + id: 8cf222c4b810 + last_write_checksum: sha1:0e421d7174379b3bd8ec8789eb64999c77b2a960 + pristine_git_object: 16145cf4ef3933e1fc66b79b09686d3fdf5aefa1 docs/models/sampletype.md: id: 0e09775cd9d3 last_write_checksum: sha1:b77964a7b39ec1b74f70925a39c30b23fad6ac43 @@ -3418,8 +3490,12 @@ trackedFiles: pristine_git_object: c0bd16222c225c2eea2fd8402d01f7ee8084b27b docs/models/searchrequest.md: id: bc36c5e5aee1 - last_write_checksum: sha1:1f795b80f00439321fda68f67197a8f25f4a62e4 - pristine_git_object: ecf2058058da72cdb2cdbc1d337c2c369d47ed29 + last_write_checksum: sha1:e1d05007422f9d649dca80a9c627b0c6715bb61a + pristine_git_object: 6b4d32e9df3bac00a0131d5b5b455e5a3aaa0a8c + docs/models/searchrequestretriever.md: + id: 9057a52eb882 + last_write_checksum: sha1:801e07549d076de393f7d9d9b7e44b72e8833309 + pristine_git_object: 047e99abc8c3db1428c7a947bc0a99ff6a19d188 docs/models/searchresponse.md: id: d5606b4d403f last_write_checksum: sha1:68c823a3beffd8394b5fec02f3310e702cfdfe22 @@ -3588,6 +3664,22 @@ trackedFiles: id: 7c1256de772d last_write_checksum: sha1:cd12387021362e82a41eda6aaaf76daf71f579e3 pristine_git_object: b38aec782bdb1c34b5574a847114183284bd0926 + docs/models/spandatasetmapping.md: + id: 16585c213949 + last_write_checksum: sha1:3b34f6716f5a53ec47d4a803e0271033c308846b + pristine_git_object: 3482f35aec0f958759ae22a83a596aa9006bee96 + docs/models/spandatasetmappingcontract.md: + id: 7db51be51ce6 + last_write_checksum: sha1:b84c7bf9a712a26fd0dfaf10e2bb85fc3367bca8 + pristine_git_object: 5ffe3b3589e7d0b830aad0a04a17fe78ea0b5239 + docs/models/spandatasetsourcenamespace.md: + id: 1cdaffc290e8 + last_write_checksum: sha1:cbcd8b28d6478e9f63d5afba19710f14f84a017e + pristine_git_object: 0af6fb8bd31f7e33e5dec636f2ef62b2bc1fb7fa + docs/models/spandatasetsourcereference.md: + id: cd7416283617 + last_write_checksum: sha1:489d597bc2509bba45fd194e2cfe9109e9f38f08 + pristine_git_object: bdded12da36f71f6c97227d84d5bc78182430e42 docs/models/spanevaluationsrequest.md: id: 062bf0aa28e4 last_write_checksum: sha1:c156070c505b1b57a9b6d0cc1838e615c1b1922b @@ -3740,6 +3832,10 @@ trackedFiles: id: 58be1f1aef25 last_write_checksum: sha1:2005c0e15f36bd315c17688daa4dd9a8c260b009 pristine_git_object: 2d16da9de0af99ca5cecd7aab3349e13d22c7013 + docs/models/telemetryspanreference.md: + id: 5797efa7ed07 + last_write_checksum: sha1:c5312c01c1b1b2c090134efce92e4b45bcd21884 + pristine_git_object: 5c156736641413be8f00e1f0c4db138847a34eee docs/models/tempogettraceresponse.md: id: b5700fe45c4d last_write_checksum: sha1:334312483f0365ed3ec20f6fc26b7fdf54fde811 @@ -4044,6 +4140,10 @@ trackedFiles: id: 68ac0e7701d3 last_write_checksum: sha1:3ff86e1e4647f0787841ba5f267a16b730c60351 pristine_git_object: e25cd4bcc990fc9b6d583b8d771ce9b0c297d391 + docs/models/unhardendeploymentv1workflowsdeploymentsdeploymentidunhardenpostrequest.md: + id: 528ecc78beed + last_write_checksum: sha1:75fb3eb56cd5dcf1361947d6e5b2f84c90a89d7a + pristine_git_object: d9afa1e292b3c0fe1c459943f085d3b007cce4f8 docs/models/unregisterdeploymentv1ragdeploymentsdeploymentiddeleterequest.md: id: 65f06ee99763 last_write_checksum: sha1:436eec06a8de98fb86d3d63522412bb271b67764 @@ -4230,8 +4330,8 @@ trackedFiles: pristine_git_object: fb460774fe5e9affe5d1c0e6795ed6255cf06587 docs/models/usageinfodollardefs.md: id: db2412f29163 - last_write_checksum: sha1:22376657c6afb47bd1d3c6629bca91f7c956fc64 - pristine_git_object: 8e405fc0bc409e1cd5a34742886b87036b5b8235 + last_write_checksum: sha1:618cb870e5cb3bc6e612908b118c1bce075391e0 + pristine_git_object: 8f1f228d20f855505f9dfd33c627a6f0d81b88d5 docs/models/useridentity.md: id: 959b5b6bb365 last_write_checksum: sha1:57c19208b5cccac6058c850e34f98bdb7d6b04e9 @@ -4262,8 +4362,8 @@ trackedFiles: pristine_git_object: 5de1a616ce1ed838b26e0f1119d5ae153b44097b docs/models/usersapigetidentitysecurity.md: id: 8af75bda1bc5 - last_write_checksum: sha1:7ffc5e81badd66a9bc039618ff736cab0e34cc61 - pristine_git_object: 3c8bc6ca66228a0f5e08c339316c1b5d31988fbb + last_write_checksum: sha1:187766ce82f6b5ae5d55225783088dabb54623b2 + pristine_git_object: 06ddff8de6dd7e2195e0e1902c010cd27808f64b docs/models/usersapilistorganizationsrequest.md: id: 1a4c0d2d029b last_write_checksum: sha1:407236f9a8771967b197620fd9655cd03b6b14fc @@ -4274,8 +4374,8 @@ trackedFiles: pristine_git_object: 5198158a7a84860bd7c71af433897477e602400c docs/models/usersapilistorganizationssecurity.md: id: 42ae3ba6301b - last_write_checksum: sha1:c78e2449126ea18b458dbf1449612f2d44f3b195 - pristine_git_object: 49414a0cededa483e1f3fc8c2e1a9ddab24f3dbe + last_write_checksum: sha1:9b140224fc167b2c1f31dd0fcd0d551cd05ab4cc + pristine_git_object: 1b3ba57aceaef52419236cd5a991f39bd3595cbc docs/models/usersapilistworkspacesrequest.md: id: 6a72fcd8ee5d last_write_checksum: sha1:3790dd770a96442acb7ed115f82634aacb7ce7ae @@ -4286,8 +4386,8 @@ trackedFiles: pristine_git_object: 31c88d9238c04305c88a8aff873668400e09693a docs/models/usersapilistworkspacessecurity.md: id: 2f546e515eb8 - last_write_checksum: sha1:b794d7dd14e5ad8646e6afc6a73974b9521af8ec - pristine_git_object: 1c00dffac2e0386b57417214d1106724bd6191a3 + last_write_checksum: sha1:e5192f676a61f96e042d137c7f4c6f76798019e0 + pristine_git_object: 477f35e56c77c81b3f9ae6809eb4863b73ceb9e2 docs/models/userworkspace.md: id: e35426656a3c last_write_checksum: sha1:8aee61aa245bd3a4392f74faea4cab26933e11a8 @@ -4606,20 +4706,20 @@ trackedFiles: pristine_git_object: dc0f4984380b5b137266421e87a1505af5260e89 docs/sdks/connectors/README.md: id: 7633a87d946d - last_write_checksum: sha1:d7ae13bd5ec401cac98f6c0f2484ec9409e4da6f - pristine_git_object: e1863bcdfe680f17ce1ca144d33dac6f6eef4392 + last_write_checksum: sha1:5868ffee039fd176ee855573afb770adcf2057af + pristine_git_object: 74a60db6af55fe6d33f8780a9c190a034b0810c4 docs/sdks/conversations/README.md: id: e22a9d2c5424 last_write_checksum: sha1:68ede193fd35a89ab226aa92a92edaecf1eebb1a pristine_git_object: 63cd80a4a655a5c139be79239b0787c3f90cdea9 docs/sdks/datasets/README.md: id: deb5d90f4faf - last_write_checksum: sha1:28772c1a5052d7ed5fbb8231517f446214a33449 - pristine_git_object: b53e3aa3002fd9e156b2d396f848a6949a4168a3 + last_write_checksum: sha1:183b499c600848ed7b4806d66701fa48973a993b + pristine_git_object: 33ba11244708935709ba31a38b8320bd6d9859df docs/sdks/deployments/README.md: id: e7c5559ab768 - last_write_checksum: sha1:01390d45b865313afc3a599a6b1e8c0b7bcd9ee5 - pristine_git_object: ebeafe63764d8e0760612ee242ff59c2c9824d72 + last_write_checksum: sha1:e5f10d161e4631a8c43f48cf2d326acb6bf491ca + pristine_git_object: ea30ef3f2738e1b14db4561adef24b3a6439ef81 docs/sdks/documents/README.md: id: 9758e88a0a9d last_write_checksum: sha1:7f1540110547b0ddb1350dc24422bb94bdf3bdd8 @@ -4670,8 +4770,8 @@ trackedFiles: pristine_git_object: da7cb5a91dd8982dea2b38e1fbc000ec233396c9 docs/sdks/managedindexes/README.md: id: 24213eb90409 - last_write_checksum: sha1:7a272fdfdbb416daa8e8a962fd8aaa0474e780a1 - pristine_git_object: 17f8350815a034dd99f707a268e0ca9c37e24985 + last_write_checksum: sha1:10a85b6e5a20faa7a7c373585e6d79b10ce7e89f + pristine_git_object: ce93eac4a7db74d042222fcb40634fa8c7a619a1 docs/sdks/metrics/README.md: id: a8545d964e21 last_write_checksum: sha1:826a1a941e7687218cd0670e4fdb1f7a65118464 @@ -4690,8 +4790,8 @@ trackedFiles: pristine_git_object: d6a095e3d7ab169613a8b3338fa72508235d0729 docs/sdks/runs/README.md: id: 4598fd39b715 - last_write_checksum: sha1:787ad2cc3aea493f9cac63137e718917a5cdb219 - pristine_git_object: 66a407748f96d8dcd7b663c4681d9ab3e1672e4d + last_write_checksum: sha1:2e39bc2e144354e34064a616a0bdb4dbd4a9cf20 + pristine_git_object: fb1ac1d7034d3d5be492dd90936501054de4e348 docs/sdks/schedules/README.md: id: 2f28c809a225 last_write_checksum: sha1:ed27d25b618632207500e122efa02e948d7f9b38 @@ -4714,8 +4814,8 @@ trackedFiles: pristine_git_object: c0339ef9d33793b7e15581fdf0693fc4ce5b9f21 docs/sdks/spans/README.md: id: 594028be109d - last_write_checksum: sha1:131e21849ac1eead91ea7a14bc8e3fc3136b21e0 - pristine_git_object: 5865ef28befbde047b5663eb42c82973a2fcc9a1 + last_write_checksum: sha1:5765cc3d25b81e08dc25e2704a5d21a4de60dd46 + pristine_git_object: 10aa9a19f066293d2b2f5c36a7849049ec51785a docs/sdks/speech/README.md: id: d5924688d48c last_write_checksum: sha1:ad4d386e6d2b9b144d283ad72024eb140b7c5d96 @@ -4748,10 +4848,6 @@ trackedFiles: id: 258c3ed47ae4 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 - pylintrc: - id: 7ce8b9f946e6 - last_write_checksum: sha1:328661dfcae45e62f9d9f119c9347d3a7053edfc - pristine_git_object: 8f51ceb744f1d9d3010b2f2dbbc946298817cda0 scripts/publish.sh: id: fe273b08f514 last_write_checksum: sha1:b290b25b36dca3d5eb1a2e66a2e1bcf2e7326cf3 @@ -4774,8 +4870,8 @@ trackedFiles: pristine_git_object: ee6e28004691749e83bf7630b4fbca9de3eb5318 src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:4519b9a2d90f23df035d1f7e3de804741922e605 - pristine_git_object: d0c2346d1f610cb26249717e19f350e13e717bd5 + last_write_checksum: sha1:9d7aceba697488b1951d389f580bc573d0cd0965 + pristine_git_object: 6d0d90d4433f83a99b8ed3c6215fa9a9ad7afbb4 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:9a5184751fcfec757251bd9ffa593ea13396ff51 @@ -4818,20 +4914,20 @@ trackedFiles: pristine_git_object: d50ed2ad4867314be86c788594677fbe16ae8da3 src/mistralai/client/connectors.py: id: 39da03126050 - last_write_checksum: sha1:02fd7d3108adda5c2dc135882dd28a94f3b75890 - pristine_git_object: cab86f099be241273d761bf85923a0a10b98e737 + last_write_checksum: sha1:1c8741406eec033d0488cfb2938ca9cb8bf5de13 + pristine_git_object: cd20f8a4867331457eac5c2f762466eca435802c src/mistralai/client/conversations.py: id: 40692a878064 last_write_checksum: sha1:19abde1fe93a6e1a1eb1b60cfb59dcf8edb79e9f pristine_git_object: 57d8b9f94efcd9c138baefab1526d9b605a2b1c5 src/mistralai/client/datasets.py: id: e5a6ae2a2d85 - last_write_checksum: sha1:cc6795b78766ed030d1975c5623997695aa31ed6 - pristine_git_object: db9ed38cc785de33445c1784f7c663107e00cc94 + last_write_checksum: sha1:545704ad4c4f589327ccadac87e19c95795ebcf3 + pristine_git_object: 9e3be81c1d4313b645962b78396743b4fdb1d607 src/mistralai/client/deployments.py: id: a874b267fcb9 - last_write_checksum: sha1:72a5cbbde2cbe0fcca7acdc35dd9b0fe67bf6a26 - pristine_git_object: cba07497994f5f6ba618ad2c3af96e2fecf7c947 + last_write_checksum: sha1:e7d0c3186a13ccf7af03ac2f4f712b77bff73a16 + pristine_git_object: f38522328d9f4ea5eb72dd72ff38ac8ce83ae8a9 src/mistralai/client/documents.py: id: bcc17286c31c last_write_checksum: sha1:2defc6f93789fe84f01029bd28abe5e34dfb54b9 @@ -4914,16 +5010,16 @@ trackedFiles: pristine_git_object: 9c08cc9a9702e8228c5d0550a5206630c94b9e2b src/mistralai/client/managed_indexes.py: id: b6dd0fca653d - last_write_checksum: sha1:83096fce757523a6e8139dfdebeec8ad4321e2ae - pristine_git_object: 9a7c08a7a44655a03bcff7184294e325c97d1f9d + last_write_checksum: sha1:83f9a811a00fbd4f245e6ef94312df053ec1c017 + pristine_git_object: 8c02ffabc0dd9144d840cd94566ef8ca4a035c80 src/mistralai/client/metrics.py: id: 937cb03f8130 last_write_checksum: sha1:63247c665bd1f0620e320c9832f03ac8d0df64bc pristine_git_object: 5556061280ed508ee219b3b967564318e28108ca src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:9254774592dc6b74e53a4bc23ec2bde648bfcb83 - pristine_git_object: b5fe2ba5680913e9737ad50c0a53483b2feb82fe + last_write_checksum: sha1:f1f01c9cf9ba9cc401c321ef2e299fb1b4f88fe2 + pristine_git_object: 680d3c217dd299b98b18704a475087eb6c72fe71 src/mistralai/client/models/accepteddocumentresponse.py: id: f529b784daff last_write_checksum: sha1:bb2c2f3a6c1498a9e47af522f79ddba49121ff44 @@ -5070,12 +5166,16 @@ trackedFiles: pristine_git_object: 3186d5df9000d4a62c0fbc64a601e6b709803deb src/mistralai/client/models/agentscompletionrequest.py: id: 3960bc4c545f - last_write_checksum: sha1:01f9ef314b90175c6ef138e735735ea956bfc9c6 - pristine_git_object: 6327daf4c745cf6a2d907f5e7e9aeddbdc34a060 + last_write_checksum: sha1:88da24f59ba06ebdf78572c9e416d8ca28bcd668 + pristine_git_object: 91bf9ffa4a52a21daba4586c5196533f5b80647e src/mistralai/client/models/agentscompletionstreamrequest.py: id: 1b73f90befc2 - last_write_checksum: sha1:f742410c1503bb5056f195ffaabae316d3262eec - pristine_git_object: 8f8f163eb9f3e659b8be35e07965f784e44cca44 + last_write_checksum: sha1:7c5f427f581e703119c13dab337dedecadd55ee5 + pristine_git_object: 4cc47a25267ee4dc5796148e60f0adb93022e049 + src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py: + id: 3fe59a78e3d0 + last_write_checksum: sha1:f2e9381d73ce6256a6cc2de8b4cae7f5e69e3497 + pristine_git_object: 6ea4f7b77d940019536964f63debdbae305f02a6 src/mistralai/client/models/aggregate_spans_v1_observability_spans_aggregate_postop.py: id: 402703d63097 last_write_checksum: sha1:7bacd9cf0a5aba6604fdda000e2454978c57a758 @@ -5238,8 +5338,8 @@ trackedFiles: pristine_git_object: ab8fa0836edb71fe6493a6239932c39eb8e9151e src/mistralai/client/models/builtinconnectors.py: id: 2d276ce938dc - last_write_checksum: sha1:4ceb3182009b6535c07d652ccf46661b553b6272 - pristine_git_object: ecf60d3c1a83028d9cf755d4c9d5459f6b56e72a + last_write_checksum: sha1:0cf2accbf83c2258ea223cfe3b87298e133870cc + pristine_git_object: 173fea89762ba7c752f6067257e07374ac3b217b src/mistralai/client/models/cancel_workflow_execution_v1_workflows_executions_execution_id_cancel_postop.py: id: e26fc5a228af last_write_checksum: sha1:cc7b1b2bb13a1ee8f88f5a485c3f4c7ef7e32875 @@ -5254,16 +5354,16 @@ trackedFiles: pristine_git_object: ab8f331f35e80425590a13948bdab8cadcb4d394 src/mistralai/client/models/chatcompletionrequest.py: id: 9979805d8c38 - last_write_checksum: sha1:17f4ba20e320f54a6c94b4c2c82aed42bf17c4da - pristine_git_object: 846e2fa14b78d460b2a12142f3fc71fafd672038 + last_write_checksum: sha1:ec256fb3adad875eb7334ffe7914f54b9c97da67 + pristine_git_object: 1531e0f33ec23c8a4baf500fcaed425d4d02734b src/mistralai/client/models/chatcompletionresponse.py: id: 669d996b8e82 last_write_checksum: sha1:97f164fea881127ac82303e637b6a270e200ac5b pristine_git_object: 7092bbc18425091d111ec998b33edc009ff0931b src/mistralai/client/models/chatcompletionstreamrequest.py: id: 18cb2b2415d4 - last_write_checksum: sha1:8214308788910355c784ba53e5f1c490ee7ebd4c - pristine_git_object: 7b2dc5c96145bd3b16db7f7cb7802705a49f0400 + last_write_checksum: sha1:02db59706103420ba305f2849a283dca7b52b77d + pristine_git_object: 0c84c57817fb6dcddbbf0c08221b43bf81103f07 src/mistralai/client/models/chatmoderationrequest.py: id: 057aecb07275 last_write_checksum: sha1:7677494c0e36ccbc201384cb587abeb852a1a924 @@ -5380,22 +5480,14 @@ trackedFiles: id: 7d0462b6586b last_write_checksum: sha1:1f356eb0414fd81f9fbbc6c5809441776317b1eb pristine_git_object: 70adc2fdb3b488782826505ec8628b97ce867ce3 - src/mistralai/client/models/connector_delete_organization_credentials_v1op.py: - id: aab3a70dbbc5 - last_write_checksum: sha1:a53123b18f8dd5a33e777741ab44aac0d5ed64ee - pristine_git_object: 6cdb0c31f9a3d13ee87336fafe85865da6cfcf7e - src/mistralai/client/models/connector_delete_user_credentials_v1op.py: - id: 8bf2075ebdbf - last_write_checksum: sha1:9fbbc77385a362f9a03f9fdd6110d7e77854d16f - pristine_git_object: 40d25aabfd4c0e2c980782afa6cc5c059441045e + src/mistralai/client/models/connector_delete_credentialsop.py: + id: a94152ccdd84 + last_write_checksum: sha1:13a287d3ea61b15b709e8eb47377da9ee7e53284 + pristine_git_object: 5dcf714282adbc016eac72ce4cfe12e488b9e552 src/mistralai/client/models/connector_delete_v1op.py: id: a377930b1435 last_write_checksum: sha1:2c9a501ab2e2b05829f2e3fd838f88a610d56781 pristine_git_object: 74134361aeeaf83af57d7edc7d9ae26ab09d96fb - src/mistralai/client/models/connector_delete_workspace_credentials_v1op.py: - id: 4f0993c25ece - last_write_checksum: sha1:d928043c07daf8e170649473bd6cb36b1c928805 - pristine_git_object: a746ff5e09af76bf2aa4135b5fc675c816a8941f src/mistralai/client/models/connector_get_auth_url_v1op.py: id: 2e6b9ab43d1d last_write_checksum: sha1:1e111ee2954a1c33960b1c73822aff15f23e0cde @@ -5406,8 +5498,8 @@ trackedFiles: pristine_git_object: e0c4146d4621eec51f6961f85de95088e7480c08 src/mistralai/client/models/connector_get_v1op.py: id: 73ca3a446dcc - last_write_checksum: sha1:7afd047c7e74eb418365d79a25c79ec566e72992 - pristine_git_object: beb27872de7204b10e5a28789f817b2cdb629a77 + last_write_checksum: sha1:46ab4d74eb0e8ca167ecb23c978893ae4dc0684b + pristine_git_object: 80a81f10077e83c4d372c049d235c87dff83a81d src/mistralai/client/models/connector_list_organization_credentials_v1op.py: id: a52ee058feab last_write_checksum: sha1:2abf099d7a6ea68134d38c3a95dfec08d37e9ed9 @@ -5830,8 +5922,8 @@ trackedFiles: pristine_git_object: 149453bd87e8bb05d12d8bcf9f4ed70e89d2a34a src/mistralai/client/models/deploymentkoyebbackendspec.py: id: 756d9f222217 - last_write_checksum: sha1:c8ef52cc83f63a275c88e31bd3002fab6b7f6f05 - pristine_git_object: 7227f6fbd265930a0dc092530a28d4f38579d238 + last_write_checksum: sha1:7e597c8ff15aafb5e74fc7ce37152d66f6191ef6 + pristine_git_object: 648d232983f8094b843a9ca827b22811cfc07213 src/mistralai/client/models/deploymentlistresponse.py: id: 1f0b404ba621 last_write_checksum: sha1:828203fc1426550d9b7f6e9d3288f921eec9bfb1 @@ -5864,6 +5956,10 @@ trackedFiles: id: ea15ddd64402 last_write_checksum: sha1:ce68dd039dbca13b0bdc92e6d30631a0faa7f628 pristine_git_object: 8a194dc5be8fbe2d763f47e6184ccf7fc2a35a94 + src/mistralai/client/models/deploymentsecretbinding.py: + id: 05b0f4040b79 + last_write_checksum: sha1:d4b720e289e6a08d67d6d712c971fe7bfedacd3a + pristine_git_object: cb74534b1cd6a3bc4f15d598a0b7492508ba8948 src/mistralai/client/models/deploymentworkerlistresponse.py: id: 29dddd42d9cc last_write_checksum: sha1:edfb69f1c0ca8d33d7db792ea37299d7ef87db7e @@ -6140,6 +6236,10 @@ trackedFiles: id: 2e9ef5800117 last_write_checksum: sha1:bce744d77a3dac92d4776a37be497311674bdc7d pristine_git_object: eae872643c85115a825c2feda11d9a6c12a06b99 + src/mistralai/client/models/get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop.py: + id: 6b1a4a862e54 + last_write_checksum: sha1:ed22489dbac7573a7476472db3633d65a29c6190 + pristine_git_object: bede87449cd83979b0d85b3f6bf3c73ce95ad667 src/mistralai/client/models/get_dataset_by_id_v1_observability_datasets_dataset_id_getop.py: id: cfd3282e7f33 last_write_checksum: sha1:5f3de85d18b2cbd085a01946ac1c193d41e1ab71 @@ -6404,6 +6504,18 @@ trackedFiles: id: 5230c577800b last_write_checksum: sha1:1cad36e5e3a6cd71a3e761bf22ecdcc80f1179a8 pristine_git_object: 9dbac6325315b7190e9b38e1ef6a0ce07f6deb34 + src/mistralai/client/models/grep_index_v1_rag_managed_indexes_index_name_grep_postop.py: + id: d390aef8c0ba + last_write_checksum: sha1:b84aa8007b54c1e68d761fb6be0b6ede2bad40f9 + pristine_git_object: 3cb719be98d5f13e09a3560a77705986a9fbd76e + src/mistralai/client/models/grepmode.py: + id: bede5edfeaba + last_write_checksum: sha1:9eb593999b5899d68966691be4d5b6418677422b + pristine_git_object: b172d2a5eb4524c06288d670f7235db78a950153 + src/mistralai/client/models/greprequest.py: + id: 66b17a2cbd59 + last_write_checksum: sha1:ea38c807145f75b6b405230a3b191ec67ee19289 + pristine_git_object: eec1bfa61f9957dd59af220114884d4520a7eba3 src/mistralai/client/models/guardrailconfig.py: id: c72b74412547 last_write_checksum: sha1:1688b51dafa47d23ff048e88975b21f24932f6c0 @@ -6448,6 +6560,10 @@ trackedFiles: id: 8d809b14b144 last_write_checksum: sha1:3c858d0475e826d072c96a84d868e97593a399a3 pristine_git_object: f5bd720db16c37504e1993cc6e651712551d2612 + src/mistralai/client/models/importdatasetfromspansrequest.py: + id: 977a46fb12f3 + last_write_checksum: sha1:b64edc9f373c33e8d08758f7e3dbad70a2e772b4 + pristine_git_object: ed9f6316de2a29734fa42c71fdcec2e0bae1f311 src/mistralai/client/models/in_.py: id: 9453cb02452b last_write_checksum: sha1:0ecbdeff85a7a4de8442b9833eb781cad830ba1f @@ -6618,8 +6734,8 @@ trackedFiles: pristine_git_object: 5661678147c0b2afd703f8c4a8f87febf3de6d30 src/mistralai/client/models/keywordretriever.py: id: 2512f4df7d0f - last_write_checksum: sha1:cfe3106f7b0f4f2199d0bf470179fa3a31edb699 - pristine_git_object: c3e0c73b8de22fee6f5eef74b171a8b577592afd + last_write_checksum: sha1:4f83c9c1dd4a4642c0d8c220a84424e456861d9e + pristine_git_object: 2d981f0eb0bbe15ab16cfcf4e4768590567fbe6c src/mistralai/client/models/libraries_delete_v1op.py: id: b2e8bbd19baa last_write_checksum: sha1:ba41496bc99040f7598659c5b037b955b7f6d385 @@ -6710,12 +6826,12 @@ trackedFiles: pristine_git_object: 8e499fe8a0f9a1a50f9f2bf0bfc530675ee7b9dc src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py: id: 0c6586ffcab0 - last_write_checksum: sha1:d2ea41de7d24933f032a95ebab7d2611cbadac06 - pristine_git_object: e2dde7b449646d0c4739114836fc807c08b6e7d7 + last_write_checksum: sha1:462c8cd996ef810e304f927c77455b4817f93c81 + pristine_git_object: ee42c30a6a26c55f7abfbd93e546ee857c4c7f9a src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py: id: ee93451dcb1d - last_write_checksum: sha1:a717efd3b83a330c6827a69ff28a899bc53f3c8d - pristine_git_object: 2650ffe6e9ea43c472492bd4fd1d4d42f0e61096 + last_write_checksum: sha1:cb4b10d1636ce6fd576d20028967ce7fcb7da953 + pristine_git_object: 1cbd8f5c7ca8ce4ea07cd7cb413f1111218202ca src/mistralai/client/models/list_models_v1_models_getop.py: id: 1843a7aa68e5 last_write_checksum: sha1:018c32019aab6c4995285ace8abba54d88f41c0b @@ -6726,8 +6842,8 @@ trackedFiles: pristine_git_object: 0cf3469b6bd189d8bb837b7343c64b4e5a5752b3 src/mistralai/client/models/list_runs_v1_workflows_runs_getop.py: id: 2f1b225158c3 - last_write_checksum: sha1:a86d9cbc78d66b12a20dc982eaf9dc17244bfad7 - pristine_git_object: 48f50bd49c1338880f2bdea1b62e5caeca33fdb9 + last_write_checksum: sha1:f93a434b2eb60157f880cf4a206609cb21e3d5f8 + pristine_git_object: f2fdea3a02b5f13c809ba10e9957673e509ee106 src/mistralai/client/models/list_service_account_roles_v1_service_accounts_service_account_id_roles_getop.py: id: 60dd5924f302 last_write_checksum: sha1:678111e97dfde85f1bb415b49dfdb50557fbeeff @@ -6850,8 +6966,8 @@ trackedFiles: pristine_git_object: 75a8b40155e31ca84fca300ddae49a1631b024ff src/mistralai/client/models/manageddeploymentresponse.py: id: bc7d5ee5c606 - last_write_checksum: sha1:953e8882952dcef2ef3ea45a97f0cd5aa60343c1 - pristine_git_object: 6f053670957e2dca6ab559d4aa431c563f2fa05c + last_write_checksum: sha1:0b68b1821d24ae7724bb9006268488bbec3d4d63 + pristine_git_object: 890f3f6c4c53111ad11a87b2db22b515dd0b998e src/mistralai/client/models/managedindexconfig.py: id: 03d254f4ddac last_write_checksum: sha1:82999d13b30d288cfb31e95c9aa64252310309c7 @@ -6862,8 +6978,8 @@ trackedFiles: pristine_git_object: fe06f81f313f52f7b7084d163e497068ddb8bc72 src/mistralai/client/models/managedindexresponse.py: id: 7d6f0bf30868 - last_write_checksum: sha1:38ced9d8aabc63c58e93569308e003bd092519e1 - pristine_git_object: 11c745f2b74f967c03d1ec21675938927b21c7d2 + last_write_checksum: sha1:1a84cb2792949d00de47980776557523138c7ff0 + pristine_git_object: 6a41426b07bfe894238ba88588c0296c4681de67 src/mistralai/client/models/managedindexstatus.py: id: 9ceb11b0dede last_write_checksum: sha1:91e37287f555c688496baa89eeeab239a8c33aec @@ -7016,10 +7132,30 @@ trackedFiles: id: 06bab279cb31 last_write_checksum: sha1:b9158e575276c1e0a510c129347b9a98c5a70567 pristine_git_object: a8a8ec3d8d8a58deb3c1f8358c6dce5a9734f89c + src/mistralai/client/models/navigate_index_v1_rag_managed_indexes_index_name_navigate_postop.py: + id: c452c66e8904 + last_write_checksum: sha1:a10876fe09970a6b1639866bdedfd6aca6a0a10c + pristine_git_object: 60e0aacf092a77691e2848c7caba647398138514 + src/mistralai/client/models/navigaterequest.py: + id: 6ee7d0d32246 + last_write_checksum: sha1:0b32193359423efad0fed30f7c057eb4916444b8 + pristine_git_object: 0cf3e18b6d68998810fc43bb8d2fb17747fa3463 + src/mistralai/client/models/navigationchunkresponse.py: + id: 8221d07248b4 + last_write_checksum: sha1:b7054526359aebde97710b94d9e05f83f43b9c63 + pristine_git_object: ea2b66f0d2b8ec43cf544f3f3c21383dddf77e9b + src/mistralai/client/models/navigationdirection.py: + id: 2f8dfb50d302 + last_write_checksum: sha1:d15b839f986432b67fbe85234945d546e73a8a33 + pristine_git_object: 227ab096bb18e36fd591e160c16fd45ea1789d01 + src/mistralai/client/models/navigationresponse.py: + id: 2924d4d13c14 + last_write_checksum: sha1:90d7ebfc5095d15540c6ffbabf7d171b5de02f7d + pristine_git_object: 6359843eb18dea2c5862759d83e087d9e72a5070 src/mistralai/client/models/nearestneighbourretriever.py: id: 030fa248215c - last_write_checksum: sha1:edf8fab2bb8fa818da39ba577afaa9e65ae817ab - pristine_git_object: 7e3f416845d9943e46ebc22fcbfe2472d12c5804 + last_write_checksum: sha1:5e2d617d3d34acc62ec1ee87d1f8cd3f20abc199 + pristine_git_object: e872a3cf2c6a93ddb5a02e54730e0302325f90fa src/mistralai/client/models/networkencodedinput.py: id: 6dc5321dbe77 last_write_checksum: sha1:5a99ca47003b7bcfee48753dd4683a94eeee1fe1 @@ -7178,8 +7314,8 @@ trackedFiles: pristine_git_object: aa94f6ab6663bcfd8ffe7aa3bda1aee247dbec81 src/mistralai/client/models/otelfielddefinition.py: id: 4bf75d7f4f70 - last_write_checksum: sha1:c40c4b7a8c5791c63f59a8fb9c8e4899667da546 - pristine_git_object: f3062c0a8fb28b6ae28302f895e56f65704b9478 + last_write_checksum: sha1:53c2f56302dfe039f5290df9406b66b8de84d5a6 + pristine_git_object: 9011fde24d5d314589dbc607e59c4c12191d483d src/mistralai/client/models/otlpdestination.py: id: 4f2c54390e28 last_write_checksum: sha1:4e8f50675b2c67643116ddead0baec45897267a2 @@ -7272,10 +7408,18 @@ trackedFiles: : id: 09334d96c26d last_write_checksum: sha1:db69f60fa1e25cd24b958e997c8b4c635b2202ea pristine_git_object: 7423375af779911d2842ff9736452fc19a385daf + src/mistralai/client/models/post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop.py: + id: a362a57a5e98 + last_write_checksum: sha1:24ddeac01070526412666e87c30e5f81aac54bac + pristine_git_object: cc322af16ce8dd864ad2f512b3a634c641e20b4f src/mistralai/client/models/prediction.py: id: 1cc842a069a5 last_write_checksum: sha1:3ccc14b40fd70f3b4a5cdae3eebcc557b96aea8e pristine_git_object: 614f481174e58eb7ba28cae5238b532d1d66ef9c + src/mistralai/client/models/principaltype.py: + id: beb42b23cde7 + last_write_checksum: sha1:8ca425e5880bed73217a87bfd9869ba63276d9c6 + pristine_git_object: 9557119d5bc3323fe7e4146e522525b97eb2c463 src/mistralai/client/models/processingstatus.py: id: 28146eaecfcf last_write_checksum: sha1:4c053b54f4e154e016b1592dfe1de70bfd3699c3 @@ -7392,6 +7536,14 @@ trackedFiles: id: 0e7d58f94da1 last_write_checksum: sha1:8e75bdf98ba75a6f44295105019ec1a63e061b40 pristine_git_object: 44326eff138efd7e6f2e24153f330a19d5573bc2 + src/mistralai/client/models/read_index_v1_rag_managed_indexes_index_name_read_postop.py: + id: fa02d8c02b8c + last_write_checksum: sha1:7fb63ee5cfb0b2e38ece6ce3ddc1bb8accd35502 + pristine_git_object: 58e8390de447adb023c8fad6cbf8fbb796e4a446 + src/mistralai/client/models/readrequest.py: + id: 8ef0ba975e25 + last_write_checksum: sha1:29c2ed5ce130a57ed61d30adc39b63aafcabd767 + pristine_git_object: 0d67668a4f49097ce15676f080b339aa2bddf6c9 src/mistralai/client/models/realtimetranscriptionerror.py: id: 8c2267378f48 last_write_checksum: sha1:8bfdc2564fc416b0e1a4cc2e2a3a5437b26cea85 @@ -7536,6 +7688,10 @@ trackedFiles: id: f1514b6dd416 last_write_checksum: sha1:55eaee162031944b1a3d334cd2084ca39261de9f pristine_git_object: 37b25d65f2bff9c8018bce9f82f9e918fd6bca76 + src/mistralai/client/models/rrfretriever.py: + id: 78dc5d3684c2 + last_write_checksum: sha1:e20d3ac85795836aecf96d75f6336283cf05ed8f + pristine_git_object: e1764f494bc484d967899b4c14fe753b2c22d24e src/mistralai/client/models/sampletype.py: id: a9309422fed7 last_write_checksum: sha1:86a61340a647696f6c35a82d945509b1c85aa6f7 @@ -7634,8 +7790,8 @@ trackedFiles: pristine_git_object: 7ae8cd51d6184e9ba2281d2d4d8041523b81aba1 src/mistralai/client/models/searchrequest.py: id: f2dafa00688b - last_write_checksum: sha1:af33021112f7ce96c4f8fb6ff3e1bb7996bc8d0a - pristine_git_object: d2bd190c04ec5642578eb7a2b5e032daa1c9554d + last_write_checksum: sha1:3acbc72a63b07be496c801a8b77bf7c568628493 + pristine_git_object: ac65e245c2669b45232c8cf5907fd88a894e7743 src/mistralai/client/models/searchresponse.py: id: 63e04ad2f0e5 last_write_checksum: sha1:c03a8309a8118d87c4856cf254301058c2ebbdaa @@ -7768,6 +7924,22 @@ trackedFiles: id: 5205c9c977a1 last_write_checksum: sha1:8a6003061b58a9f8c1d72bbeac9a49b121ba664f pristine_git_object: deb1fa3159dbfa2a016d187289c3214a061d29ce + src/mistralai/client/models/spandatasetmapping.py: + id: a6d07c423bd3 + last_write_checksum: sha1:fa4d6af7b0fa7ac69e73df3ac9283fa06b9090c3 + pristine_git_object: 84c5c7e8a3f9a74e117dbafa2ff31581b00c2393 + src/mistralai/client/models/spandatasetmappingcontract.py: + id: 44425c212cc7 + last_write_checksum: sha1:8a3b673d6690356a231216b844bf4c5e0aaa168a + pristine_git_object: 844430f98057994dddec3fd3abb9158ba491298d + src/mistralai/client/models/spandatasetsourcenamespace.py: + id: aef12a752deb + last_write_checksum: sha1:8d8c08fdd8829cd94b0e77fdc97d2cc68e08602d + pristine_git_object: a16d134afe8a4495fd4a68f2d085580401d5a51c + src/mistralai/client/models/spandatasetsourcereference.py: + id: 857ec9b63765 + last_write_checksum: sha1:1975da7bf2e9659b02ac614b961087bfad628b27 + pristine_git_object: 9d77fa6a6d63b4a535c96be0b9bcdd1b86b394a3 src/mistralai/client/models/spanevaluationsrequest.py: id: 89836411323a last_write_checksum: sha1:e4d1c575877f3070fdf6967b1faed1f96890340a @@ -7856,6 +8028,10 @@ trackedFiles: id: ac9448f661ce last_write_checksum: sha1:e7dd4fcefdd9f89bc7d093d2ded222f0b9e45c99 pristine_git_object: 88d799c114d3e64e8628c8be43d68934a1b68754 + src/mistralai/client/models/telemetryspanreference.py: + id: fed9346ce15f + last_write_checksum: sha1:e7ba1e4cb567648324e80b8110be14709d03e9bf + pristine_git_object: 0186abaac7545f49e1f6920f2a6c557214edcefc src/mistralai/client/models/tempogettraceresponse.py: id: 8bb3c013aa76 last_write_checksum: sha1:ff35ba718f008554d79defc41dc02af5115c7ab0 @@ -8108,6 +8284,10 @@ trackedFiles: id: 22e2ccbb0c80 last_write_checksum: sha1:8ebdd49f2bef3c5934395808bf71701b46e512be pristine_git_object: 5cab4c2ef093236cacdc2a9e24b27c1a6c643ee9 + src/mistralai/client/models/unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop.py: + id: 7bca8ab027ef + last_write_checksum: sha1:801290be07c531f9236aced23fa6ba812bd357e5 + pristine_git_object: 96c6575bb7d580ce3d494ad9a05dbdaa769ae668 src/mistralai/client/models/unregister_deployment_v1_rag_deployments_deployment_id_deleteop.py: id: f26a43e68fa6 last_write_checksum: sha1:ee07c0856bca53e115a24b0c9b72fdede27bd59e @@ -8258,8 +8438,8 @@ trackedFiles: pristine_git_object: 5b09dafad3cde3da2fd96b8dbece0386641f8a44 src/mistralai/client/models/usageinfo_dollar_defs.py: id: d543506af998 - last_write_checksum: sha1:dafbaf51ce3997baf25141bdef8b34a92b48ed31 - pristine_git_object: 20686bff2118fc96adf50a0b775d719d68310041 + last_write_checksum: sha1:e6e6ab6135c243d2a506059af7ea23491b7d04e7 + pristine_git_object: c42882eee6cfc45ed9dbe233d6a181195a155950 src/mistralai/client/models/useridentity.py: id: 8b1effdfe1ba last_write_checksum: sha1:7ad7c16feb0b452585a4a30f8f7a7b56deafaf8c @@ -8286,16 +8466,16 @@ trackedFiles: pristine_git_object: 4dbae055c54f656c22377e7b5b6164ee98993b83 src/mistralai/client/models/users_api_get_identityop.py: id: c2f2ad3f3d91 - last_write_checksum: sha1:998604d802f33911f2bd18f059901aee60172617 - pristine_git_object: f15cb2ee4a034b559f6097559e328bab8364aab8 + last_write_checksum: sha1:1db74c9cd67611e1b189b9f003bae3d2aac0f4ea + pristine_git_object: 4049c729b9437396aaffed7159b097b377b74492 src/mistralai/client/models/users_api_list_organizationsop.py: id: ee2d958ab1cb - last_write_checksum: sha1:1b3a4506a921dbe5fa915e17760b53654a1ce413 - pristine_git_object: 46ad22a75d862fcc6bf551c5a98e351d9326902c + last_write_checksum: sha1:b50a1abe645f43c49e5940178222fceb7045ced0 + pristine_git_object: 18e807dc996b2ce8c2f5bd17be61074e09e3a5bd src/mistralai/client/models/users_api_list_workspacesop.py: id: 71c247d21aeb - last_write_checksum: sha1:0ffaeb8907e9afaf16ba9d2d9cb07244f729ffbb - pristine_git_object: acee8b8b21ca9151c2ef941b250d265e49b04a9e + last_write_checksum: sha1:1dd363c9cdae789aa13eca3018d4db76b1ef18b1 + pristine_git_object: c74308b7e9fd47fcf1770e3b5e28f0b963f7fae9 src/mistralai/client/models/userworkspace.py: id: 66ffd9d93482 last_write_checksum: sha1:24010a85e7c902cfab659b1e0513fe309ceea5ad @@ -8594,8 +8774,8 @@ trackedFiles: pristine_git_object: 03e5279f733c6463101439896eb73c2a39fb63cc src/mistralai/client/runs.py: id: 4297d58aeb21 - last_write_checksum: sha1:56a416c0dad3c081b884010381b0ac74fef531c2 - pristine_git_object: 84742115feef48af1887c91ba08a209ccc2e1722 + last_write_checksum: sha1:dc1d743ddfcad362d91ecf65a8375ff3dd1e6552 + pristine_git_object: 7e9a3fe4c9fe23e4401eaf65d69c26cd86479a4f src/mistralai/client/schedules.py: id: d3b4fe452390 last_write_checksum: sha1:3a4f3f89d0f46730e35f935b897c0f799f5b405b @@ -8626,8 +8806,8 @@ trackedFiles: pristine_git_object: c5e3df58db7542f3b3dc85b1d5f465cb37b15884 src/mistralai/client/spans.py: id: 408477ccb9d4 - last_write_checksum: sha1:276b12448ffc826e726c4ead49e8c9e33031b592 - pristine_git_object: 9a21ebf25f41f26da1748d0ae36ef64ce63e8ed2 + last_write_checksum: sha1:c89e117435043de6fb9a3f26f07ebb1ba46c5360 + pristine_git_object: 3241cc4d3fc530394cd3f391e5b8d8b6fd2136ab src/mistralai/client/speech.py: id: 5c1f1109aa5e last_write_checksum: sha1:9e4b770c0d8a12eabc3b5c4d91419aae97b76cc9 @@ -12517,7 +12697,7 @@ examples: application/json: {"name": "", "config": {"embedding": {"type": "custom", "name": "", "dimensions": 543021}}} responses: "202": - application/json: {"id": "b46a65b4-aa22-4c77-aea9-0bed8572a223", "name": "", "status": "provisioning", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 543021}}} + application/json: {"id": "b46a65b4-aa22-4c77-aea9-0bed8572a223", "name": "", "creator_id": "", "status": "provisioning", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 543021}}} "422": application/json: {} list_indexes_v1_rag_managed_indexes_get: @@ -12537,7 +12717,7 @@ examples: index_name: "" responses: "200": - application/json: {"id": "b1e4fc65-2947-49b3-8830-3d3eea60c07c", "name": "", "status": "provisioning", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 136483}}} + application/json: {"id": "b1e4fc65-2947-49b3-8830-3d3eea60c07c", "name": "", "creator_id": "", "status": "provisioning", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 136483}}} "422": application/json: {} update_index_v1_rag_managed_indexes__index_name__put: @@ -12549,7 +12729,7 @@ examples: application/json: {"schema": {}} responses: "202": - application/json: {"id": "c5a70473-e1c2-49d9-b200-6afb6edf1d34", "name": "", "status": "ready", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 626062}}} + application/json: {"id": "c5a70473-e1c2-49d9-b200-6afb6edf1d34", "name": "", "creator_id": "", "status": "ready", "schema": {}, "config": {"embedding": {"type": "custom", "name": "", "dimensions": 626062}}} delete_index_v1_rag_managed_indexes__index_name__delete: speakeasy-default-delete-index-v1-rag-managed-indexes-index-name-delete: parameters: @@ -12596,6 +12776,91 @@ examples: application/json: {"hits": [{"chunk": {"id": "", "source_id": "", "locator": "", "start_offset": 914998, "end_offset": 479974, "chunk_type": "", "content": ""}, "score": 2167.84, "index_name": ""}]} "422": application/json: {} + post_dataset_records_from_spans_v1_observability_datasets__dataset_id__imports_from_spans_post: + speakeasy-default-post-dataset-records-from-spans-v1-observability-datasets-dataset-id-imports-from-spans-post: + parameters: + path: + dataset_id: "fd9efcfd-d8a6-4c7b-82cb-b2f9bde2b4bf" + requestBody: + application/json: {"span_references": [{"trace_id": "", "span_id": ""}], "mapping_contract": {"version": 1, "mappings": [{"target_field": "", "source_field": {"namespace": "span_attributes", "key": ""}}]}} + responses: + "202": + application/json: {"id": "7ba4d964-6ddb-4855-b691-e0cce34ce1bb", "created_at": "2026-02-07T06:24:38.677Z", "updated_at": "2026-02-12T04:58:14.987Z", "deleted_at": "2026-04-18T10:34:30.265Z", "creator_id": "850ced69-e9a0-47e0-a40d-238e00cf397a", "dataset_id": "af2a9e93-c8c0-4ab5-8b07-2526395f670f", "workspace_id": "a2cfcf52-34c5-4132-b40a-7d015dd2ceff", "status": "TIMED_OUT"} + "400": + application/json: {"detail": {"message": "", "error_code": "DATASET_NOT_FOUND"}} + aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_post: + speakeasy-default-aggregate-span-evaluations-v1-observability-spans-evaluations-aggregate-post: + requestBody: + application/json: {"metric": {"measure": "", "aggregation": "max"}, "limit": 1000} + responses: + "200": + application/json: {"data": [{"metric_name": ""}], "meta": {"from_timestamp": "2025-05-07T02:39:44.056Z", "to_timestamp": "2024-03-29T16:41:19.968Z"}} + "400": + application/json: {"detail": {"message": "", "error_code": "DATASET_NOT_FOUND"}} + connector_delete_credentials: + speakeasy-default-connector-delete-credentials: + parameters: + path: + credentials_name: "" + connector_id_or_name: "0f7c9a94-b4f7-44d9-aa77-e9f28f561e03" + consumer_scope: "user" + responses: + "200": + application/json: {"message": ""} + "422": + application/json: {} + navigate_index_v1_rag_managed_indexes__index_name__navigate_post: + speakeasy-default-navigate-index-v1-rag-managed-indexes-index-name-navigate-post: + parameters: + path: + index_name: "" + requestBody: + application/json: {"source_id": "", "start_offset": 506558, "end_offset": 410700, "direction": "previous", "top_k": 1, "content_type": "content"} + responses: + "200": + application/json: {"chunks": [{"id": "", "source_id": "", "locator": "", "start_offset": 921395, "end_offset": null, "chunk_type": "", "content": ""}]} + "422": + application/json: {} + read_index_v1_rag_managed_indexes__index_name__read_post: + speakeasy-default-read-index-v1-rag-managed-indexes-index-name-read-post: + parameters: + path: + index_name: "" + requestBody: + application/json: {"source_id": "", "top_k": 20, "content_type": "content"} + responses: + "200": + application/json: {"chunks": []} + "422": + application/json: {} + grep_index_v1_rag_managed_indexes__index_name__grep_post: + speakeasy-default-grep-index-v1-rag-managed-indexes-index-name-grep-post: + parameters: + path: + index_name: "" + requestBody: + application/json: {"source_id": "", "pattern": "", "top_k": 5, "content_type": "content"} + responses: + "200": + application/json: {"chunks": []} + "422": + application/json: {} + get_chunk_index_v1_rag_managed_indexes__index_name__chunks__chunk_id__get: + speakeasy-default-get-chunk-index-v1-rag-managed-indexes-index-name-chunks-chunk-id-get: + parameters: + path: + index_name: "" + chunk_id: "" + responses: + "200": + application/json: {"chunks": [{"id": "", "source_id": "", "locator": "", "start_offset": 176597, "end_offset": 619778, "chunk_type": "", "content": ""}]} + "422": + application/json: {} + unharden_deployment_v1_workflows_deployments__deployment_id__unharden_post: + speakeasy-default-unharden-deployment-v1-workflows-deployments-deployment-id-unharden-post: + parameters: + path: + deployment_id: "f88c4734-ec6d-4ded-bc49-47a41d4be24b" examplesVersion: 1.0.2 generatedTests: {} generatedFiles: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 53a0ba1f6..404c589e3 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 2.10.1 + version: 2.10.2 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 440e624f1..183b41b93 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.796.4 +speakeasyVersion: 1.796.1 sources: mistral-azure-source: sourceNamespace: mistral-openapi-azure @@ -16,11 +16,11 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:ad1adbc7f2f353506f09eca50c0b4e8b7fb67e957c5a10255fdc13d39326a8b7 - sourceBlobDigest: sha256:48bb84a33d45aae9398fe68d784075714aee477a0db99cd13b064bab7957dd44 + sourceRevisionDigest: sha256:24abc163d5a397c63ba6cc536015a61a845905c75deb15092b9caf1d2295c6a6 + sourceBlobDigest: sha256:7b73bd00edf07ddeb98c3971be08b1772f0d8e5487c4fb73e52425951a2d4854 tags: - latest - - 1.0.0 + - speakeasy-mistralai-sdk-35738543562-1 targets: mistralai-azure-sdk: source: mistral-azure-source @@ -39,25 +39,23 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:ad1adbc7f2f353506f09eca50c0b4e8b7fb67e957c5a10255fdc13d39326a8b7 - sourceBlobDigest: sha256:48bb84a33d45aae9398fe68d784075714aee477a0db99cd13b064bab7957dd44 + sourceRevisionDigest: sha256:24abc163d5a397c63ba6cc536015a61a845905c75deb15092b9caf1d2295c6a6 + sourceBlobDigest: sha256:7b73bd00edf07ddeb98c3971be08b1772f0d8e5487c4fb73e52425951a2d4854 codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:16a44c72d8d7bbecf2b558d34615ffb4a639ab0cd29ecfe94500fc7786d69438 + codeSamplesRevisionDigest: sha256:1ae27577d25fcc0f81530120ed44241afac853260182c97584caee44602e8f8b workflow: workflowVersion: 1.0.0 - speakeasyVersion: 1.796.4 + speakeasyVersion: 1.796.1 sources: mistral-azure-source: inputs: - - location: ../openapi/specs/v2/azure-sdk.yaml + - location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-azure:v2 mistral-google-cloud-source: inputs: - - location: ../openapi/specs/v2/google-cloud-sdk.yaml + - location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-google-cloud:v2 mistral-openapi: inputs: - - location: ../openapi/specs/v2/main-sdk.yaml - registry: - location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi + - location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi:v2 targets: mistralai-azure-sdk: target: python diff --git a/README.md b/README.md index 8bd920658..9decd757c 100644 --- a/README.md +++ b/README.md @@ -521,7 +521,7 @@ print(res.choices[0].message.content) * [unshare_from_organization](docs/sdks/connectors/README.md#unshare_from_organization) - Unshare a connector from the current organization. * [activate_for_consumer](docs/sdks/connectors/README.md#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user). * [deactivate_for_consumer](docs/sdks/connectors/README.md#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level). -* [call_tool](docs/sdks/connectors/README.md#call_tool) - Call Connector Tool +* [~~call_tool~~](docs/sdks/connectors/README.md#call_tool) - Call Connector Tool :warning: **Deprecated** * [list_tools](docs/sdks/connectors/README.md#list_tools) - List tools for a connector. * [get_authentication_methods](docs/sdks/connectors/README.md#get_authentication_methods) - Get authentication methods for a connector. * [list_organization_credentials](docs/sdks/connectors/README.md#list_organization_credentials) - List organization credentials for a connector. @@ -530,9 +530,7 @@ print(res.choices[0].message.content) * [delete_all_user_credentials](docs/sdks/connectors/README.md#delete_all_user_credentials) - Delete all user credentials for a connector. * [create_credentials](docs/sdks/connectors/README.md#create_credentials) - Create consumer credentials for a connector. * [update_credentials](docs/sdks/connectors/README.md#update_credentials) - Create or update consumer credentials for a connector. -* [delete_organization_credentials](docs/sdks/connectors/README.md#delete_organization_credentials) - Delete organization credentials for a connector. -* [delete_workspace_credentials](docs/sdks/connectors/README.md#delete_workspace_credentials) - Delete workspace credentials for a connector. -* [delete_user_credentials](docs/sdks/connectors/README.md#delete_user_credentials) - Delete user credentials for a connector. +* [delete_credentials](docs/sdks/connectors/README.md#delete_credentials) - Delete credentials for a consumer. * [get](docs/sdks/connectors/README.md#get) - Get a connector. * [update](docs/sdks/connectors/README.md#update) - Update a connector. * [delete](docs/sdks/connectors/README.md#delete) - Delete a connector. @@ -591,6 +589,7 @@ print(res.choices[0].message.content) * [create_record](docs/sdks/datasets/README.md#create_record) - Add a record to the dataset * [import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with records from an uploaded file * [import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with records from playground conversations +* [import_from_spans](docs/sdks/datasets/README.md#import_from_spans) - Populate the dataset with records mapped from telemetry spans * [import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with records from another dataset * [export_to_jsonl](docs/sdks/datasets/README.md#export_to_jsonl) - Export to the Files API and retrieve presigned URL to download the resulting JSONL file * [fetch_task](docs/sdks/datasets/README.md#fetch_task) - Get status of a dataset import task @@ -632,6 +631,7 @@ print(res.choices[0].message.content) * [search_spans](docs/sdks/spans/README.md#search_spans) - Search spans * [aggregate](docs/sdks/spans/README.md#aggregate) - Aggregate spans +* [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 * [list_span_fields](docs/sdks/spans/README.md#list_span_fields) - Get span field definitions @@ -677,6 +677,10 @@ print(res.choices[0].message.content) * [ingest_documents](docs/sdks/managedindexes/README.md#ingest_documents) - Ingest documents into a managed index * [delete_documents](docs/sdks/managedindexes/README.md#delete_documents) - Delete documents from a managed index * [search](docs/sdks/managedindexes/README.md#search) - Search a managed index +* [navigate](docs/sdks/managedindexes/README.md#navigate) - Navigate to adjacent chunks +* [read](docs/sdks/managedindexes/README.md#read) - Read chunks within a span +* [grep](docs/sdks/managedindexes/README.md#grep) - Grep for a pattern within a source +* [get_chunk](docs/sdks/managedindexes/README.md#get_chunk) - Get a single chunk by id ### [Beta.Rag.SearchIndexes](docs/sdks/searchindexes/README.md) @@ -782,6 +786,7 @@ print(res.choices[0].message.content) #### [Workflows.Deployments](docs/sdks/deployments/README.md) +* [unharden_deployment](docs/sdks/deployments/README.md#unharden_deployment) - Unharden Deployment * [list_deployments](docs/sdks/deployments/README.md#list_deployments) - List Deployments * [create_deployment](docs/sdks/deployments/README.md#create_deployment) - Create Deployment * [update_deployment](docs/sdks/deployments/README.md#update_deployment) - Update Deployment @@ -1054,8 +1059,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 162 of 253 methods.* -* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 48 of 253 methods.* +* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 164 of 258 methods.* +* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 50 of 258 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. @@ -1250,13 +1255,12 @@ with Mistral( Some operations in this SDK require the security scheme to be specified at the request level. For example: ```python from mistralai.client import Mistral, models -import os with Mistral() as mistral: res = mistral.beta.users.get_identity(security=models.UsersAPIGetIdentitySecurity( - dashboard_user_context_auth=os.getenv("MISTRAL_DASHBOARD_USER_CONTEXT_AUTH", ""), + )) # Handle response diff --git a/RELEASES.md b/RELEASES.md index 11baa56a0..0ee72910c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -967,3 +967,14 @@ Based on: **Relaxed (non-breaking)** - `ListServiceAccountsV1ServiceAccountsGetRequest.workspace_id` is now optional. + + +## 2026-09-22 14:29:51 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.1 (2.933.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.10.2] . +### Releases +- [PyPI v2.10.2] https://pypi.org/project/mistralai/2.10.2 - . \ No newline at end of file diff --git a/docs/models/agentscompletionrequesttool.md b/docs/models/agentscompletionrequesttool.md index c20358664..71e35c17b 100644 --- a/docs/models/agentscompletionrequesttool.md +++ b/docs/models/agentscompletionrequesttool.md @@ -9,24 +9,6 @@ value: models.Tool = /* values here */ ``` -### `models.WebSearchTool` - -```python -value: models.WebSearchTool = /* values here */ -``` - -### `models.WebSearchPremiumTool` - -```python -value: models.WebSearchPremiumTool = /* values here */ -``` - -### `models.CodeInterpreterTool` - -```python -value: models.CodeInterpreterTool = /* values here */ -``` - ### `models.ImageGenerationTool` ```python diff --git a/docs/models/agentscompletionstreamrequesttool.md b/docs/models/agentscompletionstreamrequesttool.md index 6a11b0420..2170f32cf 100644 --- a/docs/models/agentscompletionstreamrequesttool.md +++ b/docs/models/agentscompletionstreamrequesttool.md @@ -9,24 +9,6 @@ value: models.Tool = /* values here */ ``` -### `models.WebSearchTool` - -```python -value: models.WebSearchTool = /* values here */ -``` - -### `models.WebSearchPremiumTool` - -```python -value: models.WebSearchPremiumTool = /* values here */ -``` - -### `models.CodeInterpreterTool` - -```python -value: models.CodeInterpreterTool = /* values here */ -``` - ### `models.ImageGenerationTool` ```python diff --git a/docs/models/aggregatespanevaluationsv1observabilityspansevaluationsaggregatepostrequest.md b/docs/models/aggregatespanevaluationsv1observabilityspansevaluationsaggregatepostrequest.md new file mode 100644 index 000000000..4e1149480 --- /dev/null +++ b/docs/models/aggregatespanevaluationsv1observabilityspansevaluationsaggregatepostrequest.md @@ -0,0 +1,10 @@ +# AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest + + +## 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 | +| `aggregation_request` | [models.AggregationRequest](../models/aggregationrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/builtinconnectors.md b/docs/models/builtinconnectors.md index 11dfd48a8..45ba222b0 100644 --- a/docs/models/builtinconnectors.md +++ b/docs/models/builtinconnectors.md @@ -19,3 +19,4 @@ This is an open enum. Unrecognized values will not fail type checks. - `"code_interpreter"` - `"image_generation"` - `"document_library"` +- `"mistral_mcp"` diff --git a/docs/models/chatcompletionrequesttool.md b/docs/models/chatcompletionrequesttool.md index 572d12ca0..52d493554 100644 --- a/docs/models/chatcompletionrequesttool.md +++ b/docs/models/chatcompletionrequesttool.md @@ -9,24 +9,6 @@ value: models.Tool = /* values here */ ``` -### `models.WebSearchTool` - -```python -value: models.WebSearchTool = /* values here */ -``` - -### `models.WebSearchPremiumTool` - -```python -value: models.WebSearchPremiumTool = /* values here */ -``` - -### `models.CodeInterpreterTool` - -```python -value: models.CodeInterpreterTool = /* values here */ -``` - ### `models.ImageGenerationTool` ```python diff --git a/docs/models/chatcompletionstreamrequesttool.md b/docs/models/chatcompletionstreamrequesttool.md index 48998fcbb..446b7712a 100644 --- a/docs/models/chatcompletionstreamrequesttool.md +++ b/docs/models/chatcompletionstreamrequesttool.md @@ -9,24 +9,6 @@ value: models.Tool = /* values here */ ``` -### `models.WebSearchTool` - -```python -value: models.WebSearchTool = /* values here */ -``` - -### `models.WebSearchPremiumTool` - -```python -value: models.WebSearchPremiumTool = /* values here */ -``` - -### `models.CodeInterpreterTool` - -```python -value: models.CodeInterpreterTool = /* values here */ -``` - ### `models.ImageGenerationTool` ```python diff --git a/docs/models/connectordeletecredentialsconsumerscope.md b/docs/models/connectordeletecredentialsconsumerscope.md new file mode 100644 index 000000000..116362f6b --- /dev/null +++ b/docs/models/connectordeletecredentialsconsumerscope.md @@ -0,0 +1,15 @@ +# ConnectorDeleteCredentialsConsumerScope + +## Example Usage + +```python +from mistralai.client.models import ConnectorDeleteCredentialsConsumerScope +value: ConnectorDeleteCredentialsConsumerScope = "user" +``` + + +## Values + +- `"user"` +- `"workspace"` +- `"organization"` diff --git a/docs/models/connectordeletecredentialsrequest.md b/docs/models/connectordeletecredentialsrequest.md new file mode 100644 index 000000000..fc6d069dc --- /dev/null +++ b/docs/models/connectordeletecredentialsrequest.md @@ -0,0 +1,10 @@ +# ConnectorDeleteCredentialsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `credentials_name` | *str* | :heavy_check_mark: | N/A | +| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | +| `consumer_scope` | [models.ConnectorDeleteCredentialsConsumerScope](../models/connectordeletecredentialsconsumerscope.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeleteorganizationcredentialsv1request.md b/docs/models/connectordeleteorganizationcredentialsv1request.md deleted file mode 100644 index eaf4d00cc..000000000 --- a/docs/models/connectordeleteorganizationcredentialsv1request.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConnectorDeleteOrganizationCredentialsV1Request - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `credentials_name` | *str* | :heavy_check_mark: | N/A | -| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeleteusercredentialsv1request.md b/docs/models/connectordeleteusercredentialsv1request.md deleted file mode 100644 index fd52cf921..000000000 --- a/docs/models/connectordeleteusercredentialsv1request.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConnectorDeleteUserCredentialsV1Request - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `credentials_name` | *str* | :heavy_check_mark: | N/A | -| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectordeleteworkspacecredentialsv1request.md b/docs/models/connectordeleteworkspacecredentialsv1request.md deleted file mode 100644 index 3bc3d7c9e..000000000 --- a/docs/models/connectordeleteworkspacecredentialsv1request.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConnectorDeleteWorkspaceCredentialsV1Request - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `credentials_name` | *str* | :heavy_check_mark: | N/A | -| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/connectorgetv1request.md b/docs/models/connectorgetv1request.md index 124ab1e51..4047bca3c 100644 --- a/docs/models/connectorgetv1request.md +++ b/docs/models/connectorgetv1request.md @@ -3,8 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | -| `fetch_user_data` | *Optional[bool]* | :heavy_minus_sign: | Fetch the user-level data associated with the connector (e.g. connection credentials). | -| `fetch_customer_data` | *Optional[bool]* | :heavy_minus_sign: | Fetch the customer data associated with the connector (e.g. customer secrets / config). | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | +| `fetch_user_data` | *Optional[bool]* | :heavy_minus_sign: | Fetch the user-level data associated with the connector (e.g. connection credentials). | \ No newline at end of file diff --git a/docs/models/deploymentkoyebbackendspec.md b/docs/models/deploymentkoyebbackendspec.md index 24284389c..4f57d45cf 100644 --- a/docs/models/deploymentkoyebbackendspec.md +++ b/docs/models/deploymentkoyebbackendspec.md @@ -5,8 +5,9 @@ Worker configuration for the Koyeb backend. ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `type` | *Literal["koyeb"]* | :heavy_check_mark: | N/A | -| `build_directory` | *OptionalNullable[str]* | :heavy_minus_sign: | Docker build context, as a path in the repo. Defaults to the repo root. | -| `dockerfile_path` | *OptionalNullable[str]* | :heavy_minus_sign: | Path to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `type` | *Literal["koyeb"]* | :heavy_check_mark: | N/A | +| `build_directory` | *OptionalNullable[str]* | :heavy_minus_sign: | Docker build context, as a path in the repo. Defaults to the repo root. | +| `dockerfile_path` | *OptionalNullable[str]* | :heavy_minus_sign: | Path to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'. | +| `secrets` | List[[models.DeploymentSecretBinding](../models/deploymentsecretbinding.md)] | :heavy_minus_sign: | Secrets to bind to the worker, as 'secret:workspace:' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged. | \ No newline at end of file diff --git a/docs/models/deploymentsecretbinding.md b/docs/models/deploymentsecretbinding.md new file mode 100644 index 000000000..f30250fdc --- /dev/null +++ b/docs/models/deploymentsecretbinding.md @@ -0,0 +1,11 @@ +# DeploymentSecretBinding + +Binds one env var to one platform secret; the value is resolved at boot, never stored. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `env_var_name` | *str* | :heavy_check_mark: | Environment variable the worker process reads; the secret's name lives in 'reference'. | +| `reference` | *str* | :heavy_check_mark: | Secret reference as 'secret:workspace:'. Resolved at boot by the runtime-init container; the value never reaches the control plane. | \ No newline at end of file diff --git a/docs/models/getchunkindexv1ragmanagedindexesindexnamechunkschunkidgetrequest.md b/docs/models/getchunkindexv1ragmanagedindexesindexnamechunkschunkidgetrequest.md new file mode 100644 index 000000000..a12c4ca0b --- /dev/null +++ b/docs/models/getchunkindexv1ragmanagedindexesindexnamechunkschunkidgetrequest.md @@ -0,0 +1,9 @@ +# GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `chunk_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/grepindexv1ragmanagedindexesindexnamegreppostrequest.md b/docs/models/grepindexv1ragmanagedindexesindexnamegreppostrequest.md new file mode 100644 index 000000000..033050722 --- /dev/null +++ b/docs/models/grepindexv1ragmanagedindexesindexnamegreppostrequest.md @@ -0,0 +1,9 @@ +# GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `grep_request` | [models.GrepRequest](../models/greprequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/grepmode.md b/docs/models/grepmode.md new file mode 100644 index 000000000..f6a4e94c1 --- /dev/null +++ b/docs/models/grepmode.md @@ -0,0 +1,14 @@ +# GrepMode + +## Example Usage + +```python +from mistralai.client.models import GrepMode +value: GrepMode = "phrase" +``` + + +## Values + +- `"phrase"` +- `"term"` diff --git a/docs/models/greprequest.md b/docs/models/greprequest.md new file mode 100644 index 000000000..87cb5c51e --- /dev/null +++ b/docs/models/greprequest.md @@ -0,0 +1,12 @@ +# GrepRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `pattern` | *str* | :heavy_check_mark: | N/A | +| `mode` | [Optional[models.GrepMode]](../models/grepmode.md) | :heavy_minus_sign: | N/A | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/importdatasetfromspansrequest.md b/docs/models/importdatasetfromspansrequest.md new file mode 100644 index 000000000..1dbc28f5d --- /dev/null +++ b/docs/models/importdatasetfromspansrequest.md @@ -0,0 +1,9 @@ +# ImportDatasetFromSpansRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `span_references` | List[[models.TelemetrySpanReference](../models/telemetryspanreference.md)] | :heavy_check_mark: | Spans to attempt to import; unavailable references are skipped, and trace and span IDs are attached as record properties automatically. | +| `mapping_contract` | [models.SpanDatasetMappingContract](../models/spandatasetmappingcontract.md) | :heavy_check_mark: | Mapping rules applied independently to every requested telemetry span.

Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array
source omits the target key. JSON object and array strings become structured values;
scalar-looking and malformed JSON strings remain strings. | \ No newline at end of file diff --git a/docs/models/keywordretriever.md b/docs/models/keywordretriever.md index 36eeb6d4a..37ae2b6c0 100644 --- a/docs/models/keywordretriever.md +++ b/docs/models/keywordretriever.md @@ -1,6 +1,6 @@ # KeywordRetriever -Retrieve document chunks with similar keywrods to the given query. +Retrieve document chunks with similar keywords to the given query. ## Fields diff --git a/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md b/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md index 7eb76ad77..23b27aac8 100644 --- a/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md +++ b/docs/models/listdeploymentsv1workflowsdeploymentsgetrequest.md @@ -9,6 +9,7 @@ | `is_hardened` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter deployments by hardened status | | `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `created_by` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by creator's user id | +| `owner` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by owner's user id | | `location_types` | List[[models.LocationType](../models/locationtype.md)] | :heavy_minus_sign: | Filter deployments with at least one worker on any of these location types (OR) | | `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by name or ID prefix | | `order_by` | [OptionalNullable[models.ListDeploymentsV1WorkflowsDeploymentsGetOrderBy]](../models/listdeploymentsv1workflowsdeploymentsgetorderby.md) | :heavy_minus_sign: | Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. | diff --git a/docs/models/listindexesv1ragmanagedindexesgetrequest.md b/docs/models/listindexesv1ragmanagedindexesgetrequest.md index 1c737d5aa..a99444daf 100644 --- a/docs/models/listindexesv1ragmanagedindexesgetrequest.md +++ b/docs/models/listindexesv1ragmanagedindexesgetrequest.md @@ -3,7 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of indexes to return | -| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor returned as next_page_token by the previous page | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of indexes to return | +| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor returned as next_page_token by the previous page | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Case-insensitive substring to match against index names | +| `status` | [OptionalNullable[models.ManagedIndexStatus]](../models/managedindexstatus.md) | :heavy_minus_sign: | Status to match | +| `creator_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Creator ID to match | \ No newline at end of file diff --git a/docs/models/listrunsv1workflowsrunsgetrequest.md b/docs/models/listrunsv1workflowsrunsgetrequest.md index 8238bdc5b..d954d3952 100644 --- a/docs/models/listrunsv1workflowsrunsgetrequest.md +++ b/docs/models/listrunsv1workflowsrunsgetrequest.md @@ -3,22 +3,22 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `workflow_identifier` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by workflow name or id | -| `root_execution_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by root execution id; returns the whole execution tree (the root and all its descendant sub-workflows). | -| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Search by workflow name, display name, or ID | -| `status` | [OptionalNullable[models.ListRunsV1WorkflowsRunsGetStatus]](../models/listrunsv1workflowsrunsgetstatus.md) | :heavy_minus_sign: | Filter by workflow status | -| `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by deployment name | -| `sort_by` | [OptionalNullable[models.SortBy]](../models/sortby.md) | :heavy_minus_sign: | Field to sort by | -| `order` | [Optional[models.ListRunsV1WorkflowsRunsGetOrder]](../models/listrunsv1workflowsrunsgetorder.md) | :heavy_minus_sign: | Sort direction | -| `start_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time >= value | -| `start_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time <= value | -| `end_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time >= value. Running executions (no end_time) are excluded; use the status filter to include them. | -| `end_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time <= value. Running executions (no end_time) are excluded; use the status filter to include them. | -| `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by user id. Use 'current' to filter by the authenticated user | -| `workflow_tags` | List[*str*] | :heavy_minus_sign: | Filter to runs of workflows tagged with all listed tags (AND). | -| `include_internal` | *Optional[bool]* | :heavy_minus_sign: | Include runs of internal/technical workflows (e.g. parallel-execution) | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of items per page | -| `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Token for the next page of results | -| `search_key` | List[*str*] | :heavy_minus_sign: | Filter executions by search key as repeated 'key:value' entries. Each entry matches an exact key and a similar value; multiple entries are AND'd together (max 3). | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `workflow_identifier` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by workflow name or id | +| `root_execution_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by root execution id; returns the whole execution tree (the root and all its descendant sub-workflows). | +| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Search by workflow name, display name, or ID | +| `status` | [OptionalNullable[models.ListRunsV1WorkflowsRunsGetStatus]](../models/listrunsv1workflowsrunsgetstatus.md) | :heavy_minus_sign: | Filter by workflow status | +| `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by deployment name | +| `sort_by` | [OptionalNullable[models.SortBy]](../models/sortby.md) | :heavy_minus_sign: | Field to sort by | +| `order` | [Optional[models.ListRunsV1WorkflowsRunsGetOrder]](../models/listrunsv1workflowsrunsgetorder.md) | :heavy_minus_sign: | Sort direction | +| `start_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time >= value | +| `start_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time <= value | +| `end_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time >= value. Running executions (no end_time) are excluded; use the status filter to include them. | +| `end_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time <= value. Running executions (no end_time) are excluded; use the status filter to include them. | +| `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by user id. Use 'current' to filter by the authenticated user | +| `workflow_tags` | List[*str*] | :heavy_minus_sign: | Filter to runs of workflows tagged with all listed tags (AND). | +| `include_internal` | *Optional[bool]* | :heavy_minus_sign: | Include runs of internal/technical workflows (e.g. parallel-execution) | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of items per page | +| `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Token for the next page of results | +| `search_key` | List[*str*] | :heavy_minus_sign: | Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null. | \ No newline at end of file diff --git a/docs/models/manageddeploymentresponse.md b/docs/models/manageddeploymentresponse.md index be39058e6..450f2f391 100644 --- a/docs/models/manageddeploymentresponse.md +++ b/docs/models/manageddeploymentresponse.md @@ -18,4 +18,6 @@ | `updated_by` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `deployed_by` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `deployed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `is_hardened` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `is_hardened` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `runtime_credential_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `runtime_principal_type` | [OptionalNullable[models.PrincipalType]](../models/principaltype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/managedindexresponse.md b/docs/models/managedindexresponse.md index d7a126658..c0a8b8013 100644 --- a/docs/models/managedindexresponse.md +++ b/docs/models/managedindexresponse.md @@ -9,6 +9,7 @@ Wire representation of a managed index (decoupled from the domain model). | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `id` | *str* | :heavy_check_mark: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | +| `creator_id` | *str* | :heavy_check_mark: | N/A | | `status` | [models.ManagedIndexStatus](../models/managedindexstatus.md) | :heavy_check_mark: | Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``. | | `status_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `schema_` | [models.ManagedIndexFields](../models/managedindexfields.md) | :heavy_check_mark: | N/A | diff --git a/docs/models/navigateindexv1ragmanagedindexesindexnamenavigatepostrequest.md b/docs/models/navigateindexv1ragmanagedindexesindexnamenavigatepostrequest.md new file mode 100644 index 000000000..fe54e7dde --- /dev/null +++ b/docs/models/navigateindexv1ragmanagedindexesindexnamenavigatepostrequest.md @@ -0,0 +1,9 @@ +# NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `navigate_request` | [models.NavigateRequest](../models/navigaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/navigaterequest.md b/docs/models/navigaterequest.md new file mode 100644 index 000000000..5b99a467d --- /dev/null +++ b/docs/models/navigaterequest.md @@ -0,0 +1,13 @@ +# NavigateRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `start_offset` | *int* | :heavy_check_mark: | N/A | +| `end_offset` | *int* | :heavy_check_mark: | N/A | +| `direction` | [models.NavigationDirection](../models/navigationdirection.md) | :heavy_check_mark: | N/A | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/navigationchunkresponse.md b/docs/models/navigationchunkresponse.md new file mode 100644 index 000000000..793af7cc8 --- /dev/null +++ b/docs/models/navigationchunkresponse.md @@ -0,0 +1,19 @@ +# NavigationChunkResponse + +Wire chunk for navigation: same atom fields as search, no rank fields. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `locator` | *str* | :heavy_check_mark: | N/A | +| `start_offset` | *Nullable[int]* | :heavy_check_mark: | N/A | +| `end_offset` | *Nullable[int]* | :heavy_check_mark: | N/A | +| `chunk_type` | *str* | :heavy_check_mark: | N/A | +| `parent_ref` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `content` | *str* | :heavy_check_mark: | N/A | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `__pydantic_extra__` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/navigationdirection.md b/docs/models/navigationdirection.md new file mode 100644 index 000000000..397bc828d --- /dev/null +++ b/docs/models/navigationdirection.md @@ -0,0 +1,14 @@ +# NavigationDirection + +## Example Usage + +```python +from mistralai.client.models import NavigationDirection +value: NavigationDirection = "next" +``` + + +## Values + +- `"next"` +- `"previous"` diff --git a/docs/models/navigationresponse.md b/docs/models/navigationresponse.md new file mode 100644 index 000000000..32a3b4f18 --- /dev/null +++ b/docs/models/navigationresponse.md @@ -0,0 +1,10 @@ +# NavigationResponse + +Unranked chunk list in reading order (ascending start_offset). + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `chunks` | List[[models.NavigationChunkResponse](../models/navigationchunkresponse.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/nearestneighbourretriever.md b/docs/models/nearestneighbourretriever.md index df41d5f80..47c7c8018 100644 --- a/docs/models/nearestneighbourretriever.md +++ b/docs/models/nearestneighbourretriever.md @@ -12,4 +12,5 @@ Retrieve document chunks whose embeddings are closest to the query's. | `query` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `query_embedding` | List[*float*] | :heavy_minus_sign: | N/A | | `field` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `filter_` | [OptionalNullable[models.NearestNeighbourRetrieverFilter]](../models/nearestneighbourretrieverfilter.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `filter_` | [OptionalNullable[models.NearestNeighbourRetrieverFilter]](../models/nearestneighbourretrieverfilter.md) | :heavy_minus_sign: | N/A | +| `max_candidates` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/otelfielddefinition.md b/docs/models/otelfielddefinition.md index 5ae1345b3..291cc84f9 100644 --- a/docs/models/otelfielddefinition.md +++ b/docs/models/otelfielddefinition.md @@ -3,11 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `name` | *str* | :heavy_check_mark: | N/A | -| `label` | *str* | :heavy_check_mark: | N/A | -| `type` | [models.OtelFieldDefinitionType](../models/otelfielddefinitiontype.md) | :heavy_check_mark: | N/A | -| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `supported_operators` | List[[models.SupportedOperator](../models/supportedoperator.md)] | :heavy_check_mark: | N/A | -| `supported_aggregations` | List[[models.MetricAggregation](../models/metricaggregation.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `name` | *str* | :heavy_check_mark: | N/A | +| `label` | *str* | :heavy_check_mark: | N/A | +| `type` | [models.OtelFieldDefinitionType](../models/otelfielddefinitiontype.md) | :heavy_check_mark: | N/A | +| `group` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `source_attribute_key` | *OptionalNullable[str]* | :heavy_minus_sign: | Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. `gen_ai.request.model` for `request_model`) or a resource attribute (e.g. `service.name` for `service_name`). None when the field is a native OTLP field (like `span_name` or `trace_id`) or a nested attribute map (like `span_attributes`). | +| `supported_operators` | List[[models.SupportedOperator](../models/supportedoperator.md)] | :heavy_check_mark: | N/A | +| `supported_aggregations` | List[[models.MetricAggregation](../models/metricaggregation.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/postdatasetrecordsfromspansv1observabilitydatasetsdatasetidimportsfromspanspostrequest.md b/docs/models/postdatasetrecordsfromspansv1observabilitydatasetsdatasetidimportsfromspanspostrequest.md new file mode 100644 index 000000000..503a5bb71 --- /dev/null +++ b/docs/models/postdatasetrecordsfromspansv1observabilitydatasetsdatasetidimportsfromspanspostrequest.md @@ -0,0 +1,9 @@ +# PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `dataset_id` | *str* | :heavy_check_mark: | N/A | +| `import_dataset_from_spans_request` | [models.ImportDatasetFromSpansRequest](../models/importdatasetfromspansrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/principaltype.md b/docs/models/principaltype.md new file mode 100644 index 000000000..9edf6a182 --- /dev/null +++ b/docs/models/principaltype.md @@ -0,0 +1,19 @@ +# PrincipalType + +## Example Usage + +```python +from mistralai.client.models import PrincipalType + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: PrincipalType = "api_key" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"api_key"` +- `"service_account"` +- `"user"` diff --git a/docs/models/readindexv1ragmanagedindexesindexnamereadpostrequest.md b/docs/models/readindexv1ragmanagedindexesindexnamereadpostrequest.md new file mode 100644 index 000000000..93d3a4493 --- /dev/null +++ b/docs/models/readindexv1ragmanagedindexesindexnamereadpostrequest.md @@ -0,0 +1,9 @@ +# ReadIndexV1RagManagedIndexesIndexNameReadPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `read_request` | [models.ReadRequest](../models/readrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/readrequest.md b/docs/models/readrequest.md new file mode 100644 index 000000000..657af9de9 --- /dev/null +++ b/docs/models/readrequest.md @@ -0,0 +1,12 @@ +# ReadRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `start_offset` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `end_offset` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/rrfretriever.md b/docs/models/rrfretriever.md new file mode 100644 index 000000000..30f1c21b2 --- /dev/null +++ b/docs/models/rrfretriever.md @@ -0,0 +1,15 @@ +# RRFRetriever + +Fuse child retriever rankings via reciprocal rank fusion. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["rrf"]* | :heavy_check_mark: | N/A | +| `retrievers` | List[[models.RRFRetrieverRetriever](../models/rrfretrieverretriever.md)] | :heavy_check_mark: | N/A | +| `weights` | List[*float*] | :heavy_minus_sign: | N/A | +| `rank_constant` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `filter_` | [OptionalNullable[models.RRFRetrieverFilter]](../models/rrfretrieverfilter.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/rrfretrieverfilter.md b/docs/models/rrfretrieverfilter.md new file mode 100644 index 000000000..c7fa02af0 --- /dev/null +++ b/docs/models/rrfretrieverfilter.md @@ -0,0 +1,41 @@ +# RRFRetrieverFilter + + +## Supported Types + +### `models.And` + +```python +value: models.And = /* values here */ +``` + +### `models.Equal` + +```python +value: models.Equal = /* values here */ +``` + +### `models.In` + +```python +value: models.In = /* values here */ +``` + +### `models.Not` + +```python +value: models.Not = /* values here */ +``` + +### `models.Or` + +```python +value: models.Or = /* values here */ +``` + +### `models.Range` + +```python +value: models.Range = /* values here */ +``` + diff --git a/docs/models/retriever.md b/docs/models/rrfretrieverretriever.md similarity index 90% rename from docs/models/retriever.md rename to docs/models/rrfretrieverretriever.md index d5d94a925..16145cf4e 100644 --- a/docs/models/retriever.md +++ b/docs/models/rrfretrieverretriever.md @@ -1,4 +1,4 @@ -# Retriever +# RRFRetrieverRetriever ## Supported Types diff --git a/docs/models/searchrequest.md b/docs/models/searchrequest.md index ecf205805..6b4d32e9d 100644 --- a/docs/models/searchrequest.md +++ b/docs/models/searchrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `retriever` | [models.Retriever](../models/retriever.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `retriever` | [models.SearchRequestRetriever](../models/searchrequestretriever.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/searchrequestretriever.md b/docs/models/searchrequestretriever.md new file mode 100644 index 000000000..047e99abc --- /dev/null +++ b/docs/models/searchrequestretriever.md @@ -0,0 +1,23 @@ +# SearchRequestRetriever + + +## Supported Types + +### `models.KeywordRetriever` + +```python +value: models.KeywordRetriever = /* values here */ +``` + +### `models.NearestNeighbourRetriever` + +```python +value: models.NearestNeighbourRetriever = /* values here */ +``` + +### `models.RRFRetriever` + +```python +value: models.RRFRetriever = /* values here */ +``` + diff --git a/docs/models/spandatasetmapping.md b/docs/models/spandatasetmapping.md new file mode 100644 index 000000000..3482f35ae --- /dev/null +++ b/docs/models/spandatasetmapping.md @@ -0,0 +1,9 @@ +# SpanDatasetMapping + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `target_field` | *str* | :heavy_check_mark: | Literal top-level key to create in the dataset record payload. | +| `source_field` | [models.SpanDatasetSourceReference](../models/spandatasetsourcereference.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/spandatasetmappingcontract.md b/docs/models/spandatasetmappingcontract.md new file mode 100644 index 000000000..5ffe3b358 --- /dev/null +++ b/docs/models/spandatasetmappingcontract.md @@ -0,0 +1,15 @@ +# SpanDatasetMappingContract + +Mapping rules applied independently to every requested telemetry span. + +Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array +source omits the target key. JSON object and array strings become structured values; +scalar-looking and malformed JSON strings remain strings. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `version` | *Literal[1]* | :heavy_check_mark: | N/A | +| `mappings` | List[[models.SpanDatasetMapping](../models/spandatasetmapping.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/spandatasetsourcenamespace.md b/docs/models/spandatasetsourcenamespace.md new file mode 100644 index 000000000..0af6fb8bd --- /dev/null +++ b/docs/models/spandatasetsourcenamespace.md @@ -0,0 +1,16 @@ +# SpanDatasetSourceNamespace + +Attribute maps that may supply dataset payload values. + +## Example Usage + +```python +from mistralai.client.models import SpanDatasetSourceNamespace +value: SpanDatasetSourceNamespace = "span_attributes" +``` + + +## Values + +- `"span_attributes"` +- `"resource_attributes"` diff --git a/docs/models/spandatasetsourcereference.md b/docs/models/spandatasetsourcereference.md new file mode 100644 index 000000000..bdded12da --- /dev/null +++ b/docs/models/spandatasetsourcereference.md @@ -0,0 +1,9 @@ +# SpanDatasetSourceReference + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `namespace` | [models.SpanDatasetSourceNamespace](../models/spandatasetsourcenamespace.md) | :heavy_check_mark: | Attribute maps that may supply dataset payload values. | +| `key` | *str* | :heavy_check_mark: | Literal attribute dictionary key; dots do not denote a nested path. | \ No newline at end of file diff --git a/docs/models/telemetryspanreference.md b/docs/models/telemetryspanreference.md new file mode 100644 index 000000000..5c1567366 --- /dev/null +++ b/docs/models/telemetryspanreference.md @@ -0,0 +1,11 @@ +# TelemetrySpanReference + +Immutable provenance used to identify a telemetry span. + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `trace_id` | *str* | :heavy_check_mark: | N/A | +| `span_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/unhardendeploymentv1workflowsdeploymentsdeploymentidunhardenpostrequest.md b/docs/models/unhardendeploymentv1workflowsdeploymentsdeploymentidunhardenpostrequest.md new file mode 100644 index 000000000..d9afa1e29 --- /dev/null +++ b/docs/models/unhardendeploymentv1workflowsdeploymentsdeploymentidunhardenpostrequest.md @@ -0,0 +1,9 @@ +# UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `deployment_id` | *str* | :heavy_check_mark: | N/A | +| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Workspace ID to scope the request to. Defaults to the caller's context. | \ No newline at end of file diff --git a/docs/models/usageinfodollardefs.md b/docs/models/usageinfodollardefs.md index 8e405fc0b..8f1f228d2 100644 --- a/docs/models/usageinfodollardefs.md +++ b/docs/models/usageinfodollardefs.md @@ -12,5 +12,6 @@ | `request_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | `prompt_tokens_details` | [OptionalNullable[models.PromptTokensDetails]](../models/prompttokensdetails.md) | :heavy_minus_sign: | N/A | | `completion_tokens_details` | [OptionalNullable[models.CompletionTokensDetails]](../models/completiontokensdetails.md) | :heavy_minus_sign: | N/A | +| `service_tier` | *OptionalNullable[str]* | :heavy_minus_sign: | The service tier at which the request was processed: standard or priority. | | `prompt_token_details` | [OptionalNullable[models.PromptTokensDetails]](../models/prompttokensdetails.md) | :heavy_minus_sign: | N/A | | `num_cached_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/usersapigetidentitysecurity.md b/docs/models/usersapigetidentitysecurity.md index 3c8bc6ca6..06ddff8de 100644 --- a/docs/models/usersapigetidentitysecurity.md +++ b/docs/models/usersapigetidentitysecurity.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `dashboard_user_context_auth` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `dashboard_user_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/usersapilistorganizationssecurity.md b/docs/models/usersapilistorganizationssecurity.md index 49414a0ce..1b3ba57ac 100644 --- a/docs/models/usersapilistorganizationssecurity.md +++ b/docs/models/usersapilistorganizationssecurity.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `dashboard_user_context_auth` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `dashboard_user_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/usersapilistworkspacessecurity.md b/docs/models/usersapilistworkspacessecurity.md index 1c00dffac..477f35e56 100644 --- a/docs/models/usersapilistworkspacessecurity.md +++ b/docs/models/usersapilistworkspacessecurity.md @@ -5,4 +5,5 @@ | Field | Type | Required | Description | | ----------------------------- | ----------------------------- | ----------------------------- | ----------------------------- | -| `dashboard_user_context_auth` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `dashboard_user_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/sdks/connectors/README.md b/docs/sdks/connectors/README.md index e1863bcdf..74a60db6a 100644 --- a/docs/sdks/connectors/README.md +++ b/docs/sdks/connectors/README.md @@ -15,7 +15,7 @@ * [unshare_from_organization](#unshare_from_organization) - Unshare a connector from the current organization. * [activate_for_consumer](#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user). * [deactivate_for_consumer](#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level). -* [call_tool](#call_tool) - Call Connector Tool +* [~~call_tool~~](#call_tool) - Call Connector Tool :warning: **Deprecated** * [list_tools](#list_tools) - List tools for a connector. * [get_authentication_methods](#get_authentication_methods) - Get authentication methods for a connector. * [list_organization_credentials](#list_organization_credentials) - List organization credentials for a connector. @@ -24,9 +24,7 @@ * [delete_all_user_credentials](#delete_all_user_credentials) - Delete all user credentials for a connector. * [create_credentials](#create_credentials) - Create consumer credentials for a connector. * [update_credentials](#update_credentials) - Create or update consumer credentials for a connector. -* [delete_organization_credentials](#delete_organization_credentials) - Delete organization credentials for a connector. -* [delete_workspace_credentials](#delete_workspace_credentials) - Delete workspace credentials for a connector. -* [delete_user_credentials](#delete_user_credentials) - Delete user credentials for a connector. +* [delete_credentials](#delete_credentials) - Delete credentials for a consumer. * [get](#get) - Get a connector. * [update](#update) - Update a connector. * [delete](#delete) - Delete a connector. @@ -414,10 +412,12 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## call_tool +## ~~call_tool~~ Call a tool on an MCP connector. +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + ### Example Usage @@ -807,55 +807,13 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## delete_organization_credentials - -Delete credentials at the organization level for a given connector. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.connectors.delete_organization_credentials(credentials_name="", connector_id_or_name="") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `credentials_name` | *str* | :heavy_check_mark: | N/A | -| `connector_id_or_name` | *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.MessageResponse](../../models/messageresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## delete_workspace_credentials +## delete_credentials -Delete credentials at the workspace level for a given connector. +Delete connector credentials for a given consumer. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -865,7 +823,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.connectors.delete_workspace_credentials(credentials_name="", connector_id_or_name="") + res = mistral.beta.connectors.delete_credentials(credentials_name="", connector_id_or_name="0f7c9a94-b4f7-44d9-aa77-e9f28f561e03", consumer_scope="user") # Handle response print(res) @@ -874,53 +832,12 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `credentials_name` | *str* | :heavy_check_mark: | N/A | -| `connector_id_or_name` | *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.MessageResponse](../../models/messageresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## delete_user_credentials - -Delete credentials at the user level for a given connector. - -### Example Usage - - -```python -from mistralai.client import Mistral -import os - - -with Mistral( - api_key=os.getenv("MISTRAL_API_KEY", ""), -) as mistral: - - res = mistral.beta.connectors.delete_user_credentials(credentials_name="", connector_id_or_name="") - - # Handle response - print(res) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `credentials_name` | *str* | :heavy_check_mark: | N/A | -| `connector_id_or_name` | *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. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `credentials_name` | *str* | :heavy_check_mark: | N/A | +| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | +| `consumer_scope` | [models.ConnectorDeleteCredentialsConsumerScope](../../models/connectordeletecredentialsconsumerscope.md) | :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 @@ -949,7 +866,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.connectors.get(connector_id_or_name="", fetch_user_data=False, fetch_customer_data=False) + res = mistral.beta.connectors.get(connector_id_or_name="", fetch_user_data=False) # Handle response print(res) @@ -958,12 +875,11 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | -| `fetch_user_data` | *Optional[bool]* | :heavy_minus_sign: | Fetch the user-level data associated with the connector (e.g. connection credentials). | -| `fetch_customer_data` | *Optional[bool]* | :heavy_minus_sign: | Fetch the customer data associated with the connector (e.g. customer secrets / config). | -| `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 | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A | +| `fetch_user_data` | *Optional[bool]* | :heavy_minus_sign: | Fetch the user-level data associated with the connector (e.g. connection credentials). | +| `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/datasets/README.md b/docs/sdks/datasets/README.md index b53e3aa30..33ba11244 100644 --- a/docs/sdks/datasets/README.md +++ b/docs/sdks/datasets/README.md @@ -13,6 +13,7 @@ * [create_record](#create_record) - Add a record to the dataset * [import_from_file](#import_from_file) - Populate the dataset with records from an uploaded file * [import_from_playground](#import_from_playground) - Populate the dataset with records from playground conversations +* [import_from_spans](#import_from_spans) - Populate the dataset with records mapped from telemetry spans * [import_from_dataset_records](#import_from_dataset_records) - Populate the dataset with records from another dataset * [export_to_jsonl](#export_to_jsonl) - Export to the Files API and retrieve presigned URL to download the resulting JSONL file * [fetch_task](#fetch_task) - Get status of a dataset import task @@ -404,6 +405,65 @@ with Mistral( | errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## import_from_spans + +Starts an asynchronous import of the requested telemetry spans. References not returned by the tenant-scoped telemetry query are skipped without distinguishing absence from access restrictions. + +### 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.datasets.import_from_spans(dataset_id="fd9efcfd-d8a6-4c7b-82cb-b2f9bde2b4bf", span_references=[ + { + "trace_id": "", + "span_id": "", + }, + ], mapping_contract={ + "version": 1, + "mappings": [ + { + "target_field": "", + "source_field": { + "namespace": "span_attributes", + "key": "", + }, + }, + ], + }) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `dataset_id` | *str* | :heavy_check_mark: | N/A | +| `span_references` | List[[models.TelemetrySpanReference](../../models/telemetryspanreference.md)] | :heavy_check_mark: | Spans to attempt to import; unavailable references are skipped, and trace and span IDs are attached as record properties automatically. | +| `mapping_contract` | [models.SpanDatasetMappingContract](../../models/spandatasetmappingcontract.md) | :heavy_check_mark: | Mapping rules applied independently to every requested telemetry span.

Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array
source omits the target key. JSON object and array strings become structured values;
scalar-looking and malformed JSON strings remain strings. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | + +### Response + +**[models.DatasetImportTask](../../models/datasetimporttask.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## import_from_dataset_records Populate the dataset with records from another dataset diff --git a/docs/sdks/deployments/README.md b/docs/sdks/deployments/README.md index ebeafe637..ea30ef3f2 100644 --- a/docs/sdks/deployments/README.md +++ b/docs/sdks/deployments/README.md @@ -4,6 +4,7 @@ ### Available Operations +* [unharden_deployment](#unharden_deployment) - Unharden Deployment * [list_deployments](#list_deployments) - List Deployments * [create_deployment](#create_deployment) - Create Deployment * [update_deployment](#update_deployment) - Update Deployment @@ -16,6 +17,42 @@ * [get_deployment_logs](#get_deployment_logs) - Get Deployment Logs * [stream_deployment_logs](#stream_deployment_logs) - Stream Deployment Logs +## unharden_deployment + +Unharden Deployment + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + mistral.workflows.deployments.unharden_deployment(deployment_id="f88c4734-ec6d-4ded-bc49-47a41d4be24b") + + # Use the SDK ... + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `deployment_id` | *str* | :heavy_check_mark: | N/A | +| `workspace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Workspace ID to scope the request to. Defaults to the caller's context. | +| `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.SDKError | 4XX, 5XX | \*/\* | + ## list_deployments List Deployments @@ -47,6 +84,7 @@ with Mistral( | `is_hardened` | *OptionalNullable[bool]* | :heavy_minus_sign: | Filter deployments by hardened status | | `workflow_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `created_by` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by creator's user id | +| `owner` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by owner's user id | | `location_types` | List[[models.LocationType](../../models/locationtype.md)] | :heavy_minus_sign: | Filter deployments with at least one worker on any of these location types (OR) | | `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter deployments by name or ID prefix | | `order_by` | [OptionalNullable[models.ListDeploymentsV1WorkflowsDeploymentsGetOrderBy]](../../models/listdeploymentsv1workflowsdeploymentsgetorderby.md) | :heavy_minus_sign: | Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. | diff --git a/docs/sdks/managedindexes/README.md b/docs/sdks/managedindexes/README.md index 17f835081..ce93eac4a 100644 --- a/docs/sdks/managedindexes/README.md +++ b/docs/sdks/managedindexes/README.md @@ -12,6 +12,10 @@ * [ingest_documents](#ingest_documents) - Ingest documents into a managed index * [delete_documents](#delete_documents) - Delete documents from a managed index * [search](#search) - Search a managed index +* [navigate](#navigate) - Navigate to adjacent chunks +* [read](#read) - Read chunks within a span +* [grep](#grep) - Grep for a pattern within a source +* [get_chunk](#get_chunk) - Get a single chunk by id ## create @@ -88,11 +92,14 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of indexes to return | -| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor returned as next_page_token by the previous page | -| `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 | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Maximum number of indexes to return | +| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Cursor returned as next_page_token by the previous page | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Case-insensitive substring to match against index names | +| `status` | [OptionalNullable[models.ManagedIndexStatus]](../../models/managedindexstatus.md) | :heavy_minus_sign: | Status to match | +| `creator_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Creator ID to match | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -348,15 +355,196 @@ with Mistral( ### Parameters +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `retriever` | [models.SearchRequestRetriever](../../models/searchrequestretriever.md) | :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.SearchResponse](../../models/searchresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## navigate + +Returns the chunks adjacent to a position within a source, in reading order. NEXT fetches chunks at or after the end offset; PREVIOUS fetches chunks before the start offset. A 200 with an empty list means the source exists but no chunk falls in the requested direction; a 404 means the source has no chunks at all. + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.managed_indexes.navigate(index_name="", source_id="", start_offset=506558, end_offset=410700, direction="previous", top_k=1, content_type="content") + + # Handle response + print(res) + +``` + +### Parameters + | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `index_name` | *str* | :heavy_check_mark: | N/A | -| `retriever` | [models.Retriever](../../models/retriever.md) | :heavy_check_mark: | N/A | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `start_offset` | *int* | :heavy_check_mark: | N/A | +| `end_offset` | *int* | :heavy_check_mark: | N/A | +| `direction` | [models.NavigationDirection](../../models/navigationdirection.md) | :heavy_check_mark: | N/A | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `content_type` | *Optional[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.SearchResponse](../../models/searchresponse.md)** +**[models.NavigationResponse](../../models/navigationresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## read + +Returns the chunks of a source whose span falls within [start_offset, end_offset). Either bound may be omitted to leave that side open. A 200 with an empty list means the source exists but no chunk falls in the range; a 404 means the source has no chunks at all. + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.managed_indexes.read(index_name="", source_id="", top_k=20, content_type="content") + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `start_offset` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `end_offset` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `content_type` | *Optional[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.NavigationResponse](../../models/navigationresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## grep + +Lexical substring match within a single source, in reading order. PHRASE mode matches the pattern literally (whitespace-sensitive, case-insensitive); TERM mode requires every whitespace-split token present in any order. A 200 with an empty list means the source exists but no chunk matched; a 404 means the source has no chunks at all. + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.managed_indexes.grep(index_name="", source_id="", pattern="", top_k=5, content_type="content") + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `pattern` | *str* | :heavy_check_mark: | N/A | +| `mode` | [Optional[models.GrepMode]](../../models/grepmode.md) | :heavy_minus_sign: | N/A | +| `top_k` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `content_type` | *Optional[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.NavigationResponse](../../models/navigationresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## get_chunk + +Returns a single chunk by its canonical id. A 404 means no chunk with that id exists in the index. + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.beta.rag.managed_indexes.get_chunk(index_name="", chunk_id="") + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `index_name` | *str* | :heavy_check_mark: | N/A | +| `chunk_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.NavigationResponse](../../models/navigationresponse.md)** ### Errors diff --git a/docs/sdks/runs/README.md b/docs/sdks/runs/README.md index 66a407748..fb1ac1d70 100644 --- a/docs/sdks/runs/README.md +++ b/docs/sdks/runs/README.md @@ -35,26 +35,26 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `workflow_identifier` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by workflow name or id | -| `root_execution_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by root execution id; returns the whole execution tree (the root and all its descendant sub-workflows). | -| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Search by workflow name, display name, or ID | -| `status` | [OptionalNullable[models.ListRunsV1WorkflowsRunsGetStatus]](../../models/listrunsv1workflowsrunsgetstatus.md) | :heavy_minus_sign: | Filter by workflow status | -| `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by deployment name | -| `sort_by` | [OptionalNullable[models.SortBy]](../../models/sortby.md) | :heavy_minus_sign: | Field to sort by | -| `order` | [Optional[models.ListRunsV1WorkflowsRunsGetOrder]](../../models/listrunsv1workflowsrunsgetorder.md) | :heavy_minus_sign: | Sort direction | -| `start_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time >= value | -| `start_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time <= value | -| `end_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time >= value. Running executions (no end_time) are excluded; use the status filter to include them. | -| `end_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time <= value. Running executions (no end_time) are excluded; use the status filter to include them. | -| `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by user id. Use 'current' to filter by the authenticated user | -| `workflow_tags` | List[*str*] | :heavy_minus_sign: | Filter to runs of workflows tagged with all listed tags (AND). | -| `include_internal` | *Optional[bool]* | :heavy_minus_sign: | Include runs of internal/technical workflows (e.g. parallel-execution) | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of items per page | -| `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Token for the next page of results | -| `search_key` | List[*str*] | :heavy_minus_sign: | Filter executions by search key as repeated 'key:value' entries. Each entry matches an exact key and a similar value; multiple entries are AND'd together (max 3). | -| `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 | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `workflow_identifier` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by workflow name or id | +| `root_execution_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by root execution id; returns the whole execution tree (the root and all its descendant sub-workflows). | +| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Search by workflow name, display name, or ID | +| `status` | [OptionalNullable[models.ListRunsV1WorkflowsRunsGetStatus]](../../models/listrunsv1workflowsrunsgetstatus.md) | :heavy_minus_sign: | Filter by workflow status | +| `deployment_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by deployment name | +| `sort_by` | [OptionalNullable[models.SortBy]](../../models/sortby.md) | :heavy_minus_sign: | Field to sort by | +| `order` | [Optional[models.ListRunsV1WorkflowsRunsGetOrder]](../../models/listrunsv1workflowsrunsgetorder.md) | :heavy_minus_sign: | Sort direction | +| `start_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time >= value | +| `start_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with start_time <= value | +| `end_time_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time >= value. Running executions (no end_time) are excluded; use the status filter to include them. | +| `end_time_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Include runs with end_time <= value. Running executions (no end_time) are excluded; use the status filter to include them. | +| `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by user id. Use 'current' to filter by the authenticated user | +| `workflow_tags` | List[*str*] | :heavy_minus_sign: | Filter to runs of workflows tagged with all listed tags (AND). | +| `include_internal` | *Optional[bool]* | :heavy_minus_sign: | Include runs of internal/technical workflows (e.g. parallel-execution) | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of items per page | +| `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Token for the next page of results | +| `search_key` | List[*str*] | :heavy_minus_sign: | Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null. | +| `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 5865ef28b..10aa9a19f 100644 --- a/docs/sdks/spans/README.md +++ b/docs/sdks/spans/README.md @@ -6,6 +6,7 @@ * [search_spans](#search_spans) - Search spans * [aggregate](#aggregate) - Aggregate spans +* [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 * [list_span_fields](#list_span_fields) - Get span field definitions @@ -109,6 +110,57 @@ with Mistral( | errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## aggregate_span_evaluations + +Aggregate span evaluations + +### 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.aggregate_span_evaluations(metric={ + "measure": "", + "aggregation": "max", + }, limit=1000) + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `metric` | [models.MetricDefinition](../../models/metricdefinition.md) | :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 | +| `dimensions` | List[*str*] | :heavy_minus_sign: | N/A | +| `time_dimension` | [OptionalNullable[models.TimeDimension]](../../models/timedimension.md) | :heavy_minus_sign: | N/A | +| `search_expression` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `order_by` | List[[models.OrderByClause](../../models/orderbyclause.md)] | :heavy_minus_sign: | N/A | +| `limit` | *Optional[int]* | :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.Aggregation](../../models/aggregation.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------- | ------------------------- | ------------------------- | +| errors.ObservabilityError | 400, 404, 408, 409, 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## search_span_evaluations Search span evaluations diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index d0c2346d1..6d0d90d44 100644 --- a/src/mistralai/client/_version.py +++ b/src/mistralai/client/_version.py @@ -4,10 +4,10 @@ import importlib.metadata __title__: str = "mistralai" -__version__: str = "2.10.1" +__version__: str = "2.10.2" __openapi_doc_version__: str = "1.0.0" -__gen_version__: str = "2.935.1" -__user_agent__: str = "speakeasy-sdk/python 2.10.1 2.935.1 1.0.0 mistralai" +__gen_version__: str = "2.933.0" +__user_agent__: str = "speakeasy-sdk/python 2.10.2 2.933.0 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/connectors.py b/src/mistralai/client/connectors.py index cab86f099..cd20f8a48 100644 --- a/src/mistralai/client/connectors.py +++ b/src/mistralai/client/connectors.py @@ -8,6 +8,7 @@ from mistralai.client.utils import get_security_from_env from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response from typing import Any, Dict, List, Mapping, Optional, Union, cast +from typing_extensions import deprecated class Connectors(BaseSDK): @@ -1795,6 +1796,9 @@ async def deactivate_for_consumer_async( raise errors.SDKError("Unexpected response received", http_res) + @deprecated( + "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + ) def call_tool( self, *, @@ -1908,6 +1912,9 @@ def call_tool( raise errors.SDKError("Unexpected response received", http_res) + @deprecated( + "warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + ) async def call_tool_async( self, *, @@ -3739,414 +3746,24 @@ async def update_credentials_async( raise errors.SDKError("Unexpected response received", http_res) - def delete_organization_credentials( + def delete_credentials( self, *, credentials_name: str, connector_id_or_name: str, + consumer_scope: models.ConnectorDeleteCredentialsConsumerScope, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.MessageResponse: - r"""Delete organization credentials for a connector. + r"""Delete credentials for a consumer. - Delete credentials at the organization level for a given connector. - - :param credentials_name: - :param connector_id_or_name: - :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.ConnectorDeleteOrganizationCredentialsV1Request( - credentials_name=credentials_name, - connector_id_or_name=connector_id_or_name, - ) - - req = self._build_request( - method="DELETE", - path="/v1/connectors/{connector_id_or_name}/organization/credentials/{credentials_name}", - 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="connector_delete_organization_credentials_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.connectors"], - 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.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(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_organization_credentials_async( - self, - *, - credentials_name: str, - connector_id_or_name: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Delete organization credentials for a connector. - - Delete credentials at the organization level for a given connector. - - :param credentials_name: - :param connector_id_or_name: - :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.ConnectorDeleteOrganizationCredentialsV1Request( - credentials_name=credentials_name, - connector_id_or_name=connector_id_or_name, - ) - - req = self._build_request_async( - method="DELETE", - path="/v1/connectors/{connector_id_or_name}/organization/credentials/{credentials_name}", - 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="connector_delete_organization_credentials_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.connectors"], - 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.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(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_workspace_credentials( - self, - *, - credentials_name: str, - connector_id_or_name: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Delete workspace credentials for a connector. - - Delete credentials at the workspace level for a given connector. - - :param credentials_name: - :param connector_id_or_name: - :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.ConnectorDeleteWorkspaceCredentialsV1Request( - credentials_name=credentials_name, - connector_id_or_name=connector_id_or_name, - ) - - req = self._build_request( - method="DELETE", - path="/v1/connectors/{connector_id_or_name}/workspace/credentials/{credentials_name}", - 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="connector_delete_workspace_credentials_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.connectors"], - 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.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(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_workspace_credentials_async( - self, - *, - credentials_name: str, - connector_id_or_name: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Delete workspace credentials for a connector. - - Delete credentials at the workspace level for a given connector. - - :param credentials_name: - :param connector_id_or_name: - :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.ConnectorDeleteWorkspaceCredentialsV1Request( - credentials_name=credentials_name, - connector_id_or_name=connector_id_or_name, - ) - - req = self._build_request_async( - method="DELETE", - path="/v1/connectors/{connector_id_or_name}/workspace/credentials/{credentials_name}", - 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="connector_delete_workspace_credentials_v1", - oauth2_scopes=None, - security_source=get_security_from_env( - self.sdk_configuration.security, models.Security - ), - tags=["beta.connectors"], - 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.MessageResponse, http_res) - if utils.match_response(http_res, "422", "application/json"): - response_data = unmarshal_json_response( - errors.HTTPValidationErrorData, http_res - ) - raise errors.HTTPValidationError(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_user_credentials( - self, - *, - credentials_name: str, - connector_id_or_name: str, - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> models.MessageResponse: - r"""Delete user credentials for a connector. - - Delete credentials at the user level for a given connector. + Delete connector credentials for a given consumer. :param credentials_name: :param connector_id_or_name: + :param consumer_scope: :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 @@ -4165,14 +3782,15 @@ def delete_user_credentials( else: base_url = self._get_url(base_url, url_variables) - request = models.ConnectorDeleteUserCredentialsV1Request( + request = models.ConnectorDeleteCredentialsRequest( credentials_name=credentials_name, connector_id_or_name=connector_id_or_name, + consumer_scope=consumer_scope, ) req = self._build_request( method="DELETE", - path="/v1/connectors/{connector_id_or_name}/user/credentials/{credentials_name}", + path="/v1/connectors/{connector_id_or_name}/{consumer_scope}/credentials/{credentials_name}", base_url=base_url, url_variables=url_variables, request=request, @@ -4199,7 +3817,7 @@ def delete_user_credentials( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="connector_delete_user_credentials_v1", + operation_id="connector_delete_credentials", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -4229,22 +3847,24 @@ def delete_user_credentials( raise errors.SDKError("Unexpected response received", http_res) - async def delete_user_credentials_async( + async def delete_credentials_async( self, *, credentials_name: str, connector_id_or_name: str, + consumer_scope: models.ConnectorDeleteCredentialsConsumerScope, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, ) -> models.MessageResponse: - r"""Delete user credentials for a connector. + r"""Delete credentials for a consumer. - Delete credentials at the user level for a given connector. + Delete connector credentials for a given consumer. :param credentials_name: :param connector_id_or_name: + :param consumer_scope: :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 @@ -4263,14 +3883,15 @@ async def delete_user_credentials_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ConnectorDeleteUserCredentialsV1Request( + request = models.ConnectorDeleteCredentialsRequest( credentials_name=credentials_name, connector_id_or_name=connector_id_or_name, + consumer_scope=consumer_scope, ) req = self._build_request_async( method="DELETE", - path="/v1/connectors/{connector_id_or_name}/user/credentials/{credentials_name}", + path="/v1/connectors/{connector_id_or_name}/{consumer_scope}/credentials/{credentials_name}", base_url=base_url, url_variables=url_variables, request=request, @@ -4297,7 +3918,7 @@ async def delete_user_credentials_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="connector_delete_user_credentials_v1", + operation_id="connector_delete_credentials", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -4332,7 +3953,6 @@ def get( *, connector_id_or_name: str, fetch_user_data: Optional[bool] = False, - fetch_customer_data: Optional[bool] = False, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -4344,7 +3964,6 @@ def get( :param connector_id_or_name: :param fetch_user_data: Fetch the user-level data associated with the connector (e.g. connection credentials). - :param fetch_customer_data: Fetch the customer data associated with the connector (e.g. customer secrets / config). :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 @@ -4366,7 +3985,6 @@ def get( request = models.ConnectorGetV1Request( connector_id_or_name=connector_id_or_name, fetch_user_data=fetch_user_data, - fetch_customer_data=fetch_customer_data, ) req = self._build_request( @@ -4433,7 +4051,6 @@ async def get_async( *, connector_id_or_name: str, fetch_user_data: Optional[bool] = False, - fetch_customer_data: Optional[bool] = False, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -4445,7 +4062,6 @@ async def get_async( :param connector_id_or_name: :param fetch_user_data: Fetch the user-level data associated with the connector (e.g. connection credentials). - :param fetch_customer_data: Fetch the customer data associated with the connector (e.g. customer secrets / config). :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 @@ -4467,7 +4083,6 @@ async def get_async( request = models.ConnectorGetV1Request( connector_id_or_name=connector_id_or_name, fetch_user_data=fetch_user_data, - fetch_customer_data=fetch_customer_data, ) req = self._build_request_async( diff --git a/src/mistralai/client/datasets.py b/src/mistralai/client/datasets.py index db9ed38cc..9e3be81c1 100644 --- a/src/mistralai/client/datasets.py +++ b/src/mistralai/client/datasets.py @@ -9,7 +9,7 @@ from mistralai.client.types import OptionalNullable, UNSET from mistralai.client.utils import get_security_from_env from mistralai.client.utils.unmarshal_json_response import unmarshal_json_response -from typing import Any, Dict, Iterable, List, Mapping, Optional +from typing import Any, Dict, Iterable, List, Mapping, Optional, Union class Datasets(BaseSDK): @@ -1889,6 +1889,258 @@ async def import_from_playground_async( raise errors.SDKError("Unexpected response received", http_res) + def import_from_spans( + self, + *, + dataset_id: str, + span_references: Union[ + Iterable[models.TelemetrySpanReference], + Iterable[models.TelemetrySpanReferenceTypedDict], + ], + mapping_contract: Union[ + models.SpanDatasetMappingContract, + models.SpanDatasetMappingContractTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DatasetImportTask: + r"""Populate the dataset with records mapped from telemetry spans + + Starts an asynchronous import of the requested telemetry spans. References not returned by the tenant-scoped telemetry query are skipped without distinguishing absence from access restrictions. + + :param dataset_id: + :param span_references: Spans to attempt to import; unavailable references are skipped, and trace and span IDs are attached as record properties automatically. + :param mapping_contract: Mapping rules applied independently to every requested telemetry span. + + Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array + source omits the target key. JSON object and array strings become structured values; + scalar-looking and malformed JSON strings remain strings. + :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.PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest( + dataset_id=dataset_id, + import_dataset_from_spans_request=models.ImportDatasetFromSpansRequest( + span_references=utils.get_pydantic_model( + span_references, List[models.TelemetrySpanReference] + ), + mapping_contract=utils.get_pydantic_model( + mapping_contract, models.SpanDatasetMappingContract + ), + ), + ) + + req = self._build_request( + method="POST", + path="/v1/observability/datasets/{dataset_id}/imports/from-spans", + 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.import_dataset_from_spans_request, + False, + False, + "json", + models.ImportDatasetFromSpansRequest, + ), + 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="post_dataset_records_from_spans_v1_observability_datasets__dataset_id__imports_from_spans_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.observability.datasets"], + 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, "202", "application/json"): + return unmarshal_json_response(models.DatasetImportTask, 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 import_from_spans_async( + self, + *, + dataset_id: str, + span_references: Union[ + Iterable[models.TelemetrySpanReference], + Iterable[models.TelemetrySpanReferenceTypedDict], + ], + mapping_contract: Union[ + models.SpanDatasetMappingContract, + models.SpanDatasetMappingContractTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.DatasetImportTask: + r"""Populate the dataset with records mapped from telemetry spans + + Starts an asynchronous import of the requested telemetry spans. References not returned by the tenant-scoped telemetry query are skipped without distinguishing absence from access restrictions. + + :param dataset_id: + :param span_references: Spans to attempt to import; unavailable references are skipped, and trace and span IDs are attached as record properties automatically. + :param mapping_contract: Mapping rules applied independently to every requested telemetry span. + + Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array + source omits the target key. JSON object and array strings become structured values; + scalar-looking and malformed JSON strings remain strings. + :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.PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest( + dataset_id=dataset_id, + import_dataset_from_spans_request=models.ImportDatasetFromSpansRequest( + span_references=utils.get_pydantic_model( + span_references, List[models.TelemetrySpanReference] + ), + mapping_contract=utils.get_pydantic_model( + mapping_contract, models.SpanDatasetMappingContract + ), + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/observability/datasets/{dataset_id}/imports/from-spans", + 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.import_dataset_from_spans_request, + False, + False, + "json", + models.ImportDatasetFromSpansRequest, + ), + 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="post_dataset_records_from_spans_v1_observability_datasets__dataset_id__imports_from_spans_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.observability.datasets"], + 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, "202", "application/json"): + return unmarshal_json_response(models.DatasetImportTask, 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 import_from_dataset_records( self, *, diff --git a/src/mistralai/client/deployments.py b/src/mistralai/client/deployments.py index cba074979..f38522328 100644 --- a/src/mistralai/client/deployments.py +++ b/src/mistralai/client/deployments.py @@ -12,6 +12,186 @@ class Deployments(BaseSDK): + def unharden_deployment( + self, + *, + deployment_id: str, + workspace_id: 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, + ): + r"""Unharden Deployment + + :param deployment_id: + :param workspace_id: Workspace ID to scope the request to. Defaults to the caller's context. + :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.UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest( + deployment_id=deployment_id, + workspace_id=workspace_id, + ) + + req = self._build_request( + method="POST", + path="/v1/workflows/deployments/{deployment_id}/unharden", + 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="*/*", + 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="unharden_deployment_v1_workflows_deployments__deployment_id__unharden_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["workflows.deployments"], + 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, "204", "*"): + return + if utils.match_response(http_res, ["403", "404", "409", "422", "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 unharden_deployment_async( + self, + *, + deployment_id: str, + workspace_id: 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, + ): + r"""Unharden Deployment + + :param deployment_id: + :param workspace_id: Workspace ID to scope the request to. Defaults to the caller's context. + :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.UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest( + deployment_id=deployment_id, + workspace_id=workspace_id, + ) + + req = self._build_request_async( + method="POST", + path="/v1/workflows/deployments/{deployment_id}/unharden", + 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="*/*", + 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="unharden_deployment_v1_workflows_deployments__deployment_id__unharden_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["workflows.deployments"], + 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, "204", "*"): + return + if utils.match_response(http_res, ["403", "404", "409", "422", "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_deployments( self, *, @@ -19,6 +199,7 @@ def list_deployments( is_hardened: OptionalNullable[bool] = UNSET, workflow_name: OptionalNullable[str] = UNSET, created_by: OptionalNullable[str] = UNSET, + owner: OptionalNullable[str] = UNSET, location_types: OptionalNullable[Iterable[models.LocationType]] = UNSET, search: OptionalNullable[str] = UNSET, order_by: OptionalNullable[ @@ -39,6 +220,7 @@ def list_deployments( :param is_hardened: Filter deployments by hardened status :param workflow_name: :param created_by: Filter deployments by creator's user id + :param owner: Filter deployments by owner's user id :param location_types: Filter deployments with at least one worker on any of these location types (OR) :param search: Filter deployments by name or ID prefix :param order_by: Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. @@ -69,6 +251,7 @@ def list_deployments( is_hardened=is_hardened, workflow_name=workflow_name, created_by=created_by, + owner=owner, location_types=utils.unmarshal( location_types, OptionalNullable[List[models.LocationType]] ), @@ -146,6 +329,7 @@ async def list_deployments_async( is_hardened: OptionalNullable[bool] = UNSET, workflow_name: OptionalNullable[str] = UNSET, created_by: OptionalNullable[str] = UNSET, + owner: OptionalNullable[str] = UNSET, location_types: OptionalNullable[Iterable[models.LocationType]] = UNSET, search: OptionalNullable[str] = UNSET, order_by: OptionalNullable[ @@ -166,6 +350,7 @@ async def list_deployments_async( :param is_hardened: Filter deployments by hardened status :param workflow_name: :param created_by: Filter deployments by creator's user id + :param owner: Filter deployments by owner's user id :param location_types: Filter deployments with at least one worker on any of these location types (OR) :param search: Filter deployments by name or ID prefix :param order_by: Field to sort by. When omitted, active and managed deployments are grouped first, then sorted by created_at. When set, results are sorted purely by the specified field with no grouping. @@ -196,6 +381,7 @@ async def list_deployments_async( is_hardened=is_hardened, workflow_name=workflow_name, created_by=created_by, + owner=owner, location_types=utils.unmarshal( location_types, OptionalNullable[List[models.LocationType]] ), diff --git a/src/mistralai/client/managed_indexes.py b/src/mistralai/client/managed_indexes.py index 9a7c08a7a..8c02ffabc 100644 --- a/src/mistralai/client/managed_indexes.py +++ b/src/mistralai/client/managed_indexes.py @@ -239,6 +239,9 @@ def list( *, page_size: Optional[int] = 20, page_token: OptionalNullable[str] = UNSET, + name: OptionalNullable[str] = UNSET, + status: OptionalNullable[models.ManagedIndexStatus] = UNSET, + creator_id: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -250,6 +253,9 @@ def list( :param page_size: Maximum number of indexes to return :param page_token: Cursor returned as next_page_token by the previous page + :param name: Case-insensitive substring to match against index names + :param status: Status to match + :param creator_id: Creator ID to match :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 @@ -271,6 +277,9 @@ def list( request = models.ListIndexesV1RagManagedIndexesGetRequest( page_size=page_size, page_token=page_token, + name=name, + status=status, + creator_id=creator_id, ) req = self._build_request( @@ -336,6 +345,9 @@ def next_func() -> Optional[models.ListIndexesV1RagManagedIndexesGetResponse]: return self.list( page_size=page_size, page_token=next_cursor, + name=name, + status=status, + creator_id=creator_id, retries=retries, server_url=server_url, timeout_ms=timeout_ms, @@ -369,6 +381,9 @@ async def list_async( *, page_size: Optional[int] = 20, page_token: OptionalNullable[str] = UNSET, + name: OptionalNullable[str] = UNSET, + status: OptionalNullable[models.ManagedIndexStatus] = UNSET, + creator_id: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -380,6 +395,9 @@ async def list_async( :param page_size: Maximum number of indexes to return :param page_token: Cursor returned as next_page_token by the previous page + :param name: Case-insensitive substring to match against index names + :param status: Status to match + :param creator_id: Creator ID to match :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 @@ -401,6 +419,9 @@ async def list_async( request = models.ListIndexesV1RagManagedIndexesGetRequest( page_size=page_size, page_token=page_token, + name=name, + status=status, + creator_id=creator_id, ) req = self._build_request_async( @@ -471,6 +492,9 @@ async def empty_result(): return self.list_async( page_size=page_size, page_token=next_cursor, + name=name, + status=status, + creator_id=creator_id, retries=retries, server_url=server_url, timeout_ms=timeout_ms, @@ -1521,7 +1545,9 @@ def search( self, *, index_name: str, - retriever: Union[models.Retriever, models.RetrieverTypedDict], + retriever: Union[ + models.SearchRequestRetriever, models.SearchRequestRetrieverTypedDict + ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -1554,7 +1580,9 @@ def search( request = models.SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest( index_name=index_name, search_request=models.SearchRequest( - retriever=utils.get_pydantic_model(retriever, models.Retriever), + retriever=utils.get_pydantic_model( + retriever, models.SearchRequestRetriever + ), ), ) @@ -1624,7 +1652,9 @@ async def search_async( self, *, index_name: str, - retriever: Union[models.Retriever, models.RetrieverTypedDict], + retriever: Union[ + models.SearchRequestRetriever, models.SearchRequestRetrieverTypedDict + ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -1657,7 +1687,9 @@ async def search_async( request = models.SearchIndexV1RagManagedIndexesIndexNameSearchPostRequest( index_name=index_name, search_request=models.SearchRequest( - retriever=utils.get_pydantic_model(retriever, models.Retriever), + retriever=utils.get_pydantic_model( + retriever, models.SearchRequestRetriever + ), ), ) @@ -1722,3 +1754,899 @@ async def search_async( raise errors.SDKError("API error occurred", http_res, http_res_text) raise errors.SDKError("Unexpected response received", http_res) + + def navigate( + self, + *, + index_name: str, + source_id: str, + start_offset: int, + end_offset: int, + direction: models.NavigationDirection, + top_k: Optional[int] = 1, + content_type: Optional[str] = "content", + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.NavigationResponse: + r"""Navigate to adjacent chunks + + Returns the chunks adjacent to a position within a source, in reading order. NEXT fetches chunks at or after the end offset; PREVIOUS fetches chunks before the start offset. A 200 with an empty list means the source exists but no chunk falls in the requested direction; a 404 means the source has no chunks at all. + + :param index_name: + :param source_id: + :param start_offset: + :param end_offset: + :param direction: + :param top_k: + :param content_type: + :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.NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest( + index_name=index_name, + navigate_request=models.NavigateRequest( + source_id=source_id, + start_offset=start_offset, + end_offset=end_offset, + direction=direction, + top_k=top_k, + content_type=content_type, + ), + ) + + req = self._build_request( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/navigate", + 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.navigate_request, False, False, "json", models.NavigateRequest + ), + 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="navigate_index_v1_rag_managed_indexes__index_name__navigate_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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 navigate_async( + self, + *, + index_name: str, + source_id: str, + start_offset: int, + end_offset: int, + direction: models.NavigationDirection, + top_k: Optional[int] = 1, + content_type: Optional[str] = "content", + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.NavigationResponse: + r"""Navigate to adjacent chunks + + Returns the chunks adjacent to a position within a source, in reading order. NEXT fetches chunks at or after the end offset; PREVIOUS fetches chunks before the start offset. A 200 with an empty list means the source exists but no chunk falls in the requested direction; a 404 means the source has no chunks at all. + + :param index_name: + :param source_id: + :param start_offset: + :param end_offset: + :param direction: + :param top_k: + :param content_type: + :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.NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest( + index_name=index_name, + navigate_request=models.NavigateRequest( + source_id=source_id, + start_offset=start_offset, + end_offset=end_offset, + direction=direction, + top_k=top_k, + content_type=content_type, + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/navigate", + 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.navigate_request, False, False, "json", models.NavigateRequest + ), + 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="navigate_index_v1_rag_managed_indexes__index_name__navigate_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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 read( + self, + *, + index_name: str, + source_id: str, + start_offset: OptionalNullable[int] = UNSET, + end_offset: OptionalNullable[int] = UNSET, + top_k: Optional[int] = 20, + content_type: Optional[str] = "content", + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.NavigationResponse: + r"""Read chunks within a span + + Returns the chunks of a source whose span falls within [start_offset, end_offset). Either bound may be omitted to leave that side open. A 200 with an empty list means the source exists but no chunk falls in the range; a 404 means the source has no chunks at all. + + :param index_name: + :param source_id: + :param start_offset: + :param end_offset: + :param top_k: + :param content_type: + :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.ReadIndexV1RagManagedIndexesIndexNameReadPostRequest( + index_name=index_name, + read_request=models.ReadRequest( + source_id=source_id, + start_offset=start_offset, + end_offset=end_offset, + top_k=top_k, + content_type=content_type, + ), + ) + + req = self._build_request( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/read", + 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.read_request, False, False, "json", models.ReadRequest + ), + 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="read_index_v1_rag_managed_indexes__index_name__read_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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 read_async( + self, + *, + index_name: str, + source_id: str, + start_offset: OptionalNullable[int] = UNSET, + end_offset: OptionalNullable[int] = UNSET, + top_k: Optional[int] = 20, + content_type: Optional[str] = "content", + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.NavigationResponse: + r"""Read chunks within a span + + Returns the chunks of a source whose span falls within [start_offset, end_offset). Either bound may be omitted to leave that side open. A 200 with an empty list means the source exists but no chunk falls in the range; a 404 means the source has no chunks at all. + + :param index_name: + :param source_id: + :param start_offset: + :param end_offset: + :param top_k: + :param content_type: + :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.ReadIndexV1RagManagedIndexesIndexNameReadPostRequest( + index_name=index_name, + read_request=models.ReadRequest( + source_id=source_id, + start_offset=start_offset, + end_offset=end_offset, + top_k=top_k, + content_type=content_type, + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/read", + 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.read_request, False, False, "json", models.ReadRequest + ), + 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="read_index_v1_rag_managed_indexes__index_name__read_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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 grep( + self, + *, + index_name: str, + source_id: str, + pattern: str, + mode: Optional[models.GrepMode] = None, + top_k: Optional[int] = 5, + content_type: Optional[str] = "content", + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.NavigationResponse: + r"""Grep for a pattern within a source + + Lexical substring match within a single source, in reading order. PHRASE mode matches the pattern literally (whitespace-sensitive, case-insensitive); TERM mode requires every whitespace-split token present in any order. A 200 with an empty list means the source exists but no chunk matched; a 404 means the source has no chunks at all. + + :param index_name: + :param source_id: + :param pattern: + :param mode: + :param top_k: + :param content_type: + :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.GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest( + index_name=index_name, + grep_request=models.GrepRequest( + source_id=source_id, + pattern=pattern, + mode=mode, + top_k=top_k, + content_type=content_type, + ), + ) + + req = self._build_request( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/grep", + 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.grep_request, False, False, "json", models.GrepRequest + ), + 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="grep_index_v1_rag_managed_indexes__index_name__grep_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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 grep_async( + self, + *, + index_name: str, + source_id: str, + pattern: str, + mode: Optional[models.GrepMode] = None, + top_k: Optional[int] = 5, + content_type: Optional[str] = "content", + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.NavigationResponse: + r"""Grep for a pattern within a source + + Lexical substring match within a single source, in reading order. PHRASE mode matches the pattern literally (whitespace-sensitive, case-insensitive); TERM mode requires every whitespace-split token present in any order. A 200 with an empty list means the source exists but no chunk matched; a 404 means the source has no chunks at all. + + :param index_name: + :param source_id: + :param pattern: + :param mode: + :param top_k: + :param content_type: + :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.GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest( + index_name=index_name, + grep_request=models.GrepRequest( + source_id=source_id, + pattern=pattern, + mode=mode, + top_k=top_k, + content_type=content_type, + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/rag/managed_indexes/{index_name}/grep", + 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.grep_request, False, False, "json", models.GrepRequest + ), + 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="grep_index_v1_rag_managed_indexes__index_name__grep_post", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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_chunk( + self, + *, + index_name: str, + chunk_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.NavigationResponse: + r"""Get a single chunk by id + + Returns a single chunk by its canonical id. A 404 means no chunk with that id exists in the index. + + :param index_name: + :param chunk_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.GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest( + index_name=index_name, + chunk_id=chunk_id, + ) + ) + + req = self._build_request( + method="GET", + path="/v1/rag/managed_indexes/{index_name}/chunks/{chunk_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_chunk_index_v1_rag_managed_indexes__index_name__chunks__chunk_id__get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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_chunk_async( + self, + *, + index_name: str, + chunk_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.NavigationResponse: + r"""Get a single chunk by id + + Returns a single chunk by its canonical id. A 404 means no chunk with that id exists in the index. + + :param index_name: + :param chunk_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.GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest( + index_name=index_name, + chunk_id=chunk_id, + ) + ) + + req = self._build_request_async( + method="GET", + path="/v1/rag/managed_indexes/{index_name}/chunks/{chunk_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_chunk_index_v1_rag_managed_indexes__index_name__chunks__chunk_id__get", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + tags=["beta.rag.managed_indexes"], + 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.NavigationResponse, http_res) + if utils.match_response(http_res, "422", "application/json"): + response_data = unmarshal_json_response( + errors.HTTPValidationErrorData, http_res + ) + raise errors.HTTPValidationError(response_data, http_res) + if utils.match_response(http_res, ["404", "409", "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, ["500", "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/models/__init__.py b/src/mistralai/client/models/__init__.py index b5fe2ba56..680d3c217 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -188,6 +188,10 @@ AgentsCompletionStreamRequestToolTypedDict, AgentsCompletionStreamRequestTypedDict, ) + from .aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop import ( + AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest, + AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequestTypedDict, + ) from .aggregate_spans_v1_observability_spans_aggregate_postop import ( AggregateSpansV1ObservabilitySpansAggregatePostRequest, AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict, @@ -418,22 +422,15 @@ ConnectorDeleteAllUserCredentialsV1Request, ConnectorDeleteAllUserCredentialsV1RequestTypedDict, ) - from .connector_delete_organization_credentials_v1op import ( - ConnectorDeleteOrganizationCredentialsV1Request, - ConnectorDeleteOrganizationCredentialsV1RequestTypedDict, - ) - from .connector_delete_user_credentials_v1op import ( - ConnectorDeleteUserCredentialsV1Request, - ConnectorDeleteUserCredentialsV1RequestTypedDict, + from .connector_delete_credentialsop import ( + ConnectorDeleteCredentialsConsumerScope, + ConnectorDeleteCredentialsRequest, + ConnectorDeleteCredentialsRequestTypedDict, ) from .connector_delete_v1op import ( ConnectorDeleteV1Request, ConnectorDeleteV1RequestTypedDict, ) - from .connector_delete_workspace_credentials_v1op import ( - ConnectorDeleteWorkspaceCredentialsV1Request, - ConnectorDeleteWorkspaceCredentialsV1RequestTypedDict, - ) from .connector_get_auth_url_v1op import ( ConnectorGetAuthURLV1Request, ConnectorGetAuthURLV1RequestTypedDict, @@ -885,6 +882,10 @@ DeploymentResourceConfigUpdateTypedDict, ) from .deploymentresponse import DeploymentResponse, DeploymentResponseTypedDict + from .deploymentsecretbinding import ( + DeploymentSecretBinding, + DeploymentSecretBindingTypedDict, + ) from .deploymentworkerlistresponse import ( DeploymentWorkerListResponse, DeploymentWorkerListResponseTypedDict, @@ -1077,6 +1078,10 @@ from .functionname import FunctionName, FunctionNameTypedDict from .functionresultentry import FunctionResultEntry, FunctionResultEntryTypedDict from .functiontool import FunctionTool, FunctionToolTypedDict + from .get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop import ( + GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest, + GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequestTypedDict, + ) from .get_dataset_by_id_v1_observability_datasets_dataset_id_getop import ( GetDatasetByIDV1ObservabilityDatasetsDatasetIDGetRequest, GetDatasetByIDV1ObservabilityDatasetsDatasetIDGetRequestTypedDict, @@ -1307,6 +1312,12 @@ from .gitcommitmetadata import GitCommitMetadata, GitCommitMetadataTypedDict from .globalheadervalue import GlobalHeaderValue, GlobalHeaderValueTypedDict from .granularity import Granularity + from .grep_index_v1_rag_managed_indexes_index_name_grep_postop import ( + GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest, + GrepIndexV1RagManagedIndexesIndexNameGrepPostRequestTypedDict, + ) + from .grepmode import GrepMode + from .greprequest import GrepRequest, GrepRequestTypedDict from .guardrailconfig import GuardrailConfig, GuardrailConfigTypedDict from .httpconnector import HTTPConnector, HTTPConnectorTypedDict from .httpstatus import HTTPStatus @@ -1332,6 +1343,10 @@ ImportDatasetFromPlaygroundRequest, ImportDatasetFromPlaygroundRequestTypedDict, ) + from .importdatasetfromspansrequest import ( + ImportDatasetFromSpansRequest, + ImportDatasetFromSpansRequestTypedDict, + ) from .in_ import In, InTypedDict, InValue, InValueTypedDict from .inboundauthenticationtype import InboundAuthenticationType from .ingest_documents_v1_rag_managed_indexes_index_name_documents_postop import ( @@ -1818,6 +1833,17 @@ ) from .moderationobject import ModerationObject, ModerationObjectTypedDict from .moderationresponse import ModerationResponse, ModerationResponseTypedDict + from .navigate_index_v1_rag_managed_indexes_index_name_navigate_postop import ( + NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest, + NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequestTypedDict, + ) + from .navigaterequest import NavigateRequest, NavigateRequestTypedDict + from .navigationchunkresponse import ( + NavigationChunkResponse, + NavigationChunkResponseTypedDict, + ) + from .navigationdirection import NavigationDirection + from .navigationresponse import NavigationResponse, NavigationResponseTypedDict from .nearestneighbourretriever import ( NearestNeighbourRetriever, NearestNeighbourRetrieverFilter, @@ -1968,7 +1994,12 @@ PostDatasetRecordsFromPlaygroundV1ObservabilityDatasetsDatasetIDImportsFromPlaygroundPostRequest, PostDatasetRecordsFromPlaygroundV1ObservabilityDatasetsDatasetIDImportsFromPlaygroundPostRequestTypedDict, ) + from .post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop import ( + PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest, + PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequestTypedDict, + ) from .prediction import Prediction, PredictionTypedDict + from .principaltype import PrincipalType from .processingstatus import ProcessingStatus, ProcessingStatusTypedDict from .processstatus import ProcessStatus from .prompt import Prompt, PromptTypedDict @@ -2061,6 +2092,11 @@ Range, RangeTypedDict, ) + from .read_index_v1_rag_managed_indexes_index_name_read_postop import ( + ReadIndexV1RagManagedIndexesIndexNameReadPostRequest, + ReadIndexV1RagManagedIndexesIndexNameReadPostRequestTypedDict, + ) + from .readrequest import ReadRequest, ReadRequestTypedDict from .realtimetranscriptionerror import ( RealtimeTranscriptionError, RealtimeTranscriptionErrorTypedDict, @@ -2173,6 +2209,14 @@ ) from .roles import Roles from .rootscapability import RootsCapability, RootsCapabilityTypedDict + from .rrfretriever import ( + RRFRetriever, + RRFRetrieverFilter, + RRFRetrieverFilterTypedDict, + RRFRetrieverRetriever, + RRFRetrieverRetrieverTypedDict, + RRFRetrieverTypedDict, + ) from .sampletype import SampleType from .samplingcapability import SamplingCapability, SamplingCapabilityTypedDict from .scalarmetric import ( @@ -2230,9 +2274,9 @@ from .searchchunkresponse import SearchChunkResponse, SearchChunkResponseTypedDict from .searchhitresponse import SearchHitResponse, SearchHitResponseTypedDict from .searchrequest import ( - Retriever, - RetrieverTypedDict, SearchRequest, + SearchRequestRetriever, + SearchRequestRetrieverTypedDict, SearchRequestTypedDict, ) from .searchresponse import SearchResponse, SearchResponseTypedDict @@ -2326,6 +2370,16 @@ from .skillversion import SkillVersion, SkillVersionTypedDict from .source import Source from .sourcekind import SourceKind + from .spandatasetmapping import SpanDatasetMapping, SpanDatasetMappingTypedDict + from .spandatasetmappingcontract import ( + SpanDatasetMappingContract, + SpanDatasetMappingContractTypedDict, + ) + from .spandatasetsourcenamespace import SpanDatasetSourceNamespace + from .spandatasetsourcereference import ( + SpanDatasetSourceReference, + SpanDatasetSourceReferenceTypedDict, + ) from .spanevaluationsrequest import ( SpanEvaluationsRequest, SpanEvaluationsRequestTypedDict, @@ -2418,6 +2472,10 @@ TasksToolsCapability, TasksToolsCapabilityTypedDict, ) + from .telemetryspanreference import ( + TelemetrySpanReference, + TelemetrySpanReferenceTypedDict, + ) from .tempogettraceresponse import ( TempoGetTraceResponse, TempoGetTraceResponseTypedDict, @@ -2611,6 +2669,10 @@ UnarchiveModelResponse, UnarchiveModelResponseTypedDict, ) + from .unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop import ( + UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest, + UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequestTypedDict, + ) from .unregister_deployment_v1_rag_deployments_deployment_id_deleteop import ( UnregisterDeploymentV1RagDeploymentsDeploymentIDDeleteRequest, UnregisterDeploymentV1RagDeploymentsDeploymentIDDeleteRequestTypedDict, @@ -3139,6 +3201,8 @@ "AgentsCompletionStreamRequestToolChoiceTypedDict", "AgentsCompletionStreamRequestToolTypedDict", "AgentsCompletionStreamRequestTypedDict", + "AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest", + "AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequestTypedDict", "AggregateSpansV1ObservabilitySpansAggregatePostRequest", "AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict", "AggregateTracesV1ObservabilityTracesAggregatePostRequest", @@ -3332,14 +3396,11 @@ "ConnectorDeactivateForConsumerV1RequestTypedDict", "ConnectorDeleteAllUserCredentialsV1Request", "ConnectorDeleteAllUserCredentialsV1RequestTypedDict", - "ConnectorDeleteOrganizationCredentialsV1Request", - "ConnectorDeleteOrganizationCredentialsV1RequestTypedDict", - "ConnectorDeleteUserCredentialsV1Request", - "ConnectorDeleteUserCredentialsV1RequestTypedDict", + "ConnectorDeleteCredentialsConsumerScope", + "ConnectorDeleteCredentialsRequest", + "ConnectorDeleteCredentialsRequestTypedDict", "ConnectorDeleteV1Request", "ConnectorDeleteV1RequestTypedDict", - "ConnectorDeleteWorkspaceCredentialsV1Request", - "ConnectorDeleteWorkspaceCredentialsV1RequestTypedDict", "ConnectorGetAuthURLV1Request", "ConnectorGetAuthURLV1RequestTypedDict", "ConnectorGetAuthenticationMethodsV1Request", @@ -3614,6 +3675,8 @@ "DeploymentResourceConfigUpdateTypedDict", "DeploymentResponse", "DeploymentResponseTypedDict", + "DeploymentSecretBinding", + "DeploymentSecretBindingTypedDict", "DeploymentStatus", "DeploymentWorkerListResponse", "DeploymentWorkerListResponseTypedDict", @@ -3769,6 +3832,8 @@ "FunctionTool", "FunctionToolTypedDict", "FunctionTypedDict", + "GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest", + "GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequestTypedDict", "GetDatasetByIDV1ObservabilityDatasetsDatasetIDGetRequest", "GetDatasetByIDV1ObservabilityDatasetsDatasetIDGetRequestTypedDict", "GetDatasetImportTaskV1ObservabilityDatasetsDatasetIDTasksTaskIDGetRequest", @@ -3919,6 +3984,11 @@ "GlobalHeaderValue", "GlobalHeaderValueTypedDict", "Granularity", + "GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest", + "GrepIndexV1RagManagedIndexesIndexNameGrepPostRequestTypedDict", + "GrepMode", + "GrepRequest", + "GrepRequestTypedDict", "Gt", "GtTypedDict", "Gte", @@ -3945,6 +4015,8 @@ "ImportDatasetFromFileRequestTypedDict", "ImportDatasetFromPlaygroundRequest", "ImportDatasetFromPlaygroundRequestTypedDict", + "ImportDatasetFromSpansRequest", + "ImportDatasetFromSpansRequestTypedDict", "In", "InTypedDict", "InValue", @@ -4275,6 +4347,15 @@ "ModerationResponseTypedDict", "MultiPartBodyParams", "MultiPartBodyParamsTypedDict", + "NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest", + "NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequestTypedDict", + "NavigateRequest", + "NavigateRequestTypedDict", + "NavigationChunkResponse", + "NavigationChunkResponseTypedDict", + "NavigationDirection", + "NavigationResponse", + "NavigationResponseTypedDict", "NearestNeighbourRetriever", "NearestNeighbourRetrieverFilter", "NearestNeighbourRetrieverFilterTypedDict", @@ -4409,8 +4490,11 @@ "PostDatasetRecordsFromFileV1ObservabilityDatasetsDatasetIDImportsFromFilePostRequestTypedDict", "PostDatasetRecordsFromPlaygroundV1ObservabilityDatasetsDatasetIDImportsFromPlaygroundPostRequest", "PostDatasetRecordsFromPlaygroundV1ObservabilityDatasetsDatasetIDImportsFromPlaygroundPostRequestTypedDict", + "PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest", + "PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequestTypedDict", "Prediction", "PredictionTypedDict", + "PrincipalType", "ProcessStatus", "ProcessingStatus", "ProcessingStatusTypedDict", @@ -4471,10 +4555,20 @@ "QueryWorkflowExecutionV1WorkflowsExecutionsExecutionIDQueriesPostRequestTypedDict", "QueryWorkflowResponse", "QueryWorkflowResponseTypedDict", + "RRFRetriever", + "RRFRetrieverFilter", + "RRFRetrieverFilterTypedDict", + "RRFRetrieverRetriever", + "RRFRetrieverRetrieverTypedDict", + "RRFRetrieverTypedDict", "Range", "RangeTypedDict", "RawContent", "RawContentTypedDict", + "ReadIndexV1RagManagedIndexesIndexNameReadPostRequest", + "ReadIndexV1RagManagedIndexesIndexNameReadPostRequestTypedDict", + "ReadRequest", + "ReadRequestTypedDict", "RealtimeTranscriptionError", "RealtimeTranscriptionErrorDetail", "RealtimeTranscriptionErrorDetailMessage", @@ -4562,8 +4656,6 @@ "ResumeScheduleV1WorkflowsSchedulesScheduleIDResumePostRequestTypedDict", "RetrieveModelV1ModelsModelIDGetRequest", "RetrieveModelV1ModelsModelIDGetRequestTypedDict", - "Retriever", - "RetrieverTypedDict", "Role", "Roles", "RootsCapability", @@ -4609,6 +4701,8 @@ "SearchLogsV1ObservabilityLogsSearchPostRequest", "SearchLogsV1ObservabilityLogsSearchPostRequestTypedDict", "SearchRequest", + "SearchRequestRetriever", + "SearchRequestRetrieverTypedDict", "SearchRequestTypedDict", "SearchResponse", "SearchResponseTypedDict", @@ -4689,6 +4783,13 @@ "SortBy", "Source", "SourceKind", + "SpanDatasetMapping", + "SpanDatasetMappingContract", + "SpanDatasetMappingContractTypedDict", + "SpanDatasetMappingTypedDict", + "SpanDatasetSourceNamespace", + "SpanDatasetSourceReference", + "SpanDatasetSourceReferenceTypedDict", "SpanEvaluationsRequest", "SpanEvaluationsRequestTypedDict", "SpansRequest", @@ -4756,6 +4857,8 @@ "TasksSamplingCapabilityTypedDict", "TasksToolsCapability", "TasksToolsCapabilityTypedDict", + "TelemetrySpanReference", + "TelemetrySpanReferenceTypedDict", "TempoGetTraceResponse", "TempoGetTraceResponseTypedDict", "TempoTraceAttribute", @@ -4902,6 +5005,8 @@ "UnarchiveModelResponseTypedDict", "UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequest", "UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequestTypedDict", + "UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest", + "UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequestTypedDict", "UnknownAgentTool", "UnknownAuthorization", "UnknownBlock", @@ -5291,6 +5396,8 @@ "AgentsCompletionStreamRequestToolChoiceTypedDict": ".agentscompletionstreamrequest", "AgentsCompletionStreamRequestToolTypedDict": ".agentscompletionstreamrequest", "AgentsCompletionStreamRequestTypedDict": ".agentscompletionstreamrequest", + "AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest": ".aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop", + "AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequestTypedDict": ".aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop", "AggregateSpansV1ObservabilitySpansAggregatePostRequest": ".aggregate_spans_v1_observability_spans_aggregate_postop", "AggregateSpansV1ObservabilitySpansAggregatePostRequestTypedDict": ".aggregate_spans_v1_observability_spans_aggregate_postop", "AggregateTracesV1ObservabilityTracesAggregatePostRequest": ".aggregate_traces_v1_observability_traces_aggregate_postop", @@ -5469,14 +5576,11 @@ "ConnectorDeactivateForConsumerV1RequestTypedDict": ".connector_deactivate_for_consumer_v1op", "ConnectorDeleteAllUserCredentialsV1Request": ".connector_delete_all_user_credentials_v1op", "ConnectorDeleteAllUserCredentialsV1RequestTypedDict": ".connector_delete_all_user_credentials_v1op", - "ConnectorDeleteOrganizationCredentialsV1Request": ".connector_delete_organization_credentials_v1op", - "ConnectorDeleteOrganizationCredentialsV1RequestTypedDict": ".connector_delete_organization_credentials_v1op", - "ConnectorDeleteUserCredentialsV1Request": ".connector_delete_user_credentials_v1op", - "ConnectorDeleteUserCredentialsV1RequestTypedDict": ".connector_delete_user_credentials_v1op", + "ConnectorDeleteCredentialsConsumerScope": ".connector_delete_credentialsop", + "ConnectorDeleteCredentialsRequest": ".connector_delete_credentialsop", + "ConnectorDeleteCredentialsRequestTypedDict": ".connector_delete_credentialsop", "ConnectorDeleteV1Request": ".connector_delete_v1op", "ConnectorDeleteV1RequestTypedDict": ".connector_delete_v1op", - "ConnectorDeleteWorkspaceCredentialsV1Request": ".connector_delete_workspace_credentials_v1op", - "ConnectorDeleteWorkspaceCredentialsV1RequestTypedDict": ".connector_delete_workspace_credentials_v1op", "ConnectorGetAuthURLV1Request": ".connector_get_auth_url_v1op", "ConnectorGetAuthURLV1RequestTypedDict": ".connector_get_auth_url_v1op", "ConnectorGetAuthenticationMethodsV1Request": ".connector_get_authentication_methods_v1op", @@ -5764,6 +5868,8 @@ "DeploymentResourceConfigUpdateTypedDict": ".deploymentresourceconfigupdate", "DeploymentResponse": ".deploymentresponse", "DeploymentResponseTypedDict": ".deploymentresponse", + "DeploymentSecretBinding": ".deploymentsecretbinding", + "DeploymentSecretBindingTypedDict": ".deploymentsecretbinding", "DeploymentWorkerListResponse": ".deploymentworkerlistresponse", "DeploymentWorkerListResponseTypedDict": ".deploymentworkerlistresponse", "DeploymentWorkerResponse": ".deploymentworkerresponse", @@ -5917,6 +6023,8 @@ "FunctionResultEntryTypedDict": ".functionresultentry", "FunctionTool": ".functiontool", "FunctionToolTypedDict": ".functiontool", + "GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest": ".get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop", + "GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequestTypedDict": ".get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop", "GetDatasetByIDV1ObservabilityDatasetsDatasetIDGetRequest": ".get_dataset_by_id_v1_observability_datasets_dataset_id_getop", "GetDatasetByIDV1ObservabilityDatasetsDatasetIDGetRequestTypedDict": ".get_dataset_by_id_v1_observability_datasets_dataset_id_getop", "GetDatasetImportTaskV1ObservabilityDatasetsDatasetIDTasksTaskIDGetRequest": ".get_dataset_import_task_v1_observability_datasets_dataset_id_tasks_task_id_getop", @@ -6070,6 +6178,11 @@ "GlobalHeaderValue": ".globalheadervalue", "GlobalHeaderValueTypedDict": ".globalheadervalue", "Granularity": ".granularity", + "GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest": ".grep_index_v1_rag_managed_indexes_index_name_grep_postop", + "GrepIndexV1RagManagedIndexesIndexNameGrepPostRequestTypedDict": ".grep_index_v1_rag_managed_indexes_index_name_grep_postop", + "GrepMode": ".grepmode", + "GrepRequest": ".greprequest", + "GrepRequestTypedDict": ".greprequest", "GuardrailConfig": ".guardrailconfig", "GuardrailConfigTypedDict": ".guardrailconfig", "HTTPConnector": ".httpconnector", @@ -6092,6 +6205,8 @@ "ImportDatasetFromFileRequestTypedDict": ".importdatasetfromfilerequest", "ImportDatasetFromPlaygroundRequest": ".importdatasetfromplaygroundrequest", "ImportDatasetFromPlaygroundRequestTypedDict": ".importdatasetfromplaygroundrequest", + "ImportDatasetFromSpansRequest": ".importdatasetfromspansrequest", + "ImportDatasetFromSpansRequestTypedDict": ".importdatasetfromspansrequest", "In": ".in_", "InTypedDict": ".in_", "InValue": ".in_", @@ -6435,6 +6550,15 @@ "ModerationObjectTypedDict": ".moderationobject", "ModerationResponse": ".moderationresponse", "ModerationResponseTypedDict": ".moderationresponse", + "NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest": ".navigate_index_v1_rag_managed_indexes_index_name_navigate_postop", + "NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequestTypedDict": ".navigate_index_v1_rag_managed_indexes_index_name_navigate_postop", + "NavigateRequest": ".navigaterequest", + "NavigateRequestTypedDict": ".navigaterequest", + "NavigationChunkResponse": ".navigationchunkresponse", + "NavigationChunkResponseTypedDict": ".navigationchunkresponse", + "NavigationDirection": ".navigationdirection", + "NavigationResponse": ".navigationresponse", + "NavigationResponseTypedDict": ".navigationresponse", "NearestNeighbourRetriever": ".nearestneighbourretriever", "NearestNeighbourRetrieverFilter": ".nearestneighbourretriever", "NearestNeighbourRetrieverFilterTypedDict": ".nearestneighbourretriever", @@ -6567,8 +6691,11 @@ "PostDatasetRecordsFromFileV1ObservabilityDatasetsDatasetIDImportsFromFilePostRequestTypedDict": ".post_dataset_records_from_file_v1_observability_datasets_dataset_id_imports_from_file_postop", "PostDatasetRecordsFromPlaygroundV1ObservabilityDatasetsDatasetIDImportsFromPlaygroundPostRequest": ".post_dataset_records_from_playground_v1_observability_datasets_dataset_id_imports_from_playground_postop", "PostDatasetRecordsFromPlaygroundV1ObservabilityDatasetsDatasetIDImportsFromPlaygroundPostRequestTypedDict": ".post_dataset_records_from_playground_v1_observability_datasets_dataset_id_imports_from_playground_postop", + "PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest": ".post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop", + "PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequestTypedDict": ".post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop", "Prediction": ".prediction", "PredictionTypedDict": ".prediction", + "PrincipalType": ".principaltype", "ProcessingStatus": ".processingstatus", "ProcessingStatusTypedDict": ".processingstatus", "ProcessStatus": ".processstatus", @@ -6643,6 +6770,10 @@ "LteTypedDict": ".range", "Range": ".range", "RangeTypedDict": ".range", + "ReadIndexV1RagManagedIndexesIndexNameReadPostRequest": ".read_index_v1_rag_managed_indexes_index_name_read_postop", + "ReadIndexV1RagManagedIndexesIndexNameReadPostRequestTypedDict": ".read_index_v1_rag_managed_indexes_index_name_read_postop", + "ReadRequest": ".readrequest", + "ReadRequestTypedDict": ".readrequest", "RealtimeTranscriptionError": ".realtimetranscriptionerror", "RealtimeTranscriptionErrorTypedDict": ".realtimetranscriptionerror", "RealtimeTranscriptionErrorDetail": ".realtimetranscriptionerrordetail", @@ -6718,6 +6849,12 @@ "Roles": ".roles", "RootsCapability": ".rootscapability", "RootsCapabilityTypedDict": ".rootscapability", + "RRFRetriever": ".rrfretriever", + "RRFRetrieverFilter": ".rrfretriever", + "RRFRetrieverFilterTypedDict": ".rrfretriever", + "RRFRetrieverRetriever": ".rrfretriever", + "RRFRetrieverRetrieverTypedDict": ".rrfretriever", + "RRFRetrieverTypedDict": ".rrfretriever", "SampleType": ".sampletype", "SamplingCapability": ".samplingcapability", "SamplingCapabilityTypedDict": ".samplingcapability", @@ -6762,9 +6899,9 @@ "SearchChunkResponseTypedDict": ".searchchunkresponse", "SearchHitResponse": ".searchhitresponse", "SearchHitResponseTypedDict": ".searchhitresponse", - "Retriever": ".searchrequest", - "RetrieverTypedDict": ".searchrequest", "SearchRequest": ".searchrequest", + "SearchRequestRetriever": ".searchrequest", + "SearchRequestRetrieverTypedDict": ".searchrequest", "SearchRequestTypedDict": ".searchrequest", "SearchResponse": ".searchresponse", "SearchResponseTypedDict": ".searchresponse", @@ -6844,6 +6981,13 @@ "SkillVersionTypedDict": ".skillversion", "Source": ".source", "SourceKind": ".sourcekind", + "SpanDatasetMapping": ".spandatasetmapping", + "SpanDatasetMappingTypedDict": ".spandatasetmapping", + "SpanDatasetMappingContract": ".spandatasetmappingcontract", + "SpanDatasetMappingContractTypedDict": ".spandatasetmappingcontract", + "SpanDatasetSourceNamespace": ".spandatasetsourcenamespace", + "SpanDatasetSourceReference": ".spandatasetsourcereference", + "SpanDatasetSourceReferenceTypedDict": ".spandatasetsourcereference", "SpanEvaluationsRequest": ".spanevaluationsrequest", "SpanEvaluationsRequestTypedDict": ".spanevaluationsrequest", "SpansRequest": ".spansrequest", @@ -6910,6 +7054,8 @@ "TasksSamplingCapabilityTypedDict": ".taskssamplingcapability", "TasksToolsCapability": ".taskstoolscapability", "TasksToolsCapabilityTypedDict": ".taskstoolscapability", + "TelemetrySpanReference": ".telemetryspanreference", + "TelemetrySpanReferenceTypedDict": ".telemetryspanreference", "TempoGetTraceResponse": ".tempogettraceresponse", "TempoGetTraceResponseTypedDict": ".tempogettraceresponse", "TempoTraceAttribute": ".tempotraceattribute", @@ -7061,6 +7207,8 @@ "UnarchiveWorkflowV1WorkflowsWorkflowIdentifierUnarchivePutRequestTypedDict": ".unarchive_workflow_v1_workflows_workflow_identifier_unarchive_putop", "UnarchiveModelResponse": ".unarchivemodelresponse", "UnarchiveModelResponseTypedDict": ".unarchivemodelresponse", + "UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest": ".unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop", + "UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequestTypedDict": ".unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop", "UnregisterDeploymentV1RagDeploymentsDeploymentIDDeleteRequest": ".unregister_deployment_v1_rag_deployments_deployment_id_deleteop", "UnregisterDeploymentV1RagDeploymentsDeploymentIDDeleteRequestTypedDict": ".unregister_deployment_v1_rag_deployments_deployment_id_deleteop", "UnscheduleWorkflowV1WorkflowsSchedulesScheduleIDDeleteRequest": ".unschedule_workflow_v1_workflows_schedules_schedule_id_deleteop", diff --git a/src/mistralai/client/models/agentscompletionrequest.py b/src/mistralai/client/models/agentscompletionrequest.py index 6327daf4c..91bf9ffa4 100644 --- a/src/mistralai/client/models/agentscompletionrequest.py +++ b/src/mistralai/client/models/agentscompletionrequest.py @@ -3,7 +3,6 @@ from __future__ import annotations from .assistantmessage import AssistantMessage, AssistantMessageTypedDict -from .codeinterpretertool import CodeInterpreterTool, CodeInterpreterToolTypedDict from .customconnector import CustomConnector, CustomConnectorTypedDict from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict from .guardrailconfig import GuardrailConfig, GuardrailConfigTypedDict @@ -19,8 +18,6 @@ from .toolchoiceenum import ToolChoiceEnum from .toolmessage import ToolMessage, ToolMessageTypedDict from .usermessage import UserMessage, UserMessageTypedDict -from .websearchpremiumtool import WebSearchPremiumTool, WebSearchPremiumToolTypedDict -from .websearchtool import WebSearchTool, WebSearchToolTypedDict from mistralai.client.types import ( BaseModel, Nullable, @@ -72,9 +69,6 @@ "AgentsCompletionRequestToolTypedDict", Union[ ToolTypedDict, - WebSearchToolTypedDict, - WebSearchPremiumToolTypedDict, - CodeInterpreterToolTypedDict, ImageGenerationToolTypedDict, DocumentLibraryToolTypedDict, CustomConnectorTypedDict, @@ -85,9 +79,6 @@ AgentsCompletionRequestTool = Annotated[ Union[ Annotated[Tool, Tag("function")], - Annotated[WebSearchTool, Tag("web_search")], - Annotated[WebSearchPremiumTool, Tag("web_search_premium")], - Annotated[CodeInterpreterTool, Tag("code_interpreter")], Annotated[ImageGenerationTool, Tag("image_generation")], Annotated[DocumentLibraryTool, Tag("document_library")], Annotated[CustomConnector, Tag("connector")], diff --git a/src/mistralai/client/models/agentscompletionstreamrequest.py b/src/mistralai/client/models/agentscompletionstreamrequest.py index 8f8f163eb..4cc47a252 100644 --- a/src/mistralai/client/models/agentscompletionstreamrequest.py +++ b/src/mistralai/client/models/agentscompletionstreamrequest.py @@ -3,7 +3,6 @@ from __future__ import annotations from .assistantmessage import AssistantMessage, AssistantMessageTypedDict -from .codeinterpretertool import CodeInterpreterTool, CodeInterpreterToolTypedDict from .customconnector import CustomConnector, CustomConnectorTypedDict from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict from .guardrailconfig import GuardrailConfig, GuardrailConfigTypedDict @@ -19,8 +18,6 @@ from .toolchoiceenum import ToolChoiceEnum from .toolmessage import ToolMessage, ToolMessageTypedDict from .usermessage import UserMessage, UserMessageTypedDict -from .websearchpremiumtool import WebSearchPremiumTool, WebSearchPremiumToolTypedDict -from .websearchtool import WebSearchTool, WebSearchToolTypedDict from mistralai.client.types import ( BaseModel, Nullable, @@ -72,9 +69,6 @@ "AgentsCompletionStreamRequestToolTypedDict", Union[ ToolTypedDict, - WebSearchToolTypedDict, - WebSearchPremiumToolTypedDict, - CodeInterpreterToolTypedDict, ImageGenerationToolTypedDict, DocumentLibraryToolTypedDict, CustomConnectorTypedDict, @@ -85,9 +79,6 @@ AgentsCompletionStreamRequestTool = Annotated[ Union[ Annotated[Tool, Tag("function")], - Annotated[WebSearchTool, Tag("web_search")], - Annotated[WebSearchPremiumTool, Tag("web_search_premium")], - Annotated[CodeInterpreterTool, Tag("code_interpreter")], Annotated[ImageGenerationTool, Tag("image_generation")], Annotated[DocumentLibraryTool, Tag("document_library")], Annotated[CustomConnector, Tag("connector")], diff --git a/src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py b/src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py new file mode 100644 index 000000000..6ea4f7b77 --- /dev/null +++ b/src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py @@ -0,0 +1,70 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 3fe59a78e3d0 + +from __future__ import annotations +from .aggregationrequest import AggregationRequest, AggregationRequestTypedDict +from datetime import datetime +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import FieldMetadata, QueryParamMetadata, RequestMetadata +import pydantic +from pydantic import model_serializer +from typing_extensions import Annotated, NotRequired, TypedDict + + +class AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequestTypedDict( + TypedDict +): + aggregation_request: AggregationRequestTypedDict + from_: NotRequired[Nullable[datetime]] + to: NotRequired[Nullable[datetime]] + + +class AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest( + BaseModel +): + aggregation_request: Annotated[ + AggregationRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + from_: Annotated[ + OptionalNullable[datetime], + pydantic.Field(alias="from"), + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + + to: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["from", "to"]) + nullable_fields = set(["from", "to"]) + 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/builtinconnectors.py b/src/mistralai/client/models/builtinconnectors.py index ecf60d3c1..173fea897 100644 --- a/src/mistralai/client/models/builtinconnectors.py +++ b/src/mistralai/client/models/builtinconnectors.py @@ -13,6 +13,7 @@ "code_interpreter", "image_generation", "document_library", + "mistral_mcp", ], UnrecognizedStr, ] diff --git a/src/mistralai/client/models/chatcompletionrequest.py b/src/mistralai/client/models/chatcompletionrequest.py index 846e2fa14..1531e0f33 100644 --- a/src/mistralai/client/models/chatcompletionrequest.py +++ b/src/mistralai/client/models/chatcompletionrequest.py @@ -3,7 +3,6 @@ from __future__ import annotations from .assistantmessage import AssistantMessage, AssistantMessageTypedDict -from .codeinterpretertool import CodeInterpreterTool, CodeInterpreterToolTypedDict from .customconnector import CustomConnector, CustomConnectorTypedDict from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict from .guardrailconfig import GuardrailConfig, GuardrailConfigTypedDict @@ -19,8 +18,6 @@ from .toolchoiceenum import ToolChoiceEnum from .toolmessage import ToolMessage, ToolMessageTypedDict from .usermessage import UserMessage, UserMessageTypedDict -from .websearchpremiumtool import WebSearchPremiumTool, WebSearchPremiumToolTypedDict -from .websearchtool import WebSearchTool, WebSearchToolTypedDict from mistralai.client.types import ( BaseModel, Nullable, @@ -72,9 +69,6 @@ "ChatCompletionRequestToolTypedDict", Union[ ToolTypedDict, - WebSearchToolTypedDict, - WebSearchPremiumToolTypedDict, - CodeInterpreterToolTypedDict, ImageGenerationToolTypedDict, DocumentLibraryToolTypedDict, CustomConnectorTypedDict, @@ -85,9 +79,6 @@ ChatCompletionRequestTool = Annotated[ Union[ Annotated[Tool, Tag("function")], - Annotated[WebSearchTool, Tag("web_search")], - Annotated[WebSearchPremiumTool, Tag("web_search_premium")], - Annotated[CodeInterpreterTool, Tag("code_interpreter")], Annotated[ImageGenerationTool, Tag("image_generation")], Annotated[DocumentLibraryTool, Tag("document_library")], Annotated[CustomConnector, Tag("connector")], diff --git a/src/mistralai/client/models/chatcompletionstreamrequest.py b/src/mistralai/client/models/chatcompletionstreamrequest.py index 7b2dc5c96..0c84c5781 100644 --- a/src/mistralai/client/models/chatcompletionstreamrequest.py +++ b/src/mistralai/client/models/chatcompletionstreamrequest.py @@ -3,7 +3,6 @@ from __future__ import annotations from .assistantmessage import AssistantMessage, AssistantMessageTypedDict -from .codeinterpretertool import CodeInterpreterTool, CodeInterpreterToolTypedDict from .customconnector import CustomConnector, CustomConnectorTypedDict from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict from .guardrailconfig import GuardrailConfig, GuardrailConfigTypedDict @@ -19,8 +18,6 @@ from .toolchoiceenum import ToolChoiceEnum from .toolmessage import ToolMessage, ToolMessageTypedDict from .usermessage import UserMessage, UserMessageTypedDict -from .websearchpremiumtool import WebSearchPremiumTool, WebSearchPremiumToolTypedDict -from .websearchtool import WebSearchTool, WebSearchToolTypedDict from mistralai.client.types import ( BaseModel, Nullable, @@ -72,9 +69,6 @@ "ChatCompletionStreamRequestToolTypedDict", Union[ ToolTypedDict, - WebSearchToolTypedDict, - WebSearchPremiumToolTypedDict, - CodeInterpreterToolTypedDict, ImageGenerationToolTypedDict, DocumentLibraryToolTypedDict, CustomConnectorTypedDict, @@ -85,9 +79,6 @@ ChatCompletionStreamRequestTool = Annotated[ Union[ Annotated[Tool, Tag("function")], - Annotated[WebSearchTool, Tag("web_search")], - Annotated[WebSearchPremiumTool, Tag("web_search_premium")], - Annotated[CodeInterpreterTool, Tag("code_interpreter")], Annotated[ImageGenerationTool, Tag("image_generation")], Annotated[DocumentLibraryTool, Tag("document_library")], Annotated[CustomConnector, Tag("connector")], diff --git a/src/mistralai/client/models/connector_delete_organization_credentials_v1op.py b/src/mistralai/client/models/connector_delete_credentialsop.py similarity index 53% rename from src/mistralai/client/models/connector_delete_organization_credentials_v1op.py rename to src/mistralai/client/models/connector_delete_credentialsop.py index 6cdb0c31f..5dcf71428 100644 --- a/src/mistralai/client/models/connector_delete_organization_credentials_v1op.py +++ b/src/mistralai/client/models/connector_delete_credentialsop.py @@ -1,18 +1,27 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: aab3a70dbbc5 +# @generated-id: a94152ccdd84 from __future__ import annotations from mistralai.client.types import BaseModel from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing import Literal from typing_extensions import Annotated, TypedDict -class ConnectorDeleteOrganizationCredentialsV1RequestTypedDict(TypedDict): +ConnectorDeleteCredentialsConsumerScope = Literal[ + "user", + "workspace", + "organization", +] + + +class ConnectorDeleteCredentialsRequestTypedDict(TypedDict): credentials_name: str connector_id_or_name: str + consumer_scope: ConnectorDeleteCredentialsConsumerScope -class ConnectorDeleteOrganizationCredentialsV1Request(BaseModel): +class ConnectorDeleteCredentialsRequest(BaseModel): credentials_name: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] @@ -20,3 +29,8 @@ class ConnectorDeleteOrganizationCredentialsV1Request(BaseModel): connector_id_or_name: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] + + consumer_scope: Annotated[ + ConnectorDeleteCredentialsConsumerScope, + FieldMetadata(path=PathParamMetadata(style="simple", explode=False)), + ] diff --git a/src/mistralai/client/models/connector_delete_workspace_credentials_v1op.py b/src/mistralai/client/models/connector_delete_workspace_credentials_v1op.py deleted file mode 100644 index a746ff5e0..000000000 --- a/src/mistralai/client/models/connector_delete_workspace_credentials_v1op.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 4f0993c25ece - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class ConnectorDeleteWorkspaceCredentialsV1RequestTypedDict(TypedDict): - credentials_name: str - connector_id_or_name: str - - -class ConnectorDeleteWorkspaceCredentialsV1Request(BaseModel): - credentials_name: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - connector_id_or_name: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/connector_get_v1op.py b/src/mistralai/client/models/connector_get_v1op.py index beb27872d..80a81f100 100644 --- a/src/mistralai/client/models/connector_get_v1op.py +++ b/src/mistralai/client/models/connector_get_v1op.py @@ -13,8 +13,6 @@ class ConnectorGetV1RequestTypedDict(TypedDict): connector_id_or_name: str fetch_user_data: NotRequired[bool] r"""Fetch the user-level data associated with the connector (e.g. connection credentials).""" - fetch_customer_data: NotRequired[bool] - r"""Fetch the customer data associated with the connector (e.g. customer secrets / config).""" class ConnectorGetV1Request(BaseModel): @@ -28,15 +26,9 @@ class ConnectorGetV1Request(BaseModel): ] = False r"""Fetch the user-level data associated with the connector (e.g. connection credentials).""" - fetch_customer_data: Annotated[ - Optional[bool], - FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), - ] = False - r"""Fetch the customer data associated with the connector (e.g. customer secrets / config).""" - @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["fetch_user_data", "fetch_customer_data"]) + optional_fields = set(["fetch_user_data"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/deploymentkoyebbackendspec.py b/src/mistralai/client/models/deploymentkoyebbackendspec.py index 7227f6fbd..648d23298 100644 --- a/src/mistralai/client/models/deploymentkoyebbackendspec.py +++ b/src/mistralai/client/models/deploymentkoyebbackendspec.py @@ -2,6 +2,10 @@ # @generated-id: 04d04025faa2 from __future__ import annotations +from .deploymentsecretbinding import ( + DeploymentSecretBinding, + DeploymentSecretBindingTypedDict, +) from mistralai.client.types import ( BaseModel, Nullable, @@ -13,7 +17,7 @@ import pydantic from pydantic import model_serializer from pydantic.functional_validators import AfterValidator -from typing import Literal +from typing import List, Literal from typing_extensions import Annotated, NotRequired, TypedDict @@ -25,6 +29,8 @@ class DeploymentKoyebBackendSpecTypedDict(TypedDict): r"""Docker build context, as a path in the repo. Defaults to the repo root.""" dockerfile_path: NotRequired[Nullable[str]] r"""Path to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.""" + secrets: NotRequired[Nullable[List[DeploymentSecretBindingTypedDict]]] + r"""Secrets to bind to the worker, as 'secret:workspace:' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.""" class DeploymentKoyebBackendSpec(BaseModel): @@ -41,10 +47,13 @@ class DeploymentKoyebBackendSpec(BaseModel): dockerfile_path: OptionalNullable[str] = UNSET r"""Path to the Dockerfile, relative to 'build_directory'. Defaults to 'Dockerfile'.""" + secrets: OptionalNullable[List[DeploymentSecretBinding]] = UNSET + r"""Secrets to bind to the worker, as 'secret:workspace:' references. Each is available during build and run: as a Dockerfile build arg (declare a matching 'ARG') and as an env var. On update, the field carries the complete set: send the full list to rebind, an empty list to unbind all, omit it to leave the bindings unchanged.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["build_directory", "dockerfile_path"]) - nullable_fields = set(["build_directory", "dockerfile_path"]) + optional_fields = set(["build_directory", "dockerfile_path", "secrets"]) + nullable_fields = set(["build_directory", "dockerfile_path", "secrets"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/deploymentsecretbinding.py b/src/mistralai/client/models/deploymentsecretbinding.py new file mode 100644 index 000000000..cb74534b1 --- /dev/null +++ b/src/mistralai/client/models/deploymentsecretbinding.py @@ -0,0 +1,25 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 05b0f4040b79 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class DeploymentSecretBindingTypedDict(TypedDict): + r"""Binds one env var to one platform secret; the value is resolved at boot, never stored.""" + + env_var_name: str + r"""Environment variable the worker process reads; the secret's name lives in 'reference'.""" + reference: str + r"""Secret reference as 'secret:workspace:'. Resolved at boot by the runtime-init container; the value never reaches the control plane.""" + + +class DeploymentSecretBinding(BaseModel): + r"""Binds one env var to one platform secret; the value is resolved at boot, never stored.""" + + env_var_name: str + r"""Environment variable the worker process reads; the secret's name lives in 'reference'.""" + + reference: str + r"""Secret reference as 'secret:workspace:'. Resolved at boot by the runtime-init container; the value never reaches the control plane.""" diff --git a/src/mistralai/client/models/connector_delete_user_credentials_v1op.py b/src/mistralai/client/models/get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop.py similarity index 60% rename from src/mistralai/client/models/connector_delete_user_credentials_v1op.py rename to src/mistralai/client/models/get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop.py index 40d25aabf..bede87449 100644 --- a/src/mistralai/client/models/connector_delete_user_credentials_v1op.py +++ b/src/mistralai/client/models/get_chunk_index_v1_rag_managed_indexes_index_name_chunks_chunk_id_getop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 8bf2075ebdbf +# @generated-id: 6b1a4a862e54 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,16 +7,18 @@ from typing_extensions import Annotated, TypedDict -class ConnectorDeleteUserCredentialsV1RequestTypedDict(TypedDict): - credentials_name: str - connector_id_or_name: str +class GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequestTypedDict( + TypedDict +): + index_name: str + chunk_id: str -class ConnectorDeleteUserCredentialsV1Request(BaseModel): - credentials_name: Annotated[ +class GetChunkIndexV1RagManagedIndexesIndexNameChunksChunkIDGetRequest(BaseModel): + index_name: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] - connector_id_or_name: Annotated[ + chunk_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/grep_index_v1_rag_managed_indexes_index_name_grep_postop.py b/src/mistralai/client/models/grep_index_v1_rag_managed_indexes_index_name_grep_postop.py new file mode 100644 index 000000000..3cb719be9 --- /dev/null +++ b/src/mistralai/client/models/grep_index_v1_rag_managed_indexes_index_name_grep_postop.py @@ -0,0 +1,24 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d390aef8c0ba + +from __future__ import annotations +from .greprequest import GrepRequest, GrepRequestTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class GrepIndexV1RagManagedIndexesIndexNameGrepPostRequestTypedDict(TypedDict): + index_name: str + grep_request: GrepRequestTypedDict + + +class GrepIndexV1RagManagedIndexesIndexNameGrepPostRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + grep_request: Annotated[ + GrepRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/grepmode.py b/src/mistralai/client/models/grepmode.py new file mode 100644 index 000000000..b172d2a5e --- /dev/null +++ b/src/mistralai/client/models/grepmode.py @@ -0,0 +1,11 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: bede5edfeaba + +from __future__ import annotations +from typing import Literal + + +GrepMode = Literal[ + "phrase", + "term", +] diff --git a/src/mistralai/client/models/greprequest.py b/src/mistralai/client/models/greprequest.py new file mode 100644 index 000000000..eec1bfa61 --- /dev/null +++ b/src/mistralai/client/models/greprequest.py @@ -0,0 +1,45 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 66b17a2cbd59 + +from __future__ import annotations +from .grepmode import GrepMode +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class GrepRequestTypedDict(TypedDict): + source_id: str + pattern: str + mode: NotRequired[GrepMode] + top_k: NotRequired[int] + content_type: NotRequired[str] + + +class GrepRequest(BaseModel): + source_id: str + + pattern: str + + mode: Optional[GrepMode] = None + + top_k: Optional[int] = 5 + + content_type: Optional[str] = "content" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["mode", "top_k", "content_type"]) + 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/importdatasetfromspansrequest.py b/src/mistralai/client/models/importdatasetfromspansrequest.py new file mode 100644 index 000000000..ed9f6316d --- /dev/null +++ b/src/mistralai/client/models/importdatasetfromspansrequest.py @@ -0,0 +1,40 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 977a46fb12f3 + +from __future__ import annotations +from .spandatasetmappingcontract import ( + SpanDatasetMappingContract, + SpanDatasetMappingContractTypedDict, +) +from .telemetryspanreference import ( + TelemetrySpanReference, + TelemetrySpanReferenceTypedDict, +) +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class ImportDatasetFromSpansRequestTypedDict(TypedDict): + span_references: List[TelemetrySpanReferenceTypedDict] + r"""Spans to attempt to import; unavailable references are skipped, and trace and span IDs are attached as record properties automatically.""" + mapping_contract: SpanDatasetMappingContractTypedDict + r"""Mapping rules applied independently to every requested telemetry span. + + Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array + source omits the target key. JSON object and array strings become structured values; + scalar-looking and malformed JSON strings remain strings. + """ + + +class ImportDatasetFromSpansRequest(BaseModel): + span_references: List[TelemetrySpanReference] + r"""Spans to attempt to import; unavailable references are skipped, and trace and span IDs are attached as record properties automatically.""" + + mapping_contract: SpanDatasetMappingContract + r"""Mapping rules applied independently to every requested telemetry span. + + Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array + source omits the target key. JSON object and array strings become structured values; + scalar-looking and malformed JSON strings remain strings. + """ diff --git a/src/mistralai/client/models/keywordretriever.py b/src/mistralai/client/models/keywordretriever.py index c3e0c73b8..2d981f0eb 100644 --- a/src/mistralai/client/models/keywordretriever.py +++ b/src/mistralai/client/models/keywordretriever.py @@ -42,7 +42,7 @@ class KeywordRetrieverTypedDict(TypedDict): - r"""Retrieve document chunks with similar keywrods to the given query.""" + r"""Retrieve document chunks with similar keywords to the given query.""" query: str top_k: NotRequired[int] @@ -52,7 +52,7 @@ class KeywordRetrieverTypedDict(TypedDict): class KeywordRetriever(BaseModel): - r"""Retrieve document chunks with similar keywrods to the given query.""" + r"""Retrieve document chunks with similar keywords to the given query.""" query: str diff --git a/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py b/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py index e2dde7b44..ee42c30a6 100644 --- a/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py +++ b/src/mistralai/client/models/list_deployments_v1_workflows_deployments_getop.py @@ -37,6 +37,8 @@ class ListDeploymentsV1WorkflowsDeploymentsGetRequestTypedDict(TypedDict): workflow_name: NotRequired[Nullable[str]] created_by: NotRequired[Nullable[str]] r"""Filter deployments by creator's user id""" + owner: NotRequired[Nullable[str]] + r"""Filter deployments by owner's user id""" location_types: NotRequired[Nullable[List[LocationType]]] r"""Filter deployments with at least one worker on any of these location types (OR)""" search: NotRequired[Nullable[str]] @@ -76,6 +78,12 @@ class ListDeploymentsV1WorkflowsDeploymentsGetRequest(BaseModel): ] = UNSET r"""Filter deployments by creator's user id""" + owner: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Filter deployments by owner's user id""" + location_types: Annotated[ OptionalNullable[List[LocationType]], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -126,6 +134,7 @@ def serialize_model(self, handler): "is_hardened", "workflow_name", "created_by", + "owner", "location_types", "search", "order_by", @@ -140,6 +149,7 @@ def serialize_model(self, handler): "is_hardened", "workflow_name", "created_by", + "owner", "location_types", "search", "order_by", diff --git a/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py b/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py index 2650ffe6e..1cbd8f5c7 100644 --- a/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py +++ b/src/mistralai/client/models/list_indexes_v1_rag_managed_indexes_getop.py @@ -6,6 +6,7 @@ ListManagedIndexesResponse, ListManagedIndexesResponseTypedDict, ) +from .managedindexstatus import ManagedIndexStatus from mistralai.client.types import ( BaseModel, Nullable, @@ -24,6 +25,12 @@ class ListIndexesV1RagManagedIndexesGetRequestTypedDict(TypedDict): r"""Maximum number of indexes to return""" page_token: NotRequired[Nullable[str]] r"""Cursor returned as next_page_token by the previous page""" + name: NotRequired[Nullable[str]] + r"""Case-insensitive substring to match against index names""" + status: NotRequired[Nullable[ManagedIndexStatus]] + r"""Status to match""" + creator_id: NotRequired[Nullable[str]] + r"""Creator ID to match""" class ListIndexesV1RagManagedIndexesGetRequest(BaseModel): @@ -39,10 +46,30 @@ class ListIndexesV1RagManagedIndexesGetRequest(BaseModel): ] = UNSET r"""Cursor returned as next_page_token by the previous page""" + name: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Case-insensitive substring to match against index names""" + + status: Annotated[ + OptionalNullable[ManagedIndexStatus], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Status to match""" + + creator_id: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Creator ID to match""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["page_size", "page_token"]) - nullable_fields = set(["page_token"]) + optional_fields = set( + ["page_size", "page_token", "name", "status", "creator_id"] + ) + nullable_fields = set(["page_token", "name", "status", "creator_id"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/list_runs_v1_workflows_runs_getop.py b/src/mistralai/client/models/list_runs_v1_workflows_runs_getop.py index 48f50bd49..f2fdea3a0 100644 --- a/src/mistralai/client/models/list_runs_v1_workflows_runs_getop.py +++ b/src/mistralai/client/models/list_runs_v1_workflows_runs_getop.py @@ -83,7 +83,7 @@ class ListRunsV1WorkflowsRunsGetRequestTypedDict(TypedDict): next_page_token: NotRequired[Nullable[str]] r"""Token for the next page of results""" search_key: NotRequired[Nullable[List[str]]] - r"""Filter executions by search key as repeated 'key:value' entries. Each entry matches an exact key and a similar value; multiple entries are AND'd together (max 3).""" + r"""Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null.""" class ListRunsV1WorkflowsRunsGetRequest(BaseModel): @@ -187,7 +187,7 @@ class ListRunsV1WorkflowsRunsGetRequest(BaseModel): OptionalNullable[List[str]], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET - r"""Filter executions by search key as repeated 'key:value' entries. Each entry matches an exact key and a similar value; multiple entries are AND'd together (max 3).""" + r"""Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null.""" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/mistralai/client/models/manageddeploymentresponse.py b/src/mistralai/client/models/manageddeploymentresponse.py index 6f0536709..890f3f6c4 100644 --- a/src/mistralai/client/models/manageddeploymentresponse.py +++ b/src/mistralai/client/models/manageddeploymentresponse.py @@ -14,6 +14,7 @@ DeploymentWorkerSpecResponse, DeploymentWorkerSpecResponseTypedDict, ) +from .principaltype import PrincipalType from datetime import datetime from mistralai.client.types import ( BaseModel, @@ -42,6 +43,8 @@ class ManagedDeploymentResponseTypedDict(TypedDict): deployed_by: NotRequired[Nullable[str]] deployed_at: NotRequired[Nullable[datetime]] is_hardened: NotRequired[bool] + runtime_credential_id: NotRequired[Nullable[str]] + runtime_principal_type: NotRequired[Nullable[PrincipalType]] class ManagedDeploymentResponse(BaseModel): @@ -73,6 +76,10 @@ class ManagedDeploymentResponse(BaseModel): is_hardened: Optional[bool] = False + runtime_credential_id: OptionalNullable[str] = UNSET + + runtime_principal_type: OptionalNullable[PrincipalType] = UNSET + @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = set( @@ -84,10 +91,20 @@ def serialize_model(self, handler): "deployed_by", "deployed_at", "is_hardened", + "runtime_credential_id", + "runtime_principal_type", ] ) nullable_fields = set( - ["rollout_status", "created_by", "updated_by", "deployed_by", "deployed_at"] + [ + "rollout_status", + "created_by", + "updated_by", + "deployed_by", + "deployed_at", + "runtime_credential_id", + "runtime_principal_type", + ] ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/managedindexresponse.py b/src/mistralai/client/models/managedindexresponse.py index 11c745f2b..6a41426b0 100644 --- a/src/mistralai/client/models/managedindexresponse.py +++ b/src/mistralai/client/models/managedindexresponse.py @@ -23,6 +23,7 @@ class ManagedIndexResponseTypedDict(TypedDict): id: str name: str + creator_id: str status: ManagedIndexStatus r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" schema_: ManagedIndexFieldsTypedDict @@ -39,6 +40,8 @@ class ManagedIndexResponse(BaseModel): name: str + creator_id: str + status: ManagedIndexStatus r"""Lifecycle of an index. Derived, not stored -- see ``managed_index_from_row``.""" diff --git a/src/mistralai/client/models/navigate_index_v1_rag_managed_indexes_index_name_navigate_postop.py b/src/mistralai/client/models/navigate_index_v1_rag_managed_indexes_index_name_navigate_postop.py new file mode 100644 index 000000000..60e0aacf0 --- /dev/null +++ b/src/mistralai/client/models/navigate_index_v1_rag_managed_indexes_index_name_navigate_postop.py @@ -0,0 +1,24 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c452c66e8904 + +from __future__ import annotations +from .navigaterequest import NavigateRequest, NavigateRequestTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequestTypedDict(TypedDict): + index_name: str + navigate_request: NavigateRequestTypedDict + + +class NavigateIndexV1RagManagedIndexesIndexNameNavigatePostRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + navigate_request: Annotated[ + NavigateRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/navigaterequest.py b/src/mistralai/client/models/navigaterequest.py new file mode 100644 index 000000000..0cf3e18b6 --- /dev/null +++ b/src/mistralai/client/models/navigaterequest.py @@ -0,0 +1,48 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 6ee7d0d32246 + +from __future__ import annotations +from .navigationdirection import NavigationDirection +from mistralai.client.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class NavigateRequestTypedDict(TypedDict): + source_id: str + start_offset: int + end_offset: int + direction: NavigationDirection + top_k: NotRequired[int] + content_type: NotRequired[str] + + +class NavigateRequest(BaseModel): + source_id: str + + start_offset: int + + end_offset: int + + direction: NavigationDirection + + top_k: Optional[int] = 1 + + content_type: Optional[str] = "content" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["top_k", "content_type"]) + 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/navigationchunkresponse.py b/src/mistralai/client/models/navigationchunkresponse.py new file mode 100644 index 000000000..ea2b66f0d --- /dev/null +++ b/src/mistralai/client/models/navigationchunkresponse.py @@ -0,0 +1,92 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 8221d07248b4 + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +import pydantic +from pydantic import ConfigDict, model_serializer +from typing import Any, Dict, Optional +from typing_extensions import NotRequired, TypedDict + + +class NavigationChunkResponseTypedDict(TypedDict): + r"""Wire chunk for navigation: same atom fields as search, no rank fields.""" + + id: str + source_id: str + locator: str + start_offset: Nullable[int] + end_offset: Nullable[int] + chunk_type: str + content: str + parent_ref: NotRequired[Nullable[str]] + metadata: NotRequired[Dict[str, Any]] + + +class NavigationChunkResponse(BaseModel): + r"""Wire chunk for navigation: same atom fields as search, no rank fields.""" + + model_config = ConfigDict( + populate_by_name=True, arbitrary_types_allowed=True, extra="allow" + ) + __pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False) + + id: str + + source_id: str + + locator: str + + start_offset: Nullable[int] + + end_offset: Nullable[int] + + chunk_type: str + + content: str + + parent_ref: OptionalNullable[str] = UNSET + + metadata: Optional[Dict[str, Any]] = None + + @property + def additional_properties(self): + return self.__pydantic_extra__ + + @additional_properties.setter + def additional_properties(self, value): + self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride] + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["parent_ref", "metadata"]) + nullable_fields = set(["start_offset", "end_offset", "parent_ref"]) + 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)) + serialized.pop(k, serialized.pop(n, None)) + 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 + for k, v in serialized.items(): + m[k] = v + + return m diff --git a/src/mistralai/client/models/navigationdirection.py b/src/mistralai/client/models/navigationdirection.py new file mode 100644 index 000000000..227ab096b --- /dev/null +++ b/src/mistralai/client/models/navigationdirection.py @@ -0,0 +1,11 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 2f8dfb50d302 + +from __future__ import annotations +from typing import Literal + + +NavigationDirection = Literal[ + "next", + "previous", +] diff --git a/src/mistralai/client/models/navigationresponse.py b/src/mistralai/client/models/navigationresponse.py new file mode 100644 index 000000000..6359843eb --- /dev/null +++ b/src/mistralai/client/models/navigationresponse.py @@ -0,0 +1,23 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 2924d4d13c14 + +from __future__ import annotations +from .navigationchunkresponse import ( + NavigationChunkResponse, + NavigationChunkResponseTypedDict, +) +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class NavigationResponseTypedDict(TypedDict): + r"""Unranked chunk list in reading order (ascending start_offset).""" + + chunks: List[NavigationChunkResponseTypedDict] + + +class NavigationResponse(BaseModel): + r"""Unranked chunk list in reading order (ascending start_offset).""" + + chunks: List[NavigationChunkResponse] diff --git a/src/mistralai/client/models/nearestneighbourretriever.py b/src/mistralai/client/models/nearestneighbourretriever.py index 7e3f41684..e872a3cf2 100644 --- a/src/mistralai/client/models/nearestneighbourretriever.py +++ b/src/mistralai/client/models/nearestneighbourretriever.py @@ -50,6 +50,7 @@ class NearestNeighbourRetrieverTypedDict(TypedDict): query_embedding: NotRequired[Nullable[List[float]]] field: NotRequired[Nullable[str]] filter_: NotRequired[Nullable[NearestNeighbourRetrieverFilterTypedDict]] + max_candidates: NotRequired[Nullable[int]] class NearestNeighbourRetriever(BaseModel): @@ -76,10 +77,16 @@ class NearestNeighbourRetriever(BaseModel): pydantic.Field(alias="filter"), ] = UNSET + max_candidates: OptionalNullable[int] = UNSET + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["top_k", "query", "query_embedding", "field", "filter"]) - nullable_fields = set(["query", "query_embedding", "field", "filter"]) + optional_fields = set( + ["top_k", "query", "query_embedding", "field", "filter", "max_candidates"] + ) + nullable_fields = set( + ["query", "query_embedding", "field", "filter", "max_candidates"] + ) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/otelfielddefinition.py b/src/mistralai/client/models/otelfielddefinition.py index f3062c0a8..9011fde24 100644 --- a/src/mistralai/client/models/otelfielddefinition.py +++ b/src/mistralai/client/models/otelfielddefinition.py @@ -69,6 +69,8 @@ class OtelFieldDefinitionTypedDict(TypedDict): supported_operators: List[SupportedOperator] supported_aggregations: List[MetricAggregation] group: NotRequired[Nullable[str]] + source_attribute_key: NotRequired[Nullable[str]] + r"""Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. `gen_ai.request.model` for `request_model`) or a resource attribute (e.g. `service.name` for `service_name`). None when the field is a native OTLP field (like `span_name` or `trace_id`) or a nested attribute map (like `span_attributes`).""" class OtelFieldDefinition(BaseModel): @@ -84,10 +86,13 @@ class OtelFieldDefinition(BaseModel): group: OptionalNullable[str] = UNSET + source_attribute_key: OptionalNullable[str] = UNSET + r"""Raw OpenTelemetry attribute key this field is projected from, whether a span attribute (e.g. `gen_ai.request.model` for `request_model`) or a resource attribute (e.g. `service.name` for `service_name`). None when the field is a native OTLP field (like `span_name` or `trace_id`) or a nested attribute map (like `span_attributes`).""" + @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["group"]) - nullable_fields = set(["group"]) + optional_fields = set(["group", "source_attribute_key"]) + nullable_fields = set(["group", "source_attribute_key"]) serialized = handler(self) m = {} diff --git a/src/mistralai/client/models/post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop.py b/src/mistralai/client/models/post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop.py new file mode 100644 index 000000000..cc322af16 --- /dev/null +++ b/src/mistralai/client/models/post_dataset_records_from_spans_v1_observability_datasets_dataset_id_imports_from_spans_postop.py @@ -0,0 +1,31 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: a362a57a5e98 + +from __future__ import annotations +from .importdatasetfromspansrequest import ( + ImportDatasetFromSpansRequest, + ImportDatasetFromSpansRequestTypedDict, +) +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequestTypedDict( + TypedDict +): + dataset_id: str + import_dataset_from_spans_request: ImportDatasetFromSpansRequestTypedDict + + +class PostDatasetRecordsFromSpansV1ObservabilityDatasetsDatasetIDImportsFromSpansPostRequest( + BaseModel +): + dataset_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + import_dataset_from_spans_request: Annotated[ + ImportDatasetFromSpansRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/principaltype.py b/src/mistralai/client/models/principaltype.py new file mode 100644 index 000000000..9557119d5 --- /dev/null +++ b/src/mistralai/client/models/principaltype.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: beb42b23cde7 + +from __future__ import annotations +from mistralai.client.types import UnrecognizedStr +from typing import Literal, Union + + +PrincipalType = Union[ + Literal[ + "api_key", + "service_account", + "user", + ], + UnrecognizedStr, +] diff --git a/src/mistralai/client/models/read_index_v1_rag_managed_indexes_index_name_read_postop.py b/src/mistralai/client/models/read_index_v1_rag_managed_indexes_index_name_read_postop.py new file mode 100644 index 000000000..58e8390de --- /dev/null +++ b/src/mistralai/client/models/read_index_v1_rag_managed_indexes_index_name_read_postop.py @@ -0,0 +1,24 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: fa02d8c02b8c + +from __future__ import annotations +from .readrequest import ReadRequest, ReadRequestTypedDict +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class ReadIndexV1RagManagedIndexesIndexNameReadPostRequestTypedDict(TypedDict): + index_name: str + read_request: ReadRequestTypedDict + + +class ReadIndexV1RagManagedIndexesIndexNameReadPostRequest(BaseModel): + index_name: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + read_request: Annotated[ + ReadRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/readrequest.py b/src/mistralai/client/models/readrequest.py new file mode 100644 index 000000000..0d67668a4 --- /dev/null +++ b/src/mistralai/client/models/readrequest.py @@ -0,0 +1,59 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 8ef0ba975e25 + +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 ReadRequestTypedDict(TypedDict): + source_id: str + start_offset: NotRequired[Nullable[int]] + end_offset: NotRequired[Nullable[int]] + top_k: NotRequired[int] + content_type: NotRequired[str] + + +class ReadRequest(BaseModel): + source_id: str + + start_offset: OptionalNullable[int] = UNSET + + end_offset: OptionalNullable[int] = UNSET + + top_k: Optional[int] = 20 + + content_type: Optional[str] = "content" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["start_offset", "end_offset", "top_k", "content_type"]) + nullable_fields = set(["start_offset", "end_offset"]) + 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/rrfretriever.py b/src/mistralai/client/models/rrfretriever.py new file mode 100644 index 000000000..e1764f494 --- /dev/null +++ b/src/mistralai/client/models/rrfretriever.py @@ -0,0 +1,121 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 78dc5d3684c2 + +from __future__ import annotations +from .and_ import And, AndTypedDict +from .equal import Equal, EqualTypedDict +from .in_ import In, InTypedDict +from .keywordretriever import KeywordRetriever, KeywordRetrieverTypedDict +from .nearestneighbourretriever import ( + NearestNeighbourRetriever, + NearestNeighbourRetrieverTypedDict, +) +from .not_ import Not, NotTypedDict +from .or_ import Or, OrTypedDict +from .range import Range, RangeTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field, SerializeAsAny, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +RRFRetrieverRetrieverTypedDict = TypeAliasType( + "RRFRetrieverRetrieverTypedDict", + Union[KeywordRetrieverTypedDict, NearestNeighbourRetrieverTypedDict], +) + + +RRFRetrieverRetriever = Annotated[ + Union[KeywordRetriever, NearestNeighbourRetriever], Field(discriminator="type") +] + + +RRFRetrieverFilterTypedDict = TypeAliasType( + "RRFRetrieverFilterTypedDict", + Union[ + AndTypedDict, + OrTypedDict, + NotTypedDict, + EqualTypedDict, + InTypedDict, + RangeTypedDict, + ], +) + + +RRFRetrieverFilter = Annotated[ + Union[And, Equal, In, Not, Or, Range], Field(discriminator="type") +] + + +class RRFRetrieverTypedDict(TypedDict): + r"""Fuse child retriever rankings via reciprocal rank fusion.""" + + retrievers: List[RRFRetrieverRetrieverTypedDict] + top_k: NotRequired[int] + type: Literal["rrf"] + weights: NotRequired[Nullable[List[float]]] + rank_constant: NotRequired[int] + filter_: NotRequired[Nullable[RRFRetrieverFilterTypedDict]] + + +class RRFRetriever(BaseModel): + r"""Fuse child retriever rankings via reciprocal rank fusion.""" + + retrievers: List[RRFRetrieverRetriever] + + top_k: Optional[int] = 20 + + type: Annotated[ + Annotated[Literal["rrf"], AfterValidator(validate_const("rrf"))], + pydantic.Field(alias="type"), + ] = "rrf" + + weights: OptionalNullable[List[float]] = UNSET + + rank_constant: Optional[int] = 60 + + filter_: Annotated[ + SerializeAsAny[OptionalNullable[RRFRetrieverFilter]], + pydantic.Field(alias="filter"), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["top_k", "weights", "rank_constant", "filter"]) + nullable_fields = set(["weights", "filter"]) + 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: + RRFRetriever.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/searchrequest.py b/src/mistralai/client/models/searchrequest.py index d2bd190c0..ac65e245c 100644 --- a/src/mistralai/client/models/searchrequest.py +++ b/src/mistralai/client/models/searchrequest.py @@ -7,26 +7,32 @@ NearestNeighbourRetriever, NearestNeighbourRetrieverTypedDict, ) +from .rrfretriever import RRFRetriever, RRFRetrieverTypedDict from mistralai.client.types import BaseModel from pydantic import Field from typing import Union from typing_extensions import Annotated, TypeAliasType, TypedDict -RetrieverTypedDict = TypeAliasType( - "RetrieverTypedDict", - Union[KeywordRetrieverTypedDict, NearestNeighbourRetrieverTypedDict], +SearchRequestRetrieverTypedDict = TypeAliasType( + "SearchRequestRetrieverTypedDict", + Union[ + KeywordRetrieverTypedDict, + RRFRetrieverTypedDict, + NearestNeighbourRetrieverTypedDict, + ], ) -Retriever = Annotated[ - Union[KeywordRetriever, NearestNeighbourRetriever], Field(discriminator="type") +SearchRequestRetriever = Annotated[ + Union[KeywordRetriever, NearestNeighbourRetriever, RRFRetriever], + Field(discriminator="type"), ] class SearchRequestTypedDict(TypedDict): - retriever: RetrieverTypedDict + retriever: SearchRequestRetrieverTypedDict class SearchRequest(BaseModel): - retriever: Retriever + retriever: SearchRequestRetriever diff --git a/src/mistralai/client/models/spandatasetmapping.py b/src/mistralai/client/models/spandatasetmapping.py new file mode 100644 index 000000000..84c5c7e8a --- /dev/null +++ b/src/mistralai/client/models/spandatasetmapping.py @@ -0,0 +1,23 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: a6d07c423bd3 + +from __future__ import annotations +from .spandatasetsourcereference import ( + SpanDatasetSourceReference, + SpanDatasetSourceReferenceTypedDict, +) +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class SpanDatasetMappingTypedDict(TypedDict): + target_field: str + r"""Literal top-level key to create in the dataset record payload.""" + source_field: SpanDatasetSourceReferenceTypedDict + + +class SpanDatasetMapping(BaseModel): + target_field: str + r"""Literal top-level key to create in the dataset record payload.""" + + source_field: SpanDatasetSourceReference diff --git a/src/mistralai/client/models/spandatasetmappingcontract.py b/src/mistralai/client/models/spandatasetmappingcontract.py new file mode 100644 index 000000000..844430f98 --- /dev/null +++ b/src/mistralai/client/models/spandatasetmappingcontract.py @@ -0,0 +1,45 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 44425c212cc7 + +from __future__ import annotations +from .spandatasetmapping import SpanDatasetMapping, SpanDatasetMappingTypedDict +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 SpanDatasetMappingContractTypedDict(TypedDict): + r"""Mapping rules applied independently to every requested telemetry span. + + Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array + source omits the target key. JSON object and array strings become structured values; + scalar-looking and malformed JSON strings remain strings. + """ + + mappings: List[SpanDatasetMappingTypedDict] + version: Literal[1] + + +class SpanDatasetMappingContract(BaseModel): + r"""Mapping rules applied independently to every requested telemetry span. + + Version 1 mappings are optional per span: a missing, null, blank-string, or empty-array + source omits the target key. JSON object and array strings become structured values; + scalar-looking and malformed JSON strings remain strings. + """ + + mappings: List[SpanDatasetMapping] + + version: Annotated[ + Annotated[Literal[1], AfterValidator(validate_const(1))], + pydantic.Field(alias="version"), + ] = 1 + + +try: + SpanDatasetMappingContract.model_rebuild() +except NameError: + pass diff --git a/src/mistralai/client/models/spandatasetsourcenamespace.py b/src/mistralai/client/models/spandatasetsourcenamespace.py new file mode 100644 index 000000000..a16d134af --- /dev/null +++ b/src/mistralai/client/models/spandatasetsourcenamespace.py @@ -0,0 +1,12 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: aef12a752deb + +from __future__ import annotations +from typing import Literal + + +SpanDatasetSourceNamespace = Literal[ + "span_attributes", + "resource_attributes", +] +r"""Attribute maps that may supply dataset payload values.""" diff --git a/src/mistralai/client/models/spandatasetsourcereference.py b/src/mistralai/client/models/spandatasetsourcereference.py new file mode 100644 index 000000000..9d77fa6a6 --- /dev/null +++ b/src/mistralai/client/models/spandatasetsourcereference.py @@ -0,0 +1,22 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 857ec9b63765 + +from __future__ import annotations +from .spandatasetsourcenamespace import SpanDatasetSourceNamespace +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class SpanDatasetSourceReferenceTypedDict(TypedDict): + namespace: SpanDatasetSourceNamespace + r"""Attribute maps that may supply dataset payload values.""" + key: str + r"""Literal attribute dictionary key; dots do not denote a nested path.""" + + +class SpanDatasetSourceReference(BaseModel): + namespace: SpanDatasetSourceNamespace + r"""Attribute maps that may supply dataset payload values.""" + + key: str + r"""Literal attribute dictionary key; dots do not denote a nested path.""" diff --git a/src/mistralai/client/models/telemetryspanreference.py b/src/mistralai/client/models/telemetryspanreference.py new file mode 100644 index 000000000..0186abaac --- /dev/null +++ b/src/mistralai/client/models/telemetryspanreference.py @@ -0,0 +1,21 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: fed9346ce15f + +from __future__ import annotations +from mistralai.client.types import BaseModel +from typing_extensions import TypedDict + + +class TelemetrySpanReferenceTypedDict(TypedDict): + r"""Immutable provenance used to identify a telemetry span.""" + + trace_id: str + span_id: str + + +class TelemetrySpanReference(BaseModel): + r"""Immutable provenance used to identify a telemetry span.""" + + trace_id: str + + span_id: str diff --git a/src/mistralai/client/models/unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop.py b/src/mistralai/client/models/unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop.py new file mode 100644 index 000000000..96c6575bb --- /dev/null +++ b/src/mistralai/client/models/unharden_deployment_v1_workflows_deployments_deployment_id_unharden_postop.py @@ -0,0 +1,61 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 7bca8ab027ef + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata +from pydantic import model_serializer +from typing_extensions import Annotated, NotRequired, TypedDict + + +class UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequestTypedDict( + TypedDict +): + deployment_id: str + workspace_id: NotRequired[Nullable[str]] + r"""Workspace ID to scope the request to. Defaults to the caller's context.""" + + +class UnhardenDeploymentV1WorkflowsDeploymentsDeploymentIDUnhardenPostRequest( + BaseModel +): + deployment_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + workspace_id: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Workspace ID to scope the request to. Defaults to the caller's context.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["workspace_id"]) + nullable_fields = set(["workspace_id"]) + 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/usageinfo_dollar_defs.py b/src/mistralai/client/models/usageinfo_dollar_defs.py index 20686bff2..c42882eee 100644 --- a/src/mistralai/client/models/usageinfo_dollar_defs.py +++ b/src/mistralai/client/models/usageinfo_dollar_defs.py @@ -27,6 +27,8 @@ class UsageInfoDollarDefsTypedDict(TypedDict): request_count: NotRequired[Nullable[int]] prompt_tokens_details: NotRequired[Nullable[PromptTokensDetailsTypedDict]] completion_tokens_details: NotRequired[Nullable[CompletionTokensDetailsTypedDict]] + service_tier: NotRequired[Nullable[str]] + r"""The service tier at which the request was processed: standard or priority.""" prompt_token_details: NotRequired[Nullable[PromptTokensDetailsTypedDict]] num_cached_tokens: NotRequired[Nullable[int]] @@ -46,6 +48,9 @@ class UsageInfoDollarDefs(BaseModel): completion_tokens_details: OptionalNullable[CompletionTokensDetails] = UNSET + service_tier: OptionalNullable[str] = UNSET + r"""The service tier at which the request was processed: standard or priority.""" + prompt_token_details: OptionalNullable[PromptTokensDetails] = UNSET num_cached_tokens: OptionalNullable[int] = UNSET @@ -61,6 +66,7 @@ def serialize_model(self, handler): "request_count", "prompt_tokens_details", "completion_tokens_details", + "service_tier", "prompt_token_details", "num_cached_tokens", ] @@ -72,6 +78,7 @@ def serialize_model(self, handler): "request_count", "prompt_tokens_details", "completion_tokens_details", + "service_tier", "prompt_token_details", "num_cached_tokens", ] diff --git a/src/mistralai/client/models/users_api_get_identityop.py b/src/mistralai/client/models/users_api_get_identityop.py index f15cb2ee4..4049c729b 100644 --- a/src/mistralai/client/models/users_api_get_identityop.py +++ b/src/mistralai/client/models/users_api_get_identityop.py @@ -2,18 +2,21 @@ # @generated-id: c2f2ad3f3d91 from __future__ import annotations -from mistralai.client.types import BaseModel +from mistralai.client.types import BaseModel, UNSET_SENTINEL from mistralai.client.utils import FieldMetadata, SecurityMetadata -from typing_extensions import Annotated, TypedDict +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict class UsersAPIGetIdentitySecurityTypedDict(TypedDict): - dashboard_user_context_auth: str + dashboard_user_context_auth: NotRequired[str] + bearer_user_context_auth: NotRequired[str] class UsersAPIGetIdentitySecurity(BaseModel): dashboard_user_context_auth: Annotated[ - str, + Optional[str], FieldMetadata( security=SecurityMetadata( scheme=True, @@ -22,4 +25,32 @@ class UsersAPIGetIdentitySecurity(BaseModel): 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(["DashboardUserContextAuth", "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/users_api_list_organizationsop.py b/src/mistralai/client/models/users_api_list_organizationsop.py index 46ad22a75..18e807dc9 100644 --- a/src/mistralai/client/models/users_api_list_organizationsop.py +++ b/src/mistralai/client/models/users_api_list_organizationsop.py @@ -14,12 +14,13 @@ class UsersAPIListOrganizationsSecurityTypedDict(TypedDict): - dashboard_user_context_auth: str + dashboard_user_context_auth: NotRequired[str] + bearer_user_context_auth: NotRequired[str] class UsersAPIListOrganizationsSecurity(BaseModel): dashboard_user_context_auth: Annotated[ - str, + Optional[str], FieldMetadata( security=SecurityMetadata( scheme=True, @@ -28,7 +29,35 @@ class UsersAPIListOrganizationsSecurity(BaseModel): 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(["DashboardUserContextAuth", "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 class UsersAPIListOrganizationsRequestTypedDict(TypedDict): diff --git a/src/mistralai/client/models/users_api_list_workspacesop.py b/src/mistralai/client/models/users_api_list_workspacesop.py index acee8b8b2..c74308b7e 100644 --- a/src/mistralai/client/models/users_api_list_workspacesop.py +++ b/src/mistralai/client/models/users_api_list_workspacesop.py @@ -20,12 +20,13 @@ class UsersAPIListWorkspacesSecurityTypedDict(TypedDict): - dashboard_user_context_auth: str + dashboard_user_context_auth: NotRequired[str] + bearer_user_context_auth: NotRequired[str] class UsersAPIListWorkspacesSecurity(BaseModel): dashboard_user_context_auth: Annotated[ - str, + Optional[str], FieldMetadata( security=SecurityMetadata( scheme=True, @@ -34,7 +35,35 @@ class UsersAPIListWorkspacesSecurity(BaseModel): 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(["DashboardUserContextAuth", "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 class UsersAPIListWorkspacesRequestTypedDict(TypedDict): diff --git a/src/mistralai/client/runs.py b/src/mistralai/client/runs.py index 84742115f..7e9a3fe4c 100644 --- a/src/mistralai/client/runs.py +++ b/src/mistralai/client/runs.py @@ -61,7 +61,7 @@ def list_runs( :param include_internal: Include runs of internal/technical workflows (e.g. parallel-execution) :param page_size: Number of items per page :param next_page_token: Token for the next page of results - :param search_key: Filter executions by search key as repeated 'key:value' entries. Each entry matches an exact key and a similar value; multiple entries are AND'd together (max 3). + :param search_key: Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null. :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 @@ -256,7 +256,7 @@ async def list_runs_async( :param include_internal: Include runs of internal/technical workflows (e.g. parallel-execution) :param page_size: Number of items per page :param next_page_token: Token for the next page of results - :param search_key: Filter executions by search key as repeated 'key:value' entries. Each entry matches an exact key and a similar value; multiple entries are AND'd together (max 3). + :param search_key: Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null. :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 diff --git a/src/mistralai/client/spans.py b/src/mistralai/client/spans.py index 9a21ebf25..3241cc4d3 100644 --- a/src/mistralai/client/spans.py +++ b/src/mistralai/client/spans.py @@ -506,6 +506,276 @@ async def aggregate_async( raise errors.SDKError("Unexpected response received", http_res) + def aggregate_span_evaluations( + self, + *, + metric: Union[models.MetricDefinition, models.MetricDefinitionTypedDict], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + dimensions: Optional[Iterable[str]] = None, + time_dimension: OptionalNullable[ + Union[models.TimeDimension, models.TimeDimensionTypedDict] + ] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + Union[ + Iterable[models.OrderByClause], Iterable[models.OrderByClauseTypedDict] + ] + ] = UNSET, + limit: Optional[int] = 1000, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.Aggregation: + r"""Aggregate span evaluations + + :param metric: + :param from_: + :param to: + :param dimensions: + :param time_dimension: + :param search_expression: + :param order_by: + :param limit: + :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.AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest( + from_=from_, + to=to, + aggregation_request=models.AggregationRequest( + metric=utils.get_pydantic_model(metric, models.MetricDefinition), + dimensions=utils.unmarshal(dimensions, Optional[List[str]]), + time_dimension=utils.get_pydantic_model( + time_dimension, OptionalNullable[models.TimeDimension] + ), + search_expression=search_expression, + order_by=utils.get_pydantic_model( + order_by, OptionalNullable[List[models.OrderByClause]] + ), + limit=limit, + ), + ) + + req = self._build_request( + method="POST", + path="/v1/observability/spans/evaluations/aggregate", + 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.aggregation_request, + False, + False, + "json", + models.AggregationRequest, + ), + 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="aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_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.Aggregation, 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 aggregate_span_evaluations_async( + self, + *, + metric: Union[models.MetricDefinition, models.MetricDefinitionTypedDict], + from_: OptionalNullable[datetime] = UNSET, + to: OptionalNullable[datetime] = UNSET, + dimensions: Optional[Iterable[str]] = None, + time_dimension: OptionalNullable[ + Union[models.TimeDimension, models.TimeDimensionTypedDict] + ] = UNSET, + search_expression: OptionalNullable[str] = UNSET, + order_by: OptionalNullable[ + Union[ + Iterable[models.OrderByClause], Iterable[models.OrderByClauseTypedDict] + ] + ] = UNSET, + limit: Optional[int] = 1000, + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> models.Aggregation: + r"""Aggregate span evaluations + + :param metric: + :param from_: + :param to: + :param dimensions: + :param time_dimension: + :param search_expression: + :param order_by: + :param limit: + :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.AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest( + from_=from_, + to=to, + aggregation_request=models.AggregationRequest( + metric=utils.get_pydantic_model(metric, models.MetricDefinition), + dimensions=utils.unmarshal(dimensions, Optional[List[str]]), + time_dimension=utils.get_pydantic_model( + time_dimension, OptionalNullable[models.TimeDimension] + ), + search_expression=search_expression, + order_by=utils.get_pydantic_model( + order_by, OptionalNullable[List[models.OrderByClause]] + ), + limit=limit, + ), + ) + + req = self._build_request_async( + method="POST", + path="/v1/observability/spans/evaluations/aggregate", + 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.aggregation_request, + False, + False, + "json", + models.AggregationRequest, + ), + 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="aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_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.Aggregation, 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 search_span_evaluations( self, *,