diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index be9139dd..5fdfe154 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: 768b95bae346fab20786ea40526ab060 + docChecksum: 994823d81ea03686a5a8554a6d1fa7d2 docVersion: 1.0.0 speakeasyVersion: 1.763.6 generationVersion: 2.884.13 releaseVersion: 2.5.0 - configChecksum: be6d32d9ea21e5c5e04fd926766a187e + configChecksum: 693a37765d2afc63baa0f7e1ddaceb33 repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: 2bef69a3-e409-4436-88bf-ed28aac177f8 - pristine_commit_hash: 3dd86102320bfe268fd887e313255d4686722ffb - pristine_tree_hash: 02a564676abb3ea77e1becfd0377503022ec0c8d + generation_id: 602c1433-9fff-4506-9216-eaa9312f69cc + pristine_commit_hash: f26011d354ab8b7e43fa419d1a53654a94e2b974 + pristine_tree_hash: d6d7aabc264a064ee810f64c3d1fcecca6e63b4c features: python: acceptHeaders: 3.0.0 @@ -1025,8 +1025,8 @@ trackedFiles: pristine_git_object: c16cd1a18d6d584a99af8116c1032d64a78eefa0 docs/models/credentialsstatuserrorreason.md: id: 6429339b71cd - last_write_checksum: sha1:edb3427edb2f353c9a50152944b960fff61c16b1 - pristine_git_object: 304fb78450a558807ccd68db81382859e6ad1f17 + last_write_checksum: sha1:de5a423cc6ee311752dababb36dcd4ebce197756 + pristine_git_object: 7bcc53994a5223a8c475b207feb935aac36b59ad docs/models/customconnector.md: id: 7bcc77607afa last_write_checksum: sha1:ce9e8ffac3f83e08269fbed5d2dffbfeb9f8649a @@ -1295,6 +1295,10 @@ trackedFiles: id: 93ea56c33110 last_write_checksum: sha1:1420c961938f933b4bbff4b2a2086983a0a3eca7 pristine_git_object: b8cbe716fd77c9f7ece39e69efd99fe3bc75ba69 + docs/models/executiontraceinforesponse.md: + id: a0fe482a3a05 + last_write_checksum: sha1:e6e8507c0d25adcc4dc159534759f107a78bc00b + pristine_git_object: 0316b14cf28b8724e6d2f26f867747a12af6d651 docs/models/exportdatasetresponse.md: id: f4594898de85 last_write_checksum: sha1:2e68bd840ee44b5b61aac0945d608060bd6506f4 @@ -1637,16 +1641,20 @@ trackedFiles: pristine_git_object: e681e674a011fcd31373c4885c862717a04a6b6f docs/models/getsearchindexdetailresponseindex.md: id: 0501ff5d9d55 - last_write_checksum: sha1:20d1d6a39b56cb16c316d793cb4e32fd35ad752f - pristine_git_object: 7a849d7844143318b1047f27cf924c191372cedd + last_write_checksum: sha1:ce2c81d72b7143cf32eb2797e782b8b9a781e032 + pristine_git_object: f0f92077e5c69861e888f4d4a6de66aff8ca0fdd + docs/models/getsearchindexdetailresponseindexstatus.md: + id: 51008962dba3 + last_write_checksum: sha1:44212b51423fa069fdfd6abe81583d00a2f4a62e + pristine_git_object: 066e93419f179c1737cc77150d804ceaecf69a3c docs/models/getsearchindexdetailresponseschemamodel.md: id: a8a129ea69c6 last_write_checksum: sha1:31feec7a0bc41f6c691f22da8361bdded2b01da9 pristine_git_object: 7ece62e4330786e96e673d64bae0da4823840af4 docs/models/getsearchindexschemadetailresponsefield.md: id: 56780eb11149 - last_write_checksum: sha1:99896687cf06eaac37073e4aa69f419833f72b3f - pristine_git_object: 83274ff3f5523a897e3de23a9c4ba023ee6bb6ca + last_write_checksum: sha1:995321573c7e233524263553469d3279312f91f6 + pristine_git_object: 03275624e97ee642821fc620295002a57a5feeb7 docs/models/getsearchindexschemadetailresponseschemamodel.md: id: b84ac3bcd14c last_write_checksum: sha1:3b96c09af457c84b4df36f385a8f6528dbe08e2d @@ -1803,6 +1811,10 @@ trackedFiles: id: 6722ae5f7115 last_write_checksum: sha1:2764ba45e55fe648e50f8d397826cebbf3a3dced pristine_git_object: 4a1d8021877186295dcdaedea6a40429267f0668 + docs/models/getworkflowexecutiontraceinforequest.md: + id: d2d2a1066e17 + last_write_checksum: sha1:45028b5326882001c8da1b948aea481ef7bfaa7c + pristine_git_object: 29ed0b2e6b17598187a2b77eb3c3a8cb096d479d docs/models/getworkflowexecutiontraceotelrequest.md: id: b74d60dc0f0a last_write_checksum: sha1:48145598f7e45876a30bf3018a7da8c1bdfacaab @@ -2829,8 +2841,8 @@ trackedFiles: pristine_git_object: 37f7061f78d5a00e20628a10450b0d85ecbfcb54 docs/models/registersearchindexrequestvespaschemafield.md: id: 76f329d4daa2 - last_write_checksum: sha1:cd9b2a90fde4f7482ffca982384174bd504435ed - pristine_git_object: 4612ee51b1b9abc3f1f2e7dfecdcdc4cc45ca516 + last_write_checksum: sha1:69d211345037a0ce9bc1e16e40a0a525b10130e0 + pristine_git_object: 754a519c0e9af3c4be654a635ffb8c8c36e09673 docs/models/registersearchindexrequestvespaschemamodel.md: id: 6732baa3f74b last_write_checksum: sha1:b61531fa2f8530605c7645cf81d39498077b8ac4 @@ -2995,18 +3007,22 @@ trackedFiles: id: c093e67b0d4d last_write_checksum: sha1:c8f57f472e2df609a23d94bf07684348bb007d04 pristine_git_object: f849e1ae2896ee6db55c7af27f575f9f6c8c9132 + docs/models/schemafielddatatype.md: + id: 98f2fef83098 + last_write_checksum: sha1:14210521769a0a074a8ab1ca0a4c9ff1ec4bd772 + pristine_git_object: 685b8a2a6eab6843030450b3227dcced6baf9a85 docs/models/schemafieldindex.md: id: 341817a0930d - last_write_checksum: sha1:ed3611a6071217bc928258d08e2b32a5814a965c - pristine_git_object: 5e8eb25d0b05e5a205cd6862cee0d227738a45d8 + last_write_checksum: sha1:a3fc674c3a9bc392cd4e7e91ed842fc452c2e490 + pristine_git_object: 93572ec444349c962c63934b73defd4eb7a84e4b + docs/models/schemafieldrankingtype.md: + id: e0db6aeb7ff3 + last_write_checksum: sha1:b010c47e642446932fe01d53bdc0242ac20373bd + pristine_git_object: 6236c7f4bc704c35bc271aafcf47c1978255449d docs/models/schemafieldstorage.md: id: 730b7561c028 - last_write_checksum: sha1:7a960eac533bdcfd03118ccba16e77630d392add - pristine_git_object: ea5dad7527ab6a25f261af330feea3dd374cf4bb - docs/models/schemafieldtype.md: - id: e1ce847f660d - last_write_checksum: sha1:c0b0254381d2571c3844321465c61676321724c4 - pristine_git_object: 340515990b682925fa7f0848b692049da32bec25 + last_write_checksum: sha1:8e700af937def11ebca2c7c8c39fe693f434e978 + pristine_git_object: 82893a86eb7828b0e52952f450833024ac68de6f docs/models/scope.md: id: c7d8338540ba last_write_checksum: sha1:08e688325601e4c4614cc6b7264ea4d2f631da36 @@ -4041,8 +4057,8 @@ trackedFiles: pristine_git_object: de6b43fcbbcbadef17a4e35978815289146925ec docs/sdks/executions/README.md: id: 401745b17323 - last_write_checksum: sha1:9c24c43329ad76b7045f127ed3f163b6d0a4e8a6 - pristine_git_object: 80a14e3ced64586f215064b9a4b958c279695fc9 + last_write_checksum: sha1:3b3fe5f48d9f3ffb85ee078504246e52bc8e9420 + pristine_git_object: f65e55ee702d8b43ae6a44caaac83453d5f6a411 docs/sdks/fields/README.md: id: fdb6c4f3bd69 last_write_checksum: sha1:ea6dea75f85d25fd0ccdd2c659ecec43d0e5242d @@ -4157,8 +4173,8 @@ trackedFiles: pristine_git_object: 036d44b8cfc51599873bd5c401a6aed30450536c src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:17181000dd917efe132d35e2e2eadf248cf4d827 - pristine_git_object: 55510e30f8e4c3a5402f6c81a304f36188e960f0 + last_write_checksum: sha1:6f3704e1a664648466eff73171e4a5e1111d1b75 + pristine_git_object: 57656b1fd43f37d85a85e26d106075a26820841b src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:33d8a0663a647b7a7e1946064d05c3b40e538816 @@ -4265,8 +4281,8 @@ trackedFiles: pristine_git_object: 6ce1897365d66d1ae32e435388b41add3eb3464f src/mistralai/client/executions.py: id: 974004d347a2 - last_write_checksum: sha1:3de59c0fe6d220a09105118945cb9d61b150c379 - pristine_git_object: ebb03f07893f0573057f51f072c8a754426b491f + last_write_checksum: sha1:2102b7c498385b93cd0c85ddce5e638aefda842f + pristine_git_object: 806f59e46945819e999a29506c190e808447293e src/mistralai/client/fields.py: id: 862335210b20 last_write_checksum: sha1:52a113e4ba06571c5a5072e196d59b84ee936f3d @@ -4313,8 +4329,8 @@ trackedFiles: pristine_git_object: d0b6b4fc091393e6e8a75f158363baa8e2ea21d4 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:dacb65813d07d5c3c70aa2ed9ebe88423e327742 - pristine_git_object: 93fc3af7ea3a2b32e53a55bddcdcdaa139f052c6 + last_write_checksum: sha1:a9a04752bfc3d4da26e60fde4f7d79a7b0a698a7 + pristine_git_object: 2e6093a560f11529cf9b72d91b7c7fa775acc560 src/mistralai/client/models/activitytaskcompletedattributesresponse.py: id: 8174941767cc last_write_checksum: sha1:b5246e203765ba0532a6a65d391bdd237ab2c891 @@ -4985,8 +5001,8 @@ trackedFiles: pristine_git_object: a36a20ad94e89a98d84f10f6b3690053437f924d src/mistralai/client/models/credentialsstatuserrorreason.py: id: 63651566faee - last_write_checksum: sha1:78c44501daa1ad6d6302aec32e19771e0809326d - pristine_git_object: 9c1ebd01093f7e82ff67a919e0b38613285dd59c + last_write_checksum: sha1:14d8eb0081524a3378efa55f795a5962d6d3a042 + pristine_git_object: 7955d16a10091d550a207b4cfbb73d1283b9f5b6 src/mistralai/client/models/customconnector.py: id: 14f3643f7703 last_write_checksum: sha1:2162c7e4b3a9c747c5da88e72315d138f28dea5d @@ -5231,6 +5247,10 @@ trackedFiles: id: 313d88a97140 last_write_checksum: sha1:ac13ed1fb5866a8660bfbd8d9dde7e24b9518ba5 pristine_git_object: 2bbc5332a1d49f571aba8e0173b09fc5ff93f3b5 + src/mistralai/client/models/executiontraceinforesponse.py: + id: 1839f4a33582 + last_write_checksum: sha1:8a8b029ca71b8feb2a8e4034f247c64cce1260c1 + pristine_git_object: afea2a13b81a81735aa7157c2278a0fcc458ebd0 src/mistralai/client/models/export_dataset_to_jsonl_v1_observability_datasets_dataset_id_exports_to_jsonl_getop.py: id: 74f5f3183b64 last_write_checksum: sha1:8d7dde90d9c55b520aa9300a25c843a0b866638b @@ -5567,6 +5587,10 @@ trackedFiles: id: 75438195bf19 last_write_checksum: sha1:3fc47c8b7c301c1029f6a10e30298d8bc776d140 pristine_git_object: a60fb536b9e4dd1ab8a2256d1cc28235752c34f2 + src/mistralai/client/models/get_workflow_execution_trace_infoop.py: + id: 2e9818ffab8a + last_write_checksum: sha1:412cf2adad478e55507081849cacaf52930b3c97 + pristine_git_object: a256ff9f0e355a3fe43abdaa26e5a8ad82c49a0c src/mistralai/client/models/get_workflow_execution_trace_otelop.py: id: f24457d6ea21 last_write_checksum: sha1:33ddf619eb30b950d5e2120b432a8dc1b3acb10a @@ -5621,16 +5645,16 @@ trackedFiles: pristine_git_object: a6f91a87a723c9b738f3778b4e1a7a557ca2bfe3 src/mistralai/client/models/getsearchindexdetailresponseindex.py: id: 06fd24dda86b - last_write_checksum: sha1:2f72302f7154d124e767359de5b9413ce36f3714 - pristine_git_object: 0d8f53c2b24c63360433f7cde2d1016f03816c88 + last_write_checksum: sha1:3d5c8f633e74ba051b96cf39bb6296672f49aea5 + pristine_git_object: 0ffd32acf631d7b303e8cd80d6ada65650bc07c5 src/mistralai/client/models/getsearchindexdetailresponseschemamodel.py: id: 62dcfab09ce7 last_write_checksum: sha1:708caf4232db3969beb450b782f22feea08912ea pristine_git_object: 9afc479c2c218a66789bfaaf644c58980f52679d src/mistralai/client/models/getsearchindexschemadetailresponsefield.py: id: 9a63e248e0d3 - last_write_checksum: sha1:ec49c8a1c56440ac22fa46f07a3021924b21b1a4 - pristine_git_object: f3a6a75e7ef5cb91665286bd91c37a8be32fb369 + last_write_checksum: sha1:5907e479e5f397e73552c1e810a72b895339c9b4 + pristine_git_object: f378412960208d74e32eb50d60a0105deeaf282c src/mistralai/client/models/getsearchindexschemadetailresponseschemamodel.py: id: 3b8b1de4ac82 last_write_checksum: sha1:d548c9a2623c6581cbe6720c620d0bab17d4f6a3 @@ -6513,8 +6537,8 @@ trackedFiles: pristine_git_object: d800528e72fef591dcb276e9fdb9d353b8c3096b src/mistralai/client/models/registersearchindexrequestvespaschemafield.py: id: 89c0feb14bcb - last_write_checksum: sha1:7c14a44d7f45b5257f881bcba5e3b66d0ec95fbb - pristine_git_object: 5df4079138dc6d70846430fe2ed6af2d47eb18c4 + last_write_checksum: sha1:96f6c0e712d48c8c2e2df3d52b34a46061273a88 + pristine_git_object: d01596e584f58a0406fd75c95832f8ef6d08c4a0 src/mistralai/client/models/registersearchindexrequestvespaschemamodel.py: id: 64e3586b6831 last_write_checksum: sha1:efd9f5d4289655a02b25e5c6656af63966b76932 @@ -6635,18 +6659,22 @@ trackedFiles: id: 745d146d9413 last_write_checksum: sha1:ffa517cc252189aab02c3dd0b342475e2aa2e5a5 pristine_git_object: ad46a70d3b507aac0811d7250e5a11fb26d5b32b + src/mistralai/client/models/schemafielddatatype.py: + id: c391391d0988 + last_write_checksum: sha1:a08e9146ddaa797f2c27695894fff0759d7f980d + pristine_git_object: 4a35422eb43c90d7c4416e8506539b324570e0e4 src/mistralai/client/models/schemafieldindex.py: id: 9501fc2b7fa1 - last_write_checksum: sha1:d430ab29df6adb217402f52b7b319246f804041b - pristine_git_object: 9a714b5734f1374dea792f3185057186befef64d + last_write_checksum: sha1:b9ffeb3c9ec02a67733289ed9f1c79e38b670836 + pristine_git_object: 14197c41c8627ff64d8a838e59979720abfcfded + src/mistralai/client/models/schemafieldrankingtype.py: + id: a21364283a70 + last_write_checksum: sha1:fe457fff5f014ceced101ba7ffb6d1cf6acea1a5 + pristine_git_object: fc9cf182dc2f88d5eabf780f36bb504e9aea3efc src/mistralai/client/models/schemafieldstorage.py: id: 6ec367e3cfe5 - last_write_checksum: sha1:79bde3f9d9ab2e499931961f200e1b7bc9d22843 - pristine_git_object: ec2f2c00f68099e78dac8f1783c88b663b96de28 - src/mistralai/client/models/schemafieldtype.py: - id: 5cdea5242c04 - last_write_checksum: sha1:a712bcafad25bf74874211f249ced4c9c97b115a - pristine_git_object: 5365d25730a851e3a4847d0e4c09c88f1de53de6 + last_write_checksum: sha1:bca21bf0ae2126a129be44b1ebe0938f195bff69 + pristine_git_object: b330be9838052a7af3b11eed61c55358f132445e src/mistralai/client/models/search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop.py: id: 26821a9e16a7 last_write_checksum: sha1:670cb56fbed3d0ab3cf90f091643657a80e2db2b @@ -6917,24 +6945,24 @@ trackedFiles: pristine_git_object: 8d3773752444db865c0e2629ad9eed66eb7f2bc6 src/mistralai/client/models/tool.py: id: 48b4f6f50fe9 - last_write_checksum: sha1:ed3725d5da10e6a201f73724a2bbf618bdbb2a33 - pristine_git_object: 1d1c5ce557321c33b036949fa4c625fb25e38f95 + last_write_checksum: sha1:fc8c9c2047da519d49cf8d88c1cfb3fc871d47db + pristine_git_object: 08342b5a8fd00e93dabd291fe890a830f4ec7497 src/mistralai/client/models/toolannotations.py: id: 2ae257a35b01 last_write_checksum: sha1:6f7c174966fc9a9fee5de7c8dfa4dbf2064c10e4 pristine_git_object: b2e9b94808b96b859d29c42aa0d5ca994761a395 src/mistralai/client/models/toolcall.py: id: fb34a1a3f3c2 - last_write_checksum: sha1:a0e14e69a107d88239e1ee43d2e8fd498eb034a4 - pristine_git_object: 29f1149cd07dfc2744a1088d271af65e4ad70012 + last_write_checksum: sha1:207b380037ae318a25e755ae1b45b1fc2b514d41 + pristine_git_object: 82ca4c2bdccfa590dbddd5dfa4f47e2f42c40a87 src/mistralai/client/models/toolcallconfirmation.py: id: f2e953cfb4fe last_write_checksum: sha1:554a2e073917ffb479efe5887c0b59a2f4967c6e pristine_git_object: fd6eca50a7ec2f4cca2ae20958717881660e0ac5 src/mistralai/client/models/toolchoice.py: id: 14f7e4cc35b6 - last_write_checksum: sha1:531f7ac1d7cd7d99b79756b9c673463dd33f2011 - pristine_git_object: ce84573ae34624b1e07f7001d3a00bf36d620e5f + last_write_checksum: sha1:f1ef374d931d83e94b1b77c3b6cd38ffe667583a + pristine_git_object: 11e4a3b1ec41218fb5281e6d4b845b9798627be5 src/mistralai/client/models/toolchoiceenum.py: id: c7798801f860 last_write_checksum: sha1:5388b2a6fad842f8e4ae79e6257b4d14c122a6ff @@ -10565,7 +10593,7 @@ examples: index_id: "f6ffec01-1f00-47ec-bf94-a08bdc049edc" responses: "200": - application/json: {"name": "", "vespa_version": "", "summary": "", "schemas": []} + application/json: {"name": "", "creator_id": "", "document_count": 978642, "status": "online", "created_at": "2026-11-03T10:52:13.796Z", "modified_at": "2026-11-04T08:58:23.836Z", "vespa_version": "", "summary": "", "schemas": []} "422": application/json: {} set_index_summary_v1_rag_indexes_index__index_id__summary_field_put: @@ -10659,6 +10687,16 @@ examples: application/json: [{"id": "", "fields": {"key": ""}}] "422": application/json: {} + get_workflow_execution_trace_info: + speakeasy-default-get-workflow-execution-trace-info: + parameters: + path: + execution_id: "" + responses: + "200": + application/json: {"has_trace_data": false} + "422": + application/json: {} examplesVersion: 1.0.2 generatedTests: {} generatedFiles: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c96847e0..4e297f94 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,11 +16,11 @@ sources: - speakeasy-mistralai-gcp-sdk-26292830187-1 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:6d6509e1a41963ed7682aaa6042405a7286b7e628bdd8b718fdce61c7dd908fb - sourceBlobDigest: sha256:4e2ee25e2d06e15f3491fc555e08ede7dac22704f4e3dcd6eac4bf279954a828 + sourceRevisionDigest: sha256:ddbcd8c88d920a20f03b9ac87c6ca4790b037c35a47c6bf36ac39583ce4885f8 + sourceBlobDigest: sha256:ad727e9c559a0631b55d576a0ae711d8e74e9daa1265381654c5be99d7561153 tags: - latest - - speakeasy-mistralai-sdk-28015256323-1 + - speakeasy-mistralai-sdk-28037174709-1 targets: mistralai-azure-sdk: source: mistral-azure-source @@ -39,10 +39,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:6d6509e1a41963ed7682aaa6042405a7286b7e628bdd8b718fdce61c7dd908fb - sourceBlobDigest: sha256:4e2ee25e2d06e15f3491fc555e08ede7dac22704f4e3dcd6eac4bf279954a828 + sourceRevisionDigest: sha256:ddbcd8c88d920a20f03b9ac87c6ca4790b037c35a47c6bf36ac39583ce4885f8 + sourceBlobDigest: sha256:ad727e9c559a0631b55d576a0ae711d8e74e9daa1265381654c5be99d7561153 codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:cec63e21ee6da5c9b56aa486f569ec55270f02d58c743854201c43b7affc4046 + codeSamplesRevisionDigest: sha256:1c7cef99b95c448d4d1f051f5155e33c8d487ef03791c0cecfc9327a01907868 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.763.6 diff --git a/README.md b/README.md index 09f38d30..571f9de6 100644 --- a/README.md +++ b/README.md @@ -776,6 +776,7 @@ print(res.choices[0].message.content) * [batch_cancel_workflow_executions](docs/sdks/executions/README.md#batch_cancel_workflow_executions) - Batch Cancel Workflow Executions * [reset_workflow](docs/sdks/executions/README.md#reset_workflow) - Reset Workflow * [update_workflow_execution](docs/sdks/executions/README.md#update_workflow_execution) - Update Workflow Execution +* [get_workflow_execution_trace_info](docs/sdks/executions/README.md#get_workflow_execution_trace_info) - Get Workflow Execution Trace Info * [get_workflow_execution_trace_otel](docs/sdks/executions/README.md#get_workflow_execution_trace_otel) - Get Workflow Execution Trace Otel * [get_workflow_execution_trace_summary](docs/sdks/executions/README.md#get_workflow_execution_trace_summary) - Get Workflow Execution Trace Summary * [get_workflow_execution_trace_events](docs/sdks/executions/README.md#get_workflow_execution_trace_events) - Get Workflow Execution Trace Events @@ -1014,8 +1015,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 144 of 227 methods.* -* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 227 methods.* +* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 145 of 228 methods.* +* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 228 methods.* * [`ResponseValidationError`](./src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute. diff --git a/RELEASES.md b/RELEASES.md index 982e3f71..704f0cfe 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -718,4 +718,14 @@ Based on: ### Generated - [python v2.5.0] . ### Releases +- [PyPI v2.5.0] https://pypi.org/project/mistralai/2.5.0 - . + +## 2026-06-23 15:35:29 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.5.0] . +### Releases - [PyPI v2.5.0] https://pypi.org/project/mistralai/2.5.0 - . \ No newline at end of file diff --git a/docs/models/credentialsstatuserrorreason.md b/docs/models/credentialsstatuserrorreason.md index 304fb784..7bcc5399 100644 --- a/docs/models/credentialsstatuserrorreason.md +++ b/docs/models/credentialsstatuserrorreason.md @@ -20,3 +20,7 @@ This is an open enum. Unrecognized values will not fail type checks. - `"unparsable credentials"` - `"you need to reconnect"` - `"oauth refresh error"` +- `"MCP server unreachable"` +- `"MCP server timed out"` +- `"MCP server error"` +- `"unknown error"` diff --git a/docs/models/executiontraceinforesponse.md b/docs/models/executiontraceinforesponse.md new file mode 100644 index 00000000..0316b14c --- /dev/null +++ b/docs/models/executiontraceinforesponse.md @@ -0,0 +1,9 @@ +# ExecutionTraceInfoResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `otel_trace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the trace, if available | +| `has_trace_data` | *Optional[bool]* | :heavy_minus_sign: | Whether trace data is available in the trace backend for this execution | \ No newline at end of file diff --git a/docs/models/getsearchindexdetailresponseindex.md b/docs/models/getsearchindexdetailresponseindex.md index 7a849d78..f0f92077 100644 --- a/docs/models/getsearchindexdetailresponseindex.md +++ b/docs/models/getsearchindexdetailresponseindex.md @@ -6,6 +6,11 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | `name` | *str* | :heavy_check_mark: | N/A | +| `creator_id` | *str* | :heavy_check_mark: | N/A | +| `document_count` | *int* | :heavy_check_mark: | N/A | +| `status` | [models.GetSearchIndexDetailResponseIndexStatus](../models/getsearchindexdetailresponseindexstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | `vespa_version` | *Nullable[str]* | :heavy_check_mark: | N/A | | `summary` | *Nullable[str]* | :heavy_check_mark: | N/A | | `schemas` | List[[models.GetSearchIndexDetailResponseSchemaModel](../models/getsearchindexdetailresponseschemamodel.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getsearchindexdetailresponseindexstatus.md b/docs/models/getsearchindexdetailresponseindexstatus.md new file mode 100644 index 00000000..066e9341 --- /dev/null +++ b/docs/models/getsearchindexdetailresponseindexstatus.md @@ -0,0 +1,18 @@ +# GetSearchIndexDetailResponseIndexStatus + +## Example Usage + +```python +from mistralai.client.models import GetSearchIndexDetailResponseIndexStatus + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: GetSearchIndexDetailResponseIndexStatus = "online" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"online"` +- `"offline"` diff --git a/docs/models/getsearchindexschemadetailresponsefield.md b/docs/models/getsearchindexschemadetailresponsefield.md index 83274ff3..03275624 100644 --- a/docs/models/getsearchindexschemadetailresponsefield.md +++ b/docs/models/getsearchindexschemadetailresponsefield.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | | `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [models.SchemaFieldType](../models/schemafieldtype.md) | :heavy_check_mark: | N/A | +| `type` | [models.SchemaFieldDataType](../models/schemafielddatatype.md) | :heavy_check_mark: | N/A | | `storage` | [models.SchemaFieldStorage](../models/schemafieldstorage.md) | :heavy_check_mark: | N/A | | `index_type` | [Nullable[models.SchemaFieldIndex]](../models/schemafieldindex.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getworkflowexecutiontraceinforequest.md b/docs/models/getworkflowexecutiontraceinforequest.md new file mode 100644 index 00000000..29ed0b2e --- /dev/null +++ b/docs/models/getworkflowexecutiontraceinforequest.md @@ -0,0 +1,8 @@ +# GetWorkflowExecutionTraceInfoRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `execution_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/registersearchindexrequestvespaschemafield.md b/docs/models/registersearchindexrequestvespaschemafield.md index 4612ee51..754a519c 100644 --- a/docs/models/registersearchindexrequestvespaschemafield.md +++ b/docs/models/registersearchindexrequestvespaschemafield.md @@ -3,9 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [models.SchemaFieldType](../models/schemafieldtype.md) | :heavy_check_mark: | N/A | -| `storage` | [models.SchemaFieldStorage](../models/schemafieldstorage.md) | :heavy_check_mark: | N/A | -| `index_type` | [Nullable[models.SchemaFieldIndex]](../models/schemafieldindex.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `name` | *str* | :heavy_check_mark: | N/A | +| `type` | [models.SchemaFieldDataType](../models/schemafielddatatype.md) | :heavy_check_mark: | N/A | +| `storage` | [models.SchemaFieldStorage](../models/schemafieldstorage.md) | :heavy_check_mark: | N/A | +| `ranking` | [models.SchemaFieldRankingType](../models/schemafieldrankingtype.md) | :heavy_check_mark: | N/A | +| `index_type` | [Nullable[models.SchemaFieldIndex]](../models/schemafieldindex.md) | :heavy_check_mark: | N/A | +| `multidimensional` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/schemafielddatatype.md b/docs/models/schemafielddatatype.md new file mode 100644 index 00000000..685b8a2a --- /dev/null +++ b/docs/models/schemafielddatatype.md @@ -0,0 +1,22 @@ +# SchemaFieldDataType + +## Example Usage + +```python +from mistralai.client.models import SchemaFieldDataType + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: SchemaFieldDataType = "int" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"int"` +- `"bool"` +- `"string"` +- `"embedding"` +- `"long"` +- `"float"` diff --git a/docs/models/schemafieldindex.md b/docs/models/schemafieldindex.md index 5e8eb25d..93572ec4 100644 --- a/docs/models/schemafieldindex.md +++ b/docs/models/schemafieldindex.md @@ -5,8 +5,8 @@ ```python from mistralai.client.models import SchemaFieldIndex -# Open enum: unrecognized values are captured as UnrecognizedInt -value: SchemaFieldIndex = 1 +# Open enum: unrecognized values are captured as UnrecognizedStr +value: SchemaFieldIndex = "ann" ``` @@ -14,6 +14,6 @@ value: SchemaFieldIndex = 1 This is an open enum. Unrecognized values will not fail type checks. -- `1` -- `2` -- `3` +- `"ann"` +- `"bm25"` +- `"attribute"` diff --git a/docs/models/schemafieldrankingtype.md b/docs/models/schemafieldrankingtype.md new file mode 100644 index 00000000..6236c7f4 --- /dev/null +++ b/docs/models/schemafieldrankingtype.md @@ -0,0 +1,20 @@ +# SchemaFieldRankingType + +## Example Usage + +```python +from mistralai.client.models import SchemaFieldRankingType +value: SchemaFieldRankingType = "count" +``` + + +## Values + +- `"count"` +- `"embedding"` +- `"timestamp"` +- `"text"` +- `"string"` +- `"bool"` +- `"int"` +- `"language"` diff --git a/docs/models/schemafieldstorage.md b/docs/models/schemafieldstorage.md index ea5dad75..82893a86 100644 --- a/docs/models/schemafieldstorage.md +++ b/docs/models/schemafieldstorage.md @@ -5,8 +5,8 @@ ```python from mistralai.client.models import SchemaFieldStorage -# Open enum: unrecognized values are captured as UnrecognizedInt -value: SchemaFieldStorage = 1 +# Open enum: unrecognized values are captured as UnrecognizedStr +value: SchemaFieldStorage = "in_memory" ``` @@ -14,5 +14,5 @@ value: SchemaFieldStorage = 1 This is an open enum. Unrecognized values will not fail type checks. -- `1` -- `2` +- `"in_memory"` +- `"on_disk"` diff --git a/docs/models/schemafieldtype.md b/docs/models/schemafieldtype.md deleted file mode 100644 index 34051599..00000000 --- a/docs/models/schemafieldtype.md +++ /dev/null @@ -1,20 +0,0 @@ -# SchemaFieldType - -## Example Usage - -```python -from mistralai.client.models import SchemaFieldType - -# Open enum: unrecognized values are captured as UnrecognizedInt -value: SchemaFieldType = 1 -``` - - -## Values - -This is an open enum. Unrecognized values will not fail type checks. - -- `1` -- `2` -- `3` -- `4` diff --git a/docs/sdks/executions/README.md b/docs/sdks/executions/README.md index 80a14e3c..f65e55ee 100644 --- a/docs/sdks/executions/README.md +++ b/docs/sdks/executions/README.md @@ -14,6 +14,7 @@ * [batch_cancel_workflow_executions](#batch_cancel_workflow_executions) - Batch Cancel Workflow Executions * [reset_workflow](#reset_workflow) - Reset Workflow * [update_workflow_execution](#update_workflow_execution) - Update Workflow Execution +* [get_workflow_execution_trace_info](#get_workflow_execution_trace_info) - Get Workflow Execution Trace Info * [get_workflow_execution_trace_otel](#get_workflow_execution_trace_otel) - Get Workflow Execution Trace Otel * [get_workflow_execution_trace_summary](#get_workflow_execution_trace_summary) - Get Workflow Execution Trace Summary * [get_workflow_execution_trace_events](#get_workflow_execution_trace_events) - Get Workflow Execution Trace Events @@ -430,6 +431,47 @@ with Mistral( | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## get_workflow_execution_trace_info + +Get Workflow Execution Trace Info + +### Example Usage + + +```python +from mistralai.client import Mistral +import os + + +with Mistral( + api_key=os.getenv("MISTRAL_API_KEY", ""), +) as mistral: + + res = mistral.workflows.executions.get_workflow_execution_trace_info(execution_id="") + + # Handle response + print(res) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `execution_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.ExecutionTraceInfoResponse](../../models/executiontraceinforesponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## get_workflow_execution_trace_otel Get Workflow Execution Trace Otel diff --git a/src/mistralai/client/executions.py b/src/mistralai/client/executions.py index ebb03f07..806f59e4 100644 --- a/src/mistralai/client/executions.py +++ b/src/mistralai/client/executions.py @@ -2024,6 +2024,188 @@ async def update_workflow_execution_async( raise errors.SDKError("Unexpected response received", http_res) + def get_workflow_execution_trace_info( + self, + *, + execution_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.ExecutionTraceInfoResponse: + r"""Get Workflow Execution Trace Info + + :param execution_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.GetWorkflowExecutionTraceInfoRequest( + execution_id=execution_id, + ) + + req = self._build_request( + method="GET", + path="/v1/workflows/executions/{execution_id}/trace/info", + 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_workflow_execution_trace_info", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + 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.ExecutionTraceInfoResponse, 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 get_workflow_execution_trace_info_async( + self, + *, + execution_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.ExecutionTraceInfoResponse: + r"""Get Workflow Execution Trace Info + + :param execution_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.GetWorkflowExecutionTraceInfoRequest( + execution_id=execution_id, + ) + + req = self._build_request_async( + method="GET", + path="/v1/workflows/executions/{execution_id}/trace/info", + 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_workflow_execution_trace_info", + oauth2_scopes=None, + security_source=get_security_from_env( + self.sdk_configuration.security, models.Security + ), + ), + 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.ExecutionTraceInfoResponse, 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 get_workflow_execution_trace_otel( self, *, diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index 93fc3af7..2e6093a5 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -867,6 +867,10 @@ ExecutionLogSearchResponseTypedDict, ) from .executiontool import ExecutionTool, ExecutionToolTypedDict + from .executiontraceinforesponse import ( + ExecutionTraceInfoResponse, + ExecutionTraceInfoResponseTypedDict, + ) from .export_dataset_to_jsonl_v1_observability_datasets_dataset_id_exports_to_jsonl_getop import ( ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequest, ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequestTypedDict, @@ -1169,6 +1173,10 @@ GetWorkflowExecutionTraceEventsRequest, GetWorkflowExecutionTraceEventsRequestTypedDict, ) + from .get_workflow_execution_trace_infoop import ( + GetWorkflowExecutionTraceInfoRequest, + GetWorkflowExecutionTraceInfoRequestTypedDict, + ) from .get_workflow_execution_trace_otelop import ( GetWorkflowExecutionTraceOtelRequest, GetWorkflowExecutionTraceOtelRequestTypedDict, @@ -1214,6 +1222,7 @@ from .getlogs import GetLogs, GetLogsTypedDict from .getsearchindexdetailresponseindex import ( GetSearchIndexDetailResponseIndex, + GetSearchIndexDetailResponseIndexStatus, GetSearchIndexDetailResponseIndexTypedDict, ) from .getsearchindexdetailresponseschemamodel import ( @@ -1986,9 +1995,10 @@ ScheduleRecentExecution, ScheduleRecentExecutionTypedDict, ) + from .schemafielddatatype import SchemaFieldDataType from .schemafieldindex import SchemaFieldIndex + from .schemafieldrankingtype import SchemaFieldRankingType from .schemafieldstorage import SchemaFieldStorage - from .schemafieldtype import SchemaFieldType from .search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop import ( SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequest, SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict, @@ -3263,6 +3273,8 @@ "ExecutionLogSearchResponseTypedDict", "ExecutionTool", "ExecutionToolTypedDict", + "ExecutionTraceInfoResponse", + "ExecutionTraceInfoResponseTypedDict", "ExportDatasetResponse", "ExportDatasetResponseTypedDict", "ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequest", @@ -3424,6 +3436,7 @@ "GetSchedulesV1WorkflowsSchedulesGetResponseTypedDict", "GetSchedulesV1WorkflowsSchedulesGetStatus", "GetSearchIndexDetailResponseIndex", + "GetSearchIndexDetailResponseIndexStatus", "GetSearchIndexDetailResponseIndexTypedDict", "GetSearchIndexDetailResponseSchemaModel", "GetSearchIndexDetailResponseSchemaModelTypedDict", @@ -3503,6 +3516,8 @@ "GetWorkflowExecutionLogsRequestTypedDict", "GetWorkflowExecutionTraceEventsRequest", "GetWorkflowExecutionTraceEventsRequestTypedDict", + "GetWorkflowExecutionTraceInfoRequest", + "GetWorkflowExecutionTraceInfoRequestTypedDict", "GetWorkflowExecutionTraceOtelRequest", "GetWorkflowExecutionTraceOtelRequestTypedDict", "GetWorkflowExecutionTraceSummaryRequest", @@ -4068,9 +4083,10 @@ "ScheduleRangeTypedDict", "ScheduleRecentExecution", "ScheduleRecentExecutionTypedDict", + "SchemaFieldDataType", "SchemaFieldIndex", + "SchemaFieldRankingType", "SchemaFieldStorage", - "SchemaFieldType", "Scope", "SearchChatCompletionEventIdsRequest", "SearchChatCompletionEventIdsRequestTypedDict", @@ -5145,6 +5161,8 @@ "ExecutionLogSearchResponseTypedDict": ".executionlogsearchresponse", "ExecutionTool": ".executiontool", "ExecutionToolTypedDict": ".executiontool", + "ExecutionTraceInfoResponse": ".executiontraceinforesponse", + "ExecutionTraceInfoResponseTypedDict": ".executiontraceinforesponse", "ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequest": ".export_dataset_to_jsonl_v1_observability_datasets_dataset_id_exports_to_jsonl_getop", "ExportDatasetToJsonlV1ObservabilityDatasetsDatasetIDExportsToJsonlGetRequestTypedDict": ".export_dataset_to_jsonl_v1_observability_datasets_dataset_id_exports_to_jsonl_getop", "ExportDatasetResponse": ".exportdatasetresponse", @@ -5332,6 +5350,8 @@ "GetWorkflowExecutionLogsRequestTypedDict": ".get_workflow_execution_logsop", "GetWorkflowExecutionTraceEventsRequest": ".get_workflow_execution_trace_eventsop", "GetWorkflowExecutionTraceEventsRequestTypedDict": ".get_workflow_execution_trace_eventsop", + "GetWorkflowExecutionTraceInfoRequest": ".get_workflow_execution_trace_infoop", + "GetWorkflowExecutionTraceInfoRequestTypedDict": ".get_workflow_execution_trace_infoop", "GetWorkflowExecutionTraceOtelRequest": ".get_workflow_execution_trace_otelop", "GetWorkflowExecutionTraceOtelRequestTypedDict": ".get_workflow_execution_trace_otelop", "GetWorkflowExecutionTraceSummaryRequest": ".get_workflow_execution_trace_summaryop", @@ -5365,6 +5385,7 @@ "GetLogs": ".getlogs", "GetLogsTypedDict": ".getlogs", "GetSearchIndexDetailResponseIndex": ".getsearchindexdetailresponseindex", + "GetSearchIndexDetailResponseIndexStatus": ".getsearchindexdetailresponseindex", "GetSearchIndexDetailResponseIndexTypedDict": ".getsearchindexdetailresponseindex", "GetSearchIndexDetailResponseSchemaModel": ".getsearchindexdetailresponseschemamodel", "GetSearchIndexDetailResponseSchemaModelTypedDict": ".getsearchindexdetailresponseschemamodel", @@ -5950,9 +5971,10 @@ "ScheduleRangeTypedDict": ".schedulerange", "ScheduleRecentExecution": ".schedulerecentexecution", "ScheduleRecentExecutionTypedDict": ".schedulerecentexecution", + "SchemaFieldDataType": ".schemafielddatatype", "SchemaFieldIndex": ".schemafieldindex", + "SchemaFieldRankingType": ".schemafieldrankingtype", "SchemaFieldStorage": ".schemafieldstorage", - "SchemaFieldType": ".schemafieldtype", "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequest": ".search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop", "SearchLatestSpanEvaluationsV1ObservabilitySpansEvaluationsSearchLatestPostRequestTypedDict": ".search_latest_span_evaluations_v1_observability_spans_evaluations_search_latest_postop", "SearchLogsV1ObservabilityLogsSearchPostRequest": ".search_logs_v1_observability_logs_search_postop", diff --git a/src/mistralai/client/models/credentialsstatuserrorreason.py b/src/mistralai/client/models/credentialsstatuserrorreason.py index 9c1ebd01..7955d16a 100644 --- a/src/mistralai/client/models/credentialsstatuserrorreason.py +++ b/src/mistralai/client/models/credentialsstatuserrorreason.py @@ -14,6 +14,10 @@ "unparsable credentials", "you need to reconnect", "oauth refresh error", + "MCP server unreachable", + "MCP server timed out", + "MCP server error", + "unknown error", ], UnrecognizedStr, ] diff --git a/src/mistralai/client/models/executiontraceinforesponse.py b/src/mistralai/client/models/executiontraceinforesponse.py new file mode 100644 index 00000000..afea2a13 --- /dev/null +++ b/src/mistralai/client/models/executiontraceinforesponse.py @@ -0,0 +1,54 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 1839f4a33582 + +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 ExecutionTraceInfoResponseTypedDict(TypedDict): + otel_trace_id: NotRequired[Nullable[str]] + r"""The ID of the trace, if available""" + has_trace_data: NotRequired[bool] + r"""Whether trace data is available in the trace backend for this execution""" + + +class ExecutionTraceInfoResponse(BaseModel): + otel_trace_id: OptionalNullable[str] = UNSET + r"""The ID of the trace, if available""" + + has_trace_data: Optional[bool] = False + r"""Whether trace data is available in the trace backend for this execution""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["otel_trace_id", "has_trace_data"]) + nullable_fields = set(["otel_trace_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/get_workflow_execution_trace_infoop.py b/src/mistralai/client/models/get_workflow_execution_trace_infoop.py new file mode 100644 index 00000000..a256ff9f --- /dev/null +++ b/src/mistralai/client/models/get_workflow_execution_trace_infoop.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 2e9818ffab8a + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing_extensions import Annotated, TypedDict + + +class GetWorkflowExecutionTraceInfoRequestTypedDict(TypedDict): + execution_id: str + + +class GetWorkflowExecutionTraceInfoRequest(BaseModel): + execution_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] diff --git a/src/mistralai/client/models/getsearchindexdetailresponseindex.py b/src/mistralai/client/models/getsearchindexdetailresponseindex.py index 0d8f53c2..0ffd32ac 100644 --- a/src/mistralai/client/models/getsearchindexdetailresponseindex.py +++ b/src/mistralai/client/models/getsearchindexdetailresponseindex.py @@ -6,14 +6,29 @@ GetSearchIndexDetailResponseSchemaModel, GetSearchIndexDetailResponseSchemaModelTypedDict, ) -from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL +from datetime import datetime +from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL, UnrecognizedStr from pydantic import model_serializer -from typing import List +from typing import List, Literal, Union from typing_extensions import TypedDict +GetSearchIndexDetailResponseIndexStatus = Union[ + Literal[ + "online", + "offline", + ], + UnrecognizedStr, +] + + class GetSearchIndexDetailResponseIndexTypedDict(TypedDict): name: str + creator_id: str + document_count: int + status: GetSearchIndexDetailResponseIndexStatus + created_at: datetime + modified_at: datetime vespa_version: Nullable[str] summary: Nullable[str] schemas: List[GetSearchIndexDetailResponseSchemaModelTypedDict] @@ -22,6 +37,16 @@ class GetSearchIndexDetailResponseIndexTypedDict(TypedDict): class GetSearchIndexDetailResponseIndex(BaseModel): name: str + creator_id: str + + document_count: int + + status: GetSearchIndexDetailResponseIndexStatus + + created_at: datetime + + modified_at: datetime + vespa_version: Nullable[str] summary: Nullable[str] diff --git a/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py b/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py index f3a6a75e..f3784129 100644 --- a/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py +++ b/src/mistralai/client/models/getsearchindexschemadetailresponsefield.py @@ -2,9 +2,9 @@ # @generated-id: 9a63e248e0d3 from __future__ import annotations +from .schemafielddatatype import SchemaFieldDataType from .schemafieldindex import SchemaFieldIndex from .schemafieldstorage import SchemaFieldStorage -from .schemafieldtype import SchemaFieldType from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL from pydantic import model_serializer from typing_extensions import TypedDict @@ -12,7 +12,7 @@ class GetSearchIndexSchemaDetailResponseFieldTypedDict(TypedDict): name: str - type: SchemaFieldType + type: SchemaFieldDataType storage: SchemaFieldStorage index_type: Nullable[SchemaFieldIndex] @@ -20,7 +20,7 @@ class GetSearchIndexSchemaDetailResponseFieldTypedDict(TypedDict): class GetSearchIndexSchemaDetailResponseField(BaseModel): name: str - type: SchemaFieldType + type: SchemaFieldDataType storage: SchemaFieldStorage diff --git a/src/mistralai/client/models/registersearchindexrequestvespaschemafield.py b/src/mistralai/client/models/registersearchindexrequestvespaschemafield.py index 5df40791..d01596e5 100644 --- a/src/mistralai/client/models/registersearchindexrequestvespaschemafield.py +++ b/src/mistralai/client/models/registersearchindexrequestvespaschemafield.py @@ -2,9 +2,10 @@ # @generated-id: 89c0feb14bcb from __future__ import annotations +from .schemafielddatatype import SchemaFieldDataType from .schemafieldindex import SchemaFieldIndex +from .schemafieldrankingtype import SchemaFieldRankingType from .schemafieldstorage import SchemaFieldStorage -from .schemafieldtype import SchemaFieldType from mistralai.client.types import BaseModel, Nullable, UNSET_SENTINEL from pydantic import model_serializer from typing_extensions import TypedDict @@ -12,20 +13,26 @@ class RegisterSearchIndexRequestVespaSchemaFieldTypedDict(TypedDict): name: str - type: SchemaFieldType + type: SchemaFieldDataType storage: SchemaFieldStorage + ranking: SchemaFieldRankingType index_type: Nullable[SchemaFieldIndex] + multidimensional: bool class RegisterSearchIndexRequestVespaSchemaField(BaseModel): name: str - type: SchemaFieldType + type: SchemaFieldDataType storage: SchemaFieldStorage + ranking: SchemaFieldRankingType + index_type: Nullable[SchemaFieldIndex] + multidimensional: bool + @model_serializer(mode="wrap") def serialize_model(self, handler): serialized = handler(self) diff --git a/src/mistralai/client/models/schemafielddatatype.py b/src/mistralai/client/models/schemafielddatatype.py new file mode 100644 index 00000000..4a35422e --- /dev/null +++ b/src/mistralai/client/models/schemafielddatatype.py @@ -0,0 +1,19 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c391391d0988 + +from __future__ import annotations +from mistralai.client.types import UnrecognizedStr +from typing import Literal, Union + + +SchemaFieldDataType = Union[ + Literal[ + "int", + "bool", + "string", + "embedding", + "long", + "float", + ], + UnrecognizedStr, +] diff --git a/src/mistralai/client/models/schemafieldindex.py b/src/mistralai/client/models/schemafieldindex.py index 9a714b57..14197c41 100644 --- a/src/mistralai/client/models/schemafieldindex.py +++ b/src/mistralai/client/models/schemafieldindex.py @@ -2,15 +2,15 @@ # @generated-id: 9501fc2b7fa1 from __future__ import annotations -from mistralai.client.types import UnrecognizedInt +from mistralai.client.types import UnrecognizedStr from typing import Literal, Union SchemaFieldIndex = Union[ Literal[ - 1, - 2, - 3, + "ann", + "bm25", + "attribute", ], - UnrecognizedInt, + UnrecognizedStr, ] diff --git a/src/mistralai/client/models/schemafieldrankingtype.py b/src/mistralai/client/models/schemafieldrankingtype.py new file mode 100644 index 00000000..fc9cf182 --- /dev/null +++ b/src/mistralai/client/models/schemafieldrankingtype.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: a21364283a70 + +from __future__ import annotations +from typing import Literal + + +SchemaFieldRankingType = Literal[ + "count", + "embedding", + "timestamp", + "text", + "string", + "bool", + "int", + "language", +] diff --git a/src/mistralai/client/models/schemafieldstorage.py b/src/mistralai/client/models/schemafieldstorage.py index ec2f2c00..b330be98 100644 --- a/src/mistralai/client/models/schemafieldstorage.py +++ b/src/mistralai/client/models/schemafieldstorage.py @@ -2,14 +2,14 @@ # @generated-id: 6ec367e3cfe5 from __future__ import annotations -from mistralai.client.types import UnrecognizedInt +from mistralai.client.types import UnrecognizedStr from typing import Literal, Union SchemaFieldStorage = Union[ Literal[ - 1, - 2, + "in_memory", + "on_disk", ], - UnrecognizedInt, + UnrecognizedStr, ] diff --git a/src/mistralai/client/models/schemafieldtype.py b/src/mistralai/client/models/schemafieldtype.py deleted file mode 100644 index 5365d257..00000000 --- a/src/mistralai/client/models/schemafieldtype.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 5cdea5242c04 - -from __future__ import annotations -from mistralai.client.types import UnrecognizedInt -from typing import Literal, Union - - -SchemaFieldType = Union[ - Literal[ - 1, - 2, - 3, - 4, - ], - UnrecognizedInt, -] diff --git a/src/mistralai/client/models/tool.py b/src/mistralai/client/models/tool.py index 1d1c5ce5..08342b5a 100644 --- a/src/mistralai/client/models/tool.py +++ b/src/mistralai/client/models/tool.py @@ -18,7 +18,7 @@ class ToolTypedDict(TypedDict): class Tool(BaseModel): function: Function - type: Optional[ToolTypes] = None + type: Optional[ToolTypes] = "function" @model_serializer(mode="wrap") def serialize_model(self, handler): diff --git a/src/mistralai/client/models/toolcall.py b/src/mistralai/client/models/toolcall.py index 29f1149c..82ca4c2b 100644 --- a/src/mistralai/client/models/toolcall.py +++ b/src/mistralai/client/models/toolcall.py @@ -22,7 +22,7 @@ class ToolCall(BaseModel): id: Optional[str] = "null" - type: Optional[ToolTypes] = None + type: Optional[ToolTypes] = "function" index: Optional[int] = 0 diff --git a/src/mistralai/client/models/toolchoice.py b/src/mistralai/client/models/toolchoice.py index ce84573a..11e4a3b1 100644 --- a/src/mistralai/client/models/toolchoice.py +++ b/src/mistralai/client/models/toolchoice.py @@ -24,7 +24,7 @@ class ToolChoice(BaseModel): function: FunctionName r"""this restriction of `Function` is used to select a specific function to call""" - type: Optional[ToolTypes] = None + type: Optional[ToolTypes] = "function" @model_serializer(mode="wrap") def serialize_model(self, handler):