diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 39065f54..a4379e0c 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: 96e221305329f36665f7195a06b7947b + docChecksum: e314d743e0ef59ffee183e3d8dc2dc3c docVersion: 1.0.0 speakeasyVersion: 1.807.0 generationVersion: 2.956.1 - releaseVersion: 3.9.0 - configChecksum: aacb646c377eed7f433c5bbf2c947dc2 + releaseVersion: 3.10.0 + configChecksum: 070426f4ef5e4713fa54b61cd3447e9e repoURL: https://github.com/mistralai/client-python.git installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: ea83f808-fb75-4ab0-a90b-ea328f2e6470 - pristine_commit_hash: a240667b688ecfb36160b4c9f6d8947a292f1267 - pristine_tree_hash: 82f5106cf06f742ddbb98775cce783ffd244bdf8 + generation_id: a4337d30-4611-4901-983e-09f6ce22455c + pristine_commit_hash: ade9d98bd4563aaea9d0a519894987e2dc90b3c6 + pristine_tree_hash: d669e068cc8f9f09310f4324b62c688ff37666db features: python: acceptHeaders: 3.0.0 @@ -242,8 +242,8 @@ trackedFiles: pristine_git_object: 7548286af5d1db51fbfd29c893eb8afdc3c97c4d docs/models/agentscompletionrequest.md: id: 906b82c214dc - last_write_checksum: sha1:70f58e07eab63ed3f862ec48e6912107ba96f09b - pristine_git_object: 5a0e4e0289285bcaa4379311a8cdd90b26361059 + last_write_checksum: sha1:6de11a1d58ecd2eed36ed0fedf4a522dffa58dfa + pristine_git_object: 971e4a7a03a56bc56479b6b2cc5f41c99740c121 docs/models/agentscompletionrequestmessage.md: id: 5337f0644b40 last_write_checksum: sha1:ecf7b7cdf0d24a5e97b520366cf816b8731734bb @@ -262,8 +262,8 @@ trackedFiles: pristine_git_object: 7f78a1ac84cb25aeb2da90cba108e6feb2942690 docs/models/agentscompletionstreamrequest.md: id: 21d09756447b - last_write_checksum: sha1:6d9b0b5e7d285d84a6e2fa9814c015a26a78d0cd - pristine_git_object: f192beaa4eff55a1d447b00560eec3cbc5c6910c + last_write_checksum: sha1:8b9379fa91a537190f5aa2a9699ed11234e40698 + pristine_git_object: d8d337b1a1a9c525106fd5317f82f9f9adc3011c docs/models/agentscompletionstreamrequestmessage.md: id: b309ade92081 last_write_checksum: sha1:98744c9646969250242cbbfbdf428dbd7030e4bb @@ -458,8 +458,8 @@ trackedFiles: pristine_git_object: e5396d2e17e5159a7c82b01c8c3ca4f96620f679 docs/models/audiosessioncreaterequest.md: id: 0b90cdf0ca97 - last_write_checksum: sha1:00904973be0d9e7097ef5e7df2706b8600ee32c3 - pristine_git_object: 3ad22cf32d910e57c8b312d23619a83842f94b63 + last_write_checksum: sha1:c2e4fcd3438b854e6b5715af97f54bdb283c3742 + pristine_git_object: 488b78f7dfec94fd7ed4a4bf7038efd75189d75a docs/models/audiosessioncreaterequesttool.md: id: c68c1ed76737 last_write_checksum: sha1:af26548027a4c667023fd4762ae8020af7b3f5c4 @@ -678,8 +678,8 @@ trackedFiles: pristine_git_object: 4968d664d1f4d34c300bc6a6dec18c992652999f docs/models/categoricalstatistics.md: id: 7f9bffee6420 - last_write_checksum: sha1:2d55f4c156d0005f827681da57af5bdc3222f551 - pristine_git_object: b9a37cf737a8e12b67509fc48d2e55a36ae245eb + last_write_checksum: sha1:de3656bca101805571208b0eb5dba181ebf75cb2 + pristine_git_object: a095a01ef497c3d549c7b1106c2fc7f7f2bfabb3 docs/models/chatclassificationrequest.md: id: 57b86771c870 last_write_checksum: sha1:bfd2fb8e2c83578ca0cea5209ea3f18c3bcd2ae5 @@ -694,8 +694,8 @@ trackedFiles: pristine_git_object: c289272622b137541843bb4ba9654d0e1405ffec docs/models/chatcompletionrequest.md: id: adffe90369d0 - last_write_checksum: sha1:ff49b84d5403641e4ddafbc165be4010af78f9f0 - pristine_git_object: 34305bafd3be44e9e14fd181ab7ed7cefe126086 + last_write_checksum: sha1:d3f7919396b19a59a86d4a93ee0a45ea64f9411f + pristine_git_object: 1d475c253a2ed2cc04c1007f6ad4a0e3687fe599 docs/models/chatcompletionrequestmessage.md: id: 3f5e170d418c last_write_checksum: sha1:7921c5a508a9f88adc01caab34e26182b8035607 @@ -730,8 +730,8 @@ trackedFiles: pristine_git_object: 7c7b26cd6c469a82bc16aa4b7a794cf3e506efc7 docs/models/chatcompletionstreamrequest.md: id: cf8f29558a68 - last_write_checksum: sha1:0d6de1cb9cb52a6e7b8eb692c9956dce9221a7d9 - pristine_git_object: 435e924cf8e949eb7fa63eb69c641bd1f980fe02 + last_write_checksum: sha1:7b5a8aa97f2528c8eff240f4a8063817a007bc98 + pristine_git_object: 43c17015d42a9e9519ed78d94d7ebc0a98337c23 docs/models/chatcompletionstreamrequestmessage.md: id: 053a98476cd2 last_write_checksum: sha1:8270692463fab1243d9de4bbef7162daa64e52c5 @@ -946,8 +946,8 @@ trackedFiles: pristine_git_object: e50c7296f28bbf48daf724af3c848a50e8424ad7 docs/models/connectorerrorcode.md: id: aee48c9e6fd0 - last_write_checksum: sha1:129141c353687ca4c7a43b104fd46a8a673a5535 - pristine_git_object: 130cca1f4563975f25ae6486b756610e6abaca4a + last_write_checksum: sha1:4d51aa490f0bc4b087e441532595b8f1d2110f0d + pristine_git_object: cc9d2153712f4606f856da251f0f0a62525c7d96 docs/models/connectorgetauthenticationmethodsv1request.md: id: 50edde04fff0 last_write_checksum: sha1:78305fe0052b6b90036ca72302a42dcf9093e3d3 @@ -1592,6 +1592,14 @@ trackedFiles: id: 5e080239e3e1 last_write_checksum: sha1:288566b0849cd69d77da915964affb043c914890 pristine_git_object: 09efd45644bd79eb6361d918914aa5ccb97a31da + docs/models/datasetquery.md: + id: 5d1e354e7c40 + last_write_checksum: sha1:5e616867cae380a96033dc7ca7f7235cad406735 + pristine_git_object: 5f26186f77cb0a874b02cb559fa0319667a85116 + docs/models/datasetquerysplit.md: + id: a29ab23752aa + last_write_checksum: sha1:86c5baab657e4ffaabed26a0daeb97da112e476f + pristine_git_object: 65e0240a67946b2a3b6d3de71fc7e217d3b8d50e docs/models/datasetrecord.md: id: 449ed69d3872 last_write_checksum: sha1:8685807735fdda2d6808632261d325dca5c7dcd2 @@ -1966,12 +1974,12 @@ trackedFiles: pristine_git_object: 00a256209bfc61e824020345c7883245addfb3bc docs/models/evaluationrunv2response.md: id: 9438501040f2 - last_write_checksum: sha1:07169e53c231f07da1bff5c4d104b11bbf503a7c - pristine_git_object: e2231a76ada4b1d593cb4f7bb93816b025e9643f + last_write_checksum: sha1:eb69654fac42fae56dea1e040d4c5f09c0c5efe3 + pristine_git_object: 610d2485cc488af15082ff526d06b29d5a9753f2 docs/models/evaluationrunv2withrefsresponse.md: id: 55cc91db64ab - last_write_checksum: sha1:b1737c2e8c26368257f97ea048473da48b82a64b - pristine_git_object: 45af9f92c018d730e521be80792d677eebc3f351 + last_write_checksum: sha1:fc54c20fd9f4c67648797da206fb389042b4fdbb + pristine_git_object: 54dad280aba61de55c31ad7b7b4674529aba3e49 docs/models/evaluationsv2.md: id: 13095bb51115 last_write_checksum: sha1:c0b5c3513889ad9f9c9367e8ca9687475decc775 @@ -2266,8 +2274,8 @@ trackedFiles: pristine_git_object: c66458efc5951b35596becca413f77474adb15e6 docs/models/getdatasetrecordsv1observabilitydatasetsdatasetidrecordsgetrequest.md: id: 544765ca9499 - last_write_checksum: sha1:e7507d5ae326c76b4c6e2d27dddbcec4c4d636d0 - pristine_git_object: 4b4edcecfae71ecb1f9743cc7ce920fe3b505e20 + last_write_checksum: sha1:b50623f86c2e20ed6adfa6ad86932ff26190b1f6 + pristine_git_object: 6df6b1ff2fce08d4dce144079ff20567259fd23e docs/models/getdatasetrecordv1observabilitydatasetrecordsdatasetrecordidgetrequest.md: id: fedf1584cb11 last_write_checksum: sha1:1f6ad7fd1efccb3bdef3748bec748d23d00e3821 @@ -2622,16 +2630,16 @@ trackedFiles: pristine_git_object: 0698ed4e517b883fe39d32b9071a979afc64dbe0 docs/models/goalresultitem.md: id: b614ac1c21b3 - last_write_checksum: sha1:e4fc3af3f1c4b19053fe07a836a1fcb5ccc9aae6 - pristine_git_object: 11728ab757b297e9d73e36444093d1970e852626 + last_write_checksum: sha1:2cb60e036781f1bb791174982ab906154aae3d36 + pristine_git_object: 7f57b80a6b807d6a6582f873d7f241db89b9692d docs/models/goalresultitemdirection.md: id: 6f21538365dd last_write_checksum: sha1:20eeb3b9f9bc167e07f206194113c3eb42452981 pristine_git_object: e7e0e76e2741bdfff6ba6c0f57d949bbf3185e23 docs/models/goalspec.md: id: 6ce294242be9 - last_write_checksum: sha1:e900c8d043842f36cf50a5a866a96bb9897e3b40 - pristine_git_object: cefd250c831bebe39fc4d2e637d456328423dbfa + last_write_checksum: sha1:a0d3c9544cd8633f36945ce53042b406a9976db0 + pristine_git_object: 7e34666d025ac51aa011b8414717622850fe8b93 docs/models/goalstatus.md: id: 8f8fd3f84c2d last_write_checksum: sha1:72f41944d4baf4775ba0656d4b04a2aece77e739 @@ -3398,8 +3406,8 @@ trackedFiles: pristine_git_object: dd998dcf1a5b2f050ac091510e522d4ad48fb376 docs/models/missinggoalitem.md: id: aadae289ccbc - last_write_checksum: sha1:3c4271a6c8ce12a4e3dd4110b9eb0a2fb830d112 - pristine_git_object: 2752eb457c55c70ed6646988c5595bfcac821a35 + last_write_checksum: sha1:d4004002aa332a5a6b67cd7ae53f2d97944d41b9 + pristine_git_object: b489ce9b9b557c0dce2c07ec79c358035dcc1395 docs/models/mistralembeddingmodel.md: id: 2886fd9adcce last_write_checksum: sha1:3500a39a7fbdcbd0286e2efc8dcb65376da3a4aa @@ -3410,8 +3418,8 @@ trackedFiles: pristine_git_object: 9b234e3ea8fc13261897acf18ce4da3b14485f72 docs/models/modelcapabilities.md: id: 283fbc5fa32f - last_write_checksum: sha1:fe7acadb7716f330d47b862005b89530786bce5e - pristine_git_object: 05ac7d07b79b6889f3d3caea34d0857df3e22f71 + last_write_checksum: sha1:24c944af3ee769d38be1fdcca65a207abc9359a9 + pristine_git_object: bac6792940027b321b214a4b72be27edcb02cb70 docs/models/modelconversation.md: id: 497521ee9bd6 last_write_checksum: sha1:aea6f51b6276c5e36447c828e78a30367f15a978 @@ -3522,8 +3530,8 @@ trackedFiles: pristine_git_object: 0b7be0a6e6c9803f36a32e15f979e64f36c4ed33 docs/models/numericstatistics.md: id: 2eed389812ba - last_write_checksum: sha1:f5517ecdefc4e3e1d6a6712a92313df2b25af62b - pristine_git_object: e26b051609bf8e12445110e5b8c4bbbd81d2e795 + last_write_checksum: sha1:ec8ab55ca8ded607d417ac2c9543e4a498ffce19 + pristine_git_object: 38668052bd36045986215890c0b90cb2afc91ed0 docs/models/oauth2authmethod.md: id: b58ebde68702 last_write_checksum: sha1:7ebf4c7f5e961d0814002b9e866ca1142be4e161 @@ -3562,8 +3570,8 @@ trackedFiles: pristine_git_object: 22e2804a4424325ad07c264a61463635299fc254 docs/models/observabilityerrorcode.md: id: 61d16ff95b87 - last_write_checksum: sha1:05cfad3f209fce491f94a93d428fb57225bddaea - pristine_git_object: 270ef71e267fd9175886492c85e95bfd1c460e1a + last_write_checksum: sha1:252988f702ca784096871eeee9bba0a7fbd8b593 + pristine_git_object: fb6165b8f74a1a040b5865eafcd52d762aac41f5 docs/models/observabilityerrordetail.md: id: 38061447dfbb last_write_checksum: sha1:1da7bf6e72c2f972b0e22f0201a1cb9b76f53ccd @@ -3682,12 +3690,12 @@ trackedFiles: pristine_git_object: b56ab1b664dd14ed9fc155cdce289305f5cd3800 docs/models/optimization.md: id: 7adf987697ce - last_write_checksum: sha1:d421d41c3ac108982c7abc64f9ab26ded4bd758b - pristine_git_object: b0379213cc08ae40020365d91ed2bbf773c147a4 + last_write_checksum: sha1:a819ccddeab22113a8cc558ef3ca0cd49f1f7eef + pristine_git_object: 6c453fca9734c7d66e15d632ae1e117d0fc26078 docs/models/optimizationdetail.md: id: 9edfd233f4d8 - last_write_checksum: sha1:a503ac2c4499304db03d4982cbcbe0fc5895357b - pristine_git_object: 98081b9414d9c853f5c2d9da7b87a60e834682d6 + last_write_checksum: sha1:102c2ef168f7060cb1e565640a7767cb9248413a + pristine_git_object: c2b2cb60eaefa3f23d6140434b3762e2d740b1b0 docs/models/optimizationreference.md: id: ac65f5db375a last_write_checksum: sha1:373836e399d05bdaf1b4fe95f5e313c40cc66084 @@ -3832,6 +3840,14 @@ trackedFiles: id: f5bb5dc0cf18 last_write_checksum: sha1:a0a8d6c43c0231c0e2061de78f5b6e9e233e7c23 pristine_git_object: e66ee671440d90abcd15860144e6826f5835110b + docs/models/passstatisticspec.md: + id: b2fba4c3e38f + last_write_checksum: sha1:bbbd5cb1313a669812765bbc75fbd9fd18a90610 + pristine_git_object: 8d3142d1617608939d22e43e0078c3c98a0863ca + docs/models/passstatisticspeckind.md: + id: 5e31a64b901b + last_write_checksum: sha1:2f1213178f3ac2bdf646c0b14869e91dad5de220 + pristine_git_object: 03caeeeeb64c47dbdc3e782bb098a37b50b5e4cf docs/models/pauseschedulev1workflowsschedulesscheduleidpausepostrequest.md: id: 56f6ceab8262 last_write_checksum: sha1:3b5c8e341c685a7f4b2789a9d051eef54ff8cfda @@ -4154,8 +4170,8 @@ trackedFiles: pristine_git_object: 2a50ca92720bad6605bdeafd83b43d0e8bf40615 docs/models/realtimetranscriptionsessionupdatepayload.md: id: 3ddd5a95510a - last_write_checksum: sha1:14f49df414ba6a76cbafe5359aa6ecc478e7c3c0 - pristine_git_object: 6c51eb4f3cd83575956f4ada19f83840bdfb4e75 + last_write_checksum: sha1:2773bb2fc34a6a09563af88e477b44b782dd8fb0 + pristine_git_object: c53f3c7d7f53ac1aa4f0d5dc1c92ea98e5a83503 docs/models/reasoningeffort.md: id: c8fd630d3f07 last_write_checksum: sha1:54aafb448de47209e329dbf4e4516dc328631ef7 @@ -4182,8 +4198,8 @@ trackedFiles: pristine_git_object: 1024907d0a68b05fa4a461bfd69092dfb1fa5d04 docs/models/requestedservicetier.md: id: 9c9f9ecaef75 - last_write_checksum: sha1:8d68ae246b681aa10466663c7d41417b46543913 - pristine_git_object: a0516540d8a43a6180ba162254dcd4eade948849 + last_write_checksum: sha1:db163b1216f0084e4c73f6c9e82a72ea9cf0da63 + pristine_git_object: 92d9975f33e6f94e6687e5fc865e4c8e1c165376 docs/models/requestsource.md: id: 8857ab6025c4 last_write_checksum: sha1:5634447d01c483713dad3d6d39df182007e6181b @@ -4642,8 +4658,8 @@ trackedFiles: pristine_git_object: 39d65524d272b974b07a8fef6b2dca6a0a3b2ff3 docs/models/responsesstreamframedata.md: id: 5a981d042d5f - last_write_checksum: sha1:b7cb30eb13320edc81086168d0a5615b239c378a - pristine_git_object: c0a12616b65dc209a2c4e1ddb05405ccfca1deff + last_write_checksum: sha1:d369b0dc10d0ab9770cdd5167d9a6519ae2421b6 + pristine_git_object: e92b4c343cb046adeeccafb41f9af84ce9269783 docs/models/responsessummary.md: id: 22c5a7fa1bf0 last_write_checksum: sha1:a008c59c9cc773c69447263ac1352c2f10a79a7f @@ -5230,8 +5246,8 @@ trackedFiles: pristine_git_object: 1729564519d17754a112562518cf01de14dec7e0 docs/models/statistic.md: id: 4ebaea7e9bde - last_write_checksum: sha1:72c5ea44fbfb55682e16b7c82cf58a4daa023cc6 - pristine_git_object: 4837a6a8fbe127b0f417ca339a6907c8d425f83f + last_write_checksum: sha1:72e06b727b422e568c40babdfbc8c280f5cdbc72 + pristine_git_object: 16eef74ee857364d776cf6f75dd246e2d4f995aa docs/models/stopdeploymentv1workflowsdeploymentsnamestoppostrequest.md: id: c652856a908e last_write_checksum: sha1:a5041d5bb8cf419d78983fe84ddc876c3c44f5e1 @@ -5524,6 +5540,10 @@ trackedFiles: id: 07234f8dd364 last_write_checksum: sha1:90c0b34284137712678b0671e9f4bfb319548cbf pristine_git_object: d9e51d7dc93b24edd807b018393eab38143d46f4 + docs/models/threshold.md: + id: 4263202990fa + last_write_checksum: sha1:2dc9a1ac796e009fe4862818269a4819d7e99711 + pristine_git_object: 459d9280225816e3369e9bce4861ccbd6f8c0fb0 docs/models/timedimension.md: id: e09354361a6a last_write_checksum: sha1:599449474b17ffcb16794762eac9b9e70eeda501 @@ -5754,8 +5774,8 @@ trackedFiles: pristine_git_object: fca093440c9963705bd66e8cc71dfcb9486984e9 docs/models/triggerstatusvalue.md: id: 9dccb8d7084b - last_write_checksum: sha1:b12b746e6d84da47dafaec9c05094e01c623a1bf - pristine_git_object: bd7b41dc87275f0a983278c59670ef69007a5503 + last_write_checksum: sha1:79268043835898838f0b97fa78ce6eb9cb8c93f1 + pristine_git_object: cae55302f15ab4b62d03e2cdf2957b35c0504783 docs/models/truncation.md: id: 075cd6c561df last_write_checksum: sha1:f1313c40232729f3b275736c78c1f42e63d14659 @@ -5814,8 +5834,8 @@ trackedFiles: pristine_git_object: c2bc33738e8e34d66da61ae08a496384b6c623f0 docs/models/unsupportedstatistics.md: id: 337e18a193b7 - last_write_checksum: sha1:d2e6576f30bfc3612bef409bca98a63f3ca4da22 - pristine_git_object: 596843d67ec8bcc6db1e53b3313698466847af78 + last_write_checksum: sha1:527297e111f4d75220659cbd2b810856078d3ae3 + pristine_git_object: b64678a598a0cd3ef34e591c2cb36de8627d3164 docs/models/updateagentrequest.md: id: 371bfedd9f89 last_write_checksum: sha1:73936f78ae35e5f84ebe32aabb150d6792ce40d1 @@ -6190,8 +6210,8 @@ trackedFiles: pristine_git_object: 9bb68ef647ba67ce17c2c524498ada2f81185094 docs/models/webhookprovider.md: id: df0553e72901 - last_write_checksum: sha1:1a0de3c4bbd3a37926c7d13bcfb6eed2c587e09e - pristine_git_object: f48b1dbf293089bad985189e6e5b6f7b6505641b + last_write_checksum: sha1:0d5f76734ef4c1ca3d3925305289485d3dda5584 + pristine_git_object: b7877e3426303ea65b7c3eb12e51b3b0242588e3 docs/models/webhooksignatureencoding.md: id: d192333b310c last_write_checksum: sha1:f545b37a6cc07e86b2c4cd624cc23ecae126ea24 @@ -6482,16 +6502,16 @@ trackedFiles: pristine_git_object: 376ae7e5517e0c725a762ac22252d88f02f55eab docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:b43780e94dcd45b3ae64300d2b299bd77d9e26f9 - pristine_git_object: a6ce04b50c6b755faaaa76e88c1403efdbe06096 + last_write_checksum: sha1:d1b2f53f0ef2f1e201561569bc7e11fd1fe646d3 + pristine_git_object: c7b1837035fba0bdc77d54ee79d61ce2ea38f36b docs/sdks/audioagents/README.md: id: cc93a1f62aa8 last_write_checksum: sha1:41ac1613ae4e75a9e7f72875d255fb7f1365f4f8 pristine_git_object: 4bcf7a797cd06ba194b12e22f0c32141033b2793 docs/sdks/audiosessions/README.md: id: 15f4b946eb88 - last_write_checksum: sha1:9057bd385f452980829c82709833e9e12a709c3f - pristine_git_object: 58776f94d8a0f5ea512b86880de1048084d33fd2 + last_write_checksum: sha1:5de595bd1e69e3d6af7da5c8ff7da9efc119f910 + pristine_git_object: b8c812a58db963b4fc39f1b5cbd59540c0bac2d7 docs/sdks/betaagents/README.md: id: 5df79b1612d8 last_write_checksum: sha1:288cde2bf4da8751d9259d1fa8a649e01c286a44 @@ -6506,8 +6526,8 @@ trackedFiles: pristine_git_object: fd6111b2691a99f7461a9b028da3d37691be1322 docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:07d5a0024b1f43d7cfd50d316d485984374cb073 - pristine_git_object: aca36e50f285ab41729f1fa8229cec9334811e92 + last_write_checksum: sha1:740cb0bf8222418d0eefde43a54328207fc215b1 + pristine_git_object: 68b36116ce2b50e576c91bc3fd3154ecb62d2b90 docs/sdks/classifiers/README.md: id: 74eb09b8d620 last_write_checksum: sha1:9d6cca59cf3da35d16d648fd6d5e9b8c40a0cbce @@ -6522,8 +6542,8 @@ trackedFiles: pristine_git_object: 6c622ab41e6752efb8ee0c248d03cd843481f5b2 docs/sdks/datasets/README.md: id: deb5d90f4faf - last_write_checksum: sha1:4519b1b9e553cdab967b486f3b29f3140c96c385 - pristine_git_object: 3720e25267be69772dd903b72675fb6cd2fd7d22 + last_write_checksum: sha1:b410f9336553009559f258bfd11d25ca819bbf7b + pristine_git_object: 6f9d3db3103a90108047cbd947fbe8dd3099f12d docs/sdks/datasetsrecords/README.md: id: 4907d0e941a0 last_write_checksum: sha1:bc6b4efd66707dbc847a4e371d1c5ef1b1ad5388 @@ -6702,16 +6722,16 @@ trackedFiles: pristine_git_object: 5052bb072d14c65419bf49bdc1a47500cb03ae56 src/mistralai/client/_version.py: id: cc807b30de19 - last_write_checksum: sha1:5190b1d10b617f9a985932e79965c371769d6650 - pristine_git_object: 35abda00887e10729746b5d4bef92aa3cb777343 + last_write_checksum: sha1:1906207cb37ab98ccc616c94aac0dc6b96f88b6b + pristine_git_object: 31567b3e2db9ca4abfd12136eee536ad07363306 src/mistralai/client/accesses.py: id: 76fc53bfcf59 last_write_checksum: sha1:414c7375fcd63266d196840fa8d1274d60aae2dc pristine_git_object: 61e8b1db78103a97e2f7341901831a0ad13e42c3 src/mistralai/client/agents.py: id: e946546e3eaa - last_write_checksum: sha1:e72ca28f28793d5b1155ec45bfe2b523c057cd7b - pristine_git_object: 8c44f40992dde634ac7df77c7124b16d7006f630 + last_write_checksum: sha1:751860c20c0f15d57e0e5ad67f10dd0a7ee6114b + pristine_git_object: 6b16da9fff1581dd0179461a119b9f8c562541c6 src/mistralai/client/audio.py: id: 7a8ed2e90d61 last_write_checksum: sha1:fda6a0328013127fc2808df4541cacd5dda3dad4 @@ -6722,8 +6742,8 @@ trackedFiles: pristine_git_object: 16a3da1ca274072e0e3f982f9c41a95a2b5535c7 src/mistralai/client/audio_sessions.py: id: bf6a566f1a89 - last_write_checksum: sha1:a59cbceaafc5742e05a5d46aea43e3acd981e122 - pristine_git_object: 3a994d01d804c537abfa02b233cbe093a37cae6f + last_write_checksum: sha1:e8b35bf2458c3748be795bc48bac14afb84e441c + pristine_git_object: 09deb979e0d7ad2743e0e2c19a00f67d64c8a1ba src/mistralai/client/basesdk.py: id: 7518c67b81ea last_write_checksum: sha1:988e7aff5278afa1e67a474baa858522de733227 @@ -6754,8 +6774,8 @@ trackedFiles: pristine_git_object: 5458f3de6f59d1d1e70ec00fce9f2bb3551526c8 src/mistralai/client/chat.py: id: 7eba0f088d47 - last_write_checksum: sha1:7b0eca5f4ab8ccb7c0c36546f843a0eaa4670be1 - pristine_git_object: 21886dfe17d56af7f5f45568c602eb0da98e14b1 + last_write_checksum: sha1:65069158f48c79304a40f75a2960eb0731040413 + pristine_git_object: 9e2e04c1c38df1a970b5b3c9a89db3d2c137a99d src/mistralai/client/classifiers.py: id: 26e773725732 last_write_checksum: sha1:f3a44b88edcd3c31e6426dbe5a744281059cd6dd @@ -6770,8 +6790,8 @@ trackedFiles: pristine_git_object: 1f467f42010c82c01979af14ec2cab7c6e9838c1 src/mistralai/client/datasets.py: id: e5a6ae2a2d85 - last_write_checksum: sha1:161f29fcf78ac4e28b18c2376912afbfb13b86d1 - pristine_git_object: 9535bfd3274f6a55402648222a1db74c33bbb855 + last_write_checksum: sha1:bb4b5f1763301b7f1c51a8395f2486522a503c58 + pristine_git_object: 21ff3c613ccb7a7e1c0e397a2a0d617516b4c9a4 src/mistralai/client/datasets_records.py: id: 8857f490a224 last_write_checksum: sha1:c0d9dd99b6bec1fdd5d0d5cff9ab5645521c5be9 @@ -6878,8 +6898,8 @@ trackedFiles: pristine_git_object: 41d7f799e8a2afa860b4193f7752e094f1c624b2 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:f375213274cdf4724029ea11c95588148d2870dd - pristine_git_object: 92ec99737b0f61d4b5823893730ab4067fa1e4ef + last_write_checksum: sha1:63e7396af1b82c348ddd0c10113f9e649e05e749 + pristine_git_object: d37000240ce4b931fcd1754cedd3f2eabfc79661 src/mistralai/client/models/accepteddocumentresponse.py: id: f529b784daff last_write_checksum: sha1:2eb3c7dc0d7165987aefda841b1ceada6698c15d @@ -7030,12 +7050,12 @@ trackedFiles: pristine_git_object: 8bce3ce519a69a6d1cb36383b22fb801768c4868 src/mistralai/client/models/agentscompletionrequest.py: id: 3960bc4c545f - last_write_checksum: sha1:0471bc3fe4385aeac242589b48aa77b8d8ef18f0 - pristine_git_object: 40cb9081972bc640a61425416cb039dd7e743d6d + last_write_checksum: sha1:0fd762c5119c0bff362d2c80aacd10705b75ce35 + pristine_git_object: df0876741bb2fa33cdf5c048bf88a2f0b92cd87f src/mistralai/client/models/agentscompletionstreamrequest.py: id: 1b73f90befc2 - last_write_checksum: sha1:a2c043a8ef339e5e1a0970e229964ec44394c0cd - pristine_git_object: 2bedb5c91f80b65a6e1e9fda9014aaae58352782 + last_write_checksum: sha1:14e724bfeb8d377960e3f9bd3e47bf866eb3795e + pristine_git_object: e5b4cf5ab4ddec7a384657937ee25ce1eec5ed4a src/mistralai/client/models/aggregate_span_evaluations_v1_observability_spans_evaluations_aggregate_postop.py: id: 3fe59a78e3d0 last_write_checksum: sha1:ccad4fb2cf33965caf1d30f3116f8bff4d02481b @@ -7182,8 +7202,8 @@ trackedFiles: pristine_git_object: 01f449a506cd337a3467beba8813ef3bda9cca7d src/mistralai/client/models/audiosessioncreaterequest.py: id: ac9696fd55e6 - last_write_checksum: sha1:fca3ac2b489551e5ef680a3c8f1bd13e92406733 - pristine_git_object: e972e3aafeb3483516125709dfa66c7eb8ade411 + last_write_checksum: sha1:1551add05315431d685c16369ef50477709ac590 + pristine_git_object: 88663cdb73ce00eeb3835623bbca44c770ec5452 src/mistralai/client/models/audiosessioncreateresponse.py: id: 16993243735d last_write_checksum: sha1:ffc00c7b7b4034d0c4b0e580f4ad374ee0ba1f04 @@ -7358,8 +7378,8 @@ trackedFiles: pristine_git_object: 0fdca43dfeffb886feb07f65f3acceb08f6d9337 src/mistralai/client/models/categoricalstatistics.py: id: 342cad469188 - last_write_checksum: sha1:8f5e9de4478ca828a9c360b1b65a044afaab7732 - pristine_git_object: ca91b790e0fffdc61abe9d78b03b5680adc27294 + last_write_checksum: sha1:0d4b693e9e0a0c6a9b6277ca7ec06b0d1c8094ee + pristine_git_object: 5fd7e19958c6a584cb07e01c88a441b83b5defb9 src/mistralai/client/models/chatclassificationrequest.py: id: afd9cdc71834 last_write_checksum: sha1:47b1601331d17795959fda9b3dc9fe3a74d528aa @@ -7370,8 +7390,8 @@ trackedFiles: pristine_git_object: d7156bedb40f6a933d6018952fbb5562f3ce9f4c src/mistralai/client/models/chatcompletionrequest.py: id: 9979805d8c38 - last_write_checksum: sha1:7eed4a8b112d5ed89371f6fa9317cb64553046f1 - pristine_git_object: 7725fd8d7d2285faf194031752bec776537afbd4 + last_write_checksum: sha1:1337f8a7cdc13d679300c4bb0a2079a9646c23ca + pristine_git_object: 295807c6985dbe01cbd5bf6400cf7f858970f27f src/mistralai/client/models/chatcompletionresponse.py: id: 669d996b8e82 last_write_checksum: sha1:af8071e660b09437a32482cdb25fd07096edc080 @@ -7390,8 +7410,8 @@ trackedFiles: pristine_git_object: bd13a80f35538e6f5022aea567a76414d104c75b src/mistralai/client/models/chatcompletionstreamrequest.py: id: 18cb2b2415d4 - last_write_checksum: sha1:ee93b05886921573fa134735cd1d433e87a8dc44 - pristine_git_object: a935022d0d12ca33ee55ee339f88cc3a7c770dd1 + last_write_checksum: sha1:824b4c34d55e40f5ead50a816d1e46304bf57327 + pristine_git_object: fe119847084d948e4d23b1333ff88eda51da3964 src/mistralai/client/models/chatmoderationrequest.py: id: 057aecb07275 last_write_checksum: sha1:9c71b0b44ffc5c40aa40d382e91b5a52d05b3b31 @@ -7590,8 +7610,8 @@ trackedFiles: pristine_git_object: 0a8d6353eef6c8a88224e45d67f986f093fb082c src/mistralai/client/models/connectorerrorcode.py: id: d2c18b18bdbb - last_write_checksum: sha1:d34882fc4019b345e5154c1f844546575e954e98 - pristine_git_object: 67a85ba5ee27d771c07bb07120111b042ef4f2a4 + last_write_checksum: sha1:95c5759d6f1abcf2920534db9ad99ff90b068316 + pristine_git_object: b9c9a7a87203d3da1f6ff5095731fdf377560c38 src/mistralai/client/models/connectorlocale.py: id: f987f5207d2e last_write_checksum: sha1:0faf0e888cd12eb5d3f8d2032143a3c02aa6f7c0 @@ -7928,6 +7948,14 @@ trackedFiles: id: 128c29db3f37 last_write_checksum: sha1:06196c2ca75fc4c264ec7b67d769a3172a559045 pristine_git_object: dbed3b69723d86eb2cfa2e2789309f775f6c2a19 + src/mistralai/client/models/datasetquery.py: + id: f344da8cf449 + last_write_checksum: sha1:d3e2ba6f32e191702feb0b088b195226b2be0e3f + pristine_git_object: 1a0b98ba7f832f3470e06e0d4ab8952748f060b6 + src/mistralai/client/models/datasetquerysplit.py: + id: de3fcceb6579 + last_write_checksum: sha1:018ffd5a3cd32e8a4e7eb829bedac0afa41bc70c + pristine_git_object: eca7daa25112f3e811a2608df5e19342442dae0b src/mistralai/client/models/datasetrecord.py: id: 87ddebf2a0ce last_write_checksum: sha1:0dd33f49f15765ccabefe0cab5be602424d498c8 @@ -8258,12 +8286,12 @@ trackedFiles: pristine_git_object: d5fe6b77709be60cbf48de3203aef0b6644c38e3 src/mistralai/client/models/evaluationrunv2response.py: id: 2b78bd73f956 - last_write_checksum: sha1:3da8f60af2e89de9e0f32b56aeab8cfa6a962e6d - pristine_git_object: 46c0ecafcfb7782091c0bf959ff68429d06fb990 + last_write_checksum: sha1:f4355850529f1b18eef4aecb521638329e9da0cb + pristine_git_object: dce277600766c4a8f79e721ef17bb717ed71d257 src/mistralai/client/models/evaluationrunv2withrefsresponse.py: id: 9f37bbc99595 - last_write_checksum: sha1:8188f09b12b93e9586b4cd32c63ae7f4193dfb56 - pristine_git_object: 096b337d9e6af14fd58fdde1142d190b66d81d08 + last_write_checksum: sha1:7431ef3dee548eb76187b75894e9624f921b54cb + pristine_git_object: 101bc355e7a56284c031a0488394cb1578f285ae src/mistralai/client/models/evaluationsv2.py: id: 6d6d84cb7b61 last_write_checksum: sha1:ffaf263e89b86a9306dbf9694678258ca3622089 @@ -8278,8 +8306,8 @@ trackedFiles: pristine_git_object: 2073fcf9ff1b45a98eba228d09dd533c57207d7b src/mistralai/client/models/evaluatorv2.py: id: 7a1244da46fd - last_write_checksum: sha1:6e4153c51bd1a2557386ed8fd68df2af5bc88586 - pristine_git_object: 39b9532b8e7dce0b36f81219698bdbfcbb657fe5 + last_write_checksum: sha1:d3a8f98c39363dd0b1f5035d200b855ff555622f + pristine_git_object: b9362200d8fd79b2fc6dd30b005497b65dcd70a8 src/mistralai/client/models/eventprogressstatus.py: id: 48623263df72 last_write_checksum: sha1:fd2733c3772a53ef2de3a975c7395959750db86a @@ -8518,8 +8546,8 @@ trackedFiles: pristine_git_object: 3265a0f09fa8c6fce4d967faf7e59df3e987b4b8 src/mistralai/client/models/get_dataset_records_v1_observability_datasets_dataset_id_records_getop.py: id: 77967c965aea - last_write_checksum: sha1:aee1fee04faa7f44a47baae9c260d834f28bc05f - pristine_git_object: 3980f9196f1f2981eaeb2f5f07a56796a810c21b + last_write_checksum: sha1:ca992fa61ca93274958644e2ecd8b3ffc47229e6 + pristine_git_object: 411009e7f187004dd829177baedec09b3c1927fb src/mistralai/client/models/get_datasets_v1_observability_datasets_getop.py: id: 3e4f4e2447ac last_write_checksum: sha1:f48c282c87c042cb669c2d851018388692ef2fe7 @@ -8826,12 +8854,12 @@ trackedFiles: pristine_git_object: ac342be44192451b847e2928c9f6e907c9c36a1c src/mistralai/client/models/goalresultitem.py: id: fe3fc1dc87ff - last_write_checksum: sha1:94094902d96ae0014a39d61a1b72b2b078546263 - pristine_git_object: b89cee590f2292600421750c2fc034eb48257542 + last_write_checksum: sha1:a1cbe57144fc5b741fc6b8d177820209c5ce25b8 + pristine_git_object: 34686a8097f10d226c9ba00057b7a63bc1b8a3fb src/mistralai/client/models/goalspec.py: id: 05f7aea69b56 - last_write_checksum: sha1:3be1066025a8d0e4cf99c9a0e92e2a5cc1bf0651 - pristine_git_object: 5d29b1dfdfdf38cc89514c69e813f1bff0cf3071 + last_write_checksum: sha1:5f062ed93d06f608eedca6cd2a35386884ecfeff + pristine_git_object: 1161d572581401f1035293137a44f1994e33f23e src/mistralai/client/models/goalstatus.py: id: 2c534aaf6bc3 last_write_checksum: sha1:5b16c62d5ee923b2b8059ad289948c2bfee9dada @@ -9454,8 +9482,8 @@ trackedFiles: pristine_git_object: 552415fccaad26b9eab467c3b05ad47254969e0e src/mistralai/client/models/missinggoalitem.py: id: 1b880922f5f0 - last_write_checksum: sha1:62cf3def92c098e9ace221bebedb569b3d53fec8 - pristine_git_object: d729869a1d7e058d4e42ca9b4c5c1db9ef80ff14 + last_write_checksum: sha1:b259d6494492c09656cccf50c6d7bd59755c2017 + pristine_git_object: 412707788052a04847d207f7a2b1c81ba9455c40 src/mistralai/client/models/mistralembeddingmodel.py: id: 455e90b5dcfa last_write_checksum: sha1:c3c6b26f83f1d28912cbbaa44ba26b266adbeb36 @@ -9466,8 +9494,8 @@ trackedFiles: pristine_git_object: 7008fc055bd1031096b7a486a17bf9a5b7841a4c src/mistralai/client/models/modelcapabilities.py: id: 64d8a422ea29 - last_write_checksum: sha1:66358cc47ac9a8386a06ed9d53877afee7d4373c - pristine_git_object: cb92a37f9147b42a239ba6641cbf6af5b474865b + last_write_checksum: sha1:640dbd0ee56a31e3ad458964333880c2a10aba59 + pristine_git_object: af692be376acfeb8b15bb130e7edda5746395249 src/mistralai/client/models/modelconversation.py: id: fea0a651f888 last_write_checksum: sha1:5616fc19c8481f54415c77892555370bb88e3797 @@ -9554,8 +9582,8 @@ trackedFiles: pristine_git_object: 0d707efa8fd5869bae3150898d4217971603f2bd src/mistralai/client/models/numericstatistics.py: id: b3c9fcd63c49 - last_write_checksum: sha1:fb0dabc043e01562b5cea950eb123536d6027f11 - pristine_git_object: fe63b087b92ddb7598ca3f057e62dbc8eac9e774 + last_write_checksum: sha1:c9dc66500d61f13c4305d6b799dedd1d1cb243c1 + pristine_git_object: f0f83af1ab9b18f6f445441583cd0f6e497d0483 src/mistralai/client/models/oauth2authmethod.py: id: 32ceace54bd5 last_write_checksum: sha1:a35a5705ac7596b9a9caf62c99ae3954ef39d04c @@ -9594,8 +9622,8 @@ trackedFiles: pristine_git_object: 91c2360d5d2c02e4391590a61ea4f6b0af5e24ec src/mistralai/client/models/observabilityerrorcode.py: id: ae572b470a30 - last_write_checksum: sha1:3fb8bba32b306ae8fb4f9364e4b65c0d804ef76c - pristine_git_object: af065048975dd2233cf3880088ec2712770182e0 + last_write_checksum: sha1:373c2d3091bcbd72fa7249e0248a1b6737c704e0 + pristine_git_object: d24fcfa71f54b8b66091d410da5825c21c96898f src/mistralai/client/models/observabilityerrordetail.py: id: cb6e8a484a38 last_write_checksum: sha1:19e8be8332f264eed6df5ca3125e3c396cce305d @@ -9706,12 +9734,12 @@ trackedFiles: pristine_git_object: 0827e753f194a12129f90756b4a4a11cdc6ab695 src/mistralai/client/models/optimization.py: id: 24f84b2bcffa - last_write_checksum: sha1:daf3cb9d5aeff3977d1ee33ccf4a329609265d99 - pristine_git_object: dd0be740d7250c93606905629d6a009c08d3656a + last_write_checksum: sha1:b1194479df55ac572836ad204fdbc53bafb3b4a4 + pristine_git_object: 90dbbd96520517f31bcbb61d734769bd20c5959a src/mistralai/client/models/optimizationdetail.py: id: ee8534db401d - last_write_checksum: sha1:b104958dd13e355f3a05c2c55482fb70e0f42ac2 - pristine_git_object: cc8d0c8ca286038932e4966e289ed924b2011cdc + last_write_checksum: sha1:b9a2f13d0a538a69121bd4bb85980c68ddaa8a1a + pristine_git_object: 94a5c7761136ca69ff47ee4b9218c439d817dee5 src/mistralai/client/models/optimizationreference.py: id: aed4d71f5db8 last_write_checksum: sha1:7e891e3bba88455b330c3cf308a3b92f871f6fc7 @@ -9816,6 +9844,10 @@ trackedFiles: id: ce1ded792ff5 last_write_checksum: sha1:716cdd522d165e475239397a7d70837046dfcbe4 pristine_git_object: a04edbcfe21c75e8d87cb465fc511389a689016a + src/mistralai/client/models/passstatisticspec.py: + id: e9bcf8de521b + last_write_checksum: sha1:d24c3d4e82fabe47cf19789a8fe6c790ccd005f2 + pristine_git_object: ea9b1099deab4a7a9ad4ea295c119c77db85f191 src/mistralai/client/models/pause_schedule_v1_workflows_schedules_schedule_id_pause_postop.py: id: "53799174e259" last_write_checksum: sha1:63922a193a41f2f3ccad30c9df731e68a2528dc3 @@ -10098,8 +10130,8 @@ trackedFiles: pristine_git_object: 6fc6e73fdd546b9c9cd4da36b4e9849e9188c709 src/mistralai/client/models/realtimetranscriptionsessionupdatepayload.py: id: 7033fdb33ad4 - last_write_checksum: sha1:b4ef53046ee54ca594d5bcabbac54d7a45bb813a - pristine_git_object: eca4622816595465f643ca0b8c95a5a00c60a4dd + last_write_checksum: sha1:cb36bd1eea34197459d3485adc05634d192db016 + pristine_git_object: 4f0fe415feba502302c8cb82ae6194a4c56cd03c src/mistralai/client/models/reasoningeffort.py: id: b930a0a20654 last_write_checksum: sha1:02c6faa2de9f084cfd8f90562c122a7986b3fa9e @@ -10122,8 +10154,8 @@ trackedFiles: pristine_git_object: 912510bd48eaa4ec3259aa5e159c2470acf1227b src/mistralai/client/models/requestedservicetier.py: id: 662ec7931b9e - last_write_checksum: sha1:056892b600a6b09d5e39ea67fd8629e50763be19 - pristine_git_object: dfe1b9eb95c08110c773e54402e211671c69a9b7 + last_write_checksum: sha1:5ec0214c79e029c1a7a61c3374d4fa85d3202b70 + pristine_git_object: 5acf27f481bb35e03050f27cf2ba8cd871da3241 src/mistralai/client/models/requestsource.py: id: 3f2774d9e609 last_write_checksum: sha1:31aae791bf737ad123fe189227d113838204ed42 @@ -10346,8 +10378,8 @@ trackedFiles: pristine_git_object: 34ab9a409155fdb2320ce8fae2e1661e0d37150f src/mistralai/client/models/responsesstreamframe.py: id: aa9dd1831c10 - last_write_checksum: sha1:7a18b71a8b046ebb5b28d4e132d52f7d9b0a0fee - pristine_git_object: 7f8943697b1debc56d91a3a5997993476d517aac + last_write_checksum: sha1:ad24f1cb252c98e59604096e80329f81f14d14df + pristine_git_object: 424b6f2280153101e2b3b1978660b17138ab3a25 src/mistralai/client/models/responsessummary.py: id: da5d41517328 last_write_checksum: sha1:beb33095d5df376292d61ce01f4cf55aa4676727 @@ -11194,8 +11226,8 @@ trackedFiles: pristine_git_object: e8d4637dcbe5a33312120e8a2e3d4258dc6d8ad0 src/mistralai/client/models/triggerstatusvalue.py: id: e5071edc30c9 - last_write_checksum: sha1:d396168950b596b798ce72ff063bd6ee8cc95702 - pristine_git_object: 2489dffd0303b1f86f36ab652dbeebc456e98154 + last_write_checksum: sha1:ad2fea4cdf67faba5f0aff1bdd6b1f1c1389625c + pristine_git_object: c06ff8cac21f87d3b08a2317093b6e57f3728ae1 src/mistralai/client/models/turbinemeta.py: id: 084d588caa1e last_write_checksum: sha1:951927fe8a266eda0e8206c2cd214cd2fd74b24a @@ -11250,8 +11282,8 @@ trackedFiles: pristine_git_object: fa472adf7259565dee725572e0945a7e4cee3eef src/mistralai/client/models/unsupportedstatistics.py: id: 7f97f996efd9 - last_write_checksum: sha1:70939f80afa5e372bae9f611c248f3182a5a9ee8 - pristine_git_object: a879fae3b4bb8f01fcf25f1422d30354971384be + last_write_checksum: sha1:a950a0bc9041fe9f763ded5cb15052f2a6c8e4c7 + pristine_git_object: a9fba4ec73a8af72b28c35166ba072b8c0cd21e1 src/mistralai/client/models/update_agent_v1_audio_agents_agent_id_putop.py: id: 883eff56e287 last_write_checksum: sha1:b9454688b0573d96323680fcd5f42fe92e6543d4 @@ -11514,8 +11546,8 @@ trackedFiles: pristine_git_object: 2d99c309b365a01e8c1492b7ecee2a1fab454ffe src/mistralai/client/models/webhookprovider.py: id: 542cbffe37bb - last_write_checksum: sha1:0f9f29be45486371fa442e8857f01ec16044d0ba - pristine_git_object: f6f7a7ad597d63b999b01f2f9be21d51740da9bc + last_write_checksum: sha1:1e53b5e5131549b38973659f04cb6e494b49a303 + pristine_git_object: ad567c46b7f313dc85755de9a20cad099f5c4e79 src/mistralai/client/models/webhooksignatureencoding.py: id: befd0ab53d2d last_write_checksum: sha1:26b68ab393592730410bcfd6f66c562167a005a5 @@ -11978,8 +12010,8 @@ trackedFiles: pristine_git_object: e30e9f161ecec7e236152b35b4d7f0f8a3a34234 src/mistralai/client/workflows.py: id: e2a0381191f6 - last_write_checksum: sha1:c6403fe129d14204437328c4a8dd592b0abc5f93 - pristine_git_object: dfa4ab94223e2feb5fd246045aafcf80faf2a503 + last_write_checksum: sha1:37dc75a3c2fd7bffb7f48f0933bc5239f9b7902d + pristine_git_object: 31d5e8c011a573a50928b303c6776112f333c546 src/mistralai/client/workflows_events.py: id: 6d4f674ce8ef last_write_checksum: sha1:132dcc7cb1c790a1d61c4cd4a38c6c1fa7bd5ac0 @@ -12016,7 +12048,7 @@ examples: model_id: "ft:open-mistral-7b:587a6b29:20240514:7e773925" responses: "200": - application/json: {"id": "", "object": "model", "owned_by": "mistralai", "capabilities": {"completion_chat": false, "function_calling": false, "reasoning": false, "completion_fim": false, "fine_tuning": false, "vision": false, "ocr": false, "classification": false, "moderation": false, "audio": false, "audio_transcription": false, "audio_transcription_realtime": false, "audio_speech": false, "unified_resources": false}, "max_context_length": 32768, "internal": false, "type": "fine-tuned", "job": "Product Markets Facilitator", "root": "", "archived": false} + application/json: {"id": "", "object": "model", "owned_by": "mistralai", "capabilities": {"completion_chat": false, "function_calling": false, "reasoning": false, "completion_fim": false, "fine_tuning": false, "vision": false, "ocr": false, "classification": false, "moderation": false, "embedding": false, "audio": false, "audio_transcription": false, "audio_transcription_realtime": false, "audio_speech": false, "unified_resources": false}, "max_context_length": 32768, "internal": false, "type": "fine-tuned", "job": "Product Markets Facilitator", "root": "", "archived": false} delete_model_v1_models__model_id__delete: speakeasy-default-delete-model-v1-models-model-id-delete: parameters: @@ -13668,6 +13700,7 @@ examples: query: page_size: 50 page: 1 + split_path: "properties.split" responses: "200": application/json: {"records": {"count": 428843}} @@ -16656,7 +16689,7 @@ examples: application/json: {} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Python SDK Changes:\n* `mistral.beta.rag.ingestion_pipeline_configurations.register()`: `request.target_indexes` **Removed** (Breaking ⚠️)\n* `mistral.beta.observability.datasets.create_records()`: **Added**\n* `mistral.workflows.deployments.create_deployment_archive()`: **Added**\n* `mistral.beta.observability.datasets.import_from_playground()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.rag.search_indexes.get_deployment_summaries()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.rag.search_indexes.register_deployment()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.rag.search_indexes.unregister_deployment()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.rag.search_indexes.update_index_metrics()`: **Removed** (Breaking ⚠️)\n* `mistral.beta.observability.datasets.create()`: \n * `request.metadata` **Added**\n * `response.metadata` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list()`: \n * `response.datasets.results[].metadata` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.fetch()`: \n * `response.metadata` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.update()`: \n * `request.metadata` **Added**\n * `response.metadata` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list_records()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.create_record()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_file()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_dataset_records()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.export_to_jsonl()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.fetch_task()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list_tasks()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.fetch()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.bulk_delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.update_payload()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.update_properties()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.create_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.list_pipelines()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.get_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.update_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.delete_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.projects.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.projects.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.search()`: \n * `response.runs.results[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.search_all()`: \n * `response.runs.results[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.get()`: \n * `response` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.get_statistics()`: \n * `response` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.compute_statistics()`: \n * `response` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.records.get()`: \n * `response.output_record.generations[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.records.search()`: \n * `response.records.results[].output_record.generations[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.optimizations.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.optimizations.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.optimizations.list_trials()`: \n * `response.trials.results[].observations[].run` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.create()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.update()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.search()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.fetch_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.search()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.aggregate()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_by_id()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.fetch_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_span_by_id()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.aggregate()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.aggregate_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_latest_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_pipeline_results()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_pipeline_result_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_span_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_span_eval_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.fetch_span_field_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.fetch_span_eval_field_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.connectors.create()`: \n * `request.union(mcp).auth_methods[].union(oauth2).union(authorization_code).token_endpoint_auth_method` **Added**\n * `error.code.enum(custom_connectors_disabled)` **Added**\n* `mistral.beta.connectors.create_credentials()`: `error.code.enum(custom_connectors_disabled)` **Added**\n* `mistral.beta.connectors.update_credentials()`: `error.code.enum(custom_connectors_disabled)` **Added**\n* `mistral.beta.connectors.update()`: \n * `request_body.union(mcp).auth_methods[].union(union (0)).union(oauth2).union(authorization_code).token_endpoint_auth_method` **Added**\n * `error.code.enum(custom_connectors_disabled)` **Added**\n* `mistral.beta.context.search_indexes.create()`: `error.status[503]` **Added**\n* `mistral.beta.context.search_indexes.list()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.get()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.update()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.delete()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.ingest_documents()`: `error.status[503]` **Added**\n* `mistral.beta.context.search_indexes.delete_documents()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.search()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.navigate()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.read()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.grep()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.get_chunk()`: `error` **Changed**\n* `mistral.beta.context.search_indexes.get_index_summary()`: `error.status[503]` **Added**\n* `mistral.beta.context.search_indexes.generate_index_summary()`: `error.status[503]` **Added**\n* `mistral.beta.context.search_indexes.set_index_summary()`: `error.status[503]` **Added**\n* `mistral.beta.triggers.create()`: `response.event_source` **Changed**\n* `mistral.beta.triggers.list()`: `response.[].event_source` **Changed**\n* `mistral.beta.triggers.get()`: `response.event_source` **Changed**\n* `mistral.beta.webhooks.list()`: `response.[]` **Changed**\n* `mistral.beta.webhooks.create()`: \n * `request` **Changed**\n * `response` **Changed**\n* `mistral.beta.webhooks.get()`: `response` **Changed**\n* `mistral.audio.speech.complete()`: `response.[].data.union(speech.audio.done).usage.prompt_tokens_details` **Added**\n* `mistral.audio.transcriptions.complete()`: `response.usage.prompt_tokens_details` **Added**\n* `mistral.audio.transcriptions.stream()`: `response.[]` **Changed**\n* `mistral.chat.complete()`: \n * `request.messages[]` **Changed**\n * `response` **Changed**\n* `mistral.chat.stream()`: \n * `request.messages[]` **Changed**\n * `response.[].data` **Changed**\n* `mistral.fim.complete()`: `response` **Changed**\n* `mistral.fim.stream()`: `response.[].data` **Changed**\n* `mistral.agents.complete()`: \n * `request.messages[]` **Changed**\n * `response` **Changed**\n* `mistral.agents.stream()`: \n * `request.messages[]` **Changed**\n * `response.[].data` **Changed**\n* `mistral.embeddings.create()`: \n * `request.inputs` **Changed**\n * `response.usage.prompt_tokens_details` **Added**\n* `mistral.classifiers.moderate()`: `request.queries` **Added**\n* `mistral.classifiers.moderate_chat()`: \n * `request.inputs.union(Array<>)[]` **Changed**\n* `mistral.classifiers.classify_chat()`: \n * `request.input.union(InstructRequest).messages[]` **Changed**\n* `mistral.workflows.execute_workflow()`: `request.call_context` **Added**\n* `mistral.workflows.execute_workflow_registration()`: `request.call_context` **Added**\n* `mistral.workflows.executions.signal_workflow_execution()`: `request.call_context` **Added**\n* `mistral.workflows.executions.update_workflow_execution()`: `request.call_context` **Added**\n" +releaseNotes: "## Python SDK Changes:\n* `mistral.beta.observability.datasets.create()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.fetch()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.update()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list_records()`: \n * `request` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.create_record()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.create_records()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_file()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.import_from_dataset_records()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.export_to_jsonl()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.fetch_task()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.list_tasks()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.fetch()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.bulk_delete()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.update_payload()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.datasets.records.update_properties()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.create_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.list_pipelines()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.get_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.update_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.delete_pipeline()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.projects.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.projects.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.search()`: \n * `response.runs.results[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.search_all()`: \n * `response.runs.results[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.get()`: \n * `response` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.get_statistics()`: \n * `response` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.runs.compute_statistics()`: \n * `response` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.records.get()`: \n * `response.output_record.generations[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.records.search()`: \n * `response.records.results[].output_record.generations[]` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.optimizations.list()`: \n * `response.optimizations.results[].config` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.optimizations.get()`: \n * `response.config` **Added**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.optimizations.list_trials()`: \n * `response.trials.results[].observations[].run` **Changed**\n * `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.create()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.get()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.evaluations.scorers.update()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.search()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.list()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.logs.fetch_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.search()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.aggregate()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_by_id()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_trace_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.fetch_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.traces.get_span_by_id()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_spans()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.aggregate()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.aggregate_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_latest_span_evaluations()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.search_pipeline_results()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_pipeline_result_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_span_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.list_span_eval_fields()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.fetch_span_field_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.observability.spans.fetch_span_eval_field_options()`: `error.detail.error_code` **Changed**\n* `mistral.beta.connectors.create()`: `error.code` **Changed**\n* `mistral.beta.connectors.create_credentials()`: `error.code` **Changed**\n* `mistral.beta.connectors.update_credentials()`: `error.code` **Changed**\n* `mistral.beta.connectors.update()`: `error.code` **Changed**\n* `mistral.beta.triggers.create()`: `response.event_source.provider.enum(rootly)` **Added**\n* `mistral.beta.triggers.list()`: `response.[].event_source.provider.enum(rootly)` **Added**\n* `mistral.beta.triggers.get()`: `response.event_source.provider.enum(rootly)` **Added**\n* `mistral.beta.triggers.list_events()`: `response.data[].status.enum(skipped)` **Added**\n* `mistral.beta.webhooks.list()`: `response.[].provider.enum(rootly)` **Added**\n* `mistral.beta.webhooks.create()`: \n * `request.provider.enum(rootly)` **Added**\n * `response.provider.enum(rootly)` **Added**\n* `mistral.beta.webhooks.get()`: `response.provider.enum(rootly)` **Added**\n* `mistral.audio.sessions.create()`: `request.worker_name` **Added**\n* `mistral.models.list()`: `response.data[].union(base).capabilities.embedding` **Added**\n* `mistral.models.retrieve()`: `response.union(fine-tuned).capabilities.embedding` **Added**\n* `mistral.chat.complete()`: `request.service_tier` **Changed**\n* `mistral.chat.stream()`: `request.service_tier` **Changed**\n* `mistral.agents.complete()`: `request.service_tier` **Changed**\n* `mistral.agents.stream()`: `request.service_tier` **Changed**\n" generatedFiles: - .gitattributes - .vscode/settings.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4ead36a4..29eff819 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -33,7 +33,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 3.9.0 + version: 3.10.0 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ee097136..1810be30 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,8 +16,8 @@ sources: - 1.0.0 mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:063546f721a2fa07d26e90fddc31f4317e9e337979736b3f218bd288ef275494 - sourceBlobDigest: sha256:299c23ba84cfb85774160e24158cc6de3ac1f34e974ec7d01ada86e9d3d540fa + sourceRevisionDigest: sha256:03f02d58fb727be38f91d279a1b8cdf44899ac4c87d3299689b5efbf66a1cd35 + sourceBlobDigest: sha256:0a1d25888d666ce0ca729ee3a12d20ab638748fb775f87ccb43ac8d36a94691b tags: - latest - 1.0.0 @@ -39,10 +39,10 @@ targets: mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:063546f721a2fa07d26e90fddc31f4317e9e337979736b3f218bd288ef275494 - sourceBlobDigest: sha256:299c23ba84cfb85774160e24158cc6de3ac1f34e974ec7d01ada86e9d3d540fa + sourceRevisionDigest: sha256:03f02d58fb727be38f91d279a1b8cdf44899ac4c87d3299689b5efbf66a1cd35 + sourceBlobDigest: sha256:0a1d25888d666ce0ca729ee3a12d20ab638748fb775f87ccb43ac8d36a94691b codeSamplesNamespace: mistral-openapi-python-code-samples - codeSamplesRevisionDigest: sha256:d7e11d407412b2b3956e55036ba28180d7bdba0b1b8954238742b344546294da + codeSamplesRevisionDigest: sha256:348e5a232b567564532245764fcf50faa7da7e5c4d1579ba1facde365326f3d2 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.807.0 diff --git a/AGENTS.md b/AGENTS.md index a3a65ec5..c3a0dfce 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,13 +45,18 @@ files also list it); `sdkhooks.py`, `types.py` and `__init__.py` carry the heade This directory is the source of truth; the public `mistralai/client-python` repository is a copy of it. Releasing runs in the Buildkite pipeline `eng-sdk-codegen` in the dashboard monorepo, not in GitHub Actions: -1. Regenerate: a cron every Friday at 06:17 UTC, or a manual build with `Action = regenerate`, runs Speakeasy on - `openapi/specs/v2/` and opens the rolling dashboard pull request from `sdk/regen-client-python`. Review and merge it. +1. Regenerate: a weekly cron (its day and time are in the pipeline's + [Buildkite schedule](https://buildkite.com/mistralai/eng-sdk-codegen/settings/schedules)), or a manual build with + `Action = regenerate`, runs Speakeasy on `openapi/specs/v2/` and opens the rolling dashboard pull request from + `sdk/regen-client-python`. Review and merge it. 2. Publish: a person starts a build with `Action = publish`, from the Buildkite UI or through the Buildkite API or MCP with `action=publish`, `dry_run=false`, `clients=python` as build meta-data. It copies this directory into a pull request on the `sdk-sync` branch of `mistralai/client-python`. Publishing never regenerates, so merge step 1 first. -3. Merging that public pull request is the release: it publishes to PyPI. +3. Merging that public pull request is the release. Its `Publish MISTRALAI-SDK` workflow waits for an approval from + `@mistralai/engineering-sdk` on the `publish` environment (Actions run, **Review deployments**), then uploads to PyPI. + Its GitHub release step currently fails on the org IP allow list, so the `vX.Y.Z` release is created by hand; the + skill below has the command. The full procedure, its options and its safety checks are in the dashboard skill `openapi/.agents/skills/deploy-public-sdk/SKILL.md`. diff --git a/RELEASES.md b/RELEASES.md index 35400c86..a910d54d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2083,3 +2083,30 @@ Based on: - [python v3.9.0] . ### Releases - [PyPI v3.9.0] https://pypi.org/project/mistralai/3.9.0 - . + +## 2026-11-30 14:42:00 +### API changes +#### Schema changes + +- Added enum values `destination_already_exists` and `destination_not_found` across beta observability datasets, beta observability datasets records, beta observability evaluations, beta observability evaluations projects, beta observability evaluations runs, beta observability evaluations records, beta observability evaluations optimizations, beta observability evaluations scorers, beta observability logs, beta observability traces, beta observability spans (63 operations). +- Added request fields `split_path` and `split` in `sdk.beta.observability.datasets.list_records()`. +- Added response field `dataset_query` in `sdk.beta.observability.evaluations.runs.search()`, `sdk.beta.observability.evaluations.runs.search_all()`, `sdk.beta.observability.evaluations.runs.get()`, and `sdk.beta.observability.evaluations.optimizations.list_trials()`. +- Added response fields `min_coverage`, `coverage`, `expected_count`, `scorer_error_count`, `task_error_count`, and `std_error` across beta observability evaluations runs, beta observability evaluations records, beta observability evaluations optimizations (8 operations). +- Added response variant `pass_at` in `sdk.beta.observability.evaluations.runs.search()`, `sdk.beta.observability.evaluations.runs.search_all()`, `sdk.beta.observability.evaluations.runs.get()`, and `sdk.beta.observability.evaluations.optimizations.list_trials()`. +- Added response field `config` in `sdk.beta.observability.evaluations.optimizations.list()` and `sdk.beta.observability.evaluations.optimizations.get()`. +- Added enum values `connection_in_another_workspace` and `connector_in_another_workspace` in `sdk.beta.connectors.create()`, `sdk.beta.connectors.create_credentials()`, `sdk.beta.connectors.update_credentials()`, and `sdk.beta.connectors.update()`. +- Added response enum value `rootly` across beta triggers, beta webhooks (6 operations). +- Added response enum value `skipped` in `sdk.beta.triggers.list_events()`. +- Added request enum value `rootly` in `sdk.beta.webhooks.create()`. +- Added request field `worker_name` in `sdk.audio.sessions.create()`. +- Added response field `embedding` in `sdk.models.list()` and `sdk.models.retrieve()`. +- Added request enum values `fast` and `priority` in `sdk.chat.complete()`, `sdk.chat.stream()`, `sdk.agents.complete()`, and `sdk.agents.stream()`. + +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.807.0 (2.956.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v3.10.0] . +### Releases +- [PyPI v3.10.0] https://pypi.org/project/mistralai/3.10.0 - . diff --git a/docs/models/agentscompletionrequest.md b/docs/models/agentscompletionrequest.md index 5a0e4e02..971e4a7a 100644 --- a/docs/models/agentscompletionrequest.md +++ b/docs/models/agentscompletionrequest.md @@ -30,5 +30,5 @@ | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to use for this completion. | | \ No newline at end of file diff --git a/docs/models/agentscompletionstreamrequest.md b/docs/models/agentscompletionstreamrequest.md index f192beaa..d8d337b1 100644 --- a/docs/models/agentscompletionstreamrequest.md +++ b/docs/models/agentscompletionstreamrequest.md @@ -30,5 +30,5 @@ | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to use for this completion. | | \ No newline at end of file diff --git a/docs/models/audiosessioncreaterequest.md b/docs/models/audiosessioncreaterequest.md index 3ad22cf3..488b78f7 100644 --- a/docs/models/audiosessioncreaterequest.md +++ b/docs/models/audiosessioncreaterequest.md @@ -3,14 +3,15 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `llm` | [Optional[models.AudioLLMConfig]](../models/audiollmconfig.md) | :heavy_minus_sign: | N/A | -| `tts` | [Optional[models.AudioTTSConfig]](../models/audiottsconfig.md) | :heavy_minus_sign: | N/A | -| `stt` | [Optional[models.AudioSTTConfig]](../models/audiosttconfig.md) | :heavy_minus_sign: | N/A | -| `turn` | [Optional[models.AudioTurnConfig]](../models/audioturnconfig.md) | :heavy_minus_sign: | N/A | -| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `tools` | List[[models.AudioSessionCreateRequestTool](../models/audiosessioncreaterequesttool.md)] | :heavy_minus_sign: | N/A | -| `welcome_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `agent_version` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `llm` | [Optional[models.AudioLLMConfig]](../models/audiollmconfig.md) | :heavy_minus_sign: | N/A | +| `tts` | [Optional[models.AudioTTSConfig]](../models/audiottsconfig.md) | :heavy_minus_sign: | N/A | +| `stt` | [Optional[models.AudioSTTConfig]](../models/audiosttconfig.md) | :heavy_minus_sign: | N/A | +| `turn` | [Optional[models.AudioTurnConfig]](../models/audioturnconfig.md) | :heavy_minus_sign: | N/A | +| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `tools` | List[[models.AudioSessionCreateRequestTool](../models/audiosessioncreaterequesttool.md)] | :heavy_minus_sign: | N/A | +| `welcome_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `agent_version` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `worker_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Custom worker to dispatch to: omit it for the managed worker, send an empty string for the workspace's default custom worker, or the name a worker registered with. Custom workers must be enabled for the workspace. | \ No newline at end of file diff --git a/docs/models/categoricalstatistics.md b/docs/models/categoricalstatistics.md index b9a37cf7..a095a01e 100644 --- a/docs/models/categoricalstatistics.md +++ b/docs/models/categoricalstatistics.md @@ -11,4 +11,7 @@ | `count` | *int* | :heavy_check_mark: | N/A | | `values` | List[[models.ScalarStatisticValue](../models/scalarstatisticvalue.md)] | :heavy_minus_sign: | N/A | | `excluded_count` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `confusion_matrix` | [OptionalNullable[models.ConfusionMatrix]](../models/confusionmatrix.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `confusion_matrix` | [OptionalNullable[models.ConfusionMatrix]](../models/confusionmatrix.md) | :heavy_minus_sign: | N/A | +| `expected_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `task_error_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `scorer_error_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/chatcompletionrequest.md b/docs/models/chatcompletionrequest.md index 34305baf..1d475c25 100644 --- a/docs/models/chatcompletionrequest.md +++ b/docs/models/chatcompletionrequest.md @@ -33,5 +33,5 @@ | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `safe_prompt` | *Optional[bool]* | :heavy_minus_sign: | Whether to inject a safety prompt before all conversations. | | \ No newline at end of file diff --git a/docs/models/chatcompletionstreamrequest.md b/docs/models/chatcompletionstreamrequest.md index 435e924c..43c17015 100644 --- a/docs/models/chatcompletionstreamrequest.md +++ b/docs/models/chatcompletionstreamrequest.md @@ -33,5 +33,5 @@ | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `safe_prompt` | *Optional[bool]* | :heavy_minus_sign: | Whether to inject a safety prompt before all conversations. | | \ No newline at end of file diff --git a/docs/models/connectorerrorcode.md b/docs/models/connectorerrorcode.md index 130cca1f..cc9d2153 100644 --- a/docs/models/connectorerrorcode.md +++ b/docs/models/connectorerrorcode.md @@ -18,3 +18,5 @@ This is an open enum. Unrecognized values will not fail type checks. - `"credentials_rejected"` - `"server_unreachable"` - `"custom_connectors_disabled"` +- `"connector_in_another_workspace"` +- `"connection_in_another_workspace"` diff --git a/docs/models/datasetquery.md b/docs/models/datasetquery.md new file mode 100644 index 00000000..5f26186f --- /dev/null +++ b/docs/models/datasetquery.md @@ -0,0 +1,17 @@ +# DatasetQuery + +The part of its dataset a run evaluated: a `split`, a range (`offset`, `limit`), both (a range +within the split), or a list of `record_ids`. + +Null on a run that covers the whole dataset, or that has no dataset. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `offset` | *OptionalNullable[int]* | :heavy_minus_sign: | Range selection: index of the first record, in the order the dataset lists its records (within the split when there is one). | +| `limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Range selection: most records selected from `offset`. Null means up to the end of the dataset. | +| `record_ids` | List[*str*] | :heavy_minus_sign: | Record selection: the dataset records the run evaluated, in the order it evaluated them. | +| `split` | [OptionalNullable[models.DatasetQuerySplit]](../models/datasetquerysplit.md) | :heavy_minus_sign: | Split selection: the records whose label at `split.path` equals `split.key`. | +| `dataset_record_count` | *OptionalNullable[int]* | :heavy_minus_sign: | Range or split selection: records in the dataset when the run started. Set by the server. | \ No newline at end of file diff --git a/docs/models/datasetquerysplit.md b/docs/models/datasetquerysplit.md new file mode 100644 index 00000000..65e0240a --- /dev/null +++ b/docs/models/datasetquerysplit.md @@ -0,0 +1,12 @@ +# DatasetQuerySplit + +The split a run evaluated: the records whose label at `path` equals `key`. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `key` | *str* | :heavy_check_mark: | The split the selected records carry as their label, e.g. `test`. | +| `path` | *Optional[str]* | :heavy_minus_sign: | Where the label is read in each record: `payload` or `properties`, then the nested keys. | +| `record_count` | *OptionalNullable[int]* | :heavy_minus_sign: | Records in the split when the run started. Set by the server. | \ No newline at end of file diff --git a/docs/models/evaluationrunv2response.md b/docs/models/evaluationrunv2response.md index e2231a76..610d2485 100644 --- a/docs/models/evaluationrunv2response.md +++ b/docs/models/evaluationrunv2response.md @@ -22,6 +22,7 @@ | `record_count` | *OptionalNullable[int]* | :heavy_minus_sign: | Records whose results were uploaded so far, failed or not. Null for runs created before this counter existed. | | `failed_record_count` | *OptionalNullable[int]* | :heavy_minus_sign: | Records whose task or at least one score failed, out of `record_count`. Failed tasks and scores are left out of `statistics`, `goal_results` and `passed`. Null for runs created before this counter existed. | | `dataset_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `dataset_query` | [OptionalNullable[models.DatasetQuery]](../models/datasetquery.md) | :heavy_minus_sign: | N/A | | `evaluators` | List[[models.EvaluatorV2](../models/evaluatorv2.md)] | :heavy_check_mark: | N/A | | `run_evaluators` | List[[models.EvaluatorV2](../models/evaluatorv2.md)] | :heavy_minus_sign: | N/A | | `system` | [OptionalNullable[models.SystemV2]](../models/systemv2.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/evaluationrunv2withrefsresponse.md b/docs/models/evaluationrunv2withrefsresponse.md index 45af9f92..54dad280 100644 --- a/docs/models/evaluationrunv2withrefsresponse.md +++ b/docs/models/evaluationrunv2withrefsresponse.md @@ -22,6 +22,7 @@ | `record_count` | *OptionalNullable[int]* | :heavy_minus_sign: | Records whose results were uploaded so far, failed or not. Null for runs created before this counter existed. | | `failed_record_count` | *OptionalNullable[int]* | :heavy_minus_sign: | Records whose task or at least one score failed, out of `record_count`. Failed tasks and scores are left out of `statistics`, `goal_results` and `passed`. Null for runs created before this counter existed. | | `dataset_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `dataset_query` | [OptionalNullable[models.DatasetQuery]](../models/datasetquery.md) | :heavy_minus_sign: | N/A | | `evaluators` | List[[models.EvaluatorV2](../models/evaluatorv2.md)] | :heavy_check_mark: | N/A | | `run_evaluators` | List[[models.EvaluatorV2](../models/evaluatorv2.md)] | :heavy_minus_sign: | N/A | | `system` | [OptionalNullable[models.SystemV2]](../models/systemv2.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/getdatasetrecordsv1observabilitydatasetsdatasetidrecordsgetrequest.md b/docs/models/getdatasetrecordsv1observabilitydatasetsdatasetidrecordsgetrequest.md index 4b4edcec..6df6b1ff 100644 --- a/docs/models/getdatasetrecordsv1observabilitydatasetsdatasetidrecordsgetrequest.md +++ b/docs/models/getdatasetrecordsv1observabilitydatasetsdatasetidrecordsgetrequest.md @@ -3,8 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `dataset_id` | *str* | :heavy_check_mark: | Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `dataset_id` | *str* | :heavy_check_mark: | Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs. | +| `split` | *OptionalNullable[str]* | :heavy_minus_sign: | Only the records of this split: those whose label at `split_path` equals it, as text. | +| `split_path` | *Optional[str]* | :heavy_minus_sign: | Where the split label is read in each record: `payload` or `properties`, then the nested keys, separated by dots. Only used with `split`. | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/goalresultitem.md b/docs/models/goalresultitem.md index 11728ab7..7f57b80a 100644 --- a/docs/models/goalresultitem.md +++ b/docs/models/goalresultitem.md @@ -12,4 +12,6 @@ | `target_max` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | `actual` | *float* | :heavy_check_mark: | N/A | | `passed` | *bool* | :heavy_check_mark: | N/A | -| `direction` | [OptionalNullable[models.GoalResultItemDirection]](../models/goalresultitemdirection.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `direction` | [OptionalNullable[models.GoalResultItemDirection]](../models/goalresultitemdirection.md) | :heavy_minus_sign: | N/A | +| `coverage` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `min_coverage` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/goalspec.md b/docs/models/goalspec.md index cefd250c..7e34666d 100644 --- a/docs/models/goalspec.md +++ b/docs/models/goalspec.md @@ -10,4 +10,5 @@ | `min` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | `max` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | `values` | List[*Any*] | :heavy_minus_sign: | N/A | -| `metric` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `metric` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `min_coverage` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/missinggoalitem.md b/docs/models/missinggoalitem.md index 2752eb45..b489ce9b 100644 --- a/docs/models/missinggoalitem.md +++ b/docs/models/missinggoalitem.md @@ -1,6 +1,7 @@ # MissingGoalItem -A run evaluator goal on a metric the scorer did not return: it fails, with no number to show. +A goal that fails with no number to show: a run evaluator goal on a metric the scorer did not return, +or a goal whose statistic has no value and whose coverage is below its ``min_coverage``. Kept out of ``results`` so ``GoalResultItem.actual`` stays a number for clients that require one. diff --git a/docs/models/modelcapabilities.md b/docs/models/modelcapabilities.md index 05ac7d07..bac67929 100644 --- a/docs/models/modelcapabilities.md +++ b/docs/models/modelcapabilities.md @@ -17,6 +17,7 @@ that we don't want to expose in the API. | `ocr` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `classification` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `moderation` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `embedding` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `audio` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `audio_transcription` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `audio_transcription_realtime` | *Optional[bool]* | :heavy_minus_sign: | N/A | diff --git a/docs/models/numericstatistics.md b/docs/models/numericstatistics.md index e26b0516..38668052 100644 --- a/docs/models/numericstatistics.md +++ b/docs/models/numericstatistics.md @@ -12,4 +12,8 @@ | `min` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | `max` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | | `std` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | -| `count` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `count` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `expected_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `task_error_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `scorer_error_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `std_error` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/observabilityerrorcode.md b/docs/models/observabilityerrorcode.md index 270ef71e..fb6165b8 100644 --- a/docs/models/observabilityerrorcode.md +++ b/docs/models/observabilityerrorcode.md @@ -58,6 +58,8 @@ This is an open enum. Unrecognized values will not fail type checks. - `"PROJECT_NAME_ALREADY_EXISTS"` - `"PIPELINE_CONFIG_NOT_FOUND"` - `"PIPELINE_CONFIG_ALREADY_EXISTS"` +- `"DESTINATION_NOT_FOUND"` +- `"DESTINATION_ALREADY_EXISTS"` - `"PIPELINE_NOT_FOUND"` - `"PIPELINE_ALREADY_EXISTS"` - `"SCORER_NOT_FOUND"` diff --git a/docs/models/optimization.md b/docs/models/optimization.md index b0379213..6c453fca 100644 --- a/docs/models/optimization.md +++ b/docs/models/optimization.md @@ -23,4 +23,5 @@ | `workflow_execution_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `workflow_run_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `objective_spec` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `config` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | `outcome` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/optimizationdetail.md b/docs/models/optimizationdetail.md index 98081b94..c2b2cb60 100644 --- a/docs/models/optimizationdetail.md +++ b/docs/models/optimizationdetail.md @@ -23,6 +23,7 @@ | `workflow_execution_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `workflow_run_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `objective_spec` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `config` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | `outcome` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | `evaluation` | [OptionalNullable[models.OptimizationReference]](../models/optimizationreference.md) | :heavy_minus_sign: | N/A | | `project` | [OptionalNullable[models.OptimizationReference]](../models/optimizationreference.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/passstatisticspec.md b/docs/models/passstatisticspec.md new file mode 100644 index 00000000..8d3142d1 --- /dev/null +++ b/docs/models/passstatisticspec.md @@ -0,0 +1,27 @@ +# PassStatisticSpec + +A pass statistic over the generations of each output record (``pass_at`` = pass@k, +``pass_k`` = pass^k). + +A pass statistic counts GENERATIONS, not scores (the recompute path carries each score's +``output_record_id`` and its generation id). A generation scored several times +(``num_scores > 1``) takes the mean of its successful numeric scores and passes when that mean is +``>= threshold``. With ``n`` generations that have a successful score and ``c`` passing ones on +one record, ``pass_at`` contributes ``1 - C(n-c, k)/C(n, k)`` and ``pass_k`` contributes +``C(c, k)/C(n, k)`` (the unbiased Codex / tau-bench estimators; with ``n = k`` they reduce to +"any passed" / "all passed"). Records with ``n < k`` are excluded, so a record with an errored +generation (no successful score) drops out when ``k = num_generations``. The value is the mean +over the included records, with ``sample_count`` = their number (``None`` when none). + +``k`` must be an explicit integer >= 1: the SDKs resolve ``k=None`` (the run's +``num_generations``) before the declaration reaches the backend. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `kind` | [models.PassStatisticSpecKind](../models/passstatisticspeckind.md) | :heavy_check_mark: | N/A | +| `k` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `threshold` | [models.Threshold](../models/threshold.md) | :heavy_check_mark: | N/A | +| `goal` | [OptionalNullable[models.GoalSpec]](../models/goalspec.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/passstatisticspeckind.md b/docs/models/passstatisticspeckind.md new file mode 100644 index 00000000..03caeeee --- /dev/null +++ b/docs/models/passstatisticspeckind.md @@ -0,0 +1,18 @@ +# PassStatisticSpecKind + +## Example Usage + +```python +from mistralai.client.models import PassStatisticSpecKind + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: PassStatisticSpecKind = "pass_at" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"pass_at"` +- `"pass_k"` diff --git a/docs/models/realtimetranscriptionsessionupdatepayload.md b/docs/models/realtimetranscriptionsessionupdatepayload.md index 6c51eb4f..c53f3c7d 100644 --- a/docs/models/realtimetranscriptionsessionupdatepayload.md +++ b/docs/models/realtimetranscriptionsessionupdatepayload.md @@ -9,6 +9,6 @@ | `target_streaming_delay_ms` | *OptionalNullable[int]* | :heavy_minus_sign: | Set before sending audio. Streaming delay updates are rejected after audio starts. | | `diarize` | *OptionalNullable[bool]* | :heavy_minus_sign: | Inline speaker tagging. Set before audio starts. | | `context_bias` | List[*str*] | :heavy_minus_sign: | Anticipated phrases or terms to bias transcription towards. Replaces the current list. Can be updated after audio starts: takes effect after the next input_audio.flush, or from the next utterance if no audio was sent since the last flush. | -| `language` | *OptionalNullable[str]* | :heavy_minus_sign: | ISO-639-1 code of the input audio language. Set before audio starts. | +| `language` | *OptionalNullable[str]* | :heavy_minus_sign: | BCP 47 language tag of the input audio (e.g. 'fr'). Set before audio starts. | | `speaker_references` | Dict[str, *str*] | :heavy_minus_sign: | Reference audio for known speakers, keyed by speaker name. Predicted speakers are matched against these references. Requires diarize. Set before sending audio. | | `turn_detection` | [OptionalNullable[models.TurnDetectionConfig]](../models/turndetectionconfig.md) | :heavy_minus_sign: | Emit turn.start, turn.eager_end, turn.resume and turn.end events derived from the model's semantic voice activity detection. Set before sending audio. | \ No newline at end of file diff --git a/docs/models/requestedservicetier.md b/docs/models/requestedservicetier.md index a0516540..92d9975f 100644 --- a/docs/models/requestedservicetier.md +++ b/docs/models/requestedservicetier.md @@ -11,4 +11,6 @@ value: RequestedServiceTier = "auto" ## Values - `"auto"` +- `"priority"` +- `"fast"` - `"standard_only"` diff --git a/docs/models/responsesstreamframedata.md b/docs/models/responsesstreamframedata.md index c0a12616..e92b4c34 100644 --- a/docs/models/responsesstreamframedata.md +++ b/docs/models/responsesstreamframedata.md @@ -3,28 +3,34 @@ ## Supported Types -### `models.ResponsesCreatedEvent` +### `models.ResponsesErrorEvent` ```python -value: models.ResponsesCreatedEvent = /* values here */ +value: models.ResponsesErrorEvent = /* values here */ ``` -### `models.ResponsesInProgressEvent` +### `models.ResponsesCompletedEvent` ```python -value: models.ResponsesInProgressEvent = /* values here */ +value: models.ResponsesCompletedEvent = /* values here */ ``` -### `models.ResponsesCompletedEvent` +### `models.ResponsesContentPartAddedEvent` ```python -value: models.ResponsesCompletedEvent = /* values here */ +value: models.ResponsesContentPartAddedEvent = /* values here */ ``` -### `models.ResponsesIncompleteEvent` +### `models.ResponsesContentPartDoneEvent` ```python -value: models.ResponsesIncompleteEvent = /* values here */ +value: models.ResponsesContentPartDoneEvent = /* values here */ +``` + +### `models.ResponsesCreatedEvent` + +```python +value: models.ResponsesCreatedEvent = /* values here */ ``` ### `models.ResponsesFailedEvent` @@ -33,34 +39,40 @@ value: models.ResponsesIncompleteEvent = /* values here */ value: models.ResponsesFailedEvent = /* values here */ ``` -### `models.ResponsesErrorEvent` +### `models.ResponsesFunctionCallArgumentsDeltaEvent` ```python -value: models.ResponsesErrorEvent = /* values here */ +value: models.ResponsesFunctionCallArgumentsDeltaEvent = /* values here */ ``` -### `models.ResponsesOutputItemAddedEvent` +### `models.ResponsesFunctionCallArgumentsDoneEvent` ```python -value: models.ResponsesOutputItemAddedEvent = /* values here */ +value: models.ResponsesFunctionCallArgumentsDoneEvent = /* values here */ ``` -### `models.ResponsesOutputItemDoneEvent` +### `models.ResponsesInProgressEvent` ```python -value: models.ResponsesOutputItemDoneEvent = /* values here */ +value: models.ResponsesInProgressEvent = /* values here */ ``` -### `models.ResponsesContentPartAddedEvent` +### `models.ResponsesIncompleteEvent` ```python -value: models.ResponsesContentPartAddedEvent = /* values here */ +value: models.ResponsesIncompleteEvent = /* values here */ ``` -### `models.ResponsesContentPartDoneEvent` +### `models.ResponsesOutputItemAddedEvent` ```python -value: models.ResponsesContentPartDoneEvent = /* values here */ +value: models.ResponsesOutputItemAddedEvent = /* values here */ +``` + +### `models.ResponsesOutputItemDoneEvent` + +```python +value: models.ResponsesOutputItemDoneEvent = /* values here */ ``` ### `models.ResponsesTextDeltaEvent` @@ -87,15 +99,3 @@ value: models.ResponsesReasoningTextDeltaEvent = /* values here */ value: models.ResponsesReasoningTextDoneEvent = /* values here */ ``` -### `models.ResponsesFunctionCallArgumentsDeltaEvent` - -```python -value: models.ResponsesFunctionCallArgumentsDeltaEvent = /* values here */ -``` - -### `models.ResponsesFunctionCallArgumentsDoneEvent` - -```python -value: models.ResponsesFunctionCallArgumentsDoneEvent = /* values here */ -``` - diff --git a/docs/models/statistic.md b/docs/models/statistic.md index 4837a6a8..16eef74e 100644 --- a/docs/models/statistic.md +++ b/docs/models/statistic.md @@ -33,6 +33,18 @@ value: models.SimpleNumericStatisticSpec = /* values here */ value: models.SimpleNumericStatisticSpec = /* values here */ ``` +### `models.PassStatisticSpec` + +```python +value: models.PassStatisticSpec = /* values here */ +``` + +### `models.PassStatisticSpec` + +```python +value: models.PassStatisticSpec = /* values here */ +``` + ### `models.PercentileStatisticSpec` ```python diff --git a/docs/models/threshold.md b/docs/models/threshold.md new file mode 100644 index 00000000..459d9280 --- /dev/null +++ b/docs/models/threshold.md @@ -0,0 +1,17 @@ +# Threshold + + +## Supported Types + +### `float` + +```python +value: float = /* values here */ +``` + +### `int` + +```python +value: int = /* values here */ +``` + diff --git a/docs/models/triggerstatusvalue.md b/docs/models/triggerstatusvalue.md index bd7b41dc..cae55302 100644 --- a/docs/models/triggerstatusvalue.md +++ b/docs/models/triggerstatusvalue.md @@ -18,3 +18,4 @@ This is an open enum. Unrecognized values will not fail type checks. - `"SUBMISSION_FAILED"` - `"TRIGGERED"` - `"TRIGGER_FAILED"` +- `"SKIPPED"` diff --git a/docs/models/unsupportedstatistics.md b/docs/models/unsupportedstatistics.md index 596843d6..b64678a5 100644 --- a/docs/models/unsupportedstatistics.md +++ b/docs/models/unsupportedstatistics.md @@ -6,4 +6,7 @@ | Field | Type | Required | Description | | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | | `type` | *Optional[Literal["unsupported"]]* | :heavy_minus_sign: | N/A | -| `count` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file +| `count` | *int* | :heavy_check_mark: | N/A | +| `expected_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `task_error_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `scorer_error_count` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/webhookprovider.md b/docs/models/webhookprovider.md index f48b1dbf..b7877e34 100644 --- a/docs/models/webhookprovider.md +++ b/docs/models/webhookprovider.md @@ -22,4 +22,5 @@ This is an open enum. Unrecognized values will not fail type checks. - `"microsoft"` - `"ashby"` - `"whatsapp"` +- `"rootly"` - `"custom"` diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index a6ce04b5..c7b18370 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -69,7 +69,7 @@ with Mistral( | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ### Response @@ -145,7 +145,7 @@ with Mistral( | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `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/audiosessions/README.md b/docs/sdks/audiosessions/README.md index 58776f94..b8c812a5 100644 --- a/docs/sdks/audiosessions/README.md +++ b/docs/sdks/audiosessions/README.md @@ -34,18 +34,19 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `llm` | [Optional[models.AudioLLMConfig]](../../models/audiollmconfig.md) | :heavy_minus_sign: | N/A | -| `tts` | [Optional[models.AudioTTSConfig]](../../models/audiottsconfig.md) | :heavy_minus_sign: | N/A | -| `stt` | [Optional[models.AudioSTTConfig]](../../models/audiosttconfig.md) | :heavy_minus_sign: | N/A | -| `turn` | [Optional[models.AudioTurnConfig]](../../models/audioturnconfig.md) | :heavy_minus_sign: | N/A | -| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `tools` | List[[models.AudioSessionCreateRequestTool](../../models/audiosessioncreaterequesttool.md)] | :heavy_minus_sign: | N/A | -| `welcome_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `agent_version` | *OptionalNullable[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. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `llm` | [Optional[models.AudioLLMConfig]](../../models/audiollmconfig.md) | :heavy_minus_sign: | N/A | +| `tts` | [Optional[models.AudioTTSConfig]](../../models/audiottsconfig.md) | :heavy_minus_sign: | N/A | +| `stt` | [Optional[models.AudioSTTConfig]](../../models/audiosttconfig.md) | :heavy_minus_sign: | N/A | +| `turn` | [Optional[models.AudioTurnConfig]](../../models/audioturnconfig.md) | :heavy_minus_sign: | N/A | +| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `tools` | List[[models.AudioSessionCreateRequestTool](../../models/audiosessioncreaterequesttool.md)] | :heavy_minus_sign: | N/A | +| `welcome_message` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `agent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `agent_version` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `worker_name` | *OptionalNullable[str]* | :heavy_minus_sign: | Custom worker to dispatch to: omit it for the managed worker, send an empty string for the workspace's default custom worker, or the name a worker registered with. Custom workers must be enabled for the workspace. | +| `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/chat/README.md b/docs/sdks/chat/README.md index aca36e50..68b36116 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -71,7 +71,7 @@ with Mistral( | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `safe_prompt` | *Optional[bool]* | :heavy_minus_sign: | Whether to inject a safety prompt before all conversations. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | @@ -150,7 +150,7 @@ with Mistral( | `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | | | `guardrails` | List[[models.GuardrailConfig](../../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | | | `prompt_cache_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | -| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Determines whether to serve the request using priority or standard capacity. | | +| `service_tier` | [OptionalNullable[models.RequestedServiceTier]](../../models/requestedservicetier.md) | :heavy_minus_sign: | Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. | | | `safe_prompt` | *Optional[bool]* | :heavy_minus_sign: | Whether to inject a safety prompt before all conversations. | | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | diff --git a/docs/sdks/datasets/README.md b/docs/sdks/datasets/README.md index 3720e252..6f9d3db3 100644 --- a/docs/sdks/datasets/README.md +++ b/docs/sdks/datasets/README.md @@ -242,7 +242,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY"), ) as mistral: - res = mistral.beta.observability.datasets.list_records(dataset_id="444d2a88-e636-4bc0-ab6c-919bedaed112", page_size=50, page=1) + res = mistral.beta.observability.datasets.list_records(dataset_id="444d2a88-e636-4bc0-ab6c-919bedaed112", split_path="properties.split", page_size=50, page=1) # Handle response print(res) @@ -251,12 +251,14 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `dataset_id` | *str* | :heavy_check_mark: | Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `page` | *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. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `dataset_id` | *str* | :heavy_check_mark: | Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs. | +| `split` | *OptionalNullable[str]* | :heavy_minus_sign: | Only the records of this split: those whose label at `split_path` equals it, as text. | +| `split_path` | *Optional[str]* | :heavy_minus_sign: | Where the split label is read in each record: `payload` or `properties`, then the nested keys, separated by dots. Only used with `split`. | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `page` | *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 diff --git a/examples/audio/voice_agents/worker.py b/examples/audio/voice_agents/worker.py index cf17cf11..1a1e1db4 100644 --- a/examples/audio/voice_agents/worker.py +++ b/examples/audio/voice_agents/worker.py @@ -30,4 +30,6 @@ async def entrypoint(ctx: JobContext) -> None: if __name__ == "__main__": - run_worker(entrypoint) + # Sessions created with `client.audio.sessions.init(worker_name="voicebot")` + # run here. Leave it out to register the workspace's default custom worker. + run_worker(entrypoint, worker_name="voicebot") diff --git a/pyproject.toml b/pyproject.toml index e77eeb96..3ee3fb21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "3.9.0" +version = "3.10.0" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/src/mistralai/client/_version.py b/src/mistralai/client/_version.py index e3d0dd31..31567b3e 100644 --- a/src/mistralai/client/_version.py +++ b/src/mistralai/client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "mistralai" -__version__: str = "3.9.0" +__version__: str = "3.10.0" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.956.1" -__user_agent__: str = "speakeasy-sdk/python 3.9.0 2.956.1 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 3.10.0 2.956.1 1.0.0 mistralai" try: if __package__ is not None: diff --git a/src/mistralai/client/agents.py b/src/mistralai/client/agents.py index 8c44f409..6b16da9f 100644 --- a/src/mistralai/client/agents.py +++ b/src/mistralai/client/agents.py @@ -102,7 +102,7 @@ def complete( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :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 @@ -317,7 +317,7 @@ async def complete_async( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :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 @@ -534,7 +534,7 @@ def stream( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :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 @@ -761,7 +761,7 @@ async def stream_async( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :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/audio_sessions.py b/src/mistralai/client/audio_sessions.py index 3a994d01..09deb979 100644 --- a/src/mistralai/client/audio_sessions.py +++ b/src/mistralai/client/audio_sessions.py @@ -44,6 +44,7 @@ def create( welcome_message: OptionalNullable[str] = UNSET, agent_id: OptionalNullable[str] = UNSET, agent_version: OptionalNullable[int] = UNSET, + worker_name: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -62,6 +63,7 @@ def create( :param welcome_message: :param agent_id: :param agent_version: + :param worker_name: Custom worker to dispatch to: omit it for the managed worker, send an empty string for the workspace's default custom worker, or the name a worker registered with. Custom workers must be enabled for the workspace. :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 @@ -92,6 +94,7 @@ def create( welcome_message=welcome_message, agent_id=agent_id, agent_version=agent_version, + worker_name=worker_name, ) req = self._build_request( @@ -186,6 +189,7 @@ async def create_async( welcome_message: OptionalNullable[str] = UNSET, agent_id: OptionalNullable[str] = UNSET, agent_version: OptionalNullable[int] = UNSET, + worker_name: OptionalNullable[str] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, @@ -204,6 +208,7 @@ async def create_async( :param welcome_message: :param agent_id: :param agent_version: + :param worker_name: Custom worker to dispatch to: omit it for the managed worker, send an empty string for the workspace's default custom worker, or the name a worker registered with. Custom workers must be enabled for the workspace. :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 @@ -234,6 +239,7 @@ async def create_async( welcome_message=welcome_message, agent_id=agent_id, agent_version=agent_version, + worker_name=worker_name, ) req = self._build_request_async( diff --git a/src/mistralai/client/chat.py b/src/mistralai/client/chat.py index 21886dfe..9e2e04c1 100644 --- a/src/mistralai/client/chat.py +++ b/src/mistralai/client/chat.py @@ -192,7 +192,7 @@ def complete( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :param safe_prompt: Whether to inject a safety prompt before all conversations. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -416,7 +416,7 @@ async def complete_async( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :param safe_prompt: Whether to inject a safety prompt before all conversations. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -642,7 +642,7 @@ def stream( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :param safe_prompt: Whether to inject a safety prompt before all conversations. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -878,7 +878,7 @@ async def stream_async( :param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. :param guardrails: :param prompt_cache_key: - :param service_tier: Determines whether to serve the request using priority or standard capacity. + :param service_tier: Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto. :param safe_prompt: Whether to inject a safety prompt before all conversations. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method diff --git a/src/mistralai/client/datasets.py b/src/mistralai/client/datasets.py index 9535bfd3..21ff3c61 100644 --- a/src/mistralai/client/datasets.py +++ b/src/mistralai/client/datasets.py @@ -1046,6 +1046,8 @@ def list_records( self, *, dataset_id: str, + split: OptionalNullable[str] = UNSET, + split_path: Optional[str] = "properties.split", page_size: Optional[int] = 50, page: Optional[int] = 1, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -1056,6 +1058,8 @@ def list_records( r"""List existing records in the dataset :param dataset_id: Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs. + :param split: Only the records of this split: those whose label at `split_path` equals it, as text. + :param split_path: Where the split label is read in each record: `payload` or `properties`, then the nested keys, separated by dots. Only used with `split`. :param page_size: :param page: :param retries: Override the default retry configuration for this method @@ -1079,6 +1083,8 @@ def list_records( request = ( models.GetDatasetRecordsV1ObservabilityDatasetsDatasetIDRecordsGetRequest( dataset_id=dataset_id, + split=split, + split_path=split_path, page_size=page_size, page=page, ) @@ -1149,6 +1155,8 @@ async def list_records_async( self, *, dataset_id: str, + split: OptionalNullable[str] = UNSET, + split_path: Optional[str] = "properties.split", page_size: Optional[int] = 50, page: Optional[int] = 1, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -1159,6 +1167,8 @@ async def list_records_async( r"""List existing records in the dataset :param dataset_id: Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs. + :param split: Only the records of this split: those whose label at `split_path` equals it, as text. + :param split_path: Where the split label is read in each record: `payload` or `properties`, then the nested keys, separated by dots. Only used with `split`. :param page_size: :param page: :param retries: Override the default retry configuration for this method @@ -1182,6 +1192,8 @@ async def list_records_async( request = ( models.GetDatasetRecordsV1ObservabilityDatasetsDatasetIDRecordsGetRequest( dataset_id=dataset_id, + split=split, + split_path=split_path, page_size=page_size, page=page, ) diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index 92ec9973..d3700024 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -1068,6 +1068,8 @@ from .datasetimportresult import DatasetImportResult, DatasetImportResultTypedDict from .datasetimporttask import DatasetImportTask, DatasetImportTaskTypedDict from .datasetpreview import DatasetPreview, DatasetPreviewTypedDict + from .datasetquery import DatasetQuery, DatasetQueryTypedDict + from .datasetquerysplit import DatasetQuerySplit, DatasetQuerySplitTypedDict from .datasetrecord import DatasetRecord, DatasetRecordTypedDict from .datasetrecordsource import DatasetRecordSource from .delete_agent_v1_audio_agents_agent_id_deleteop import ( @@ -2561,6 +2563,13 @@ PartialScheduleDefinition, PartialScheduleDefinitionTypedDict, ) + from .passstatisticspec import ( + PassStatisticSpec, + PassStatisticSpecKind, + PassStatisticSpecTypedDict, + Threshold, + ThresholdTypedDict, + ) from .pause_schedule_v1_workflows_schedules_schedule_id_pause_postop import ( PauseScheduleV1WorkflowsSchedulesScheduleIDPausePostRequest, PauseScheduleV1WorkflowsSchedulesScheduleIDPausePostRequestTypedDict, @@ -4968,6 +4977,10 @@ "DatasetImportTaskTypedDict", "DatasetPreview", "DatasetPreviewTypedDict", + "DatasetQuery", + "DatasetQuerySplit", + "DatasetQuerySplitTypedDict", + "DatasetQueryTypedDict", "DatasetRecord", "DatasetRecordSource", "DatasetRecordTypedDict", @@ -6021,6 +6034,9 @@ "ParamsTypedDict", "PartialScheduleDefinition", "PartialScheduleDefinitionTypedDict", + "PassStatisticSpec", + "PassStatisticSpecKind", + "PassStatisticSpecTypedDict", "PauseScheduleV1WorkflowsSchedulesScheduleIDPausePostRequest", "PauseScheduleV1WorkflowsSchedulesScheduleIDPausePostRequestTypedDict", "Payload", @@ -6797,6 +6813,8 @@ "ThinkChunkTypedDict", "Thinking", "ThinkingTypedDict", + "Threshold", + "ThresholdTypedDict", "TimeDimension", "TimeDimensionTypedDict", "TimeSeriesMetric", @@ -8018,6 +8036,10 @@ "DatasetImportTaskTypedDict": ".datasetimporttask", "DatasetPreview": ".datasetpreview", "DatasetPreviewTypedDict": ".datasetpreview", + "DatasetQuery": ".datasetquery", + "DatasetQueryTypedDict": ".datasetquery", + "DatasetQuerySplit": ".datasetquerysplit", + "DatasetQuerySplitTypedDict": ".datasetquerysplit", "DatasetRecord": ".datasetrecord", "DatasetRecordTypedDict": ".datasetrecord", "DatasetRecordSource": ".datasetrecordsource", @@ -9087,6 +9109,11 @@ "PaginationResponseTypedDict": ".paginationresponse", "PartialScheduleDefinition": ".partialscheduledefinition", "PartialScheduleDefinitionTypedDict": ".partialscheduledefinition", + "PassStatisticSpec": ".passstatisticspec", + "PassStatisticSpecKind": ".passstatisticspec", + "PassStatisticSpecTypedDict": ".passstatisticspec", + "Threshold": ".passstatisticspec", + "ThresholdTypedDict": ".passstatisticspec", "PauseScheduleV1WorkflowsSchedulesScheduleIDPausePostRequest": ".pause_schedule_v1_workflows_schedules_schedule_id_pause_postop", "PauseScheduleV1WorkflowsSchedulesScheduleIDPausePostRequestTypedDict": ".pause_schedule_v1_workflows_schedules_schedule_id_pause_postop", "Percentile": ".percentilestatisticspec", diff --git a/src/mistralai/client/models/agentscompletionrequest.py b/src/mistralai/client/models/agentscompletionrequest.py index 40cb9081..df087674 100644 --- a/src/mistralai/client/models/agentscompletionrequest.py +++ b/src/mistralai/client/models/agentscompletionrequest.py @@ -134,7 +134,7 @@ class AgentsCompletionRequestTypedDict(TypedDict): guardrails: NotRequired[Nullable[List[GuardrailConfigTypedDict]]] prompt_cache_key: NotRequired[Nullable[str]] service_tier: NotRequired[Nullable[RequestedServiceTier]] - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" class AgentsCompletionRequest(BaseModel): @@ -203,7 +203,7 @@ class AgentsCompletionRequest(BaseModel): prompt_cache_key: OptionalNullable[str] = UNSET service_tier: OptionalNullable[RequestedServiceTier] = UNSET - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): diff --git a/src/mistralai/client/models/agentscompletionstreamrequest.py b/src/mistralai/client/models/agentscompletionstreamrequest.py index 2bedb5c9..e5b4cf5a 100644 --- a/src/mistralai/client/models/agentscompletionstreamrequest.py +++ b/src/mistralai/client/models/agentscompletionstreamrequest.py @@ -133,7 +133,7 @@ class AgentsCompletionStreamRequestTypedDict(TypedDict): guardrails: NotRequired[Nullable[List[GuardrailConfigTypedDict]]] prompt_cache_key: NotRequired[Nullable[str]] service_tier: NotRequired[Nullable[RequestedServiceTier]] - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" class AgentsCompletionStreamRequest(BaseModel): @@ -201,7 +201,7 @@ class AgentsCompletionStreamRequest(BaseModel): prompt_cache_key: OptionalNullable[str] = UNSET service_tier: OptionalNullable[RequestedServiceTier] = UNSET - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): diff --git a/src/mistralai/client/models/audiosessioncreaterequest.py b/src/mistralai/client/models/audiosessioncreaterequest.py index e972e3aa..88663cdb 100644 --- a/src/mistralai/client/models/audiosessioncreaterequest.py +++ b/src/mistralai/client/models/audiosessioncreaterequest.py @@ -74,6 +74,8 @@ class AudioSessionCreateRequestTypedDict(TypedDict): welcome_message: NotRequired[Nullable[str]] agent_id: NotRequired[Nullable[str]] agent_version: NotRequired[Nullable[int]] + worker_name: NotRequired[Nullable[str]] + r"""Custom worker to dispatch to: omit it for the managed worker, send an empty string for the workspace's default custom worker, or the name a worker registered with. Custom workers must be enabled for the workspace.""" class AudioSessionCreateRequest(BaseModel): @@ -95,6 +97,9 @@ class AudioSessionCreateRequest(BaseModel): agent_version: OptionalNullable[int] = UNSET + worker_name: OptionalNullable[str] = UNSET + r"""Custom worker to dispatch to: omit it for the managed worker, send an empty string for the workspace's default custom worker, or the name a worker registered with. Custom workers must be enabled for the workspace.""" + @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) @@ -111,10 +116,18 @@ def serialize_model(self, handler): "welcome_message", "agent_id", "agent_version", + "worker_name", ] ) nullable_fields = set( - ["instructions", "tools", "welcome_message", "agent_id", "agent_version"] + [ + "instructions", + "tools", + "welcome_message", + "agent_id", + "agent_version", + "worker_name", + ] ) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() diff --git a/src/mistralai/client/models/categoricalstatistics.py b/src/mistralai/client/models/categoricalstatistics.py index ca91b790..5fd7e199 100644 --- a/src/mistralai/client/models/categoricalstatistics.py +++ b/src/mistralai/client/models/categoricalstatistics.py @@ -29,6 +29,9 @@ class CategoricalStatisticsTypedDict(TypedDict): values: NotRequired[Nullable[List[ScalarStatisticValueTypedDict]]] excluded_count: NotRequired[int] confusion_matrix: NotRequired[Nullable[ConfusionMatrixTypedDict]] + expected_count: NotRequired[Nullable[int]] + task_error_count: NotRequired[Nullable[int]] + scorer_error_count: NotRequired[Nullable[int]] class CategoricalStatistics(BaseModel): @@ -52,13 +55,37 @@ class CategoricalStatistics(BaseModel): confusion_matrix: OptionalNullable[ConfusionMatrix] = UNSET + expected_count: OptionalNullable[int] = UNSET + + task_error_count: OptionalNullable[int] = UNSET + + scorer_error_count: OptionalNullable[int] = UNSET + @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) def serialize_model(self, handler): - optional_fields = set(["type", "values", "excluded_count", "confusion_matrix"]) - nullable_fields = set(["values", "confusion_matrix"]) + optional_fields = set( + [ + "type", + "values", + "excluded_count", + "confusion_matrix", + "expected_count", + "task_error_count", + "scorer_error_count", + ] + ) + nullable_fields = set( + [ + "values", + "confusion_matrix", + "expected_count", + "task_error_count", + "scorer_error_count", + ] + ) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) diff --git a/src/mistralai/client/models/chatcompletionrequest.py b/src/mistralai/client/models/chatcompletionrequest.py index 7725fd8d..295807c6 100644 --- a/src/mistralai/client/models/chatcompletionrequest.py +++ b/src/mistralai/client/models/chatcompletionrequest.py @@ -143,7 +143,7 @@ class ChatCompletionRequestTypedDict(TypedDict): guardrails: NotRequired[Nullable[List[GuardrailConfigTypedDict]]] prompt_cache_key: NotRequired[Nullable[str]] service_tier: NotRequired[Nullable[RequestedServiceTier]] - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" safe_prompt: NotRequired[bool] r"""Whether to inject a safety prompt before all conversations.""" @@ -223,7 +223,7 @@ class ChatCompletionRequest(BaseModel): prompt_cache_key: OptionalNullable[str] = UNSET service_tier: OptionalNullable[RequestedServiceTier] = UNSET - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" safe_prompt: Optional[bool] = None r"""Whether to inject a safety prompt before all conversations.""" diff --git a/src/mistralai/client/models/chatcompletionstreamrequest.py b/src/mistralai/client/models/chatcompletionstreamrequest.py index a935022d..fe119847 100644 --- a/src/mistralai/client/models/chatcompletionstreamrequest.py +++ b/src/mistralai/client/models/chatcompletionstreamrequest.py @@ -142,7 +142,7 @@ class ChatCompletionStreamRequestTypedDict(TypedDict): guardrails: NotRequired[Nullable[List[GuardrailConfigTypedDict]]] prompt_cache_key: NotRequired[Nullable[str]] service_tier: NotRequired[Nullable[RequestedServiceTier]] - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" safe_prompt: NotRequired[bool] r"""Whether to inject a safety prompt before all conversations.""" @@ -221,7 +221,7 @@ class ChatCompletionStreamRequest(BaseModel): prompt_cache_key: OptionalNullable[str] = UNSET service_tier: OptionalNullable[RequestedServiceTier] = UNSET - r"""Determines whether to serve the request using priority or standard capacity.""" + r"""Use auto to request priority capacity with standard fallback. Use priority or fast to require priority capacity. No entitlement returns 403, exhausted priority limits return 429, and unavailable priority service returns 503. Priority requires an enabled model and an available allocation. Use standard_only to request standard capacity. An omitted field selects standard capacity, unless the customer is configured to default to auto.""" safe_prompt: Optional[bool] = None r"""Whether to inject a safety prompt before all conversations.""" diff --git a/src/mistralai/client/models/connectorerrorcode.py b/src/mistralai/client/models/connectorerrorcode.py index 67a85ba5..b9c9a7a8 100644 --- a/src/mistralai/client/models/connectorerrorcode.py +++ b/src/mistralai/client/models/connectorerrorcode.py @@ -11,6 +11,8 @@ "credentials_rejected", "server_unreachable", "custom_connectors_disabled", + "connector_in_another_workspace", + "connection_in_another_workspace", ], UnrecognizedStr, ] diff --git a/src/mistralai/client/models/datasetquery.py b/src/mistralai/client/models/datasetquery.py new file mode 100644 index 00000000..1a0b98ba --- /dev/null +++ b/src/mistralai/client/models/datasetquery.py @@ -0,0 +1,95 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .datasetquerysplit import DatasetQuerySplit, DatasetQuerySplitTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from mistralai.client.types.basemodel import current_filtered_dump +from pydantic import model_serializer +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class DatasetQueryTypedDict(TypedDict): + r"""The part of its dataset a run evaluated: a `split`, a range (`offset`, `limit`), both (a range + within the split), or a list of `record_ids`. + + Null on a run that covers the whole dataset, or that has no dataset. + """ + + offset: NotRequired[Nullable[int]] + r"""Range selection: index of the first record, in the order the dataset lists its records (within the split when there is one).""" + limit: NotRequired[Nullable[int]] + r"""Range selection: most records selected from `offset`. Null means up to the end of the dataset.""" + record_ids: NotRequired[Nullable[List[str]]] + r"""Record selection: the dataset records the run evaluated, in the order it evaluated them.""" + split: NotRequired[Nullable[DatasetQuerySplitTypedDict]] + r"""Split selection: the records whose label at `split.path` equals `split.key`.""" + dataset_record_count: NotRequired[Nullable[int]] + r"""Range or split selection: records in the dataset when the run started. Set by the server.""" + + +class DatasetQuery(BaseModel): + r"""The part of its dataset a run evaluated: a `split`, a range (`offset`, `limit`), both (a range + within the split), or a list of `record_ids`. + + Null on a run that covers the whole dataset, or that has no dataset. + """ + + offset: OptionalNullable[int] = UNSET + r"""Range selection: index of the first record, in the order the dataset lists its records (within the split when there is one).""" + + limit: OptionalNullable[int] = UNSET + r"""Range selection: most records selected from `offset`. Null means up to the end of the dataset.""" + + record_ids: OptionalNullable[List[str]] = UNSET + r"""Record selection: the dataset records the run evaluated, in the order it evaluated them.""" + + split: OptionalNullable[DatasetQuerySplit] = UNSET + r"""Split selection: the records whose label at `split.path` equals `split.key`.""" + + dataset_record_count: OptionalNullable[int] = UNSET + r"""Range or split selection: records in the dataset when the run started. Set by the server.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set( + ["offset", "limit", "record_ids", "split", "dataset_record_count"] + ) + nullable_fields = set( + ["offset", "limit", "record_ids", "split", "dataset_record_count"] + ) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + 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/datasetquerysplit.py b/src/mistralai/client/models/datasetquerysplit.py new file mode 100644 index 00000000..eca7daa2 --- /dev/null +++ b/src/mistralai/client/models/datasetquerysplit.py @@ -0,0 +1,72 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + current_exclude_none, + serialize_with_info, +) +from mistralai.client.types.basemodel import current_filtered_dump +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class DatasetQuerySplitTypedDict(TypedDict): + r"""The split a run evaluated: the records whose label at `path` equals `key`.""" + + key: str + r"""The split the selected records carry as their label, e.g. `test`.""" + path: NotRequired[str] + r"""Where the label is read in each record: `payload` or `properties`, then the nested keys.""" + record_count: NotRequired[Nullable[int]] + r"""Records in the split when the run started. Set by the server.""" + + +class DatasetQuerySplit(BaseModel): + r"""The split a run evaluated: the records whose label at `path` equals `key`.""" + + key: str + r"""The split the selected records carry as their label, e.g. `test`.""" + + path: Optional[str] = "properties.split" + r"""Where the label is read in each record: `payload` or `properties`, then the nested keys.""" + + record_count: OptionalNullable[int] = UNSET + r"""Records in the split when the run started. Set by the server.""" + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["path", "record_count"]) + nullable_fields = set(["record_count"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + 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/evaluationrunv2response.py b/src/mistralai/client/models/evaluationrunv2response.py index 46c0ecaf..dce27760 100644 --- a/src/mistralai/client/models/evaluationrunv2response.py +++ b/src/mistralai/client/models/evaluationrunv2response.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .datasetquery import DatasetQuery, DatasetQueryTypedDict from .evaluationrunrunscorev2 import ( EvaluationRunRunScoreV2, EvaluationRunRunScoreV2TypedDict, @@ -49,6 +50,7 @@ class EvaluationRunV2ResponseTypedDict(TypedDict): failed_record_count: NotRequired[Nullable[int]] r"""Records whose task or at least one score failed, out of `record_count`. Failed tasks and scores are left out of `statistics`, `goal_results` and `passed`. Null for runs created before this counter existed.""" dataset_id: NotRequired[Nullable[str]] + dataset_query: NotRequired[Nullable[DatasetQueryTypedDict]] run_evaluators: NotRequired[List[EvaluatorV2TypedDict]] system: NotRequired[Nullable[SystemV2TypedDict]] statistics: NotRequired[Dict[str, EvaluatorStatisticsTypedDict]] @@ -97,6 +99,8 @@ class EvaluationRunV2Response(BaseModel): dataset_id: OptionalNullable[str] = UNSET + dataset_query: OptionalNullable[DatasetQuery] = UNSET + run_evaluators: Optional[List[EvaluatorV2]] = None system: OptionalNullable[SystemV2] = UNSET @@ -124,6 +128,7 @@ def serialize_model(self, handler): "record_count", "failed_record_count", "dataset_id", + "dataset_query", "run_evaluators", "system", "statistics", @@ -141,6 +146,7 @@ def serialize_model(self, handler): "record_count", "failed_record_count", "dataset_id", + "dataset_query", "system", "passed", "optimization", diff --git a/src/mistralai/client/models/evaluationrunv2withrefsresponse.py b/src/mistralai/client/models/evaluationrunv2withrefsresponse.py index 096b337d..101bc355 100644 --- a/src/mistralai/client/models/evaluationrunv2withrefsresponse.py +++ b/src/mistralai/client/models/evaluationrunv2withrefsresponse.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .datasetquery import DatasetQuery, DatasetQueryTypedDict from .evaluationrunrunscorev2 import ( EvaluationRunRunScoreV2, EvaluationRunRunScoreV2TypedDict, @@ -51,6 +52,7 @@ class EvaluationRunV2WithRefsResponseTypedDict(TypedDict): failed_record_count: NotRequired[Nullable[int]] r"""Records whose task or at least one score failed, out of `record_count`. Failed tasks and scores are left out of `statistics`, `goal_results` and `passed`. Null for runs created before this counter existed.""" dataset_id: NotRequired[Nullable[str]] + dataset_query: NotRequired[Nullable[DatasetQueryTypedDict]] run_evaluators: NotRequired[List[EvaluatorV2TypedDict]] system: NotRequired[Nullable[SystemV2TypedDict]] statistics: NotRequired[Dict[str, EvaluatorStatisticsTypedDict]] @@ -101,6 +103,8 @@ class EvaluationRunV2WithRefsResponse(BaseModel): dataset_id: OptionalNullable[str] = UNSET + dataset_query: OptionalNullable[DatasetQuery] = UNSET + run_evaluators: Optional[List[EvaluatorV2]] = None system: OptionalNullable[SystemV2] = UNSET @@ -132,6 +136,7 @@ def serialize_model(self, handler): "record_count", "failed_record_count", "dataset_id", + "dataset_query", "run_evaluators", "system", "statistics", @@ -151,6 +156,7 @@ def serialize_model(self, handler): "record_count", "failed_record_count", "dataset_id", + "dataset_query", "system", "passed", "optimization", diff --git a/src/mistralai/client/models/evaluatorv2.py b/src/mistralai/client/models/evaluatorv2.py index 39b9532b..b9362200 100644 --- a/src/mistralai/client/models/evaluatorv2.py +++ b/src/mistralai/client/models/evaluatorv2.py @@ -8,6 +8,7 @@ from .displayspec import DisplaySpec, DisplaySpecTypedDict from .goalspec import GoalSpec, GoalSpecTypedDict from .metricdirectionspec import MetricDirectionSpec, MetricDirectionSpecTypedDict +from .passstatisticspec import PassStatisticSpec, PassStatisticSpecTypedDict from .percentilestatisticspec import ( PercentileStatisticSpec, PercentileStatisticSpecTypedDict, @@ -41,6 +42,7 @@ Union[ SimpleNumericStatisticSpecTypedDict, PercentileStatisticSpecTypedDict, + PassStatisticSpecTypedDict, ClassificationStatisticSpecTypedDict, ], ) @@ -62,6 +64,8 @@ class UnknownStatistic(BaseModel): "f1": ClassificationStatisticSpec, "max": SimpleNumericStatisticSpec, "min": SimpleNumericStatisticSpec, + "pass_at": PassStatisticSpec, + "pass_k": PassStatisticSpec, "percentile": PercentileStatisticSpec, "precision": ClassificationStatisticSpec, "recall": ClassificationStatisticSpec, @@ -77,6 +81,8 @@ class UnknownStatistic(BaseModel): ClassificationStatisticSpec, SimpleNumericStatisticSpec, SimpleNumericStatisticSpec, + PassStatisticSpec, + PassStatisticSpec, PercentileStatisticSpec, ClassificationStatisticSpec, ClassificationStatisticSpec, diff --git a/src/mistralai/client/models/get_dataset_records_v1_observability_datasets_dataset_id_records_getop.py b/src/mistralai/client/models/get_dataset_records_v1_observability_datasets_dataset_id_records_getop.py index 3980f919..411009e7 100644 --- a/src/mistralai/client/models/get_dataset_records_v1_observability_datasets_dataset_id_records_getop.py +++ b/src/mistralai/client/models/get_dataset_records_v1_observability_datasets_dataset_id_records_getop.py @@ -3,6 +3,9 @@ from __future__ import annotations from mistralai.client.types import ( BaseModel, + Nullable, + OptionalNullable, + UNSET, UNSET_SENTINEL, current_exclude_none, serialize_with_info, @@ -19,6 +22,10 @@ class GetDatasetRecordsV1ObservabilityDatasetsDatasetIDRecordsGetRequestTypedDic ): dataset_id: str r"""Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs.""" + split: NotRequired[Nullable[str]] + r"""Only the records of this split: those whose label at `split_path` equals it, as text.""" + split_path: NotRequired[str] + r"""Where the split label is read in each record: `payload` or `properties`, then the nested keys, separated by dots. Only used with `split`.""" page_size: NotRequired[int] page: NotRequired[int] @@ -29,6 +36,18 @@ class GetDatasetRecordsV1ObservabilityDatasetsDatasetIDRecordsGetRequest(BaseMod ] r"""Dataset UUID or workspace-scoped slug. UUID-shaped values are always interpreted as dataset IDs.""" + split: Annotated[ + OptionalNullable[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Only the records of this split: those whose label at `split_path` equals it, as text.""" + + split_path: Annotated[ + Optional[str], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = "properties.split" + r"""Where the split label is read in each record: `payload` or `properties`, then the nested keys, separated by dots. Only used with `split`.""" + page_size: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -44,7 +63,8 @@ def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) def serialize_model(self, handler): - optional_fields = set(["page_size", "page"]) + optional_fields = set(["split", "split_path", "page_size", "page"]) + nullable_fields = set(["split"]) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) @@ -55,9 +75,17 @@ def serialize_model(self, handler): if k not in serialized and n not in serialized and skip_filtered: continue val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) if val != UNSET_SENTINEL: - if val is not None or k not in optional_fields: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): m[k] = val return m diff --git a/src/mistralai/client/models/goalresultitem.py b/src/mistralai/client/models/goalresultitem.py index b89cee59..34686a80 100644 --- a/src/mistralai/client/models/goalresultitem.py +++ b/src/mistralai/client/models/goalresultitem.py @@ -35,6 +35,8 @@ class GoalResultItemTypedDict(TypedDict): target_min: NotRequired[Nullable[float]] target_max: NotRequired[Nullable[float]] direction: NotRequired[Nullable[GoalResultItemDirection]] + coverage: NotRequired[Nullable[float]] + min_coverage: NotRequired[Nullable[float]] class GoalResultItem(BaseModel): @@ -54,13 +56,35 @@ class GoalResultItem(BaseModel): direction: OptionalNullable[GoalResultItemDirection] = UNSET + coverage: OptionalNullable[float] = UNSET + + min_coverage: OptionalNullable[float] = UNSET + @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) def serialize_model(self, handler): - optional_fields = set(["target", "target_min", "target_max", "direction"]) - nullable_fields = set(["target", "target_min", "target_max", "direction"]) + optional_fields = set( + [ + "target", + "target_min", + "target_max", + "direction", + "coverage", + "min_coverage", + ] + ) + nullable_fields = set( + [ + "target", + "target_min", + "target_max", + "direction", + "coverage", + "min_coverage", + ] + ) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) diff --git a/src/mistralai/client/models/goalspec.py b/src/mistralai/client/models/goalspec.py index 5d29b1df..1161d572 100644 --- a/src/mistralai/client/models/goalspec.py +++ b/src/mistralai/client/models/goalspec.py @@ -23,6 +23,7 @@ class GoalSpecTypedDict(TypedDict): max: NotRequired[Nullable[float]] values: NotRequired[Nullable[List[Any]]] metric: NotRequired[Nullable[str]] + min_coverage: NotRequired[Nullable[float]] class GoalSpec(BaseModel): @@ -38,13 +39,19 @@ class GoalSpec(BaseModel): metric: OptionalNullable[str] = UNSET + min_coverage: OptionalNullable[float] = UNSET + @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) def serialize_model(self, handler): - optional_fields = set(["operator", "value", "min", "max", "values", "metric"]) - nullable_fields = set(["operator", "value", "min", "max", "values", "metric"]) + optional_fields = set( + ["operator", "value", "min", "max", "values", "metric", "min_coverage"] + ) + nullable_fields = set( + ["operator", "value", "min", "max", "values", "metric", "min_coverage"] + ) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) diff --git a/src/mistralai/client/models/missinggoalitem.py b/src/mistralai/client/models/missinggoalitem.py index d729869a..41270778 100644 --- a/src/mistralai/client/models/missinggoalitem.py +++ b/src/mistralai/client/models/missinggoalitem.py @@ -16,7 +16,8 @@ class MissingGoalItemTypedDict(TypedDict): - r"""A run evaluator goal on a metric the scorer did not return: it fails, with no number to show. + r"""A goal that fails with no number to show: a run evaluator goal on a metric the scorer did not return, + or a goal whose statistic has no value and whose coverage is below its ``min_coverage``. Kept out of ``results`` so ``GoalResultItem.actual`` stays a number for clients that require one. """ @@ -30,7 +31,8 @@ class MissingGoalItemTypedDict(TypedDict): class MissingGoalItem(BaseModel): - r"""A run evaluator goal on a metric the scorer did not return: it fails, with no number to show. + r"""A goal that fails with no number to show: a run evaluator goal on a metric the scorer did not return, + or a goal whose statistic has no value and whose coverage is below its ``min_coverage``. Kept out of ``results`` so ``GoalResultItem.actual`` stays a number for clients that require one. """ diff --git a/src/mistralai/client/models/modelcapabilities.py b/src/mistralai/client/models/modelcapabilities.py index cb92a37f..af692be3 100644 --- a/src/mistralai/client/models/modelcapabilities.py +++ b/src/mistralai/client/models/modelcapabilities.py @@ -27,6 +27,7 @@ class ModelCapabilitiesTypedDict(TypedDict): ocr: NotRequired[bool] classification: NotRequired[bool] moderation: NotRequired[bool] + embedding: NotRequired[bool] audio: NotRequired[bool] audio_transcription: NotRequired[bool] audio_transcription_realtime: NotRequired[bool] @@ -57,6 +58,8 @@ class ModelCapabilities(BaseModel): moderation: Optional[bool] = False + embedding: Optional[bool] = False + audio: Optional[bool] = False audio_transcription: Optional[bool] = False @@ -83,6 +86,7 @@ def serialize_model(self, handler): "ocr", "classification", "moderation", + "embedding", "audio", "audio_transcription", "audio_transcription_realtime", diff --git a/src/mistralai/client/models/numericstatistics.py b/src/mistralai/client/models/numericstatistics.py index fe63b087..f0f83af1 100644 --- a/src/mistralai/client/models/numericstatistics.py +++ b/src/mistralai/client/models/numericstatistics.py @@ -29,6 +29,10 @@ class NumericStatisticsTypedDict(TypedDict): max: NotRequired[Nullable[float]] std: NotRequired[Nullable[float]] count: NotRequired[int] + expected_count: NotRequired[Nullable[int]] + task_error_count: NotRequired[Nullable[int]] + scorer_error_count: NotRequired[Nullable[int]] + std_error: NotRequired[Nullable[float]] class NumericStatistics(BaseModel): @@ -53,15 +57,48 @@ class NumericStatistics(BaseModel): count: Optional[int] = 0 + expected_count: OptionalNullable[int] = UNSET + + task_error_count: OptionalNullable[int] = UNSET + + scorer_error_count: OptionalNullable[int] = UNSET + + std_error: OptionalNullable[float] = UNSET + @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) def serialize_model(self, handler): optional_fields = set( - ["type", "values", "sample_count", "avg", "min", "max", "std", "count"] + [ + "type", + "values", + "sample_count", + "avg", + "min", + "max", + "std", + "count", + "expected_count", + "task_error_count", + "scorer_error_count", + "std_error", + ] + ) + nullable_fields = set( + [ + "values", + "avg", + "min", + "max", + "std", + "expected_count", + "task_error_count", + "scorer_error_count", + "std_error", + ] ) - nullable_fields = set(["values", "avg", "min", "max", "std"]) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) diff --git a/src/mistralai/client/models/observabilityerrorcode.py b/src/mistralai/client/models/observabilityerrorcode.py index af065048..d24fcfa7 100644 --- a/src/mistralai/client/models/observabilityerrorcode.py +++ b/src/mistralai/client/models/observabilityerrorcode.py @@ -51,6 +51,8 @@ "PROJECT_NAME_ALREADY_EXISTS", "PIPELINE_CONFIG_NOT_FOUND", "PIPELINE_CONFIG_ALREADY_EXISTS", + "DESTINATION_NOT_FOUND", + "DESTINATION_ALREADY_EXISTS", "PIPELINE_NOT_FOUND", "PIPELINE_ALREADY_EXISTS", "SCORER_NOT_FOUND", diff --git a/src/mistralai/client/models/optimization.py b/src/mistralai/client/models/optimization.py index dd0be740..90dbbd96 100644 --- a/src/mistralai/client/models/optimization.py +++ b/src/mistralai/client/models/optimization.py @@ -37,6 +37,7 @@ class OptimizationTypedDict(TypedDict): workflow_execution_id: NotRequired[Nullable[str]] workflow_run_id: NotRequired[Nullable[str]] objective_spec: NotRequired[Nullable[Dict[str, Any]]] + config: NotRequired[Nullable[Dict[str, Any]]] outcome: NotRequired[Nullable[Dict[str, Any]]] @@ -77,6 +78,8 @@ class Optimization(BaseModel): objective_spec: OptionalNullable[Dict[str, Any]] = UNSET + config: OptionalNullable[Dict[str, Any]] = UNSET + outcome: OptionalNullable[Dict[str, Any]] = UNSET @model_serializer(mode="wrap") @@ -94,6 +97,7 @@ def serialize_model(self, handler): "workflow_execution_id", "workflow_run_id", "objective_spec", + "config", "outcome", ] ) @@ -106,6 +110,7 @@ def serialize_model(self, handler): "workflow_execution_id", "workflow_run_id", "objective_spec", + "config", "outcome", ] ) diff --git a/src/mistralai/client/models/optimizationdetail.py b/src/mistralai/client/models/optimizationdetail.py index cc8d0c8c..94a5c776 100644 --- a/src/mistralai/client/models/optimizationdetail.py +++ b/src/mistralai/client/models/optimizationdetail.py @@ -38,6 +38,7 @@ class OptimizationDetailTypedDict(TypedDict): workflow_execution_id: NotRequired[Nullable[str]] workflow_run_id: NotRequired[Nullable[str]] objective_spec: NotRequired[Nullable[Dict[str, Any]]] + config: NotRequired[Nullable[Dict[str, Any]]] outcome: NotRequired[Nullable[Dict[str, Any]]] evaluation: NotRequired[Nullable[OptimizationReferenceTypedDict]] project: NotRequired[Nullable[OptimizationReferenceTypedDict]] @@ -80,6 +81,8 @@ class OptimizationDetail(BaseModel): objective_spec: OptionalNullable[Dict[str, Any]] = UNSET + config: OptionalNullable[Dict[str, Any]] = UNSET + outcome: OptionalNullable[Dict[str, Any]] = UNSET evaluation: OptionalNullable[OptimizationReference] = UNSET @@ -101,6 +104,7 @@ def serialize_model(self, handler): "workflow_execution_id", "workflow_run_id", "objective_spec", + "config", "outcome", "evaluation", "project", @@ -115,6 +119,7 @@ def serialize_model(self, handler): "workflow_execution_id", "workflow_run_id", "objective_spec", + "config", "outcome", "evaluation", "project", diff --git a/src/mistralai/client/models/passstatisticspec.py b/src/mistralai/client/models/passstatisticspec.py new file mode 100644 index 00000000..ea9b1099 --- /dev/null +++ b/src/mistralai/client/models/passstatisticspec.py @@ -0,0 +1,116 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .goalspec import GoalSpec, GoalSpecTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, + current_exclude_none, + serialize_with_info, +) +from mistralai.client.types.basemodel import current_filtered_dump +from pydantic import model_serializer +from typing import Literal, Union +from typing_extensions import NotRequired, TypeAliasType, TypedDict + + +PassStatisticSpecKind = Union[ + Literal[ + "pass_at", + "pass_k", + ], + UnrecognizedStr, +] + + +ThresholdTypedDict = TypeAliasType("ThresholdTypedDict", Union[float, int]) + + +Threshold = TypeAliasType("Threshold", Union[float, int]) + + +class PassStatisticSpecTypedDict(TypedDict): + r"""A pass statistic over the generations of each output record (``pass_at`` = pass@k, + ``pass_k`` = pass^k). + + A pass statistic counts GENERATIONS, not scores (the recompute path carries each score's + ``output_record_id`` and its generation id). A generation scored several times + (``num_scores > 1``) takes the mean of its successful numeric scores and passes when that mean is + ``>= threshold``. With ``n`` generations that have a successful score and ``c`` passing ones on + one record, ``pass_at`` contributes ``1 - C(n-c, k)/C(n, k)`` and ``pass_k`` contributes + ``C(c, k)/C(n, k)`` (the unbiased Codex / tau-bench estimators; with ``n = k`` they reduce to + \"any passed\" / \"all passed\"). Records with ``n < k`` are excluded, so a record with an errored + generation (no successful score) drops out when ``k = num_generations``. The value is the mean + over the included records, with ``sample_count`` = their number (``None`` when none). + + ``k`` must be an explicit integer >= 1: the SDKs resolve ``k=None`` (the run's + ``num_generations``) before the declaration reaches the backend. + """ + + kind: PassStatisticSpecKind + threshold: ThresholdTypedDict + k: NotRequired[Nullable[int]] + goal: NotRequired[Nullable[GoalSpecTypedDict]] + + +class PassStatisticSpec(BaseModel): + r"""A pass statistic over the generations of each output record (``pass_at`` = pass@k, + ``pass_k`` = pass^k). + + A pass statistic counts GENERATIONS, not scores (the recompute path carries each score's + ``output_record_id`` and its generation id). A generation scored several times + (``num_scores > 1``) takes the mean of its successful numeric scores and passes when that mean is + ``>= threshold``. With ``n`` generations that have a successful score and ``c`` passing ones on + one record, ``pass_at`` contributes ``1 - C(n-c, k)/C(n, k)`` and ``pass_k`` contributes + ``C(c, k)/C(n, k)`` (the unbiased Codex / tau-bench estimators; with ``n = k`` they reduce to + \"any passed\" / \"all passed\"). Records with ``n < k`` are excluded, so a record with an errored + generation (no successful score) drops out when ``k = num_generations``. The value is the mean + over the included records, with ``sample_count`` = their number (``None`` when none). + + ``k`` must be an explicit integer >= 1: the SDKs resolve ``k=None`` (the run's + ``num_generations``) before the declaration reaches the backend. + """ + + kind: PassStatisticSpecKind + + threshold: Threshold + + k: OptionalNullable[int] = UNSET + + goal: OptionalNullable[GoalSpec] = UNSET + + @model_serializer(mode="wrap") + def _serialize_model_with_info(self, handler, info): + return serialize_with_info(self.serialize_model, handler, info) + + def serialize_model(self, handler): + optional_fields = set(["k", "goal"]) + nullable_fields = set(["k", "goal"]) + exclude_none = current_exclude_none() + skip_filtered = exclude_none is False or current_filtered_dump() + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias if f.alias is not None else n + if k not in serialized and n not in serialized and skip_filtered: + continue + 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/realtimetranscriptionsessionupdatepayload.py b/src/mistralai/client/models/realtimetranscriptionsessionupdatepayload.py index eca46228..4f0fe415 100644 --- a/src/mistralai/client/models/realtimetranscriptionsessionupdatepayload.py +++ b/src/mistralai/client/models/realtimetranscriptionsessionupdatepayload.py @@ -28,7 +28,7 @@ class RealtimeTranscriptionSessionUpdatePayloadTypedDict(TypedDict): context_bias: NotRequired[Nullable[List[str]]] r"""Anticipated phrases or terms to bias transcription towards. Replaces the current list. Can be updated after audio starts: takes effect after the next input_audio.flush, or from the next utterance if no audio was sent since the last flush.""" language: NotRequired[Nullable[str]] - r"""ISO-639-1 code of the input audio language. Set before audio starts.""" + r"""BCP 47 language tag of the input audio (e.g. 'fr'). Set before audio starts.""" speaker_references: NotRequired[Nullable[Dict[str, str]]] r"""Reference audio for known speakers, keyed by speaker name. Predicted speakers are matched against these references. Requires diarize. Set before sending audio.""" turn_detection: NotRequired[Nullable[TurnDetectionConfigTypedDict]] @@ -49,7 +49,7 @@ class RealtimeTranscriptionSessionUpdatePayload(BaseModel): r"""Anticipated phrases or terms to bias transcription towards. Replaces the current list. Can be updated after audio starts: takes effect after the next input_audio.flush, or from the next utterance if no audio was sent since the last flush.""" language: OptionalNullable[str] = UNSET - r"""ISO-639-1 code of the input audio language. Set before audio starts.""" + r"""BCP 47 language tag of the input audio (e.g. 'fr'). Set before audio starts.""" speaker_references: OptionalNullable[Dict[str, str]] = UNSET r"""Reference audio for known speakers, keyed by speaker name. Predicted speakers are matched against these references. Requires diarize. Set before sending audio.""" diff --git a/src/mistralai/client/models/requestedservicetier.py b/src/mistralai/client/models/requestedservicetier.py index dfe1b9eb..5acf27f4 100644 --- a/src/mistralai/client/models/requestedservicetier.py +++ b/src/mistralai/client/models/requestedservicetier.py @@ -6,5 +6,7 @@ RequestedServiceTier = Literal[ "auto", + "priority", + "fast", "standard_only", ] diff --git a/src/mistralai/client/models/responsesstreamframe.py b/src/mistralai/client/models/responsesstreamframe.py index 7f894369..424b6f22 100644 --- a/src/mistralai/client/models/responsesstreamframe.py +++ b/src/mistralai/client/models/responsesstreamframe.py @@ -87,22 +87,22 @@ ResponsesStreamFrameData = Annotated[ Union[ + ResponsesErrorEvent, + ResponsesCompletedEvent, + ResponsesContentPartAddedEvent, + ResponsesContentPartDoneEvent, ResponsesCreatedEvent, + ResponsesFailedEvent, + ResponsesFunctionCallArgumentsDeltaEvent, + ResponsesFunctionCallArgumentsDoneEvent, ResponsesInProgressEvent, - ResponsesCompletedEvent, ResponsesIncompleteEvent, - ResponsesFailedEvent, - ResponsesErrorEvent, ResponsesOutputItemAddedEvent, ResponsesOutputItemDoneEvent, - ResponsesContentPartAddedEvent, - ResponsesContentPartDoneEvent, ResponsesTextDeltaEvent, ResponsesTextDoneEvent, ResponsesReasoningTextDeltaEvent, ResponsesReasoningTextDoneEvent, - ResponsesFunctionCallArgumentsDeltaEvent, - ResponsesFunctionCallArgumentsDoneEvent, ], Field(discriminator="type"), ] diff --git a/src/mistralai/client/models/triggerstatusvalue.py b/src/mistralai/client/models/triggerstatusvalue.py index 2489dffd..c06ff8ca 100644 --- a/src/mistralai/client/models/triggerstatusvalue.py +++ b/src/mistralai/client/models/triggerstatusvalue.py @@ -11,6 +11,7 @@ "SUBMISSION_FAILED", "TRIGGERED", "TRIGGER_FAILED", + "SKIPPED", ], UnrecognizedStr, ] diff --git a/src/mistralai/client/models/unsupportedstatistics.py b/src/mistralai/client/models/unsupportedstatistics.py index a879fae3..a9fba4ec 100644 --- a/src/mistralai/client/models/unsupportedstatistics.py +++ b/src/mistralai/client/models/unsupportedstatistics.py @@ -3,6 +3,9 @@ from __future__ import annotations from mistralai.client.types import ( BaseModel, + Nullable, + OptionalNullable, + UNSET, UNSET_SENTINEL, current_exclude_none, serialize_with_info, @@ -13,12 +16,15 @@ from pydantic import model_serializer from pydantic.functional_validators import AfterValidator from typing import Literal, Optional -from typing_extensions import Annotated, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class UnsupportedStatisticsTypedDict(TypedDict): count: int type: Literal["unsupported"] + expected_count: NotRequired[Nullable[int]] + task_error_count: NotRequired[Nullable[int]] + scorer_error_count: NotRequired[Nullable[int]] class UnsupportedStatistics(BaseModel): @@ -32,12 +38,23 @@ class UnsupportedStatistics(BaseModel): pydantic.Field(alias="type"), ] = "unsupported" + expected_count: OptionalNullable[int] = UNSET + + task_error_count: OptionalNullable[int] = UNSET + + scorer_error_count: OptionalNullable[int] = UNSET + @model_serializer(mode="wrap") def _serialize_model_with_info(self, handler, info): return serialize_with_info(self.serialize_model, handler, info) def serialize_model(self, handler): - optional_fields = set(["type"]) + optional_fields = set( + ["type", "expected_count", "task_error_count", "scorer_error_count"] + ) + nullable_fields = set( + ["expected_count", "task_error_count", "scorer_error_count"] + ) exclude_none = current_exclude_none() skip_filtered = exclude_none is False or current_filtered_dump() serialized = handler(self) @@ -48,9 +65,17 @@ def serialize_model(self, handler): if k not in serialized and n not in serialized and skip_filtered: continue val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) if val != UNSET_SENTINEL: - if val is not None or k not in optional_fields: + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): m[k] = val return m diff --git a/src/mistralai/client/models/webhookprovider.py b/src/mistralai/client/models/webhookprovider.py index f6f7a7ad..ad567c46 100644 --- a/src/mistralai/client/models/webhookprovider.py +++ b/src/mistralai/client/models/webhookprovider.py @@ -15,6 +15,7 @@ "microsoft", "ashby", "whatsapp", + "rootly", "custom", ], UnrecognizedStr, diff --git a/src/mistralai/client/workflows.py b/src/mistralai/client/workflows.py index dfa4ab94..31d5e8c0 100644 --- a/src/mistralai/client/workflows.py +++ b/src/mistralai/client/workflows.py @@ -88,7 +88,9 @@ def execute_workflow_and_wait( http_headers: Additional headers to set or replace on requests. Returns: - The workflow result directly + The workflow's stored result, as returned by the API. A workflow that returns a + Pydantic model comes back as that model's fields; any other return value comes back + wrapped as ``{"result": value}``; a workflow that returns None comes back as None. Raises: TimeoutError: If max_attempts is reached and workflow is still running @@ -205,7 +207,9 @@ async def execute_workflow_and_wait_async( http_headers: Additional headers to set or replace on requests. Returns: - The workflow result directly + The workflow's stored result, as returned by the API. A workflow that returns a + Pydantic model comes back as that model's fields; any other return value comes back + wrapped as ``{"result": value}``; a workflow that returns None comes back as None. Raises: TimeoutError: If max_attempts is reached and workflow is still running diff --git a/src/mistralai/extra/tests/voice_agents/test_client.py b/src/mistralai/extra/tests/voice_agents/test_client.py index cd260c4c..4f31ad4c 100644 --- a/src/mistralai/extra/tests/voice_agents/test_client.py +++ b/src/mistralai/extra/tests/voice_agents/test_client.py @@ -216,6 +216,19 @@ async def test_agent_version_is_forwarded_without_lookup_or_replacement(init, re assert request["tools"] is UNSET +@pytest.mark.asyncio +@pytest.mark.parametrize("worker_name", ["voicebot", ""]) +async def test_worker_name_is_forwarded_when_given(init, rest, worker_name): + await init(worker_name=worker_name) + assert rest.create_async.call_args.kwargs["worker_name"] == worker_name + + +@pytest.mark.asyncio +async def test_worker_name_is_omitted_for_the_managed_worker(init, rest): + await init() + assert "worker_name" not in rest.create_async.call_args.kwargs + + @pytest.mark.asyncio @pytest.mark.parametrize( ("kwargs", "message"), diff --git a/src/mistralai/extra/tests/voice_agents/test_worker.py b/src/mistralai/extra/tests/voice_agents/test_worker.py index 0bfd43d8..68572bc1 100644 --- a/src/mistralai/extra/tests/voice_agents/test_worker.py +++ b/src/mistralai/extra/tests/voice_agents/test_worker.py @@ -57,6 +57,17 @@ def test_fetch_parses_response_and_sends_auth(self): assert call.kwargs["headers"] == {"Authorization": f"Bearer {API_KEY}"} assert call.kwargs["json"] == {} + @pytest.mark.parametrize("worker_name", ["bot", ""]) + def test_fetch_includes_worker_name(self, worker_name): + payload = {"ws_url": "wss://x", "agent_name": "ws-123_bot", "token": "t"} + mock_post = MagicMock(return_value=_fake_response(payload)) + with patch.object(httpx, "post", mock_post): + client = WorkerTokenClient( + api_key=API_KEY, base_url=BASE_URL, worker_name=worker_name + ) + client.fetch_token() + assert mock_post.call_args.kwargs["json"] == {"worker_name": worker_name} + def test_requires_api_key_and_base_url(self): with pytest.raises(ValueError): WorkerTokenClient(api_key="", base_url=BASE_URL) diff --git a/src/mistralai/extra/voice_agents/README.md b/src/mistralai/extra/voice_agents/README.md index 03378619..b1bc1aee 100644 --- a/src/mistralai/extra/voice_agents/README.md +++ b/src/mistralai/extra/voice_agents/README.md @@ -172,3 +172,18 @@ an `audio` callback and, after `await session.connect()`, call `session.send_aud Custom worker authentication is retained at `mistralai.extra.voice_agents.worker`; install `livekit-agents` explicitly when using that worker helper. It is not required for the client runtime. + +## Custom workers + +`run_worker()` registers your own LiveKit worker with only a Mistral API key. +Sessions reach it through `worker_name`, which must match on both sides. Custom +workers must be enabled for the workspace. + +```python +run_worker(entrypoint, worker_name="voicebot") # the worker +await client.audio.sessions.init(worker_name="voicebot") # a session it runs +``` + +Leave `worker_name` out of `run_worker()` to register the workspace's default +custom worker, which `init(worker_name="")` selects. Without `worker_name`, +`init()` uses the managed worker. diff --git a/src/mistralai/extra/voice_agents/client.py b/src/mistralai/extra/voice_agents/client.py index e04ef243..b3b14a96 100644 --- a/src/mistralai/extra/voice_agents/client.py +++ b/src/mistralai/extra/voice_agents/client.py @@ -44,6 +44,7 @@ async def init( welcome_message: OptionalNullable[str] = UNSET, agent_id: OptionalNullable[str] = UNSET, agent_version: OptionalNullable[int] = UNSET, + worker_name: Optional[str] = None, audio_interface: Optional[AudioInterface] = None, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -62,6 +63,10 @@ async def init( A decorated FunctionHandler in tools submits its declaration and also registers its handler, without needing a separate function_handlers entry. connect() checks the handlers against the session's function tools. + + worker_name routes the session to a custom worker: "" for the workspace's + default one, or the name it registered with in run_worker(). None keeps the + managed worker. """ declared_handlers: list[FunctionHandler] = [] if isinstance(tools, Unset): @@ -121,10 +126,12 @@ async def init( async def delete_remote_session(session_id: str) -> None: await sessions.close_async(session_id=session_id, **options) + # Sent only when given: omitting it is how a session asks for the managed worker. + routing: dict[str, Any] = {} if worker_name is None else {"worker_name": worker_name} response = await sessions.create_async( llm=llm, tts=tts, stt=stt, turn=turn, instructions=instructions, tools=cast(Any, declarations), welcome_message=welcome_message, - agent_id=agent_id, agent_version=agent_version, **options, + agent_id=agent_id, agent_version=agent_version, **options, **routing, ) return VoiceAgentSession( response, delete_remote_session=delete_remote_session, diff --git a/src/mistralai/extra/voice_agents/worker.py b/src/mistralai/extra/voice_agents/worker.py index ee92e23b..8c2e9ba5 100644 --- a/src/mistralai/extra/voice_agents/worker.py +++ b/src/mistralai/extra/voice_agents/worker.py @@ -84,6 +84,7 @@ def __init__( *, api_key: str, base_url: str, + worker_name: str | None = None, timeout: float = 10.0, ) -> None: if not api_key: @@ -94,13 +95,17 @@ def __init__( self._base_url = _require_secure_url( base_url.rstrip("/"), secure="https", insecure="http", what="base_url" ) + self._worker_name = worker_name self._timeout = timeout def fetch(self) -> WorkerToken: """Fetch a fresh registration token plus ws_url / agent_name.""" + body: dict[str, Any] = {} + if self._worker_name is not None: + body["worker_name"] = self._worker_name resp = httpx.post( f"{self._base_url}{_REGISTRATION_TOKEN_PATH}", - json={}, + json=body, headers={"Authorization": f"Bearer {self._api_key}"}, timeout=self._timeout, ) @@ -244,6 +249,7 @@ def run_worker( *, api_key: str | None = None, base_url: str | None = None, + worker_name: str | None = None, setup_fnc: Callable[..., Any] | None = None, **server_kwargs: Any, ) -> None: @@ -253,6 +259,8 @@ def run_worker( engineer. ``api_key`` defaults to ``MISTRAL_API_KEY``; ``base_url`` to ``MISTRAL_AUDIO_BASE_URL`` and then to ``https://api.mistral.ai``. ``base_url`` must be ``https`` (``http`` only for localhost) since it carries the API key. + ``worker_name`` registers a named worker that sessions select with the same + ``worker_name``; without it the worker is the workspace's default custom worker. """ cli = importlib.import_module("livekit.agents").cli @@ -266,7 +274,9 @@ def run_worker( or os.environ.get("MISTRAL_AUDIO_BASE_URL", "") or "https://api.mistral.ai" ) - client = WorkerTokenClient(api_key=resolved_api_key, base_url=base_url) + client = WorkerTokenClient( + api_key=resolved_api_key, base_url=base_url, worker_name=worker_name + ) # Initial fetch resolves ws_url + agent_name (stable); token is re-fetched # per connect via the provider so a short TTL never blocks reconnection. diff --git a/uv.lock b/uv.lock index ee911ae6..a2c90e5f 100644 --- a/uv.lock +++ b/uv.lock @@ -1274,7 +1274,7 @@ wheels = [ [[package]] name = "mistralai" -version = "3.9.0" +version = "3.10.0" source = { editable = "." } dependencies = [ { name = "eval-type-backport" },