diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6e86c59c..f3920ef1 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,7 +1,7 @@ lockVersion: 2.0.0 id: 2d045ec7-2ebb-4f4d-ad25-40953b132161 management: - docChecksum: 2d9e4f612e5caf84349ab02663eee66e + docChecksum: 9c706956196b792163148d1319f38f1a docVersion: 1.0.0 speakeasyVersion: 1.685.0 generationVersion: 2.794.1 @@ -11,9 +11,9 @@ management: installationURL: https://github.com/mistralai/client-python.git published: true persistentEdits: - generation_id: 3aa9018f-cb6c-4c1b-96d0-b832fd5f6513 - pristine_commit_hash: 5c4e3b65b7572c91338d50dc3ca91ea6a46eedf7 - pristine_tree_hash: aaea604044e12872107c3b550ea7be094fb66a99 + generation_id: e0c4c4c6-63e4-49f5-abfe-a6c11966c9ff + pristine_commit_hash: 697c4605871adb3783f52082227550e728d0504f + pristine_tree_hash: 88ce5c7d8fdb973b3772b3118782eea741caa58b features: python: additionalDependencies: 1.0.0 @@ -76,6 +76,10 @@ trackedFiles: id: 468e0d1614bb last_write_checksum: sha1:6e60bf4a18d791d694e90c89bdb8cc38e43c324b pristine_git_object: 668a8dc0f0c51a231a73aed51b2db13de243a038 + docs/models/agentconversationgetconversationresponse.md: + id: e9df3063a382 + last_write_checksum: sha1:fcbc6c26f7dfb05a5b90359644063bdac901a3eb + pristine_git_object: 31371bb37bc569de0c9604e12247162bcdddd4b1 docs/models/agentconversationobject.md: id: cfd35d9dd4f2 last_write_checksum: sha1:112552d4a241967cf0a7dcb981428e7e0715dc34 @@ -112,6 +116,106 @@ trackedFiles: id: ed24a6d647a0 last_write_checksum: sha1:ff5dfde6cc19f09c83afb5b4f0f103096df6691d pristine_git_object: 70e143b030d3041c7538ecdacb8f5f9f8d1b5c92 + docs/models/agentsapiv1agentscreateorupdatealiasrequest.md: + id: c09ec9946094 + last_write_checksum: sha1:0883217b4bad21f5d4f8162ca72005bf9105a93f + pristine_git_object: 79406434cc6ff3d1485089f35639d6284f66d6cb + docs/models/agentsapiv1agentsdeletealiasrequest.md: + id: 429307ab315d + last_write_checksum: sha1:8e0a8388bb51c234aa1eb5566cb68389ebe57574 + pristine_git_object: 8e95c0c31e8ac92b374c153d622d7806b9e59a8d + docs/models/agentsapiv1agentsdeleterequest.md: + id: 0faaaa59add9 + last_write_checksum: sha1:2a34269e682bb910b83814b4d730ba2ce07f8cb2 + pristine_git_object: 2799f41817ab0f7a22b49b4ff895c8308525953c + docs/models/agentsapiv1agentsgetagentversion.md: + id: 3316961b40c4 + last_write_checksum: sha1:e4f4c6a64b1c2ec9465b7ad008df4d7859098e59 + pristine_git_object: 7fb9f2d578c4901ca1b41aaada6acc3a5ee94fa1 + docs/models/agentsapiv1agentsgetrequest.md: + id: 01740ae62cff + last_write_checksum: sha1:bc86e90289ec09b40212083a82455b4fe71c7194 + pristine_git_object: ceffe0096ffd6db97a6018d34870c29cec4fb0d3 + docs/models/agentsapiv1agentsgetversionrequest.md: + id: 88ed22b85cde + last_write_checksum: sha1:0ef23807c8efa2662144da66745045abdd2cb60a + pristine_git_object: 96a7358943a69e871a2bb7f0f30d6fe2bb8dff3d + docs/models/agentsapiv1agentslistrequest.md: + id: c2720c209527 + last_write_checksum: sha1:99502da34d868f1563ad1e3ea256f3becdbefa11 + pristine_git_object: 4785a54c561f5f9e1eb7ffd3317c5faa9b8b56dd + docs/models/agentsapiv1agentslistversionaliasesrequest.md: + id: 69c8bce2c017 + last_write_checksum: sha1:4083fc80627b2cc04fd271df21393944730ef1ba + pristine_git_object: 3083bf92641404738948cd57306eac978b701551 + docs/models/agentsapiv1agentslistversionsrequest.md: + id: 0bc44ed8d6bb + last_write_checksum: sha1:315790552fc5b2b3a6c4f7be2eb33100133abe18 + pristine_git_object: 91831700bed92cb4f609f8c412dcb0ee98b544ca + docs/models/agentsapiv1agentsupdaterequest.md: + id: 7692812cd677 + last_write_checksum: sha1:8b17ce9d488b5eab892b66ca44d0e0a01b56aa11 + pristine_git_object: f60f8e5ba0cc6923935187ba221875d757c4693e + docs/models/agentsapiv1agentsupdateversionrequest.md: + id: a001251b1624 + last_write_checksum: sha1:0ee9e0fc55fd969f2b8f2c55dec93bf10e0e5b2f + pristine_git_object: e937acc9b1d3f50eee69495b1305f7aee1c960ac + docs/models/agentsapiv1conversationsappendrequest.md: + id: 70f76380e810 + last_write_checksum: sha1:d428dc114b60362d269b5ae50a57ea60b9edee1a + pristine_git_object: ac8a00ecab30305de8eb8c7c08cda1b1c04148c3 + docs/models/agentsapiv1conversationsappendstreamrequest.md: + id: f6ada9a592c5 + last_write_checksum: sha1:8a806ca2e5bad75d9d0cf50726dc0d5b8e7e3eab + pristine_git_object: dbc330f11aa3039c9cea2dd7d477d56d5c4969d0 + docs/models/agentsapiv1conversationsdeleterequest.md: + id: c2c9f084ed93 + last_write_checksum: sha1:9ecca93f8123cebdd1f9e74cf0f4a104b46402a8 + pristine_git_object: c6eed281331cb4d2cac4470de5e04935d22eca5a + docs/models/agentsapiv1conversationsgetagentconversationobject.md: + id: 86efd080dc90 + last_write_checksum: sha1:d3a92571826f831905116d3fd97b08ec8a66cfef + pristine_git_object: 75d688403b6a54bb83c6393cf9cdb7473cd051c4 + docs/models/agentsapiv1conversationsgetagentversion.md: + id: a51c2a02d630 + last_write_checksum: sha1:ac2b4e78f375b77e4e5d7e055ae39a5517a52b7f + pristine_git_object: 7cd87d29a1bc49ed4c0499d74399feca3ce8c646 + docs/models/agentsapiv1conversationsgetmodelconversationobject.md: + id: 2630faaffd42 + last_write_checksum: sha1:ca433eec4334da1f135095f4d45cff2aa4bf14af + pristine_git_object: f0bea14f58a1d2b28aec69ea650e78310d407d1e + docs/models/agentsapiv1conversationsgetrequest.md: + id: d6acce23f92c + last_write_checksum: sha1:b5d5529b72c16293d3d9b5c45dcb2e3798405bcf + pristine_git_object: 67d450c88778cb27d7d0ba06d49d9f419840b32e + docs/models/agentsapiv1conversationsgettool.md: + id: 7279dfb54412 + last_write_checksum: sha1:00370ef9f2e1f5deb69b598c2cb3fcdd4e3c2b96 + pristine_git_object: 57a31f4b4db43c55bef9d57dc19e5e2f45fb7409 + docs/models/agentsapiv1conversationshistoryrequest.md: + id: e3efc36ea8b5 + last_write_checksum: sha1:4155100eaed6d3b7410b3f4476f000d1879576be + pristine_git_object: 7e5d39e9a11ac437a24b8c059db56527fa93f8b0 + docs/models/agentsapiv1conversationslistrequest.md: + id: 406c3e92777a + last_write_checksum: sha1:d5c5effcf2ca32900678d20b667bdaf8ca908194 + pristine_git_object: 62c9011faf26b3a4268186f01caf98c186e7d5b4 + docs/models/agentsapiv1conversationslistresponse.md: + id: 394c37d2203f + last_write_checksum: sha1:1144f41f8a97daacfb75c11fdf3575e553cf0859 + pristine_git_object: b233ee203ff5da0c65d6e9f87b2925d6802d2c0a + docs/models/agentsapiv1conversationsmessagesrequest.md: + id: 2c749c6620d4 + last_write_checksum: sha1:781e526b030653dc189d94ca04cdc4742f9506d2 + pristine_git_object: a91ab0466d57379eacea9d475c72db9cb228a649 + docs/models/agentsapiv1conversationsrestartrequest.md: + id: 6955883f9a44 + last_write_checksum: sha1:99c1455c7fde9b82b6940e6e1ed4f363d7c38de9 + pristine_git_object: a18a41f5395adae3942573792c86ddf7c3812ff4 + docs/models/agentsapiv1conversationsrestartstreamrequest.md: + id: 0c39856fd70e + last_write_checksum: sha1:d03475c088c059077049270c69be01c67a17f178 + pristine_git_object: 7548286af5d1db51fbfd29c893eb8afdc3c97c4d docs/models/agentscompletionrequest.md: id: 906b82c214dc last_write_checksum: sha1:84ee0378e413830260a279a67fc3b1342e643328 @@ -160,22 +264,10 @@ trackedFiles: id: be613fd9b947 last_write_checksum: sha1:4d984c11248f7da42c949164e69b53995d5942c4 pristine_git_object: 8d83a26f19241da5ce626ff9526575c50e5d27be - docs/models/appendconversationrequest.md: - id: 295b6d446690 - last_write_checksum: sha1:0c3d7091b19abf30fb0b78800cab292abd902c1d - pristine_git_object: 977d8e8b797c8ae36de4da90bc32bba47a6a0779 - docs/models/appendconversationstreamrequest.md: - id: aeea33736f95 - last_write_checksum: sha1:a0b5b036e46688e862c7f7671c86f965b5322742 - pristine_git_object: a23231c2c2f0017ba29c8863c3046aebe8f57ff1 docs/models/archiveftmodelout.md: id: 9e855deac0d1 last_write_checksum: sha1:41866e666241ed42e5e7c6df5a64b887f1ff774b pristine_git_object: 98fa7b19e4579198b433eccc76b2b4d990476b72 - docs/models/archivemodelrequest.md: - id: 3fde72a45ad9 - last_write_checksum: sha1:60eaa9be631215c63a2c01da7da809ec34f5b01a - pristine_git_object: 806d135e2bc6c0da2b20a4bb84107d3ab31962ad docs/models/arguments.md: id: 7ea5e33709a7 last_write_checksum: sha1:09eea126210d7fd0353e60a76bf1dbed173f13ec @@ -220,22 +312,18 @@ trackedFiles: id: 2f62bfbd650e last_write_checksum: sha1:4b29e0d24060b6724e82aeee05befe1cddb316f4 pristine_git_object: 0f42504fd6446c0baf4686bfbb8481658b6789cd + docs/models/basemodelcardgetmodelresponse.md: + id: ed1393faec3b + last_write_checksum: sha1:2f19ee59e46838754662f655fdd758241c306022 + pristine_git_object: 1dbd021d76d6d3a5dcf863f9b9a8e10123631a48 docs/models/batcherror.md: id: 8053e29a3f26 last_write_checksum: sha1:23a12dc2e95f92a7a3691bd65a1b05012c669f0f pristine_git_object: 95016cdc4c6225d23edc4436e11e4a7feacf1fe6 - docs/models/batchjobin.md: - id: 10f37fc761f1 - last_write_checksum: sha1:0acea471920959b7c85a015e557216c783de4e88 - pristine_git_object: 7dcf265dfe63cbbd13b7fa0e56fc62717f3ee050 - docs/models/batchjobout.md: - id: 49a98e5b2aba - last_write_checksum: sha1:b504fcf5a65567ec114fdc5b79cabe7554b36cac - pristine_git_object: 5f1011734b249a75cf9381d024f295fe31ff9f68 - docs/models/batchjobsout.md: - id: d8041dee5b90 - last_write_checksum: sha1:5e4127548b50abbb6cee267ac53a8e05f55b97f9 - pristine_git_object: 7a9d6f688e87851ed7ffa516523e12cb3f967c68 + docs/models/batchjob.md: + id: de2a00d0f739 + last_write_checksum: sha1:1160822c4032e1745dfaf37abcac02e78cbc4fb4 + pristine_git_object: 162e2cff3a1132f2b89e57dcf1bf8b4c403b6453 docs/models/batchjobstatus.md: id: 7e6f034d3c91 last_write_checksum: sha1:9e876b4b94255e1399bbb31feb51e08691bcb8fc @@ -248,18 +336,10 @@ trackedFiles: id: 9d14e972f08a last_write_checksum: sha1:1f32eb515e32c58685d0bdc15de09656194c508c pristine_git_object: f96f50444aaa23ca291db2fd0dc69db0d9d149d9 - docs/models/cancelbatchjobrequest.md: - id: db6860fe9ec3 - last_write_checksum: sha1:d2f55d5ffec21f6f70cc77c643c73113b0d1ed43 - pristine_git_object: f31f843bb864fc21ed620e4e069b8a97a091d99c - docs/models/cancelfinetuningjobrequest.md: - id: 10d341c56c9c - last_write_checksum: sha1:a484ad9d8eb791d60e5447b845b73871e9f1e6a3 - pristine_git_object: 6525788cd527eca4d89f95d4c829c1b3eda0f06e docs/models/cancelfinetuningjobresponse.md: id: 0c9ca281a898 - last_write_checksum: sha1:ac02c2a268a21430e74f8075671de0b97fd844e6 - pristine_git_object: c512342e575e9b6d57da08b20f50c86510d246d8 + last_write_checksum: sha1:41c5279e3d36accd5fe9b0ee4cdda37214661e3f + pristine_git_object: 76bc84a6ff9e4de254f27e4a8e71cdc802c1180a docs/models/chatclassificationrequest.md: id: 57b86771c870 last_write_checksum: sha1:2ee5fff26c780ade7ed89617358befa93a6dfd23 @@ -344,26 +424,30 @@ trackedFiles: id: 97a5eab5eb54 last_write_checksum: sha1:41269d1372be3523f46cb57bd19292af4971f7c0 pristine_git_object: f3b10727b023dd83a207d955b3d0f3cd4b7479a1 - docs/models/classifierdetailedjobout.md: - id: a2084ba5cc8c - last_write_checksum: sha1:ee206a5c68bd7aed201f8274d0710e8c570a35d2 - pristine_git_object: fb532449458fb445bb79d3fa0ed8e6faa538f00a - docs/models/classifierdetailedjoboutintegration.md: - id: 7a775cbd4d9f - last_write_checksum: sha1:6b2691766c1795d17b1572076a693eb377c5307f - pristine_git_object: 9dfa6e8a179529bd12fb8935c264e3c57c62cb41 - docs/models/classifierdetailedjoboutstatus.md: - id: a98493f9d02d - last_write_checksum: sha1:3441d9961e9093d314dd1bc88df1743cd12866d2 - pristine_git_object: c3118aafa8614f20c9adf331033e7822b6391752 - docs/models/classifierftmodelout.md: - id: 268ac482c38b - last_write_checksum: sha1:46bdbe1176bbf43dd79a4ff8255129fd82bd97bc - pristine_git_object: 6e7afbbed075efe2e29f42b7bc3d758fe47460d4 + docs/models/classifierdetailedjoboutcancelfinetuningjobresponse.md: + id: 23cf7840d4f8 + last_write_checksum: sha1:5f0197679f72984058b3137524b0dfd621ea3c76 + pristine_git_object: 895384de2feef502ecac30a39a2d6c285da3d5b5 + docs/models/classifierdetailedjoboutgetfinetuningjobresponse.md: + id: f952d115d51f + last_write_checksum: sha1:dc028c60fe0c993e48014d3cd6395647414630bf + pristine_git_object: 99cc4256b1168c8791045bcab943226b323bcb6e + docs/models/classifierdetailedjoboutstartfinetuningjobresponse.md: + id: 9dc5181b659d + last_write_checksum: sha1:0c728aa2391b4fa59c6b6b1e009f391b58c40b54 + pristine_git_object: 443d84bf8767411aa2327c5a4f8071b07faa8ed2 + docs/models/classifierftmodeloutupdatemodelresponse.md: + id: 620dc4e8ddf0 + last_write_checksum: sha1:7458f399cf3ed386a4deb67a788ddd11eaab3109 + pristine_git_object: ca516cfa043fb29166780f5bc1518c5df33afde5 docs/models/classifierjobout.md: id: 2e3498af3f8c last_write_checksum: sha1:70845cc24cd48987552ca337ea5522066e6de1b9 pristine_git_object: ceecef5decdbd74a9741401ad0f1a9e8e215ae82 + docs/models/classifierjoboutcreatefinetuningjobresponse.md: + id: 7ad7f1368a83 + last_write_checksum: sha1:6315d69776585fee235511836272fa713412cfae + pristine_git_object: 2fd4b2916ad3c59ace17dfbdcb819fef95558675 docs/models/classifierjoboutintegration.md: id: 30a340fed57d last_write_checksum: sha1:72dfda442a88f977f3480c95127534a600362806 @@ -404,34 +488,34 @@ trackedFiles: id: 60cb30423c60 last_write_checksum: sha1:61b976fe2e71236cf7941ee1635decc31bd304b2 pristine_git_object: 7f8ab5e631e2c6d1d9830325e591a7e434b83a35 - docs/models/completiondetailedjobout.md: - id: 634ca7241abd - last_write_checksum: sha1:7899568eedfa04cccb5b07c2e0d1e821af8fb0a2 - pristine_git_object: bc7e5d1cb5c298d0d935a9e3472ad547b5b9714c - docs/models/completiondetailedjoboutintegration.md: - id: f8d1f509f456 - last_write_checksum: sha1:3317db3f71962623a6144e3de0db20b4abfd5b9b - pristine_git_object: 9e526053160cc393dc65242cff8f8143bc67e38c - docs/models/completiondetailedjoboutrepository.md: - id: a8e7452065a7 - last_write_checksum: sha1:b1910efc6cd1e50391cd33daef004441bac3d3cd - pristine_git_object: 92a7b75c51f27e73ca41d5ffee28921057959878 - docs/models/completiondetailedjoboutstatus.md: - id: c606d38452e2 - last_write_checksum: sha1:1e9a5736de32a44cf539f7eaf8214aad72ec4994 - pristine_git_object: b80525bad8f6292892d8aee864a549c8ec52171c + docs/models/completiondetailedjoboutcancelfinetuningjobresponse.md: + id: 34ebe86d7e64 + last_write_checksum: sha1:15060263c93850c707e342a774f0a43591112323 + pristine_git_object: c2d23c0b723d3749654b14dc5cb1b2a468c494e8 + docs/models/completiondetailedjoboutgetfinetuningjobresponse.md: + id: ca95a8c5c0e4 + last_write_checksum: sha1:c1d402bbbd387776e7224028eed35484a802ee01 + pristine_git_object: 01875391d6339a1fd234122f32561ac3ecf55004 + docs/models/completiondetailedjoboutstartfinetuningjobresponse.md: + id: 70503f957b22 + last_write_checksum: sha1:13c0b97d947b2302e5e44a5d84df8b740a3362a5 + pristine_git_object: fd10c88347d46f0f546910080a1467b2b35ecd51 docs/models/completionevent.md: id: e57cd17cb9dc last_write_checksum: sha1:4f59c67af0b11c77b80d2b9c7aca36484d2be219 pristine_git_object: 7a66e8fee2bb0f1c58166177653893bb05b98f1d - docs/models/completionftmodelout.md: - id: 93fed66a5794 - last_write_checksum: sha1:ee4bccae36229f23b1db8894585cc8e88ad71f6d - pristine_git_object: ccd4844fab92d000de1cc9ba59c884e31dc5db26 + docs/models/completionftmodeloutupdatemodelresponse.md: + id: 07c5d3dee45f + last_write_checksum: sha1:b7a4711ac69bb4762d499106068479247dd04c5f + pristine_git_object: 41da5145433415955b8e3bc11b42c72e9559a5e5 docs/models/completionjobout.md: id: 77315b024171 last_write_checksum: sha1:a08ca1dcedbb9b88b9909a4b03251e2fb0cd8319 pristine_git_object: 5eb44eef73872b0f1c2709381fc0852e3b3e224b + docs/models/completionjoboutcreatefinetuningjobresponse.md: + id: fd1ff8749749 + last_write_checksum: sha1:ff548c1093e8ddf265360120ad51c37d352567b0 + pristine_git_object: d1f62f23e1da20484c41563e266c4a8cc1e67c07 docs/models/completionjoboutintegration.md: id: 25e651dd8d58 last_write_checksum: sha1:59711a3fa46d6a4bff787a61c81ecc34bdaaec2e @@ -576,54 +660,46 @@ trackedFiles: id: 57ef89d3ab83 last_write_checksum: sha1:d92408ad37d7261b0f83588e6216871074a50225 pristine_git_object: 57e260335959c605a0b9b4eaa8bf1f8272f73ae0 - docs/models/createfinetuningjobresponse.md: - id: a9d31306296c - last_write_checksum: sha1:a15ccee66983fcc23321f966440d02fab4463178 - pristine_git_object: f82cd793b466b0028b586781d36c690c0e5f97cd - docs/models/createorupdateagentaliasrequest.md: - id: be33079aa124 - last_write_checksum: sha1:84cb72c549ee74c44dcf00b3f6a100060e322295 - pristine_git_object: af2591ebb584965f5110ed987993f3a72b513255 - docs/models/deleteagentaliasrequest.md: - id: c116b5c42b1b - last_write_checksum: sha1:51e1544cc867389120a2d1fbb4780c855690841e - pristine_git_object: 17812ec4a03b452a2d31950cc5a9e87a8f6d79f7 - docs/models/deleteagentrequest.md: - id: 6411b6df1c85 - last_write_checksum: sha1:1157d4717b75be91744bd7464c042e367faa4b71 - pristine_git_object: 0aaacae471dd81ddc5ce4808abdd2b5653503ff6 - docs/models/deleteconversationrequest.md: - id: 7247871c454c - last_write_checksum: sha1:a43ed3e32630fbb41921fa413ab2a26a914e425e - pristine_git_object: 39d9e5dfd52d9df1d1da7093761b65e0d12a0b40 - docs/models/deletedocumentrequest.md: - id: 898eebfc019e - last_write_checksum: sha1:f06a13be4484048cf15c21d46eb2d107057b39db - pristine_git_object: eb060099f1b078fd084551338b51ee6677e8d235 - docs/models/deletefileout.md: - id: c7b84242a45c - last_write_checksum: sha1:f2b039ab88fc83ec5dd765cab8e2ed8cce7e417d - pristine_git_object: 4709cc4958d008dc24430deb597f801b91c6957f - docs/models/deletefilerequest.md: - id: ca151d3da83a - last_write_checksum: sha1:ec50f13b099a6ef28d7965f7c8721ce1f505f7d2 - pristine_git_object: bceae901954471a8667a3a61e66da6361ef50190 - docs/models/deletelibraryaccessrequest.md: - id: ca39ae894c1f - last_write_checksum: sha1:41b7cd5c2e4616d3edefeb271dd7089fa04bd67d - pristine_git_object: c7034b98c30234a0a8cb368d84d9b287690027de - docs/models/deletelibraryrequest.md: - id: 4be1af37ab41 - last_write_checksum: sha1:2769939a702c26be619f6c455cd48365b64110cc - pristine_git_object: c229ad73b2a7c39dab0ccdfa29e1f0475f0cdc7b + docs/models/createbatchjobrequest.md: + id: e79afe8f495c + last_write_checksum: sha1:1d093562cc090418063d0518cd5d560282104f2c + pristine_git_object: 7c562d916a26382287f61fa5e9285c9fe282acc3 + docs/models/createfinetuningjobrequest.md: + id: 36824ba035ff + last_write_checksum: sha1:d7618e8bc17ee385cb583a912b835c35adab0f5a + pristine_git_object: 2e73b044358c709ecb53f5036c25eecf9c296f73 + docs/models/createfinetuningjobrequestintegration.md: + id: e41b5575b494 + last_write_checksum: sha1:06dab95269f4a571a4c62a7f956fbf0250a0e8b3 + pristine_git_object: 0054a4a683a88fe67f92c1659bcb8c792ca8d286 + docs/models/createfinetuningjobrequestrepository.md: + id: e113eb1929b5 + last_write_checksum: sha1:6bd504d3ecb219f3245a83d306c1792133b96769 + pristine_git_object: 32be1b6dc3fcf7f6ee1a1d71abee4c81493655c2 + docs/models/createfinetuningjobresponseunion1.md: + id: 8c23538553ba + last_write_checksum: sha1:ff712b688b5b597958dc2b1df8a8e919c1f81050 + pristine_git_object: 3952ff79bffd8ea33a7f928ac105cb654ebfb147 + docs/models/createfinetuningjobresponseunion2.md: + id: 5dab50aa6465 + last_write_checksum: sha1:2179558158b9b833c30717089f7a35085cde02e8 + pristine_git_object: 3c837ce4cd39c0ebac9ffb9317462683d82f248d + docs/models/createlibraryrequest.md: + id: 8935b2ed9d13 + last_write_checksum: sha1:c00abfe1abb0f0323e434b084dafa0d451eb3e51 + pristine_git_object: 71562806dbec6444dcdd0a19852a31ca00b6229a + docs/models/deletefileresponse.md: + id: ab3aa44589a0 + last_write_checksum: sha1:47ebc2474e4725e9ecb0f0d5940c604d9a82a4df + pristine_git_object: 188e2504606b051674352339c6aa999116a43b61 docs/models/deletemodelout.md: id: 5643e76768d5 last_write_checksum: sha1:1593c64f7673e59b7ef1f4ae9f5f6b556dd6a269 pristine_git_object: 5fd4df7a7013dcd4f6489ad29cdc664714d32efd - docs/models/deletemodelrequest.md: - id: 22c414d48ee4 - last_write_checksum: sha1:a60f549577b3461cb7552ad2080a34ad389f8579 - pristine_git_object: d80103f1610668292589b6d7b861de814c17afda + docs/models/deletemodelv1modelsmodeliddeleterequest.md: + id: c838cee0f093 + last_write_checksum: sha1:e5b6d18b4f8ab91630ae34a4f50f01e536e08d99 + pristine_git_object: d9bc15fe393388f7d0c41abce97ead17e35e2ba4 docs/models/deltamessage.md: id: 6c5ed6b60968 last_write_checksum: sha1:00052476b9b2474dbc149f18dd18c71c86d0fc74 @@ -634,28 +710,24 @@ trackedFiles: pristine_git_object: 8142772d7ea33ad8a75cf9cf822564ba3f630de2 docs/models/document.md: id: cd1d2a444370 - last_write_checksum: sha1:d00a2ac808a0ae83a7b97da87e647ecc8dca9c52 - pristine_git_object: 509d43b733d68d462853d9eb52fc913c855dff40 + last_write_checksum: sha1:07ada75c7513e5328c2a0963c0f864bedb1b9239 + pristine_git_object: b2dc27c0b25435dbaeb5849492dc2eccfb9cad32 docs/models/documentlibrarytool.md: id: 68083b0ef8f3 last_write_checksum: sha1:470b969fa4983c0e7ad3d513b4b7a4fa8d5f0f41 pristine_git_object: 1695bad40cb0a1eb269e4ee12c6a81cbf0c7749a - docs/models/documentout.md: - id: a69fd1f47711 - last_write_checksum: sha1:ed446078e7194a0e44e21ab1af958d6a83597edb - pristine_git_object: 28df11eb1aef1fdaf3c1103b5d61549fb32ea85d docs/models/documenttextcontent.md: id: 29587399f346 last_write_checksum: sha1:93382da0228027a02501abbcf681f247814d3d68 pristine_git_object: 989f49e9bcb29f4127cb11df683c76993f14eba8 - docs/models/documentupdatein.md: - id: 185ab27259a7 - last_write_checksum: sha1:e0faccd04229204968dbc4e8131ee72f81288182 - pristine_git_object: 0993886d56868aba6844824f0e0fdf1bdb9d74f6 - docs/models/documentupload.md: - id: 7ff809a25eb0 - last_write_checksum: sha1:aea0f81009be09b153019abbc01b2918a1ecc1f9 - pristine_git_object: 4e58a475f1776431c9c27a0fcdd00dd96257801f + docs/models/documentunion.md: + id: c65f9e42375c + last_write_checksum: sha1:249043e03067f79b27dc6eac410fb937920e8cdb + pristine_git_object: e573bd4632493ca648ad61307c70148366625d4b + docs/models/documentupdaterequest.md: + id: bfe505bfe2fa + last_write_checksum: sha1:dea10127e009ea8a0c607c4be434924f1d019be8 + pristine_git_object: aa19442905d143a45d432afdc3a3ffdabcfd5109 docs/models/documenturlchunk.md: id: 48437d297408 last_write_checksum: sha1:38c3e2ad5353a4632bd827f00419c5d8eb2def54 @@ -664,10 +736,6 @@ trackedFiles: id: a3574c91f539 last_write_checksum: sha1:a0134fc0ea822d55b1204ee71140f2aa9d8dbe9c pristine_git_object: 32e1fa9e975a3633fb49057b38b0ea0206b2d8ef - docs/models/downloadfilerequest.md: - id: 5acd7aafd454 - last_write_checksum: sha1:5d7056818ddc5860e43699917496ded68b91ddfa - pristine_git_object: 3f4dc6ccc6d1c67396fe97197067c5421d8dc2d5 docs/models/embeddingdtype.md: id: 22786e732e28 last_write_checksum: sha1:dbd16968cdecf706c890769d8d1557298f41ef71 @@ -712,14 +780,34 @@ trackedFiles: id: edc076728e9d last_write_checksum: sha1:07ab5db503211adba2fa099e66d12ac3c4bbf680 pristine_git_object: 18217114060ac4e4b45fefabace4628684f27e5c + docs/models/fileobject.md: + id: 62761f8bde4d + last_write_checksum: sha1:ed2d28e97877da95171d83f046dea9571d718d46 + pristine_git_object: 3a84922af17bace9b055a374e627c8618b5242c7 docs/models/filepurpose.md: id: ed6216584490 last_write_checksum: sha1:02767595f85228f7bfcf359f8384b8263580d53a pristine_git_object: 14cab13ee191ae60e2c5e1e336d0a5abc13f778b - docs/models/fileschema.md: - id: 9a05a660399d - last_write_checksum: sha1:97987d64285ff3092635754c78ad7b68d863e197 - pristine_git_object: 4f3e72dba17a964155007755ad9d69f0304b2adb + docs/models/filesapiroutesdeletefilerequest.md: + id: 7fdf9a97320b + last_write_checksum: sha1:411e38d0e08a499049796d1557f79d669fc65107 + pristine_git_object: 1b02c2dbb7b3ced86ddb49c2323d1d88732b480c + docs/models/filesapiroutesdownloadfilerequest.md: + id: b9c13bb26345 + last_write_checksum: sha1:1f41dad5ba9bd63881de04d24ef49a0650d30421 + pristine_git_object: 8b28cb0e5c60ac9676656624eb3c2c6fdc8a3e88 + docs/models/filesapiroutesgetsignedurlrequest.md: + id: 08f3772db370 + last_write_checksum: sha1:26aa0140444ccef7307ef6f236932032e4784e8f + pristine_git_object: dbe3c801003c7bb8616f0c5be2dac2ab1e7e9fb1 + docs/models/filesapirouteslistfilesrequest.md: + id: 04bdf7c654bd + last_write_checksum: sha1:0a99755150c2ded8e5d59a96527021d29326b980 + pristine_git_object: 57d11722f1dba2640df97c22be2a91317c240608 + docs/models/filesapiroutesretrievefilerequest.md: + id: 2783bfd9c4b9 + last_write_checksum: sha1:a1249ef0aedb3056e613078488832c96b91f8cab + pristine_git_object: 961bae1f51a4ae9df21b28fd7a5ca91dc7b3888b docs/models/filesignedurl.md: id: c0a57176d62e last_write_checksum: sha1:2c64ef5abc75e617496f0a28d3e1cebfe269a6b9 @@ -764,6 +852,10 @@ trackedFiles: id: 15ed6f94deea last_write_checksum: sha1:1c560ceaaacc1d109b2997c36de03192dfcda941 pristine_git_object: 409f0526316a621b30dfbe45126c6b232e01fad4 + docs/models/ftmodelcardgetmodelresponse.md: + id: cc9a5551208f + last_write_checksum: sha1:ce197963307e378268f50a8338d6fba687e40c79 + pristine_git_object: 47587e9c75611ad54f5d4b7a92eefe0b97dade59 docs/models/function.md: id: 416a80fba031 last_write_checksum: sha1:a9485076d430a7753558461ce87bf42d09e34511 @@ -812,70 +904,22 @@ trackedFiles: id: 5fb499088cdf last_write_checksum: sha1:a9a3b6530b1c48a8575402b48cde7b65efb33a7d pristine_git_object: 0226b7045c9d82186e1111bb2025e96a4de90bd6 - docs/models/getagentagentversion.md: - id: 825de6d2614f - last_write_checksum: sha1:d99f384ff5ee73e68fa7f8581d7622068b5b7498 - pristine_git_object: 6d7b3f1d15994c24a5b992d1908fe8126da0e3ea - docs/models/getagentrequest.md: - id: 743f3a4630be - last_write_checksum: sha1:4d17d6b7b15e39520414085fc977be881e4e0a85 - pristine_git_object: 3f729dff0f7fc773f83593222da0dd0618b3e8b3 - docs/models/getagentversionrequest.md: - id: 4bf5feb4494a - last_write_checksum: sha1:d26546c2fdd78e0f52e2a2c50736b412ce814f6e - pristine_git_object: c98fee9d141f556520e16189e90234063e6861eb - docs/models/getbatchjobrequest.md: - id: 0c3a5debd663 - last_write_checksum: sha1:c186bbc6b04e1ed2db32f68fb22cb7eff4c1a90c - pristine_git_object: f3c67eb4a898a21e8a78c3340171458dcbd21d58 - docs/models/getconversationhistoryrequest.md: - id: 27de0e44ed80 - last_write_checksum: sha1:d89318332c87b5fa3bba22a52e209bdd5702b3f0 - pristine_git_object: fc90282bd9308a7531c3c532234fd332a223f243 - docs/models/getconversationmessagesrequest.md: - id: 82bf9b5c275b - last_write_checksum: sha1:cdbb0371c7a35e84f7938d28719acd843ebc15ce - pristine_git_object: fd037fea6c09d97bfb74332838a2b2760de4dccb - docs/models/getconversationrequest.md: - id: ad6c903380f6 - last_write_checksum: sha1:ee93a91d5daa01fc937dd09589b268bb2e42868a - pristine_git_object: 8a66a8b032cb67503c0f6b95c98e0a40b13d16ec - docs/models/getdocumentextractedtextsignedurlrequest.md: - id: d47f32212cf5 - last_write_checksum: sha1:7d695630988d5ab3773aabfe17c3fa9177d7e9c9 - pristine_git_object: ff703802ddfe0e36768daf87f4c5626028642370 - docs/models/getdocumentrequest.md: - id: 4208f9b571b3 - last_write_checksum: sha1:45f6807e2f7cd4c30f95304172cb556896571b76 - pristine_git_object: 29f62127b09511f14a065b9b6f6068e63643ab7c - docs/models/getdocumentsignedurlrequest.md: - id: 734960a10101 - last_write_checksum: sha1:04debc445e51e7d0f922bfe7873d639a844c17b4 - pristine_git_object: 72a179c086e38650afd81165575c7926d9566f69 - docs/models/getdocumentstatusrequest.md: - id: d0a69468ea34 - last_write_checksum: sha1:a8d91948737e4fa392221ec18970d27af90c203e - pristine_git_object: 3557d7738be21206061ef5806b79118432b33f26 - docs/models/getdocumenttextcontentrequest.md: - id: 6baa6485417b - last_write_checksum: sha1:5b47d1d8d5675e4b9f477c8034ef64afc912cd06 - pristine_git_object: 8593340139f28b44dfed455849198f5d5a457643 - docs/models/getfilesignedurlrequest.md: - id: c7b1953174af - last_write_checksum: sha1:d558115d1611827f461cc6a9f373885271c7a51d - pristine_git_object: 0be3b2888b0680d5a5fac0057cedc279d112ddb8 - docs/models/getfinetuningjobrequest.md: - id: c18796fe85f3 - last_write_checksum: sha1:8166520e2d657098131fd77c81a86099ed4d3486 - pristine_git_object: f20cb2148330c7078c6e93f55aa99f1b09086eaf + docs/models/getconversationresponse.md: + id: 34991ae31441 + last_write_checksum: sha1:3a53c9d804fb3269411d7a5774ef18dc42928fd3 + pristine_git_object: e324f77df3f39567061f0cd2c2b6a61c4ce34d7f + docs/models/getfileresponse.md: + id: a983b3c8acd6 + last_write_checksum: sha1:5ca732ae5b384937473c04de6736fbab34deca24 + pristine_git_object: 0edd13e0818fc70c9c4db1e08b1490c1e146ea63 docs/models/getfinetuningjobresponse.md: id: 8f50d4a61ae1 - last_write_checksum: sha1:509e8d190b43b5a4a3e0ae7d97bf2b4262fcd1f8 - pristine_git_object: 1b0568dd8019879ec2e1d0ff039296f600415e21 - docs/models/getlibraryrequest.md: - id: 9c9a9e6c4f03 - last_write_checksum: sha1:822494a821ee3a51a477f305c140ed39cd6465fc - pristine_git_object: 2a3acf50a6300ea3bcbc3b8432fe28cbef82c620 + last_write_checksum: sha1:f5b40b4c72ec090ea7276125562fae6e315deff4 + pristine_git_object: 423f1b64a705aaffc13163e0ef78fa3192d46c2c + docs/models/getmodelresponse.md: + id: 4da40e58b882 + last_write_checksum: sha1:c225ed8b98f41f2c44b106057a34b01e184ac1db + pristine_git_object: 79321bab83e0fb40b0293971a202c683cc33bc66 docs/models/githubrepositoryin.md: id: b42209ef8423 last_write_checksum: sha1:5ab33fc1b0b5513086b1cae07f416d502441db23 @@ -936,110 +980,242 @@ trackedFiles: id: 380503708a09 last_write_checksum: sha1:551b5d6dd3ba0b39cad32478213a9eb7549f0023 pristine_git_object: 57ed27ab3b1430514797dd0073bc87b31e5e3815 - docs/models/jobin.md: - id: 1b7b37214fa8 - last_write_checksum: sha1:0a241378cf3791c5c3fa733f30d45c07ef841448 - pristine_git_object: 62da90727898dd84f547c436c17fefa788e4f0d6 - docs/models/jobinintegration.md: - id: 200c505fa67f - last_write_checksum: sha1:c9887897357e01e6e228b48d6bf0c3fb4edd29f7 - pristine_git_object: 103820e7ec55769227610c385addbecfcd075cae - docs/models/jobinrepository.md: - id: 9ab1d5469c10 - last_write_checksum: sha1:1773f59546b94688d0be16d3f5f014cd86f5b1d7 - pristine_git_object: e873ae63f359d6ac4aca03b058a7c25fbbf2ba32 docs/models/jobmetadataout.md: id: 30eb634fe247 last_write_checksum: sha1:46d54b6f6004a6e571afd5207db5170dfbce7081 pristine_git_object: 6218a161b71abbb35eb4ca6e3ce664226983efc2 - docs/models/jobsout.md: - id: cbe31f43047d - last_write_checksum: sha1:4bd9ffbd2e5a286090167c795b9c3970e3c7d0a5 - pristine_git_object: 69f8342ac6f02a6e60d05b6f5b3cd892964fd3d7 - docs/models/jobsoutdata.md: - id: 809574cac86a - last_write_checksum: sha1:06455044d314c4edbd1ce4833d551c10918f0a3e - pristine_git_object: 28cec31117416b79eb8688d84b47b157974574cc + docs/models/jobsapiroutesbatchcancelbatchjobrequest.md: + id: 798cb1ca1385 + last_write_checksum: sha1:67e8bda117608aee0e09a702a1ef8a4b03c40b68 + pristine_git_object: c19d0241784ff69bc68a11f405437400057d6f62 + docs/models/jobsapiroutesbatchgetbatchjobrequest.md: + id: e83a7ec84f8a + last_write_checksum: sha1:d661875832b4b9d5f545262216c9fcb9a77c8cd0 + pristine_git_object: 8c259bea9bef11f779fd609f1212565d574457e2 + docs/models/jobsapiroutesbatchgetbatchjobsrequest.md: + id: 5b9c44ad4d31 + last_write_checksum: sha1:1d7c05337b7cfe68f85a36576d060e1a890f9f96 + pristine_git_object: 5ceb0b2c40f079ffbe2cc4c82f6c3f94276980b4 + docs/models/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md: + id: 8eb8c127091e + last_write_checksum: sha1:2b93a6bed5743461bb03c8337fb25dfc5a15522e + pristine_git_object: f9700df50b8f512c4139c1830aba18989d022b8e + docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutintegration.md: + id: 1d89880ec9bf + last_write_checksum: sha1:4aa5718cea0068d3a8f9a6d7b9383d15f71e8425 + pristine_git_object: edb72a3daa4257e76dd095a7afadfb6233852f6d + docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutstatus.md: + id: 5dd0b3dbd472 + last_write_checksum: sha1:be029264c097ffa20c5248d8b803613bc1951e41 + pristine_git_object: abb379fec3206f4b7fd350c105337af740b203a1 + docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutintegration.md: + id: 50766858d468 + last_write_checksum: sha1:c4a83451191ec4eef624031a63d5517fc6c5e985 + pristine_git_object: 16633fd401ff75475f2173f012808bb5c2b048c3 + docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutstatus.md: + id: 7c394691f3d1 + last_write_checksum: sha1:af46623f5c942290020c6f8d052ede635bd56854 + pristine_git_object: f4e429509baf3ee08887cec5554785dda301af57 + docs/models/jobsapiroutesfinetuningcancelfinetuningjobrepository.md: + id: e0776e1ba54a + last_write_checksum: sha1:0bb64e4f0df4835385ba453161939a873f14bf57 + pristine_git_object: d074fecd73198a6513adf606ca531b0f9326ec44 + docs/models/jobsapiroutesfinetuningcancelfinetuningjobrequest.md: + id: deff83b39b78 + last_write_checksum: sha1:dac8d8f2e95aed2db9b46711e6e80816881d5d14 + pristine_git_object: 883cbac685563d2e0959b63638f6b967ebdf1ee9 + docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutintegration.md: + id: fababdc0f12c + last_write_checksum: sha1:90955ee20d73add2ff9aded4412cc18361e8a3dd + pristine_git_object: 72516c8fdab486f1da3ae81489214f8273f443de + docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutstatus.md: + id: d1ccad063838 + last_write_checksum: sha1:6ea7ca74373419e313d9b292b24faad7f0a35ed1 + pristine_git_object: e635ebc3df501cd819003568a751c82ae09f64e4 + docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutintegration.md: + id: 1cefe36212e3 + last_write_checksum: sha1:80f472ca77827165248fbf392394813c1ca222ac + pristine_git_object: ad7bbb0ff0d5c0a44760ec0d3ef4c33e7b9328a1 + docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutstatus.md: + id: d37096951a7f + last_write_checksum: sha1:e50183115b65868d94df2445a2aaeaa2d7f2a697 + pristine_git_object: ffeca212d03dae27afb6aca4fa81e03ef59efc54 + docs/models/jobsapiroutesfinetuningcreatefinetuningjobrepository.md: + id: 48c9036c7ea7 + last_write_checksum: sha1:5a8d85baa6440aa276dc7de1f666f4e296735bcd + pristine_git_object: 60dd9130ca2ee83dbba91835d3bab9c4f6e9ba15 + docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutintegration.md: + id: 73848f22a154 + last_write_checksum: sha1:3da6a3b63760c889ef1c5910e62e13f81e9968ec + pristine_git_object: 10f0d8b4e3c18acfe7a45c4e7c727a1423a8653e + docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutstatus.md: + id: edee57e9b282 + last_write_checksum: sha1:d0641adcc8c8ff2be6c3640f6ab8c380fc474124 + pristine_git_object: 0c4d712c26e2ed364dd902028a2acb08d8910702 + docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutintegration.md: + id: 758af5b67e58 + last_write_checksum: sha1:27dc0c39f23cbaec84a9dc110bfd08272f174b7c + pristine_git_object: 7d3a46c0adbc30d2d860d34194802c0b3bf40657 + docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutstatus.md: + id: 085c916049ae + last_write_checksum: sha1:ce6ef77c1129d3d3a2babab07ce4312b9cae887f + pristine_git_object: 1be181fed5f3027d6846904f6407c8d3ff7c94b9 + docs/models/jobsapiroutesfinetuninggetfinetuningjobrepository.md: + id: 293a36b6a80b + last_write_checksum: sha1:834306922ebec247dee36bc0e64bfd7b1e618c03 + pristine_git_object: be2d02a49221d1481e9d9feaf0e8e6147b90d22d + docs/models/jobsapiroutesfinetuninggetfinetuningjobrequest.md: + id: a9b75762e534 + last_write_checksum: sha1:8f1395447928e089c88dce8c0ced1030ec5f0eba + pristine_git_object: fde19800303a901149bf39c5330ef8c4da87df62 + docs/models/jobsapiroutesfinetuninggetfinetuningjobsrequest.md: + id: 52078f097503 + last_write_checksum: sha1:fc134fdc7e229b8df373b77096c8299c214171a7 + pristine_git_object: 23c52c342358ea889b25ee7b18b381b68519c6cf + docs/models/jobsapiroutesfinetuninggetfinetuningjobsstatus.md: + id: 8545ffb587d6 + last_write_checksum: sha1:bbc08ca53c2da180b96ed0347cf4954410c79311 + pristine_git_object: 40d57686aec11d9bdc4c116ea4c98183e0a6414c + docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutintegration.md: + id: 3ae9cffed4c4 + last_write_checksum: sha1:5fd0f0b3a8daf4d9726cf37501da811cc0e2ca2f + pristine_git_object: e0c39b904f08e57b6f756d1b5c544c630152348e + docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutstatus.md: + id: 6789639ed601 + last_write_checksum: sha1:b505959867861bcfe7eac53a29ebf51264670eb5 + pristine_git_object: b4c35897c2de9445b5afa8cd5ccc8e91a0662c7c + docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutintegration.md: + id: 0f305a2f4792 + last_write_checksum: sha1:57a8c929932a48aad991cf89fe0bb4962898a4f9 + pristine_git_object: 094d4a2889c14be68017ad064a0054cb730fc03e + docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutstatus.md: + id: d65652a4cb7b + last_write_checksum: sha1:e2261d15ec6692b1185c3cb3213263fe8ced60d4 + pristine_git_object: 7ab2b5a886ff2ad222d815ed0242d4474d2cf106 + docs/models/jobsapiroutesfinetuningstartfinetuningjobrepository.md: + id: a202a17a8d2f + last_write_checksum: sha1:62650f488b054d64cda49aae5cf5a64dbbb3b3e8 + pristine_git_object: 0c161516e4d274f25633e51f4f7131b6a1fa54d9 + docs/models/jobsapiroutesfinetuningstartfinetuningjobrequest.md: + id: b4e2b814d8c3 + last_write_checksum: sha1:f13b5c8f2e74cc73b58a30d366032c764603f95e + pristine_git_object: 4429fe480ab9486de98940a119ac63f40045313b + docs/models/jobsapiroutesfinetuningunarchivefinetunedmodelrequest.md: + id: 75b5dd1bcbaa + last_write_checksum: sha1:dd30e7ff8748d26497458f3398c0547113dc058f + pristine_git_object: 95c1734daa7164bedeeb1fa58dd792939f25bc17 + docs/models/jobsapiroutesfinetuningupdatefinetunedmodelrequest.md: + id: 60bd2e28993a + last_write_checksum: sha1:7ff770c3d0148a4818957b279875bbe5b1ecfc62 + pristine_git_object: 6d93832e68739e465de7c61993b8bcfa1468bafc docs/models/jsonschema.md: id: a6b15ed6fac8 last_write_checksum: sha1:523465666ad3c292252b3fe60f345c7ffb29053f pristine_git_object: 7ff7c070353c58290416aff5b01d1dfc43905269 - docs/models/legacyjobmetadataout.md: - id: b3b8c262f61a - last_write_checksum: sha1:d8c4e7525e2dc2f4d29bfeb6cadc648fab1c62c7 - pristine_git_object: 8a712140fbf3c36f4bd9686e135b70d8688aa9c1 - docs/models/libraryin.md: - id: a08170e6397c - last_write_checksum: sha1:2c996ecf1ae5d9e8df702a79741b72b3571eb6ef - pristine_git_object: d6b119148725627bcf76594c4a24e915399cd8f8 + docs/models/legacyjobmetadataoutcreatefinetuningjobresponse.md: + id: 8fa5d0920184 + last_write_checksum: sha1:4593a6a84b08b0e39980a28e5fe9713b9202731a + pristine_git_object: 947d9f761aa86d0f73141ff230d55d7e5f068b92 + docs/models/librariesdeletev1request.md: + id: c0c3b2e1aabc + last_write_checksum: sha1:bef84f8851b06d2d914b605f11109de1850d0294 + pristine_git_object: 68d7e54369ce75422bf8b0ff16cada1c0ae2b05c + docs/models/librariesdocumentsdeletev1request.md: + id: 9d557bd7d1cc + last_write_checksum: sha1:1b580b657559356886915ee5579b90a03db19337 + pristine_git_object: efccdb1bbc36cf644ed2d1716cbd202e6d6bf6c5 + docs/models/librariesdocumentsgetextractedtextsignedurlv1request.md: + id: 27ad38ce4cb1 + last_write_checksum: sha1:b35ad610330232b395b5f87cc15f6ae270de6816 + pristine_git_object: 14ca66f72693f1df05eb93e0cca45f440b62d282 + docs/models/librariesdocumentsgetsignedurlv1request.md: + id: 4498715b6cfb + last_write_checksum: sha1:31f78079e31e070d080c99555cd2d85318fc4610 + pristine_git_object: 7c08c180d59a8e8475fea89424b8b2021d51385f + docs/models/librariesdocumentsgetstatusv1request.md: + id: c2219d3a3738 + last_write_checksum: sha1:44e79df94cf2686e83d7a2e793140a6a7b3a1c05 + pristine_git_object: e6d41875966348fd9e770d06c8099e48f0e64b5d + docs/models/librariesdocumentsgettextcontentv1request.md: + id: 850dfa465952 + last_write_checksum: sha1:4a1212e111525f4265d2924ce52f9c13d2787d4d + pristine_git_object: 2f58a4460ccdad531391318c62191e76c1ec22ac + docs/models/librariesdocumentsgetv1request.md: + id: cdd0df2f7e9d + last_write_checksum: sha1:36e5ef39552159044ecd28d20ee0792ea5bcadef + pristine_git_object: 6febc058425bb38857c391ee4c40d600858e6058 + docs/models/librariesdocumentslistv1request.md: + id: 7b5756e50d64 + last_write_checksum: sha1:2605b7972a3d7b4f73ab8052be4bf740f44f6f6f + pristine_git_object: 44f6300115853053214639982516a60b3268e778 + docs/models/librariesdocumentsreprocessv1request.md: + id: 1b8bf57b3f0a + last_write_checksum: sha1:8528785c1b4ae18d6ec6f261d29d5daac0d420a3 + pristine_git_object: 196ba17b749ce9efc1c30189864e474896814f85 + docs/models/librariesdocumentsupdatev1request.md: + id: b9147b1c0e38 + last_write_checksum: sha1:e002c15e2d8a84e3e909fe799f7879540dee5f07 + pristine_git_object: 87a65ee6f10a8dc6a84d316f41fc391c01c6628c + docs/models/librariesdocumentsuploadv1request.md: + id: 89a89d889c72 + last_write_checksum: sha1:42fb6aeaae2008d1ea4d2425c654e731ed58a86e + pristine_git_object: 022518aac8d09b3780b9737f625656877c6d0671 + docs/models/librariesgetv1request.md: + id: f47ad71ec7ca + last_write_checksum: sha1:3b2bf1e4f6069d0c954e1ebf95b575a32c4adeac + pristine_git_object: 6e1e04c39c15a85d96710f8d3a8ed11a22412816 + docs/models/librariessharecreatev1request.md: + id: 99e7bb8f7fed + last_write_checksum: sha1:99198dd72b8ef1876c9e76231de347ce175354fe + pristine_git_object: bcecdf5c9da740328fa61ac3d567f8675262643d + docs/models/librariessharedeletev1request.md: + id: bc8adba83f39 + last_write_checksum: sha1:79fc5a9a3cee5b060f29edd95f00e0fea32579cf + pristine_git_object: 850e22ab79863ba544f453138322c0eb5bf544cd + docs/models/librariessharelistv1request.md: + id: 86e6f08565e2 + last_write_checksum: sha1:6f2ffff66fa5fb141d930bca7bb56e978d62b4a5 + pristine_git_object: 98bf6d17ab013c1dd3f0ab18c37bbfc1a63f1b76 + docs/models/librariesupdatev1request.md: + id: f7e51b528406 + last_write_checksum: sha1:cec4aa232c78ca2bd862aee3d5fb3bcc2ad9dc05 + pristine_git_object: a68ef7a8f52ee4a606cb88d0a3f96de8c2fbccb8 + docs/models/library.md: + id: e8ec114dd107 + last_write_checksum: sha1:a4d6e9a777ce3d63aac24432281933ce6e13b4a9 + pristine_git_object: 4319f43df922b4924a11d494002826cb8d6dea0b docs/models/libraryinupdate.md: id: 6d06b6b21498 last_write_checksum: sha1:4ec01d7f7e24f58a74613d4847725bfd516b7d7f pristine_git_object: 4aa169c7669c00fcedc423fbff6f386697360787 - docs/models/libraryout.md: - id: 2e8b6d91ded2 - last_write_checksum: sha1:d71053b44725147265871be445217e3e1a0e5ede - pristine_git_object: ebf46d57de6bad7022a3e8cb8eaf88728bbbe888 - docs/models/listagentaliasesrequest.md: - id: 495659b2d40a - last_write_checksum: sha1:637e7e0e8deadcf2e77cc9469727010f90f0ad79 - pristine_git_object: b3570cb80d484dadaf2a138c70bbb477746ba416 - docs/models/listagentsrequest.md: - id: aeb9bbc163f5 - last_write_checksum: sha1:86c5f5068061b79d2e582e4dd9a8b0ed4c84cbcf - pristine_git_object: 79aec3ea6e3506797fc96a7ca9d7393543270866 - docs/models/listagentversionsrequest.md: - id: 3270f6dd4107 - last_write_checksum: sha1:14ffb20c5c48cca371ed27f6a6a8b565cd4a5565 - pristine_git_object: ba8ddaa5cb4c94623b29a1f635f38a04cc0ff497 - docs/models/listbatchjobsrequest.md: - id: e2a0b1528191 - last_write_checksum: sha1:01a587ec7cc6e183d47e106eb809e7c1e9e79e39 - pristine_git_object: 19981b2425254058bd24b218d1f7881fc3635c89 - docs/models/listconversationsrequest.md: - id: 6c0961051703 - last_write_checksum: sha1:453eb480cd48330f857b4c80210b6753a750348d - pristine_git_object: d99b420834b17f3f5b7fac630af7a7b0d2db341d - docs/models/listconversationsresponse.md: - id: 65075f5cf00c - last_write_checksum: sha1:8478c55b156c09f2b714d2854030a04494b48f7c - pristine_git_object: 9d611c553b245657181c06d7f65acaa9d8128556 - docs/models/listdocumentout.md: - id: 4bec19e96c34 - last_write_checksum: sha1:c0b3a6e3841f120c52b1d7718d7226a52fe1b6d6 - pristine_git_object: f14157b8db55c1201d9f7151742e9ddf0d191c16 - docs/models/listdocumentsrequest.md: - id: 36c8a1116534 - last_write_checksum: sha1:390849ce3d93a64c505b7b2f7cae411766a5e44b - pristine_git_object: 369e8edbe471dd5167ad1baf74ee5b00eb7d5043 - docs/models/listfilesout.md: - id: 98d4c59cc07e - last_write_checksum: sha1:e76df31628984095f1123005009ddc4b59b1c2bc - pristine_git_object: bcb1f13aa17f41dadb6af37541e929364e2d6cec - docs/models/listfilesrequest.md: - id: 70edaf3759f0 - last_write_checksum: sha1:686edbd5134dfe60cfd98221ec78d296a8429d28 - pristine_git_object: 2d76a76b011603e3a7c4b4932ef4b26def1cb792 - docs/models/listfinetuningjobsrequest.md: - id: 41878563fe80 - last_write_checksum: sha1:103cd0d3c5334ea60a6c6e1c2585bf9bd493c78f - pristine_git_object: 3a04fc709c2a12cc4f414701efcaec4584b7d6df - docs/models/listfinetuningjobsstatus.md: - id: 1d6d54dc70ea - last_write_checksum: sha1:c4f69e2b2b5aac719281d264722f2cba6aa048a0 - pristine_git_object: 07db9ae5d87b7192ada4843d4fe0d3e8573794c6 - docs/models/listlibraryaccessesrequest.md: - id: 0b387463f914 - last_write_checksum: sha1:2912e1fc3ee179f01fde7a21501e2501debecc2c - pristine_git_object: d98bcda22bbb2540a525f2ce1516a637446b0a0f - docs/models/listlibraryout.md: - id: ea34f8548bd6 - last_write_checksum: sha1:cec920357bc48bea286c05d16c480a9a9369b459 - pristine_git_object: db76ffa10eb97f143ad4a6930e520e389fe18153 - docs/models/listsharingout.md: - id: a3249129f37e - last_write_checksum: sha1:4831e4f02e1d5e86f138c7bb6b04d095aa4df30f - pristine_git_object: bcac4834f3bd008868435189f40bbf9e368da0d2 + docs/models/listbatchjobsresponse.md: + id: e03025d58630 + last_write_checksum: sha1:de42c9396546fc8487d0bd6ed15b4076599fa83f + pristine_git_object: c23e32201d12a2594f97a493f63b2b7b42b9e337 + docs/models/listdocumentsresponse.md: + id: f2091cee0405 + last_write_checksum: sha1:335d0ccd3a448e65739d5a0cfa2c67614daec031 + pristine_git_object: 47b9d3b73fdc85bf6e463c91790faf346df56664 + docs/models/listfilesresponse.md: + id: b15df90d2d59 + last_write_checksum: sha1:282bb4eab9439fe96c2cae04b7561c34a37b8980 + pristine_git_object: 4b50a8fe75b19a1b2715d0aedbef63bf7e4bbed3 + docs/models/listfinetuningjobsresponse.md: + id: d04e4dfddf78 + last_write_checksum: sha1:cebaf361aa10f1f6c4299c3c8a34f32d301455ad + pristine_git_object: 00251242023e2161747ebf00b4c2959909e2b654 + docs/models/listfinetuningjobsresponsedata.md: + id: 59c80de4086d + last_write_checksum: sha1:df02c587c3960a52510af8ae1cd465d8e7c4a8c8 + pristine_git_object: 3cf37522f5a62c282836c1afd5ca9e161062b1b4 + docs/models/listlibrariesresponse.md: + id: 87e3bec10745 + last_write_checksum: sha1:00522e685ec71a54f5f272d66b82e650848eaf36 + pristine_git_object: e21b9ced628f6fd5ae891d4a46666ebc94546859 + docs/models/listlibraryaccessesresponse.md: + id: 0d420620d05e + last_write_checksum: sha1:92e4e6aa54912675adf3b8a6b380289e75f8416e + pristine_git_object: 5ae556f30108ea26e990033843cecfe96d0d53c8 docs/models/loc.md: id: b071d5a509cc last_write_checksum: sha1:09a04749333ab50ae806c3ac6adcaa90d54df0f1 @@ -1124,6 +1300,10 @@ trackedFiles: id: 497521ee9bd6 last_write_checksum: sha1:440c9e7c306f20bd4f4b27ab0cf770d3bf8762e2 pristine_git_object: 813e1f3a79ad14eae55bbb1b96598d6260904d9d + docs/models/modelconversationgetconversationresponse.md: + id: 5ad3c0e2ff90 + last_write_checksum: sha1:def028e7f64b2dfe459c38c66e9c9f3ef3bad201 + pristine_git_object: 0685ebbc24e8d8845fc1599469b78f20763f1b51 docs/models/modelconversationobject.md: id: 4c5699d157a9 last_write_checksum: sha1:8e2e82e1fa4cb97f8c7a8a129b3cc9cd651e4055 @@ -1148,10 +1328,6 @@ trackedFiles: id: e15cf12e553b last_write_checksum: sha1:18e8f4b4b97cb444824fcdce8f518c4e5a27c372 pristine_git_object: 75a5eec74071fdd0d330c9f3e10dac0873077f20 - docs/models/multipartbodyparams.md: - id: f5be2d861921 - last_write_checksum: sha1:34e68e3795c7987138abd152177fa07198d2f6f6 - pristine_git_object: f14b95737fde09a120b35e2f922568ca31825bd5 docs/models/ocrimageobject.md: id: b72f3c5853b2 last_write_checksum: sha1:90c5158dec6a7b31c858677b6a8efa1e3cabd504 @@ -1166,8 +1342,8 @@ trackedFiles: pristine_git_object: 02473d44f73485fd7b7f0031d51bfac835d4036e docs/models/ocrrequest.md: id: 6862a3fc2d0f - last_write_checksum: sha1:9311e2c87f8f4512c35a717d3b063f2861f878d4 - pristine_git_object: 87929e53f8a74823b82ecce56d15f22228134fa6 + last_write_checksum: sha1:727ad51857ef71fe73721e26a90c34f96b5a18ed + pristine_git_object: 3d4d1df785a0c3f567ca2c1bef39a799168395c6 docs/models/ocrresponse.md: id: 30042328fb78 last_write_checksum: sha1:8e4a4ae404ea752f3e9f1108c2a5f89ed6cfb143 @@ -1218,8 +1394,8 @@ trackedFiles: pristine_git_object: da3764ef56337bdc773eaf8e9aa747cbd1b407e2 docs/models/realtimetranscriptionsession.md: id: aeb0a0f87d6f - last_write_checksum: sha1:c3aa4050d9cc1b73df8496760f1c723d16183f3a - pristine_git_object: 94a0a89e8ca03866f8b09202a28c4e0f7c3af2e6 + last_write_checksum: sha1:d72bf67442ac5e99f194c429e96a504685f02efb + pristine_git_object: 750bd7f79b65666812c6207d7085b9437c49517d docs/models/realtimetranscriptionsessioncreated.md: id: aa2ae26192d6 last_write_checksum: sha1:d13fec916d05300c86b52e951e81b1ceee230634 @@ -1236,18 +1412,10 @@ trackedFiles: id: 0944b80ea9c8 last_write_checksum: sha1:956b270766c7f11fe99f4a9b484cc29c159e7471 pristine_git_object: 1e0e2fe64883ef5f3e628777b261b1224661d257 - docs/models/reprocessdocumentrequest.md: - id: 3c713aad474b - last_write_checksum: sha1:100b194196051470a2ae75cc2f707afec0c8d161 - pristine_git_object: cf3982a8cd76e4b2c8429acede0a12a044cbe2ca docs/models/requestsource.md: id: 8857ab6025c4 last_write_checksum: sha1:4b7ecc7c5327c74e46e2b98bd6e3814935cdecdf pristine_git_object: c81c115992439350d56c91d2e3351a13df40676b - docs/models/response.md: - id: 583c991c7a30 - last_write_checksum: sha1:f4a3ec06ff53cd1cbdf892ff7152d39fa1746821 - pristine_git_object: 3512b7a8f9fdfcaaed9a6db06ef4266629d9fa89 docs/models/responsedoneevent.md: id: 38c38c3c065b last_write_checksum: sha1:4ac3a0fd91d5ebaccce7f4098ae416b56e08416f @@ -1264,38 +1432,14 @@ trackedFiles: id: cf1f250b82db last_write_checksum: sha1:105e1f9181913104b554051838cbdd0f728aa2c4 pristine_git_object: 2f5f1e5511b048323fee18a0ffdd506fe2b3d56f - docs/models/responseretrievemodelv1modelsmodelidget.md: - id: 6143ec73bdd6 - last_write_checksum: sha1:6bae62cbb18559065a53f0acdacb1f72f513467e - pristine_git_object: ffbc1473d39c8266bb6b05b37677c98ca1d10858 docs/models/responsestartedevent.md: id: 88e3b9f0aa8d last_write_checksum: sha1:156f38bbe8278f9c03117135938e7cbdae3038b9 pristine_git_object: e2f421af866690b34c2d9fa4595a63e9172a65f5 - docs/models/responsev1conversationsget.md: - id: 48d4a45780a9 - last_write_checksum: sha1:8e75db359f0d640a27498d20c2ea6d561c318d7e - pristine_git_object: 844c5d610a9a351532d12b1a73f6c660059da76b - docs/models/restartconversationrequest.md: - id: b85b069aa827 - last_write_checksum: sha1:b7fb56a5561ab329f605d77795a610da8faaf561 - pristine_git_object: f24f14e67e749da884363038ca72891449cd99da - docs/models/restartconversationstreamrequest.md: - id: 65df276279f0 - last_write_checksum: sha1:907807c7e5969f82e70e743fddeb4c6f4278fc1a - pristine_git_object: daa661a9250701ad33241084d5033f73d75a9d6e - docs/models/retrievefileout.md: - id: 8e82ae08d9b5 - last_write_checksum: sha1:600d5ea4f75dab07fb1139112962affcf633a6c9 - pristine_git_object: 28f97dd25718833aaa42c361337e5e60488bcdc8 - docs/models/retrievefilerequest.md: - id: eac92ea7ca45 - last_write_checksum: sha1:c80772e3cfbe704385abe1b347d8e69d55bd9e00 - pristine_git_object: 454b9665b8134876488eb32c57a9dc45f4d972de - docs/models/retrievemodelrequest.md: - id: 392008b3324b - last_write_checksum: sha1:b9aafe10f0cd838a0b6959ec8dde5850ce59c55d - pristine_git_object: 787c3dd1000cba873c787fd5b9dcbe3c793f2b11 + docs/models/retrievemodelv1modelsmodelidgetrequest.md: + id: ac567924689c + last_write_checksum: sha1:7534c5ec5f1ae1e750c8f610f81f2106587e81a9 + pristine_git_object: f1280f8862e9d3212a5cfccd9453884b4055710a docs/models/sampletype.md: id: 0e09775cd9d3 last_write_checksum: sha1:33cef5c5b097ab7a9cd6232fe3f7bca65cd1187a @@ -1308,18 +1452,14 @@ trackedFiles: id: 53a713500576 last_write_checksum: sha1:9d45d4bd272e6c146c3a8a21fd759acf2ae22148 pristine_git_object: dc5d2b68a810c2983b5a47fbff747dfc2cc17598 + docs/models/sharing.md: + id: 9f1e88417a87 + last_write_checksum: sha1:876fd514d08a6987646bf0fec636bf3fef89155b + pristine_git_object: fc718632594e04c682c6d6a3931a94d8b1fd4059 docs/models/sharingdelete.md: id: 165cac179416 last_write_checksum: sha1:1a0b3c95f4b56173510e234d7a76df85c593f360 pristine_git_object: 1dcec0950c7fcd264ea9369c24244b54ba2bcfbf - docs/models/sharingin.md: - id: 08d396ee70ad - last_write_checksum: sha1:662edfc07a007e94fe1e54a07cf89d7c83c08df5 - pristine_git_object: bac18c8d43f801e8b5cf5b3cd089f9da0ee2281a - docs/models/sharingout.md: - id: 5db4547c7c56 - last_write_checksum: sha1:bd15c318d1a3f5bee7d7104d34cbd8ba6233bbb8 - pristine_git_object: 35aeff43593f3c9067c22a2f8b1468d7faa5af34 docs/models/source.md: id: 6541ef7b41e7 last_write_checksum: sha1:d0015be42fe759d818ebd75b0cec9f83535a3b89 @@ -1328,14 +1468,10 @@ trackedFiles: id: 6a902241137c last_write_checksum: sha1:567027284c7572c0fa24132cd119e956386ff9d0 pristine_git_object: ae06b5e870d31b10f17224c99af1628a7252bbc3 - docs/models/startfinetuningjobrequest.md: - id: 48fd313ae362 - last_write_checksum: sha1:f645c1e3e3244729eaa31aabb4b3ec0454fb114f - pristine_git_object: 9df5aee8f527fea4f0c9b02a28af77a65765be48 docs/models/startfinetuningjobresponse.md: id: 970045c710ff - last_write_checksum: sha1:78d230946abe19e928f286562ac589c7672c9854 - pristine_git_object: dce84c5a7711cd655a624b6ba0540504a6ff75d7 + last_write_checksum: sha1:cacb179b02b8e4be79ee69440662520c59aebc09 + pristine_git_object: 1def433bdb9818a13b4c9f762afa8ef3ed6a98c2 docs/models/systemmessage.md: id: fdb7963e1cdf last_write_checksum: sha1:561c3372391e093c890f477b3213c308ead50b81 @@ -1516,50 +1652,30 @@ trackedFiles: id: 4f2a771b328a last_write_checksum: sha1:0b9ab5d6c7c1285712127cfac9e918525303a441 pristine_git_object: 12c3d74534897129766397a44afee0f4dac91d9f - docs/models/unarchivemodelrequest.md: - id: e6922871c93a - last_write_checksum: sha1:591461141df5089e884a2db13bfaaef1def0748c - pristine_git_object: 033dad8a66969e2b920ec40391c38daa658c6f0e - docs/models/updateagentrequest.md: - id: 371bfedd9f89 - last_write_checksum: sha1:f9ebaa4650f77595fd554bb2711d4b869cba06cc - pristine_git_object: 358cb71d2ab7dfae85ac7768936910a976d2f644 - docs/models/updateagentversionrequest.md: - id: 706f66fb34eb - last_write_checksum: sha1:913a8105b77620d32147a00c1223ce5a117d2df2 - pristine_git_object: b83eb867a518d757b23d981c962f87a0e9c8a454 - docs/models/updatedocumentrequest.md: - id: ee4e094a6aa7 - last_write_checksum: sha1:4798ef091b5d045b0cda3d2a3cc40aef0fb3155c - pristine_git_object: fa5d117a4016208d81ad53f24daa4284b35152f8 docs/models/updateftmodelin.md: id: 1b98d220f114 last_write_checksum: sha1:d1c7a8f5b32228d8e93ad4455fccda51b802f08f pristine_git_object: 4e55b1a7d96e1ad5c1e65c6f54484b24cd05fcfc - docs/models/updatelibraryrequest.md: - id: 2eda82f12f31 - last_write_checksum: sha1:cc1ca5b6f9bd4ab61e3983991f5656ff5ea22e8d - pristine_git_object: e03883cca75f3ed17fa3432e0abc2c892ec3d74a - docs/models/updatemodelrequest.md: - id: 8eabdced3e0e - last_write_checksum: sha1:28765fe537adb34e5e2ef051cd1226bdcae8ea9f - pristine_git_object: 5799c63babcd9377c5024f584328c814c4401c04 docs/models/updatemodelresponse.md: id: 742d796d5be3 - last_write_checksum: sha1:2e09ab747fa3247486b25057e887baf0859c3a5b - pristine_git_object: 275ee77f111b926d681a446af9741001a1c88fa8 + last_write_checksum: sha1:4538360cb1e47fada95250843dbd267504f51863 + pristine_git_object: 1f858fc259b37d1785de10b8d579a4495b396436 docs/models/updateorcreatelibraryaccessrequest.md: id: c95e6b3df38f - last_write_checksum: sha1:f957324978f18d9831dafe4d1a5d78f755f51ed6 - pristine_git_object: e04567b40d62e0d705096eedaba9fa84913f584d + last_write_checksum: sha1:3c8b1cfbcde945619643d69d2f77a2876a5ec584 + pristine_git_object: a1baf8372d36d0aede3362b8da5ed6eb3386cf2b docs/models/uploaddocumentrequest.md: id: a211b5f814e4 - last_write_checksum: sha1:ce851cd52da0250c8d86f1346778edb0b5c97a50 - pristine_git_object: 92152b7f247ae4d7f8373e8b13ce947b7ca2cae7 - docs/models/uploadfileout.md: - id: c991d0bfc54c - last_write_checksum: sha1:ce5af8ffadb8443a6d1ca5fbbc014de42da35b9d - pristine_git_object: 6f09c9a6920f373c730fa3538b0c2953d757c257 + last_write_checksum: sha1:30336699337d9e6f3a2961dac6d8506f9dd66b59 + pristine_git_object: 110e2bb0c01085146fb5dd06a70987b02ae2f13a + docs/models/uploadfilerequest.md: + id: 57e3b1c37a62 + last_write_checksum: sha1:d74c7ea206d584f2e814ecd1a583444f21c624c4 + pristine_git_object: ea5cb4d653f953292df6711ca546c9722e930d0a + docs/models/uploadfileresponse.md: + id: 030a92cf9afd + last_write_checksum: sha1:a608ba9bfd6bc0df34a12f5f4bbc072066c2874b + pristine_git_object: 14badc2fa405d899e3f8c9a341ccc1e57f77c3bc docs/models/usageinfo.md: id: ec6fe65028a9 last_write_checksum: sha1:cf71fb9676d870eba7c4d10a69636e1db4054adc @@ -1598,20 +1714,20 @@ trackedFiles: pristine_git_object: da5e7b7b600fa3fd0799e95e7a0f9507cd8456c3 docs/sdks/accesses/README.md: id: 2ea167c2eff2 - last_write_checksum: sha1:200d509484a1a27fec893e15c39043a9deb140da - pristine_git_object: c1e3866d1a37e1596fa61538317eb68907cbaf57 + last_write_checksum: sha1:9938f56f2d958c50b64a05921479eaeb8e798f67 + pristine_git_object: b51a0c1c5a1cda899858db4201012c63cd8475fe docs/sdks/agents/README.md: id: 5965d8232fd8 last_write_checksum: sha1:a655952f426d5459fa958fa5551507e4fb3f29a8 pristine_git_object: cd3ec4c6c87f34c4d3634bf510534dff163d97de docs/sdks/batchjobs/README.md: id: a3b8043c6336 - last_write_checksum: sha1:eca07f3c47acbe42264d31fba982a49005a8c983 - pristine_git_object: 24316d78b1be51649d186db1479bbf74f00f87e6 + last_write_checksum: sha1:13a265a35d12161887330231db9cd8da9a69371c + pristine_git_object: 1c66aedc0b0b68c366d51ebfec3042d803b39d8c docs/sdks/betaagents/README.md: id: 5df79b1612d8 - last_write_checksum: sha1:f2dbb543e7bd1db239ee801c55fa1f7f92ca6322 - pristine_git_object: 0ef655a348d7381aa0a7869a022b362d90497197 + last_write_checksum: sha1:436d763b16036c3b6a21cfde2f1525667c3b3b4e + pristine_git_object: 68732c5ce7f4ef487cb5395cb4cd303963d91d81 docs/sdks/chat/README.md: id: 393193527c2c last_write_checksum: sha1:908e67969e8f17bbcbe3697de4233d9e1dd81a65 @@ -1622,40 +1738,40 @@ trackedFiles: pristine_git_object: 41b520812ac8a6031c0ab32aa771e9903fa24a97 docs/sdks/conversations/README.md: id: e22a9d2c5424 - last_write_checksum: sha1:55b150757576819887075feac484ba76ae8abd59 - pristine_git_object: c0089f12b040f3686a584f1569ed4e0ab56c52fb + last_write_checksum: sha1:5f58812daae221d76aea89e474173fee9c2c4982 + pristine_git_object: c8950c7c9a1df33069bbb7020cb8f93be8f8dd15 docs/sdks/documents/README.md: id: 9758e88a0a9d - last_write_checksum: sha1:55280d8863200affd25a98d7493a0110c14baad3 - pristine_git_object: 97831f86223c6dbbaec35a240725a8c72e229961 + last_write_checksum: sha1:a53257645624870a316036e49e5c43d1ffc02818 + pristine_git_object: 414cd2f9c0518e20039706306fdd99c5ce5bfcd1 docs/sdks/embeddings/README.md: id: 15b5b04486c1 last_write_checksum: sha1:46e57c7808ce9c24dd54c3562379d2ff3e0526e8 pristine_git_object: 0be7ea6dcace678d12d7e7e4f8e88daf7570df5d docs/sdks/files/README.md: id: e576d7a117f0 - last_write_checksum: sha1:92558cd6688432150cc433391e2b77a328fa3939 - pristine_git_object: ae29b7bf9383f534b2ca194ec5ff261ff17b5fb6 + last_write_checksum: sha1:05d5c298c776a5f7ddc9f1e90d7a53862069de00 + pristine_git_object: 700f1b4ceca31a830c720480d0426b037b605ce6 docs/sdks/fim/README.md: id: 499b227bf6ca last_write_checksum: sha1:34ff7167b0597bf668ef75ede016cb8884372d1b pristine_git_object: 3c8c59c79db12c916577d6c064ddb16a511513fd docs/sdks/finetuningjobs/README.md: id: 03d609f6ebdd - last_write_checksum: sha1:206624c621a25836333f4c439e0247beb24a7492 - pristine_git_object: fe18feeb640804d9308e6fefe9b5f2371d125f9b + last_write_checksum: sha1:8ef0e2c2183cdd65a83d51828aa7e2b8790086af + pristine_git_object: 703cfef2a4b419c774f51f23fc96f9fffd1f494f docs/sdks/libraries/README.md: id: df9a982905a3 - last_write_checksum: sha1:1c623647aa7b834a844e343c9e3fe0763c8445a5 - pristine_git_object: 8835d0ec8cbabcb8ab47b39df982a775342c3986 + last_write_checksum: sha1:c4917263635b1eea300d749b096ff9ce06363886 + pristine_git_object: aa073e22117c1bcc6ae748713ddb9ccd206915cf docs/sdks/models/README.md: id: b35bdf4bc7ed - last_write_checksum: sha1:2410579fd554ad1e5734cc313d0a75eeb04a1d14 - pristine_git_object: 0cbf1bdde52d1a52c1329ecd1116718237be5152 + last_write_checksum: sha1:513515a1b01ee9927c5ec2d5962cff8a8eb429a5 + pristine_git_object: 926646b37bfc054e175d6c7c5a92d42624240a02 docs/sdks/ocr/README.md: id: 545e35d2613e - last_write_checksum: sha1:a8d22a86b79a0166ecec26a3e9379fa110d49b73 - pristine_git_object: 9fd9d6fc14c5874dbb819239ea677a171a26969b + last_write_checksum: sha1:dcda4f98953a75f605544be3e352875f54cb4891 + pristine_git_object: cc57a427778bded4709793cfe0060313c12ba537 docs/sdks/transcriptions/README.md: id: 089cf94ecf47 last_write_checksum: sha1:493070fcce7cec1a627b04daa31c38a6745659e7 @@ -1690,8 +1806,8 @@ trackedFiles: pristine_git_object: 814d9ec74a37ae50f106ea07b3c174e65685521b src/mistralai/client/accesses.py: id: 76fc53bfcf59 - last_write_checksum: sha1:16574ca54176ec30b236ab1a4694f57a6314db43 - pristine_git_object: cda484c8feade66829dad587f5f397aa89d4fb6f + last_write_checksum: sha1:c5d017e6d283f9291fd4c7279213cce8a13f989c + pristine_git_object: 2c107c1c28d3dd03879a17db011fa7f13bbc7530 src/mistralai/client/agents.py: id: e946546e3eaa last_write_checksum: sha1:3b46ac68d37563a9eb988ad2978083e40cf4513d @@ -1710,16 +1826,16 @@ trackedFiles: pristine_git_object: 7e36fd0d73ebeb873f74f4109896a6cf3bb7d2ba src/mistralai/client/batch_jobs.py: id: 3423fec25840 - last_write_checksum: sha1:eb1baade19f5da3dd815ebfbabccca139eb7b25d - pristine_git_object: 752c76524a4fa19ed1654943218ca5182d563ca3 + last_write_checksum: sha1:d9be47866703a6ea9bd552cd87ff9d2273d27ec6 + pristine_git_object: 6d32a579cbc4e3dc45bc94d91111b471aa6b09cf src/mistralai/client/beta.py: id: 981417f45147 last_write_checksum: sha1:85f42fc6c2318eef94c90405b985120220c9c617 pristine_git_object: 65b761d18f7274cc33162a83efa5b33211f78952 src/mistralai/client/beta_agents.py: id: b64ad29b7174 - last_write_checksum: sha1:227c2ef3812c06e4a813063bf9d2282ce0884ecd - pristine_git_object: 4e692f17579635d5f0cc03f86b8158b3344ae87f + last_write_checksum: sha1:4771e46b2957e84132710e0a1754340850416c83 + pristine_git_object: f87743b3bbc02f569ed463c56e1ecd2d2e0a3f2e src/mistralai/client/chat.py: id: 7eba0f088d47 last_write_checksum: sha1:6f052ac3117829b16906a4e1cbfa5b1f7ab104fd @@ -1730,20 +1846,20 @@ trackedFiles: pristine_git_object: 3407c4b77db429535465f29754a2da8145d6a5fe src/mistralai/client/conversations.py: id: 40692a878064 - last_write_checksum: sha1:6e81283d3d5db5dd554af68d69313951cf5f4578 - pristine_git_object: 646b91f3980bbe9be01078162d5b4ad9afb141b9 + last_write_checksum: sha1:c65158cf66c14d5fd73c6fc184c604c154f42ae6 + pristine_git_object: 3f46fe8187a85a16fc4b6e86a12bd154961a319e src/mistralai/client/documents.py: id: bcc17286c31c - last_write_checksum: sha1:9ae89ef80a636b55ba4cdc3ad6c77c47c1824433 - pristine_git_object: c78f2944edaac77864ff6c4dd8d19d3aab3f0cb6 + last_write_checksum: sha1:29c2b4e0184912a91a027743125490715a281eb7 + pristine_git_object: 216d9a3033b954118032527e17593f484b5104d6 src/mistralai/client/embeddings.py: id: f9c17258207e last_write_checksum: sha1:7cd6d848ed8978637988d9b7e1a7dd92dac5eb3b pristine_git_object: 4a056baa014217927412e9dd60479c28de899e2e src/mistralai/client/files.py: id: f12df4b2ce43 - last_write_checksum: sha1:aa647afa486bbed48083c0b1ec954bdc5cfd0280 - pristine_git_object: 57d389f1e245f5768fe9e8991f65229dd4bd608d + last_write_checksum: sha1:15094a38d51c8746f24e9c72a828c6b2298b8023 + pristine_git_object: 83100ac8979ebfa58cc06830f42d633c3ccc760d src/mistralai/client/fim.py: id: 217bea5d701d last_write_checksum: sha1:90cacb025a1a1fb81e619d59819c0a652f4a5efa @@ -1754,20 +1870,20 @@ trackedFiles: pristine_git_object: df6bc5643a13294ddfbeecc6ae84d00cd7199bed src/mistralai/client/fine_tuning_jobs.py: id: fa1ea246e0b2 - last_write_checksum: sha1:edfe25f99047d4cbd45222cd23823c782286a2c8 - pristine_git_object: 9a28ded152a4f4a5b625a97e087aebc5a287d71e + last_write_checksum: sha1:af488bfe9f75d5ca6b3288515771abf8bc132056 + pristine_git_object: 5ac379430cb34b4af4c2306994d3a004bfd78184 src/mistralai/client/httpclient.py: id: 3e46bde74327 last_write_checksum: sha1:0f4ecc805be1dc3d6e0ca090f0feb7d988f6eb9d pristine_git_object: 544af7f87d6b7097935290bebd08e30e5f485672 src/mistralai/client/libraries.py: id: d43a5f78045f - last_write_checksum: sha1:b3fd0348f4f56aab9873d09c45ed9575baf6e7c3 - pristine_git_object: 26ceabe19a340b7fd4dbb74aebab62bc45093ae5 + last_write_checksum: sha1:04e59ee941af18287e50ecc6cae23510ad995ac1 + pristine_git_object: 5073c29bff471b8bdd652e06ab04c22b30101849 src/mistralai/client/models/__init__.py: id: e0e8dad92725 - last_write_checksum: sha1:d047eab2a2a8ee5af65ed19055a0a3e3092ad2c5 - pristine_git_object: 093ffcbdb0b57458cf856f585e6637d7d5955e8d + last_write_checksum: sha1:fe60413e3816338cb3804b724914ce4efed9ecbf + pristine_git_object: 11794f37d5f28acf1a7b645ca08c7615bc8fec21 src/mistralai/client/models/agent.py: id: 1336849c84fb last_write_checksum: sha1:d41a96558ddbd52b6c71d316c291847bb6131a01 @@ -1796,6 +1912,82 @@ trackedFiles: id: 2f6093d9b222 last_write_checksum: sha1:933f8be5eacd86881a42cfb83612f327caa77ee7 pristine_git_object: e278aef39d3bc5e158a094c593391fa8ad77c320 + src/mistralai/client/models/agents_api_v1_agents_create_or_update_aliasop.py: + id: 23a832f8f175 + last_write_checksum: sha1:237d6b4419615c9c26f96d49760732bd7b4617e7 + pristine_git_object: 04761ae786c35e6fa6cd5a896a5e52458cb3a5d5 + src/mistralai/client/models/agents_api_v1_agents_delete_aliasop.py: + id: 9c9947e768d3 + last_write_checksum: sha1:385faebecef8479d1a72a7ab6f15ddcc611dad87 + pristine_git_object: 291a9802a7d49108fc0d428610cb4c37b42f0796 + src/mistralai/client/models/agents_api_v1_agents_deleteop.py: + id: 95adb6768908 + last_write_checksum: sha1:f222a61a73ba2f37051fffbf2d19b3b81197d998 + pristine_git_object: 5e41fdcdbf182e993acd71603ecb8c9a14e48043 + src/mistralai/client/models/agents_api_v1_agents_get_versionop.py: + id: ef9914284afb + last_write_checksum: sha1:c99ee098f659a56cb365c280cc29de441916b48a + pristine_git_object: 941863d0f8143020200bb5566ce66d527c4369c8 + src/mistralai/client/models/agents_api_v1_agents_getop.py: + id: f5918c34f1c7 + last_write_checksum: sha1:c48cfb6530867eba20010e643edb88e320517845 + pristine_git_object: 6870441c40c745c7182e4f02eb284291b95f5ae3 + src/mistralai/client/models/agents_api_v1_agents_list_version_aliasesop.py: + id: a04815e6c798 + last_write_checksum: sha1:b4b5c4e8566f1d0c68a14aba94b7ffea257fd7ce + pristine_git_object: bb1da6020386fabfbd606db9a098a0e9323ce3b0 + src/mistralai/client/models/agents_api_v1_agents_list_versionsop.py: + id: 19e3310c3907 + last_write_checksum: sha1:3189cfdcae4367ddaf244373457c1b608f667e6d + pristine_git_object: 1e14ff0657c876d2042b3b3237d54e76c17a3a14 + src/mistralai/client/models/agents_api_v1_agents_listop.py: + id: 25a6460a6e19 + last_write_checksum: sha1:800de3090008e13a570467e19b4b29c5dd041e24 + pristine_git_object: 2e7ab8645f493d6f8b0f5549c1b0ed154399c7a8 + src/mistralai/client/models/agents_api_v1_agents_update_versionop.py: + id: 63f61b8891bf + last_write_checksum: sha1:e9046cf75e008e856f00dda8725cbb16d83cd394 + pristine_git_object: 5ab821ea413d656dc7194f3588c8987c3e720831 + src/mistralai/client/models/agents_api_v1_agents_updateop.py: + id: bb55993c932d + last_write_checksum: sha1:e328964aa1c135653bbc187651a3ad9cb17d415d + pristine_git_object: e5165a4b70f7fcc7db1248a5213e7e31479216a8 + src/mistralai/client/models/agents_api_v1_conversations_append_streamop.py: + id: ec00e0905f15 + last_write_checksum: sha1:d0a253c2f383241378e6fab35a38427d0a1dd827 + pristine_git_object: d257dc789cdc4f57bb91d1788335d2d49442d02f + src/mistralai/client/models/agents_api_v1_conversations_appendop.py: + id: 39c6125e850c + last_write_checksum: sha1:864ece4ddcd65075547daa1ab996ba7cfe9939fc + pristine_git_object: 61fec0834e6e05a56a7ee5c984fb0401f9c72f5c + src/mistralai/client/models/agents_api_v1_conversations_deleteop.py: + id: 0792e6abbdcb + last_write_checksum: sha1:9725fce86a52b4995a51e1995ca114c0c4b414df + pristine_git_object: 499645a77782e29db61e439060340fee787799c1 + src/mistralai/client/models/agents_api_v1_conversations_getop.py: + id: c530f2fc64d0 + last_write_checksum: sha1:af72936b0c215349d0e362b7fd194907fa02a13c + pristine_git_object: bf985d98b9e84571c748ea441709693353183baa + src/mistralai/client/models/agents_api_v1_conversations_historyop.py: + id: 2f5ca33768aa + last_write_checksum: sha1:fccc3e1a3f48eff31463829037a440be667a7da1 + pristine_git_object: ef0a4eb084de52d4bde435ee9751aaa12e61dcc3 + src/mistralai/client/models/agents_api_v1_conversations_listop.py: + id: 936e36181d36 + last_write_checksum: sha1:2e3495f66f3697e4d459266cc50074d3f1c7ee24 + pristine_git_object: 01dec1dd554e066eabe23cceee3258d369fcd83b + src/mistralai/client/models/agents_api_v1_conversations_messagesop.py: + id: b5141764a708 + last_write_checksum: sha1:17fd503da7fb20198792c6e25f94dcc0a1e5db05 + pristine_git_object: 19978a194e2dd633fe89bcee7ceac177fcdd6629 + src/mistralai/client/models/agents_api_v1_conversations_restart_streamop.py: + id: c284a1711148 + last_write_checksum: sha1:2e462249c8ab71376c5f6179a2c033e254165f3e + pristine_git_object: 63c744498dfbdd254f2e780d90a680b10100ee63 + src/mistralai/client/models/agents_api_v1_conversations_restartop.py: + id: 3ba234e5a8fc + last_write_checksum: sha1:5dd06d300dbe8832b72d868657dc4c58f0ebaad5 + pristine_git_object: 3186d5df9000d4a62c0fbc64a601e6b709803deb src/mistralai/client/models/agentscompletionrequest.py: id: 3960bc4c545f last_write_checksum: sha1:ee1e60d894d3a9277c1a3970c422483ffa502e21 @@ -1812,22 +2004,10 @@ trackedFiles: id: 00b34ce0a24d last_write_checksum: sha1:733e852bf75956acd2c72a23443627abfa090b7b pristine_git_object: a6665c1076f05c28936510c24ee7d3498d7e7a24 - src/mistralai/client/models/appendconversationop.py: - id: 1c47dd1e7c7e - last_write_checksum: sha1:109ced509e3caa5e5c9610b3a18839d113be708a - pristine_git_object: 710b8e1ca3fbfbb747e48d7699588bc199a41274 - src/mistralai/client/models/appendconversationstreamop.py: - id: 1ab08b189e9d - last_write_checksum: sha1:edd2a91da29f83646538b57e4d29f006d31f9dec - pristine_git_object: 55efca0e32c5d54d100563500aee9b61952d07c2 src/mistralai/client/models/archiveftmodelout.py: id: bab499599d30 last_write_checksum: sha1:92f5b5a89ae5e52523d30069629e0ac8dc858d6b pristine_git_object: 3107116c4a2c78c591999b220349325612a19b4e - src/mistralai/client/models/archivemodelop.py: - id: beefa1df3b7c - last_write_checksum: sha1:6f78b2f84f42267d4928a5a3ad1d3d3cae417cac - pristine_git_object: 30b4a9bd71f349cc4ab4b12df73770d327008527 src/mistralai/client/models/assistantmessage.py: id: 2b49546e0742 last_write_checksum: sha1:a58ecb7bc381af02d83247f0518a3d34013b4575 @@ -1860,18 +2040,10 @@ trackedFiles: id: 1563e2a576ec last_write_checksum: sha1:9b59325428680d58151696c1738ad5466d67a78d pristine_git_object: c1bf722a45c4326f24f7fd34ea536d59c48c67f2 - src/mistralai/client/models/batchjobin.py: - id: 72b25c2038d4 - last_write_checksum: sha1:667020377b2ca85dfd9c5aed96c7d4ba2571093b - pristine_git_object: a0c3b9146130a5ebfdbd0ec6338092bacc01bf85 - src/mistralai/client/models/batchjobout.py: - id: cbf1d872a46e - last_write_checksum: sha1:9031bc5ff1986ddc283551f7f5d210c9de67cc56 - pristine_git_object: 99c2b95118364d660f0cefde16507a83e8c9cafe - src/mistralai/client/models/batchjobsout.py: - id: 20b2516e7efa - last_write_checksum: sha1:426287f6ef9ed88e75f9e318582627d066f9e4f0 - pristine_git_object: f65fc040a964c68c82b5df7d3fb9e40222182322 + src/mistralai/client/models/batchjob.py: + id: 85cd28932cc7 + last_write_checksum: sha1:b0490a2c15142036f573da1c5f0820cf4bdaa96f + pristine_git_object: 0c315af66fb8aa1ae472e5f271a5e4135e842eaa src/mistralai/client/models/batchjobstatus.py: id: 61e08cf5eea9 last_write_checksum: sha1:78934183519948464385245cbc89efb68ac00bfb @@ -1884,14 +2056,6 @@ trackedFiles: id: 2d276ce938dc last_write_checksum: sha1:4ceb3182009b6535c07d652ccf46661b553b6272 pristine_git_object: ecf60d3c1a83028d9cf755d4c9d5459f6b56e72a - src/mistralai/client/models/cancelbatchjobop.py: - id: cebac10b56a9 - last_write_checksum: sha1:2614180488e51c0e701fffdb058b39892c5bc1e5 - pristine_git_object: cd94ee86467247fe2bc7f7381fa05b57bedabef1 - src/mistralai/client/models/cancelfinetuningjobop.py: - id: c9a1b39f0d02 - last_write_checksum: sha1:139d3c443678aeeb8afedea8b2a783210e5ac28c - pristine_git_object: ddd445bb433df9a0f987693d97088d79e5e8c47f src/mistralai/client/models/chatclassificationrequest.py: id: afd9cdc71834 last_write_checksum: sha1:91f62e46c415a0168442695f61cb30756227ed1a @@ -1932,14 +2096,6 @@ trackedFiles: id: 2445f12b2a57 last_write_checksum: sha1:2b8b9aeadee3b8ffe21efd1e0c842f9094c4ecc7 pristine_git_object: 6c7d6231d211977332100112900ea0f8cdf5d84c - src/mistralai/client/models/classifierdetailedjobout.py: - id: d8daeb39ef9f - last_write_checksum: sha1:1b6dde6554e51d9100f2e50779eff56b3ca07603 - pristine_git_object: bc5c5381d61b6b4945b51dc9836bcc2e7aa66f9f - src/mistralai/client/models/classifierftmodelout.py: - id: 2903a7123b06 - last_write_checksum: sha1:5141a0c29da0739057c52b2345a386c79d6f8f85 - pristine_git_object: 182f4954c2b3f1408cb05eee76e2bf24005b023e src/mistralai/client/models/classifierjobout.py: id: e19e9c4416cc last_write_checksum: sha1:c5daf7e879911ea24fba847a1c12ab9774ebbe98 @@ -1976,18 +2132,10 @@ trackedFiles: id: d786b44926f4 last_write_checksum: sha1:04b634cffa4b0eb8ca177c91d62d333a061160df pristine_git_object: 67f447d0c6cd97cb54ffcd0c620654629ac4e848 - src/mistralai/client/models/completiondetailedjobout.py: - id: 9bc38dcfbddf - last_write_checksum: sha1:4771444753ff456829249d4e5fa5f71f2328fa78 - pristine_git_object: cd3a86ee28cdbf3a670d08f27642294321849ec0 src/mistralai/client/models/completionevent.py: id: c68817e7e190 last_write_checksum: sha1:dc43ac751e4e9d9006b548e4374a5ec44729eea4 pristine_git_object: 3b90ab0c1ecac12f90e0ae3946a6b61410247e4f - src/mistralai/client/models/completionftmodelout.py: - id: 0f5277833b3e - last_write_checksum: sha1:1c83e1d0a868eef32792844d787c5aaede0386b8 - pristine_git_object: 7ecbf54aabf022392e6d2ce2d0a354b9326eec79 src/mistralai/client/models/completionjobout.py: id: 712e6c524f9a last_write_checksum: sha1:2c8500593b8f9257a0a389f87792cd174fcd7209 @@ -2056,50 +2204,26 @@ trackedFiles: id: 6685e3b50b50 last_write_checksum: sha1:60f91812b9b574b3fade418cc7c2191253f6abbf pristine_git_object: 98db0f1617bd7484750652997dcd43d08ef7c5fc - src/mistralai/client/models/createfinetuningjobop.py: - id: fd3c305df250 - last_write_checksum: sha1:e29ada8f733de44bfeab2885d2221ade84b34619 - pristine_git_object: f55deef5d9f6134fddb02c458a0d812759cea358 - src/mistralai/client/models/createorupdateagentaliasop.py: - id: a79cf28bda01 - last_write_checksum: sha1:d4f2790b5970c9cf30b3fcee9d8bc6d4b8c33778 - pristine_git_object: cde1dd054c447a8617527585e783a95affba3277 - src/mistralai/client/models/deleteagentaliasop.py: - id: e4d0d7f75b24 - last_write_checksum: sha1:66e34ba7fb1a238d55c7ed380bd666c8975c01b4 - pristine_git_object: c52d099e9c1f28bf37ee009833b5fb8e351ed987 - src/mistralai/client/models/deleteagentop.py: - id: 089fb7f87aea - last_write_checksum: sha1:a196bcc758e36ffeb17fab25bb60451d3d66a4d8 - pristine_git_object: 8b14bca7bf5d67e16181b67ef6b7375c1b0a93fd - src/mistralai/client/models/deleteconversationop.py: - id: 86fefc353db0 - last_write_checksum: sha1:48f33b614ec087fdaf2b29d9c3eefd6e8d7d311f - pristine_git_object: 39607f40640c6dfa3ef20d913a90abee602b9b4a - src/mistralai/client/models/deletedocumentop.py: - id: 62522db1ccf2 - last_write_checksum: sha1:1a4e2e72a0d3cd24e184ce3cc5037f5ec7cdd9a5 - pristine_git_object: 400070a49bc046d8132bfc7dfe3e114faa719001 - src/mistralai/client/models/deletefileop.py: - id: 286b4e583638 - last_write_checksum: sha1:2561c1fe03ec3915dfa48fa354a86a56ba9b54c4 - pristine_git_object: 4feb7812f8acfa366e4b46fc914925df4f705528 - src/mistralai/client/models/deletefileout.py: - id: 5578701e7327 - last_write_checksum: sha1:a34520be2271c1e37fa8b3c1bdead843db7b1bb9 - pristine_git_object: c721f32cfe752c2c084efb72db3e5409795e387a - src/mistralai/client/models/deletelibraryaccessop.py: - id: df80945bcf19 - last_write_checksum: sha1:065aad372e0bbfd998fe3adc3389e3dbc9d5b674 - pristine_git_object: ca14c3ffc43be3aee14d6aa1f4805f0483d8b676 - src/mistralai/client/models/deletelibraryop.py: - id: cd0ce9bf8d51 - last_write_checksum: sha1:07840cbdb741bba291f1db1a1b54daca99e8f7ea - pristine_git_object: 5eb6fc310aa62454e3f7ed0766212c807125fe8c - src/mistralai/client/models/deletemodelop.py: - id: 2c494d99a44d - last_write_checksum: sha1:97dce35d527e03612068896572824cc0f13269c1 - pristine_git_object: 55c4b2422336ef6e148eedbd4a6a60846d187e9b + src/mistralai/client/models/createbatchjobrequest.py: + id: 56e24cd24e98 + last_write_checksum: sha1:3c7cd58c93417126bd2ec220202a52819a8b99fc + pristine_git_object: 2e765ce6e6f846fd672b357b2f82b13fe1ef7943 + src/mistralai/client/models/createfinetuningjobrequest.py: + id: c60d2a45d66b + last_write_checksum: sha1:6281227595fb627f2511344627b4a0862117e15c + pristine_git_object: 2d7d5a7d0e447170728c0ec756ae909c9f706edb + src/mistralai/client/models/createlibraryrequest.py: + id: 1c489bec2f53 + last_write_checksum: sha1:f6f59884ff3778cedd998286fe2a2391c70ee8e7 + pristine_git_object: 8865e6643966e2646d5c86fb2c368ba61bb484fb + src/mistralai/client/models/delete_model_v1_models_model_id_deleteop.py: + id: 767aba526e43 + last_write_checksum: sha1:73568f2f450bf9c23aca3649372a92e1b9a2fc54 + pristine_git_object: 199614f53501f34088cb112d6fe1114e1e588d8a + src/mistralai/client/models/deletefileresponse.py: + id: 3ee464763a32 + last_write_checksum: sha1:2c0df66fc8c4384d50e54ac03577da3da2997cf5 + pristine_git_object: ffd0e0d015e38e5f6113da036ebeba98441444f4 src/mistralai/client/models/deletemodelout.py: id: ef6a1671c739 last_write_checksum: sha1:4606683ef6da0aae7e88bc50144eddc83908f9d7 @@ -2108,30 +2232,26 @@ trackedFiles: id: 68f53d67a140 last_write_checksum: sha1:ff7fa85086bd56863f7f4a255b008cfaa11a959c pristine_git_object: fbb8231a310e90afd50951dd0f572ce3e0f029e6 + src/mistralai/client/models/document.py: + id: fbbf7428328c + last_write_checksum: sha1:3dcd1ce2e9c8d09463727dc2e397c04fa1531f69 + pristine_git_object: ae9fbd234fc300c717b042deb3ad4248464940fd src/mistralai/client/models/documentlibrarytool.py: id: 3eb3c218f457 last_write_checksum: sha1:e5bfb61a4a03a3b28837c27195f1bcd8cc14c6b2 pristine_git_object: ff0f739391404604c1cc592c23507946aa0b693f - src/mistralai/client/models/documentout.py: - id: 7a85b9dca506 - last_write_checksum: sha1:f041a4866c67d1f81f62282918d625216a760355 - pristine_git_object: 3b1a5713c84512947a07d153792b17fcf3262dcb src/mistralai/client/models/documenttextcontent.py: id: e730005e44cb last_write_checksum: sha1:c86f4b15e8fda1cd5c173da01462342cd22b7286 pristine_git_object: b6904cb4267347b62a457a01b91a391500326da9 - src/mistralai/client/models/documentupdatein.py: - id: d19c1b26a875 - last_write_checksum: sha1:bddd412de340d050cfbdd4206a9fbb3d1660a045 - pristine_git_object: 669554de5d33f6163c8d08fefee52c1869662eba + src/mistralai/client/models/documentupdaterequest.py: + id: 2e3de3f7e71f + last_write_checksum: sha1:d5e179caf9c8d9dae3b63df167865bda316435be + pristine_git_object: 73d08874d83a2020d914e49f344ba4b295cfa667 src/mistralai/client/models/documenturlchunk.py: id: 4309807f6048 last_write_checksum: sha1:186a684da48bb5d237769ecb3dbf1479a5c5ee55 pristine_git_object: 304cde2b687e71b0d2fb0aee9b20826473375b25 - src/mistralai/client/models/downloadfileop.py: - id: 4d051f08057d - last_write_checksum: sha1:b80c5332cfdb043bb56f686e4e1c4bf26495b04b - pristine_git_object: fcdc01d644bdce8d1fc7896b5f8244a7a5311dfa src/mistralai/client/models/embeddingdtype.py: id: 77f9526a78df last_write_checksum: sha1:a4e2ce6d00e6d1db287a5d9f4254b0947227f337 @@ -2168,14 +2288,38 @@ trackedFiles: id: ff3c2d33ab1e last_write_checksum: sha1:9f970ef8366df8087f9332a4b1986540063a1949 pristine_git_object: 43ef22f861e0a275c7348133d0c4d04551477646 + src/mistralai/client/models/fileobject.py: + id: 7020482d0781 + last_write_checksum: sha1:af31ee8e2b235296ce9e31a9f6cb2c34ff4dc389 + pristine_git_object: 0c333a0b7cc916c89a0355fdc9345ba6426f74c1 src/mistralai/client/models/filepurpose.py: id: a11e7f9f2d45 last_write_checksum: sha1:8b167c02f9f33e32d5fd1c6de894693924f4d940 pristine_git_object: 49a5568ff82ad4a85e15c8de911e8d6c98dcd396 - src/mistralai/client/models/fileschema.py: - id: 19cde41ca32a - last_write_checksum: sha1:245115d1f955324bce2eeb3220bdaa6906b28e92 - pristine_git_object: cbe9b0d17ad15ce02e9fd973fe49666885c6ff92 + src/mistralai/client/models/files_api_routes_delete_fileop.py: + id: 2f385cc6138f + last_write_checksum: sha1:ccfd3ff64635cfd511f49c5e02a6f1860c479966 + pristine_git_object: eaba274b9dd94d6cf729325316b3e3e9b3834566 + src/mistralai/client/models/files_api_routes_download_fileop.py: + id: 8184ee3577c3 + last_write_checksum: sha1:81058ede2a5eb333b54561f99ed7878082c0f411 + pristine_git_object: 83de8e73a3d50917e4a41bb92a828a10e646a632 + src/mistralai/client/models/files_api_routes_get_signed_urlop.py: + id: 0a1a18c6431e + last_write_checksum: sha1:44c9a9c3caee52367855579732578657849c04f9 + pristine_git_object: 01f1582147226610ec5a2564de6c4981f5716ebf + src/mistralai/client/models/files_api_routes_list_filesop.py: + id: b2e92f2a29b4 + last_write_checksum: sha1:ffc47337763e5467850be5827a830ea1c5e42e69 + pristine_git_object: 9d47692d6bcc4377c265fcd40c73ca8d235b27b2 + src/mistralai/client/models/files_api_routes_retrieve_fileop.py: + id: 5d5dbb8d5f7a + last_write_checksum: sha1:d451d8d2b32f412158a074919cca1a72f79940cb + pristine_git_object: 5f8de05f1bba07517dc2ee33a4f05122503b54b5 + src/mistralai/client/models/files_api_routes_upload_fileop.py: + id: f13b84de6fa7 + last_write_checksum: sha1:a5ba99d07b3db9a17897dc284082cb5362be978c + pristine_git_object: 180db778df13e5882132eedfcb248a197e7e0201 src/mistralai/client/models/filesignedurl.py: id: a1754c725163 last_write_checksum: sha1:5d981b1743aa2d84818597b41a5f357b4256e9e0 @@ -2240,62 +2384,10 @@ trackedFiles: id: 2e9ef5800117 last_write_checksum: sha1:5c4ea61a1bccd87e1aae06bfa728c29a4ec60c54 pristine_git_object: 13b0449687f64848cb2f2fdf792f148f9e3cfed9 - src/mistralai/client/models/getagentop.py: - id: 5a28bb1e727e - last_write_checksum: sha1:50a681253a1075f1268a269cd67154efa35dff6a - pristine_git_object: 55d8fe6860fa4c868c4d6d5d5d2ce4571e9071b4 - src/mistralai/client/models/getagentversionop.py: - id: a0db5a6aab1f - last_write_checksum: sha1:d1dfc0927abcae22460838902d1f5ddc2a224856 - pristine_git_object: 77b8a2662939e03b261f713aa7d9676746a4df1e - src/mistralai/client/models/getbatchjobop.py: - id: 443103fe3b88 - last_write_checksum: sha1:3a7f9656f3d169c60f0d3f16b00c4136d193468e - pristine_git_object: 792c3e2121902734094a7224c8605109fc697f44 - src/mistralai/client/models/getconversationhistoryop.py: - id: c863a4cbeb34 - last_write_checksum: sha1:4e04b4550c7b48635eca1943bcfee64027f0e7ca - pristine_git_object: c1fbf3de4ee966fffa2400a9c109d952b26543da - src/mistralai/client/models/getconversationmessagesop.py: - id: bb8a90ba7c22 - last_write_checksum: sha1:1b7aad5c74338aeecb11de44d8378aaa75498e37 - pristine_git_object: 6666198edce05a99c55f1c35f26f6d3b548c9b0d - src/mistralai/client/models/getconversationop.py: - id: 1a622b8337ac - last_write_checksum: sha1:4665e81fae4f12fabc09629f32d28c1c2de2bcf2 - pristine_git_object: d204d1755b4dc23ba8397ad24fec30bd064eacce - src/mistralai/client/models/getdocumentextractedtextsignedurlop.py: - id: 69099395d631 - last_write_checksum: sha1:f6d5e8499a314e903301e419fb206c33644363ff - pristine_git_object: 9a71181d3abd625643e741c562fe73f25bf12932 - src/mistralai/client/models/getdocumentop.py: - id: de89ff93d373 - last_write_checksum: sha1:4d1f358dfe3b44ccd2a88aea6730fbaf4b5f1d93 - pristine_git_object: d7b07db791a3adb3992475f0cf49c3fe01007ad9 - src/mistralai/client/models/getdocumentsignedurlop.py: - id: b8d95511c6d1 - last_write_checksum: sha1:255a0b505d558db3149652822718c7bcecc706e8 - pristine_git_object: e5d56c54c1ffc3529a8d1cf013bcb3327392b269 - src/mistralai/client/models/getdocumentstatusop.py: - id: f1f40b8f003f - last_write_checksum: sha1:c442daff8adb3db0ac58b03e54b7c05c82b202a9 - pristine_git_object: 4206f593ca58650f9df17b377b67c374a1b0d883 - src/mistralai/client/models/getdocumenttextcontentop.py: - id: ba23717093ef - last_write_checksum: sha1:33f047af38e4be2b71f4d90a36614ea7ab096a28 - pristine_git_object: 8a7b4aae025bbcb5ade5d4d36f2bb5e34cbb315e - src/mistralai/client/models/getfilesignedurlop.py: - id: 1aa50b81c8cf - last_write_checksum: sha1:a8fb95f119d173dd1d7afed02597a297dbbc7a89 - pristine_git_object: 06ed79eea058d4ebffc5d0b87ae2d06a32f4755a - src/mistralai/client/models/getfinetuningjobop.py: - id: afe997f96d69 - last_write_checksum: sha1:25db6d0d336a78189b603bbce16b0e0de84a33f1 - pristine_git_object: 1fb732f48a1a4c2993185a6a272879a83c80dc06 - src/mistralai/client/models/getlibraryop.py: - id: c84a92e23a90 - last_write_checksum: sha1:d51c0cf40a6ed398b0cb7078fe897d047b55e251 - pristine_git_object: bc0b4a238b146c6e5853e0b9d3031a876f30bc17 + src/mistralai/client/models/getfileresponse.py: + id: 81919086e371 + last_write_checksum: sha1:bdb6b3a8883daf110e7222ead3c66b896688f0a1 + pristine_git_object: 93cf297f9b48760111d51b04edb7850bf723c745 src/mistralai/client/models/githubrepositoryin.py: id: eef26fbd2876 last_write_checksum: sha1:cc98805951c3f80d9b8f0ba4037cf451551b0742 @@ -2332,90 +2424,154 @@ trackedFiles: id: 6d3ad9f896c7 last_write_checksum: sha1:b56a77442b50b50151adedaa5ec356dc96c56428 pristine_git_object: e5f9cccf174d8e73c42e8ee4aa294b43e1ad6cf5 - src/mistralai/client/models/jobin.py: - id: f4d176123ccc - last_write_checksum: sha1:478a9beaf1c5ada536f5c333a47aa2ac0900bd16 - pristine_git_object: b3cb8998b5b0ce00414e40643eb3e259b2c0aabf src/mistralai/client/models/jobmetadataout.py: id: 805f41e3292a last_write_checksum: sha1:1333181d5a3dff43076095f61e1d57f37085abbe pristine_git_object: 1d386539d8c638d96b8f468cfca3241dfc07a9f3 - src/mistralai/client/models/jobsout.py: - id: 22e91e9631a9 - last_write_checksum: sha1:e9434f43df7df8e991eb0387eabcf308cae3cb65 - pristine_git_object: a4127a5d835c0f0ead04980f05cb293e18970905 + src/mistralai/client/models/jobs_api_routes_batch_cancel_batch_jobop.py: + id: b56cb6c17c95 + last_write_checksum: sha1:21b5794f110c53691654d7195201f9a4b7793f21 + pristine_git_object: de2e63472ac53809cfeae200bd7d2f3dcbb70034 + src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobop.py: + id: 36b5a6b3ceee + last_write_checksum: sha1:b9eac025f67bbb78bed62cb79226bd3625afca1b + pristine_git_object: c78afcdcaf34b809b39f99970034a423291abec5 + src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py: + id: d8f0af99c94d + last_write_checksum: sha1:af391a0ef59823efd879049433dbad2d047a5efd + pristine_git_object: c5f2a78c93f91d471249b54f48108180131dfff9 + src/mistralai/client/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py: + id: 34f89d2af0ec + last_write_checksum: sha1:3d5242f757ee9be10963af9cd5d47824fc83c71a + pristine_git_object: 9fa99837dda7e9413d3a05822cd17107c5fae51d + src/mistralai/client/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py: + id: d175c6e32ecb + last_write_checksum: sha1:a4b3add7da803a03c9abd161ac85fec1c98e495b + pristine_git_object: aa673d8ca78ec57e734d3c7e54c82aab3764f483 + src/mistralai/client/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py: + id: 81651291187a + last_write_checksum: sha1:c4bec63534b58bd01660380f7f7b5a5a5ae73b46 + pristine_git_object: a7ed80b96509a60d6d2a21d1bb7d7670ad2fa00d + src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py: + id: d910fd8fe2d6 + last_write_checksum: sha1:f9f8610be656b38297205ef3ad1b4f918a4cfb77 + pristine_git_object: f7bde3865a5b80fab9311f17b6dd6d82112b9296 + src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py: + id: cf43028824bf + last_write_checksum: sha1:f7691dedb95f9eff9feb7e274aef36d014cf1caa + pristine_git_object: 7412f8758ea40f115fd882287243b623f4811ceb + src/mistralai/client/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py: + id: e7ff4a4a4edb + last_write_checksum: sha1:b3eb190a5a6c51bd4cbd28d33f7b27b200647aa9 + pristine_git_object: 78e6a5992433181778b7d748d71e850ba121f4f7 + src/mistralai/client/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py: + id: 7cc1c80335a9 + last_write_checksum: sha1:f66c16423155066b844f8e89446d2acbb6e68157 + pristine_git_object: fd01fe6948613b0fffef9ac76cf1a0f9011ec5af + src/mistralai/client/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py: + id: 6d9dc624aafd + last_write_checksum: sha1:3e6528eff558e5e3b253e75595f8fb031c7f2a09 + pristine_git_object: 0387c03916a10039d8986a8906f0c10fbde0c385 src/mistralai/client/models/jsonschema.py: id: e1fc1d8a434a last_write_checksum: sha1:6711508e9c1bd20fc8b1bfdbd1181ca29144ef0d pristine_git_object: 948c94ed8fe8102a9cdced68fde6be03489f5778 - src/mistralai/client/models/legacyjobmetadataout.py: - id: 4f44aa38c864 - last_write_checksum: sha1:e93d512c8cb6e0812248a195ff869428209cd71f - pristine_git_object: 4453c15798f4fd4db2de64e0beaf7ad557d82fa1 - src/mistralai/client/models/libraryin.py: - id: 6147d5df71d9 - last_write_checksum: sha1:34c5c9582a488fe87da084e74316e0fd76aa28d1 - pristine_git_object: 1a71d410d997a6d3f197947f821117e0605517af + src/mistralai/client/models/libraries_delete_v1op.py: + id: b2e8bbd19baa + last_write_checksum: sha1:ba41496bc99040f7598659c5b037b955b7f6d385 + pristine_git_object: 893ab53b11672edd9cde175e68a80d89ff949cb6 + src/mistralai/client/models/libraries_documents_delete_v1op.py: + id: 81eb34382a3d + last_write_checksum: sha1:66d1c6ec5e2535b0db72a3beac65b25a1f2336d7 + pristine_git_object: 0495832efba33314f3cd28fe62759c6dac5ca706 + src/mistralai/client/models/libraries_documents_get_extracted_text_signed_url_v1op.py: + id: a7417ebd6040 + last_write_checksum: sha1:030ca9fb7e10396e6b743ee644fe1a734e1df1f0 + pristine_git_object: 186baaed8346d106272fea2e4826587634b061bc + src/mistralai/client/models/libraries_documents_get_signed_url_v1op.py: + id: d4b7b47913ba + last_write_checksum: sha1:fdad7a6d3ae9a9c69009caf8207b284835675a9a + pristine_git_object: ebcf85d77ed6982d510ae95a6971e1d4b3ad56ca + src/mistralai/client/models/libraries_documents_get_status_v1op.py: + id: f314f73e909c + last_write_checksum: sha1:11d463eb328a1133658e8ff92340edc7f75923e4 + pristine_git_object: 1f4847874cdeff26caaf5fd16e0f8382834ecb2b + src/mistralai/client/models/libraries_documents_get_text_content_v1op.py: + id: 1ca4e0c41321 + last_write_checksum: sha1:26133a83bf0ef063c78069da1bbb96d58f44f30c + pristine_git_object: e0508d66fce682ed20a029604897137940689327 + src/mistralai/client/models/libraries_documents_get_v1op.py: + id: 26ff35f0c69d + last_write_checksum: sha1:e87e56e8fb9f7c11d61c805362db4755a81186b9 + pristine_git_object: 857dfbe60c57af8b0fa6655a049ed336d70fb941 + src/mistralai/client/models/libraries_documents_list_v1op.py: + id: 756f26de3cbe + last_write_checksum: sha1:7f77e150db06ec8eea6808567830b5181921a899 + pristine_git_object: c301b6f545a10481ae4627f6bba9b84c2c6784a4 + src/mistralai/client/models/libraries_documents_reprocess_v1op.py: + id: dbbeb02fc336 + last_write_checksum: sha1:bd5013cb1581dd13642ce7edf1e701f5b0c967c4 + pristine_git_object: a2f9ba2a0465fb3a8eb3b9afbb41d813de348656 + src/mistralai/client/models/libraries_documents_update_v1op.py: + id: 734ba6c19f5f + last_write_checksum: sha1:2c0b1e0ffba71fded006c443c6fa579196b06034 + pristine_git_object: 5bf8de83f28b2d25125335e0eeb773720544d95a + src/mistralai/client/models/libraries_documents_upload_v1op.py: + id: "744466971862" + last_write_checksum: sha1:d94e08d2c6d5eeadc3ff72c9bd88903125097e58 + pristine_git_object: e36a6a0ac6d8526ee28d15d8e27c41195fddb342 + src/mistralai/client/models/libraries_get_v1op.py: + id: d493f39e7ebb + last_write_checksum: sha1:25b3c2c1040cd73ebd6b988b8b27708831affefd + pristine_git_object: 7a51d6053aa2cf2e6524a80487fe9549eec3dfa1 + src/mistralai/client/models/libraries_share_create_v1op.py: + id: feaacfd46dd3 + last_write_checksum: sha1:d231476ee60810da067120f7386e3e3cb34a8d54 + pristine_git_object: c80955b1cfe5b6eabd19610351e99cd623e96402 + src/mistralai/client/models/libraries_share_delete_v1op.py: + id: 7f3a679ca384 + last_write_checksum: sha1:897857c11cf0c14a0a81ef122dec4395dc16c0ce + pristine_git_object: eca3f86a6135e702f8cb6412a5f215dac2335a8f + src/mistralai/client/models/libraries_share_list_v1op.py: + id: 8f0af379bf1c + last_write_checksum: sha1:d27e0360c504576c315350fc226d371da455a598 + pristine_git_object: 895a259059283a17cc7558e3cc03022e2d4dd259 + src/mistralai/client/models/libraries_update_v1op.py: + id: 92c8d4132252 + last_write_checksum: sha1:605bd2818be4a3f3670cb331c9c6626f69dd635e + pristine_git_object: 457e4199d30ef816eca5be1579613cd0763ef94c + src/mistralai/client/models/library.py: + id: 028a34b08f9c + last_write_checksum: sha1:690e0e83d34bca5ffd2135b0a7d2f6e8709cd6d9 + pristine_git_object: 4197d1d3e79355bd53302f14eb431b9439f6f86f src/mistralai/client/models/libraryinupdate.py: id: 300a6bb02e6e last_write_checksum: sha1:c9b1a0a00d31fa839df12353f1a3ee9d0b3ffb60 pristine_git_object: 328b2de3cd4e304fd462882eca7226e460b7c4a7 - src/mistralai/client/models/libraryout.py: - id: 4e608c7aafc4 - last_write_checksum: sha1:9841adb596398554dfcaeb35b7e5a0572c541cff - pristine_git_object: c7ab7b8d39b68b5998c4874f9942caa275cf65d9 - src/mistralai/client/models/listagentaliasesop.py: - id: ff038766a902 - last_write_checksum: sha1:eef4e471999d5df5195aea51cde027b55567aeef - pristine_git_object: 83c6d1769c10fe38402a36b6aff2a18da61f4504 - src/mistralai/client/models/listagentsop.py: - id: a573a873c404 - last_write_checksum: sha1:db3c9e6ddc146138ed971f9970d9a164c0f97456 - pristine_git_object: 863fc13af1429bd1a6c02a9a20d2b6cb0cad7b34 - src/mistralai/client/models/listagentversionsop.py: - id: ccc5fb48e78f - last_write_checksum: sha1:0f2306bcceba2a2d7bfeb0be33126514d9287f17 - pristine_git_object: 613d3d8516690e6cba15922dfe69bdf62c039b01 - src/mistralai/client/models/listbatchjobsop.py: - id: f49af453f5e6 - last_write_checksum: sha1:e48b0e7371ee8f637e4fd6bed140cdbb1d405a7d - pristine_git_object: 5322df816e391a5569afcfd14edaeb128467a176 - src/mistralai/client/models/listconversationsop.py: - id: d6007f6c1643 - last_write_checksum: sha1:ece12b550abe6e17eb79f7a05593a93ea055f3f6 - pristine_git_object: 1c9a347c0ad4801c3a1b941e6328061d23d7dcd5 - src/mistralai/client/models/listdocumentout.py: - id: b2c96075ce00 - last_write_checksum: sha1:fc3eca772d1e32938ea1bd2f3e98cdea5f1003f3 - pristine_git_object: a636b3deff66fe4277a63c04fc7dd6c5e74e58e7 - src/mistralai/client/models/listdocumentsop.py: - id: 3e42bdc15383 - last_write_checksum: sha1:d9beade6d8bb8050a67e32c2a73926b140015e68 - pristine_git_object: 0f7c4584d793c7e692a4bbc6678e18549b0e0364 - src/mistralai/client/models/listfilesop.py: - id: e5bd46ac0145 - last_write_checksum: sha1:3e0bc8a7318ffd1c3fe15f335ea2bc1e18c714a1 - pristine_git_object: a9af5c70c98adce56653ff01772fe5900530a36e - src/mistralai/client/models/listfilesout.py: - id: ae5fa21b141c - last_write_checksum: sha1:4bc8ef424beb41c75d9c6fa4e101d330a951a99f - pristine_git_object: 460822f71fe8b0fc6292b804dc2a9de29bff4ef5 - src/mistralai/client/models/listfinetuningjobsop.py: - id: b77fe203b929 - last_write_checksum: sha1:af98423b166930cd18a1d377ea688540f3364166 - pristine_git_object: 8712c3fa6ac24094532fdfc047561997ea34552f - src/mistralai/client/models/listlibraryaccessesop.py: - id: 581b332626b7 - last_write_checksum: sha1:0a6bd277a706d807d87d3f2a4f870cc6ba917928 - pristine_git_object: 2206310f301f6ea40f14a495f5f6c6b4e76dbbf7 - src/mistralai/client/models/listlibraryout.py: - id: cb78c529e763 - last_write_checksum: sha1:3cd81fd6f6d2421c6b6d06077f0bf1d5b3c96cad - pristine_git_object: 39fa459f7cc7be17c751025287d7827c9d141aac - src/mistralai/client/models/listsharingout.py: - id: ee708a7ccdad - last_write_checksum: sha1:18e6501b00a566121dfd6a1ce7b0e23fef297e45 - pristine_git_object: 443ad0d6a275c1c8bae4adda3e67621b068c0412 + src/mistralai/client/models/listbatchjobsresponse.py: + id: 99d94c86a871 + last_write_checksum: sha1:b9e2c05da25edbce39953111402a227fc6901726 + pristine_git_object: 9384433827a2aa163b38f8f35db810c7ead438aa + src/mistralai/client/models/listdocumentsresponse.py: + id: f593d8e66833 + last_write_checksum: sha1:0d842168856056ff681b2a1c36b87df8e0d96570 + pristine_git_object: c48b8c051ad0d1fb4aed8396697e57e782be5a40 + src/mistralai/client/models/listfilesresponse.py: + id: 85d6d24c1a19 + last_write_checksum: sha1:8adfc88491c6ca9d368b2aff10eecfb0fa71c03d + pristine_git_object: d93c5b9d63a5f4c59f7d2488fb8309a958e3c393 + src/mistralai/client/models/listfinetuningjobsresponse.py: + id: 118e05dbfbbd + last_write_checksum: sha1:9e1a9c60aa12f65bdbb263ca6f46b09bba9aa907 + pristine_git_object: c4583cb695c87c1177e2e149c24c2980a4bf7ab4 + src/mistralai/client/models/listlibrariesresponse.py: + id: df556a618365 + last_write_checksum: sha1:55afb46b1fa797bc46574e5256cd063574c6fcbf + pristine_git_object: 337fe105731d8f3ced1f8f1299ff4081b9d5bfbe + src/mistralai/client/models/listlibraryaccessesresponse.py: + id: e9adebbefbf7 + last_write_checksum: sha1:703c5abaaf0281d5ae69b333eae6d91177d65ddd + pristine_git_object: c4279f416a2823e868a7a72da4202b10efbbd9ae src/mistralai/client/models/messageentries.py: id: e13f9009902b last_write_checksum: sha1:43aebdc9eaecc8341298dc6b281d0d57edf4e9e6 @@ -2490,8 +2646,8 @@ trackedFiles: pristine_git_object: 4f4ccf43011fa2563f79bb70ae2a813b84f04074 src/mistralai/client/models/ocrrequest.py: id: 36f204c64074 - last_write_checksum: sha1:8e669292b846a5af4e3cee0b632524696e3067bc - pristine_git_object: 18b899dd5ecc162dc8e92622f56bed503fff80f7 + last_write_checksum: sha1:9799fc03fa361494c62c9117904293bf28988e71 + pristine_git_object: cd4469b39740e2ba39f9e2d7324b3b2305d342dc src/mistralai/client/models/ocrresponse.py: id: 2fdfc881ca56 last_write_checksum: sha1:4a28dbfcc076c149e4f08a830d4d7f770836eb15 @@ -2530,8 +2686,8 @@ trackedFiles: pristine_git_object: cec1f6eabd44ceab4e58694a0862c9c90ea2f264 src/mistralai/client/models/realtimetranscriptionsession.py: id: 02517fa5411a - last_write_checksum: sha1:0073b248604f667e89e34cf01184a788ca84d63f - pristine_git_object: d20d0d8c94aeec425a2c1dfb93b72ac6878cb8af + last_write_checksum: sha1:5f8ccf157602d975e616b4bc7909003b8fb140ee + pristine_git_object: ac580262c1fcbff60dab08ee5728b11af1fdf1e5 src/mistralai/client/models/realtimetranscriptionsessioncreated.py: id: 4e3731f63a3c last_write_checksum: sha1:d3fb5c5dc417a0ebb12a30770324674e055526ae @@ -2544,10 +2700,6 @@ trackedFiles: id: 921acd3a224a last_write_checksum: sha1:0dcff62499afdb1db0fd4f46614f8680f94837f4 pristine_git_object: 7634d8ae07c96a99e634dcf888077f1d8cc4dc67 - src/mistralai/client/models/reprocessdocumentop.py: - id: b2913a7aa5c9 - last_write_checksum: sha1:07174ee58ec12909f08a08a9a6d7427ee9b2d5d0 - pristine_git_object: 48a4b72bf285e2f2e4b2d0c352ebc463518ed712 src/mistralai/client/models/requestsource.py: id: 3f2774d9e609 last_write_checksum: sha1:1ce68530a46793968f1122d29df722f0a5c9d267 @@ -2576,26 +2728,10 @@ trackedFiles: id: c244a88981e0 last_write_checksum: sha1:74a39321dee69f3487d9b9e01ffb2e40715176f4 pristine_git_object: 1ed0d55266a106364fe58aa1e476fafbfbbbfdfe - src/mistralai/client/models/restartconversationop.py: - id: 2f6f3e4bbfd8 - last_write_checksum: sha1:9500d3ebea040ff4a203f3f025ff1bff8a397235 - pristine_git_object: b09eaed5bc8ecdbb7f1952c97b2e665462c70f9e - src/mistralai/client/models/restartconversationstreamop.py: - id: 16dc9ee5bf22 - last_write_checksum: sha1:b16f54529f4fd7d1422c82ff1a6dd5a9a82ba6bd - pristine_git_object: 3b2025f536d1c54ed58064b4be33aaafb9297ac4 - src/mistralai/client/models/retrievefileop.py: - id: ee73efdf9180 - last_write_checksum: sha1:330ec0a78a7ba623f21cd378b53250045bea984c - pristine_git_object: edd50e571cf56c6c22acc1777f6c9af38787f07d - src/mistralai/client/models/retrievefileout.py: - id: 8bb5859aa0d0 - last_write_checksum: sha1:1077bdb8fcc5ba22b2deb7f5c95fefe7b1fb82f5 - pristine_git_object: 2abf2161cd61d84f04836740a526c0e3711c3f6d - src/mistralai/client/models/retrievemodelop.py: - id: d883baa79c9e - last_write_checksum: sha1:525c7e9cf8594433cbb21374422067a75e6b53a9 - pristine_git_object: b4334e9a5541a14f7916244761213b883d507a41 + src/mistralai/client/models/retrieve_model_v1_models_model_id_getop.py: + id: 6fefa90ca351 + last_write_checksum: sha1:d167d0a2a08980e30dd3a6c1aa21fcc61247e0f2 + pristine_git_object: 58fcb7e8ab45d66f71a4663f4c4eace7ba1b65e7 src/mistralai/client/models/sampletype.py: id: a9309422fed7 last_write_checksum: sha1:86a61340a647696f6c35a82d945509b1c85aa6f7 @@ -2612,18 +2748,14 @@ trackedFiles: id: a0e2a7a16bf8 last_write_checksum: sha1:15a84d57ceeb74cfb37275f714954e42d8e9b3ba pristine_git_object: 08ffeb7e46fbbc28b7c93ef2aa4a49aff7c0d35e + src/mistralai/client/models/sharing.py: + id: 324f5ac27249 + last_write_checksum: sha1:e25886bc3bf0d4fb3081e32c03fd35b95009f400 + pristine_git_object: 28e1ea1bdf8aff92eba71bffbd00605c47aa7ef0 src/mistralai/client/models/sharingdelete.py: id: f5ecce372e06 last_write_checksum: sha1:c5e4e6df47ef2d5715a99533a1efd936f0e7e16e pristine_git_object: 202732cf785074446cd24360dd9c540768e4134f - src/mistralai/client/models/sharingin.py: - id: e953dda09c02 - last_write_checksum: sha1:f60bd60d37f0accadf50ea111055fd99aa190a5f - pristine_git_object: 8cc3e8968d9d5460f040ebdb66d8f460e86d2c96 - src/mistralai/client/models/sharingout.py: - id: 0b8804effb5c - last_write_checksum: sha1:362bda8a5bd70d12e2de33814d3bd36a61c6d7ae - pristine_git_object: 778071546c12c2636d2deec6042e6b686b6428c6 src/mistralai/client/models/source.py: id: fcee60a4ea0d last_write_checksum: sha1:4d4277d75f7ce001780a069898b38afa7c8addc0 @@ -2632,10 +2764,6 @@ trackedFiles: id: 1733e4765106 last_write_checksum: sha1:3c79fc7c43cd018fba4950ba013ed15899b82ebf pristine_git_object: 0add960bc93f53df5ddda94892543a0857f32dd6 - src/mistralai/client/models/startfinetuningjobop.py: - id: "663886392468" - last_write_checksum: sha1:6a6a409dd481359e8d6593fa2ea817007f8a967d - pristine_git_object: 805a8721cc7d048f172e1096ead0e410c7d04928 src/mistralai/client/models/systemmessage.py: id: 500ef6e85ba1 last_write_checksum: sha1:af68936119bf7c067aec5215e2654c56a5df1755 @@ -2744,50 +2872,18 @@ trackedFiles: id: 9dbc3bfb71ed last_write_checksum: sha1:40a23dc39af81f06b23f21dad45c5c5f1178b2af pristine_git_object: 0249a69e8552ed00a5e1f505fdc16025c46d2477 - src/mistralai/client/models/unarchivemodelop.py: - id: eb18584fd78c - last_write_checksum: sha1:5b81357950f301a82233b58a3e2a5b232fdbf546 - pristine_git_object: 1d68a06ae41559baffb6d54398b52dec630556c7 - src/mistralai/client/models/updateagentop.py: - id: ae3a6abea468 - last_write_checksum: sha1:3867948bd0ea37b597c4e5ef7a2e6881791a5fa5 - pristine_git_object: 28acc83d8df1373e897f9634dfbb84ee28897717 - src/mistralai/client/models/updateagentversionop.py: - id: 3821dca5b20a - last_write_checksum: sha1:4c41a450278858089c7cb23b8fcf1e4184fa1f1d - pristine_git_object: 114013bcdcfb7d7c9e935285f167a004b65fbd09 - src/mistralai/client/models/updatedocumentop.py: - id: eee9ef317180 - last_write_checksum: sha1:7d9fc6e18e6631cfe9cd1bc2fa5f7d6cd599ec19 - pristine_git_object: 073f22a9a28c18ad645212262bdc66528a1f6281 src/mistralai/client/models/updateftmodelin.py: id: 39e2d678e651 last_write_checksum: sha1:4ea30ed8eaad36e1440614016f075f088c7e5781 pristine_git_object: 4ac5a8a24026f6a975044de01a9918364aa64e04 - src/mistralai/client/models/updatelibraryop.py: - id: 4ba7acdb62c6 - last_write_checksum: sha1:3816c8eff226634b545843eed2d0c15fa1579308 - pristine_git_object: c5a1ad30e9bfc277cbbcdea0218a265ad10bcb96 - src/mistralai/client/models/updatemodelop.py: - id: ba149ecfe03e - last_write_checksum: sha1:2ce33ac60846a5ef70141dccbdb09950c3d1e348 - pristine_git_object: 023be97905929aa2925f20cd69b3591e6e3168d7 - src/mistralai/client/models/updateorcreatelibraryaccessop.py: - id: ec9b15418f5c - last_write_checksum: sha1:82fe6bbbb1402f03b7c0380c5fd84a8fef9bec67 - pristine_git_object: 1abe6eda3eb7d0aff8a7c146c848a63e299cedf1 - src/mistralai/client/models/uploaddocumentop.py: - id: 0018fe7ff48c - last_write_checksum: sha1:f31d565f419cbcc59af0655753cee6c643ad307a - pristine_git_object: 2c957947830ae0d467084cc6502d9d97ffdf6c81 - src/mistralai/client/models/uploadfileop.py: - id: d67619670938 - last_write_checksum: sha1:00664ba8af70ffc96871eee02890411475ca6c37 - pristine_git_object: 50848f0b663f60f9a303010f3c940919939949c9 - src/mistralai/client/models/uploadfileout.py: - id: 42466f2bebfb - last_write_checksum: sha1:44d0e5d419fb82c56c33c0f9af8902b3cc06bf6d - pristine_git_object: be291efb523965c155fc922d896da2cf682378ab + src/mistralai/client/models/updateorcreatelibraryaccessrequest.py: + id: 6c57f392c4fe + last_write_checksum: sha1:70000bb42510c37a7e4461ef5fab7a52dd4795a6 + pristine_git_object: 70d68e03a92c75994b008ad8864a75d492eac3ed + src/mistralai/client/models/uploadfileresponse.py: + id: a753c1368601 + last_write_checksum: sha1:fe854fb32c8ca028b473339c183424fc07a2c2c5 + pristine_git_object: 7131a7ec157178b2c3111a73784adc2467965f2e src/mistralai/client/models/usageinfo.py: id: 54adb9a3af16 last_write_checksum: sha1:fcfdc921bbcc78436ef156dd7a2eff1123c4036f @@ -2818,12 +2914,12 @@ trackedFiles: pristine_git_object: 27502909ea608f8e0b4a71484da94d26209e0c07 src/mistralai/client/models_.py: id: 1d277958a843 - last_write_checksum: sha1:f50e7b7194f97de4abf0afd70b5e1c52b805cef6 - pristine_git_object: 05b33ac72da14401b700c4abfb28ca33b5af702b + last_write_checksum: sha1:8b391364880e7348fe8c3c03b990915021406460 + pristine_git_object: 92e771436a5b53eddf46de61f2086b865c10bb3c src/mistralai/client/ocr.py: id: 2f804a12fc62 - last_write_checksum: sha1:2cfde7a27733502b87690c1025adefe5b717da57 - pristine_git_object: 2aa382295a9f1561021a36f3a68a9fb505cfe536 + last_write_checksum: sha1:c5774acbf9072b2f244d93e9b6809ce95d0ecbc0 + pristine_git_object: ca77191b3fa4982055a25b62b7fce5c378e6d3f0 src/mistralai/client/py.typed: id: d95cd1565e33 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 @@ -3279,6 +3375,7 @@ examples: page: 0 page_size: 100 created_by_me: false + order_by: "-created" responses: "200": application/json: {"object": "list", "total": 186589} @@ -4328,6 +4425,16 @@ examples: responses: "200": application/json: {"id": "", "object": "batch", "input_files": ["7309e534-200e-43a4-83c5-dc4c2a14c745"], "endpoint": "", "errors": [], "status": "FAILED", "created_at": 157212, "total_requests": 188914, "completed_requests": 685483, "succeeded_requests": 127060, "failed_requests": 428561} + agents_api_v1_agents_delete_alias: + speakeasy-default-agents-api-v1-agents-delete-alias: + parameters: + path: + agent_id: "" + query: + alias: "" + responses: + "422": + application/json: {} examplesVersion: 1.0.2 generatedTests: {} generatedFiles: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a9e18489..84ad03de 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -14,8 +14,8 @@ sources: - latest mistral-openapi: sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:74d0de7750f6a1878b68c9da683eba7a447d7c367131d0cb8f5c3b1e05829624 - sourceBlobDigest: sha256:41e8354c48993fc29be68959d835ea4f8e0cc1d4b4fbd527afcd970bc02c62a2 + sourceRevisionDigest: sha256:e7d34d32a0628265f449daf831ddfd0be4c2b7b6a3e1bd007e09eeaf31463ad9 + sourceBlobDigest: sha256:06d9ba9bb8e77f944708396f2eeb3d277386d208b04c19eff076f776a513a0b1 tags: - latest targets: @@ -25,21 +25,21 @@ targets: sourceRevisionDigest: sha256:d303e640ad565cc8a9801519b20dc7eab226efdfdab951c11256962d9e479f74 sourceBlobDigest: sha256:6e4c789de61b2c9c604bf581e0abbadae90e360491d95ec4247678f4f70cee87 codeSamplesNamespace: mistral-openapi-azure-code-samples - codeSamplesRevisionDigest: sha256:0109302b87fa17b0103ef1e372fae76356811b3c552103e659bd5373d537d759 + codeSamplesRevisionDigest: sha256:5d4050f385362297b6cb8e3cd65b0e958276c7e47ab197f2dd369cf5781fb923 mistralai-gcp-sdk: source: mistral-google-cloud-source sourceNamespace: mistral-openapi-google-cloud sourceRevisionDigest: sha256:351c4d392b8b2220c337a207e98ed5665ed27fd85de854871a70c4bc2b9c0784 sourceBlobDigest: sha256:d79b21f70efb93b0cd261d2044939a288beaf8707a7caae86aca5c4d5de3821b codeSamplesNamespace: mistral-openapi-google-cloud-code-samples - codeSamplesRevisionDigest: sha256:09bb7cbf291076170d228116db05d1c9606af541b301b6564609c4d76633258a + codeSamplesRevisionDigest: sha256:745c1232ee38ee058e4698aa5224bd6a05a420d1424bac7a5fdf4e636b435c69 mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi - sourceRevisionDigest: sha256:74d0de7750f6a1878b68c9da683eba7a447d7c367131d0cb8f5c3b1e05829624 - sourceBlobDigest: sha256:41e8354c48993fc29be68959d835ea4f8e0cc1d4b4fbd527afcd970bc02c62a2 + sourceRevisionDigest: sha256:e7d34d32a0628265f449daf831ddfd0be4c2b7b6a3e1bd007e09eeaf31463ad9 + sourceBlobDigest: sha256:06d9ba9bb8e77f944708396f2eeb3d277386d208b04c19eff076f776a513a0b1 codeSamplesNamespace: mistral-openapi-code-samples - codeSamplesRevisionDigest: sha256:f37fb6188ad25957bef4cadaa03f454a4f9ab0c045db633a46d9cc89af145ba2 + codeSamplesRevisionDigest: sha256:3380eea536758d4d3d0029db826cdcc2df1648aa2e98f3d4edf1f9bf80a8ae46 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.685.0 diff --git a/Makefile b/Makefile index a169d78f..873ec642 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ help: # For production, use GitHub Actions: .github/workflows/sdk_generation_mistralai_sdk.yaml # This uses the Speakeasy CLI version defined in .speakeasy/workflow.yaml test-generate: - speakeasy run --skip-versioning + speakeasy run --skip-versioning --target all # Update the Speakeasy CLI version (the code generator tool). # This modifies speakeasyVersion in .speakeasy/workflow.yaml and regenerates the SDK. diff --git a/README.md b/README.md index 53de43f5..2346d740 100644 --- a/README.md +++ b/README.md @@ -605,7 +605,14 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.conversations.start_stream(inputs="", stream=True, completion_args={ + res = mistral.beta.conversations.start_stream(inputs=[ + { + "object": "entry", + "type": "function.result", + "tool_call_id": "", + "result": "", + }, + ], stream=True, completion_args={ "response_format": { "type": "text", }, @@ -642,7 +649,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.upload(library_id="f973c54e-979a-4464-9d36-8cc31beb21fe", file={ + res = mistral.beta.libraries.documents.upload(library_id="a02150d9-5ee0-4877-b62c-28b1fcdf3b76", file={ "file_name": "example.file", "content": open("example.file", "rb"), }) diff --git a/docs/models/agentconversationgetconversationresponse.md b/docs/models/agentconversationgetconversationresponse.md new file mode 100644 index 00000000..31371bb3 --- /dev/null +++ b/docs/models/agentconversationgetconversationresponse.md @@ -0,0 +1,16 @@ +# AgentConversationGetConversationResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name given to the conversation. | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description of the what the conversation is about. | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Custom metadata for the conversation. | +| `object` | [Optional[models.AgentsAPIV1ConversationsGetAgentConversationObject]](../models/agentsapiv1conversationsgetagentconversationobject.md) | :heavy_minus_sign: | N/A | +| `id` | *str* | :heavy_check_mark: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `agent_id` | *str* | :heavy_check_mark: | N/A | +| `agent_version` | [OptionalNullable[models.AgentsAPIV1ConversationsGetAgentVersion]](../models/agentsapiv1conversationsgetagentversion.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/createorupdateagentaliasrequest.md b/docs/models/agentsapiv1agentscreateorupdatealiasrequest.md similarity index 90% rename from docs/models/createorupdateagentaliasrequest.md rename to docs/models/agentsapiv1agentscreateorupdatealiasrequest.md index af2591eb..79406434 100644 --- a/docs/models/createorupdateagentaliasrequest.md +++ b/docs/models/agentsapiv1agentscreateorupdatealiasrequest.md @@ -1,4 +1,4 @@ -# CreateOrUpdateAgentAliasRequest +# AgentsAPIV1AgentsCreateOrUpdateAliasRequest ## Fields diff --git a/docs/models/deleteagentaliasrequest.md b/docs/models/agentsapiv1agentsdeletealiasrequest.md similarity index 90% rename from docs/models/deleteagentaliasrequest.md rename to docs/models/agentsapiv1agentsdeletealiasrequest.md index 17812ec4..8e95c0c3 100644 --- a/docs/models/deleteagentaliasrequest.md +++ b/docs/models/agentsapiv1agentsdeletealiasrequest.md @@ -1,4 +1,4 @@ -# DeleteAgentAliasRequest +# AgentsAPIV1AgentsDeleteAliasRequest ## Fields diff --git a/docs/models/deleteagentrequest.md b/docs/models/agentsapiv1agentsdeleterequest.md similarity index 89% rename from docs/models/deleteagentrequest.md rename to docs/models/agentsapiv1agentsdeleterequest.md index 0aaacae4..2799f418 100644 --- a/docs/models/deleteagentrequest.md +++ b/docs/models/agentsapiv1agentsdeleterequest.md @@ -1,4 +1,4 @@ -# DeleteAgentRequest +# AgentsAPIV1AgentsDeleteRequest ## Fields diff --git a/docs/models/getagentagentversion.md b/docs/models/agentsapiv1agentsgetagentversion.md similarity index 79% rename from docs/models/getagentagentversion.md rename to docs/models/agentsapiv1agentsgetagentversion.md index 6d7b3f1d..7fb9f2d5 100644 --- a/docs/models/getagentagentversion.md +++ b/docs/models/agentsapiv1agentsgetagentversion.md @@ -1,4 +1,4 @@ -# GetAgentAgentVersion +# AgentsAPIV1AgentsGetAgentVersion ## Supported Types diff --git a/docs/models/agentsapiv1agentsgetrequest.md b/docs/models/agentsapiv1agentsgetrequest.md new file mode 100644 index 00000000..ceffe009 --- /dev/null +++ b/docs/models/agentsapiv1agentsgetrequest.md @@ -0,0 +1,9 @@ +# AgentsAPIV1AgentsGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | N/A | +| `agent_version` | [OptionalNullable[models.AgentsAPIV1AgentsGetAgentVersion]](../models/agentsapiv1agentsgetagentversion.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getagentversionrequest.md b/docs/models/agentsapiv1agentsgetversionrequest.md similarity index 90% rename from docs/models/getagentversionrequest.md rename to docs/models/agentsapiv1agentsgetversionrequest.md index c98fee9d..96a73589 100644 --- a/docs/models/getagentversionrequest.md +++ b/docs/models/agentsapiv1agentsgetversionrequest.md @@ -1,4 +1,4 @@ -# GetAgentVersionRequest +# AgentsAPIV1AgentsGetVersionRequest ## Fields diff --git a/docs/models/listagentsrequest.md b/docs/models/agentsapiv1agentslistrequest.md similarity index 98% rename from docs/models/listagentsrequest.md rename to docs/models/agentsapiv1agentslistrequest.md index 79aec3ea..4785a54c 100644 --- a/docs/models/listagentsrequest.md +++ b/docs/models/agentsapiv1agentslistrequest.md @@ -1,4 +1,4 @@ -# ListAgentsRequest +# AgentsAPIV1AgentsListRequest ## Fields diff --git a/docs/models/listagentaliasesrequest.md b/docs/models/agentsapiv1agentslistversionaliasesrequest.md similarity index 85% rename from docs/models/listagentaliasesrequest.md rename to docs/models/agentsapiv1agentslistversionaliasesrequest.md index b3570cb8..3083bf92 100644 --- a/docs/models/listagentaliasesrequest.md +++ b/docs/models/agentsapiv1agentslistversionaliasesrequest.md @@ -1,4 +1,4 @@ -# ListAgentAliasesRequest +# AgentsAPIV1AgentsListVersionAliasesRequest ## Fields diff --git a/docs/models/listagentversionsrequest.md b/docs/models/agentsapiv1agentslistversionsrequest.md similarity index 94% rename from docs/models/listagentversionsrequest.md rename to docs/models/agentsapiv1agentslistversionsrequest.md index ba8ddaa5..91831700 100644 --- a/docs/models/listagentversionsrequest.md +++ b/docs/models/agentsapiv1agentslistversionsrequest.md @@ -1,4 +1,4 @@ -# ListAgentVersionsRequest +# AgentsAPIV1AgentsListVersionsRequest ## Fields diff --git a/docs/models/updateagentrequest.md b/docs/models/agentsapiv1agentsupdaterequest.md similarity index 96% rename from docs/models/updateagentrequest.md rename to docs/models/agentsapiv1agentsupdaterequest.md index 358cb71d..f60f8e5b 100644 --- a/docs/models/updateagentrequest.md +++ b/docs/models/agentsapiv1agentsupdaterequest.md @@ -1,4 +1,4 @@ -# UpdateAgentRequest +# AgentsAPIV1AgentsUpdateRequest ## Fields diff --git a/docs/models/updateagentversionrequest.md b/docs/models/agentsapiv1agentsupdateversionrequest.md similarity index 89% rename from docs/models/updateagentversionrequest.md rename to docs/models/agentsapiv1agentsupdateversionrequest.md index b83eb867..e937acc9 100644 --- a/docs/models/updateagentversionrequest.md +++ b/docs/models/agentsapiv1agentsupdateversionrequest.md @@ -1,4 +1,4 @@ -# UpdateAgentVersionRequest +# AgentsAPIV1AgentsUpdateVersionRequest ## Fields diff --git a/docs/models/appendconversationrequest.md b/docs/models/agentsapiv1conversationsappendrequest.md similarity index 96% rename from docs/models/appendconversationrequest.md rename to docs/models/agentsapiv1conversationsappendrequest.md index 977d8e8b..ac8a00ec 100644 --- a/docs/models/appendconversationrequest.md +++ b/docs/models/agentsapiv1conversationsappendrequest.md @@ -1,4 +1,4 @@ -# AppendConversationRequest +# AgentsAPIV1ConversationsAppendRequest ## Fields diff --git a/docs/models/appendconversationstreamrequest.md b/docs/models/agentsapiv1conversationsappendstreamrequest.md similarity index 96% rename from docs/models/appendconversationstreamrequest.md rename to docs/models/agentsapiv1conversationsappendstreamrequest.md index a23231c2..dbc330f1 100644 --- a/docs/models/appendconversationstreamrequest.md +++ b/docs/models/agentsapiv1conversationsappendstreamrequest.md @@ -1,4 +1,4 @@ -# AppendConversationStreamRequest +# AgentsAPIV1ConversationsAppendStreamRequest ## Fields diff --git a/docs/models/deleteconversationrequest.md b/docs/models/agentsapiv1conversationsdeleterequest.md similarity index 95% rename from docs/models/deleteconversationrequest.md rename to docs/models/agentsapiv1conversationsdeleterequest.md index 39d9e5df..c6eed281 100644 --- a/docs/models/deleteconversationrequest.md +++ b/docs/models/agentsapiv1conversationsdeleterequest.md @@ -1,4 +1,4 @@ -# DeleteConversationRequest +# AgentsAPIV1ConversationsDeleteRequest ## Fields diff --git a/docs/models/agentsapiv1conversationsgetagentconversationobject.md b/docs/models/agentsapiv1conversationsgetagentconversationobject.md new file mode 100644 index 00000000..75d68840 --- /dev/null +++ b/docs/models/agentsapiv1conversationsgetagentconversationobject.md @@ -0,0 +1,8 @@ +# AgentsAPIV1ConversationsGetAgentConversationObject + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `CONVERSATION` | conversation | \ No newline at end of file diff --git a/docs/models/agentsapiv1conversationsgetagentversion.md b/docs/models/agentsapiv1conversationsgetagentversion.md new file mode 100644 index 00000000..7cd87d29 --- /dev/null +++ b/docs/models/agentsapiv1conversationsgetagentversion.md @@ -0,0 +1,17 @@ +# AgentsAPIV1ConversationsGetAgentVersion + + +## Supported Types + +### `str` + +```python +value: str = /* values here */ +``` + +### `int` + +```python +value: int = /* values here */ +``` + diff --git a/docs/models/agentsapiv1conversationsgetmodelconversationobject.md b/docs/models/agentsapiv1conversationsgetmodelconversationobject.md new file mode 100644 index 00000000..f0bea14f --- /dev/null +++ b/docs/models/agentsapiv1conversationsgetmodelconversationobject.md @@ -0,0 +1,8 @@ +# AgentsAPIV1ConversationsGetModelConversationObject + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `CONVERSATION` | conversation | \ No newline at end of file diff --git a/docs/models/getconversationrequest.md b/docs/models/agentsapiv1conversationsgetrequest.md similarity index 95% rename from docs/models/getconversationrequest.md rename to docs/models/agentsapiv1conversationsgetrequest.md index 8a66a8b0..67d450c8 100644 --- a/docs/models/getconversationrequest.md +++ b/docs/models/agentsapiv1conversationsgetrequest.md @@ -1,4 +1,4 @@ -# GetConversationRequest +# AgentsAPIV1ConversationsGetRequest ## Fields diff --git a/docs/models/agentsapiv1conversationsgettool.md b/docs/models/agentsapiv1conversationsgettool.md new file mode 100644 index 00000000..57a31f4b --- /dev/null +++ b/docs/models/agentsapiv1conversationsgettool.md @@ -0,0 +1,41 @@ +# AgentsAPIV1ConversationsGetTool + + +## Supported Types + +### `models.CodeInterpreterTool` + +```python +value: models.CodeInterpreterTool = /* values here */ +``` + +### `models.DocumentLibraryTool` + +```python +value: models.DocumentLibraryTool = /* values here */ +``` + +### `models.FunctionTool` + +```python +value: models.FunctionTool = /* values here */ +``` + +### `models.ImageGenerationTool` + +```python +value: models.ImageGenerationTool = /* values here */ +``` + +### `models.WebSearchTool` + +```python +value: models.WebSearchTool = /* values here */ +``` + +### `models.WebSearchPremiumTool` + +```python +value: models.WebSearchPremiumTool = /* values here */ +``` + diff --git a/docs/models/getconversationhistoryrequest.md b/docs/models/agentsapiv1conversationshistoryrequest.md similarity index 94% rename from docs/models/getconversationhistoryrequest.md rename to docs/models/agentsapiv1conversationshistoryrequest.md index fc90282b..7e5d39e9 100644 --- a/docs/models/getconversationhistoryrequest.md +++ b/docs/models/agentsapiv1conversationshistoryrequest.md @@ -1,4 +1,4 @@ -# GetConversationHistoryRequest +# AgentsAPIV1ConversationsHistoryRequest ## Fields diff --git a/docs/models/listconversationsrequest.md b/docs/models/agentsapiv1conversationslistrequest.md similarity index 92% rename from docs/models/listconversationsrequest.md rename to docs/models/agentsapiv1conversationslistrequest.md index d99b4208..62c9011f 100644 --- a/docs/models/listconversationsrequest.md +++ b/docs/models/agentsapiv1conversationslistrequest.md @@ -1,4 +1,4 @@ -# ListConversationsRequest +# AgentsAPIV1ConversationsListRequest ## Fields diff --git a/docs/models/listconversationsresponse.md b/docs/models/agentsapiv1conversationslistresponse.md similarity index 84% rename from docs/models/listconversationsresponse.md rename to docs/models/agentsapiv1conversationslistresponse.md index 9d611c55..b233ee20 100644 --- a/docs/models/listconversationsresponse.md +++ b/docs/models/agentsapiv1conversationslistresponse.md @@ -1,4 +1,4 @@ -# ListConversationsResponse +# AgentsAPIV1ConversationsListResponse ## Supported Types diff --git a/docs/models/getconversationmessagesrequest.md b/docs/models/agentsapiv1conversationsmessagesrequest.md similarity index 94% rename from docs/models/getconversationmessagesrequest.md rename to docs/models/agentsapiv1conversationsmessagesrequest.md index fd037fea..a91ab046 100644 --- a/docs/models/getconversationmessagesrequest.md +++ b/docs/models/agentsapiv1conversationsmessagesrequest.md @@ -1,4 +1,4 @@ -# GetConversationMessagesRequest +# AgentsAPIV1ConversationsMessagesRequest ## Fields diff --git a/docs/models/restartconversationrequest.md b/docs/models/agentsapiv1conversationsrestartrequest.md similarity index 96% rename from docs/models/restartconversationrequest.md rename to docs/models/agentsapiv1conversationsrestartrequest.md index f24f14e6..a18a41f5 100644 --- a/docs/models/restartconversationrequest.md +++ b/docs/models/agentsapiv1conversationsrestartrequest.md @@ -1,4 +1,4 @@ -# RestartConversationRequest +# AgentsAPIV1ConversationsRestartRequest ## Fields diff --git a/docs/models/restartconversationstreamrequest.md b/docs/models/agentsapiv1conversationsrestartstreamrequest.md similarity index 96% rename from docs/models/restartconversationstreamrequest.md rename to docs/models/agentsapiv1conversationsrestartstreamrequest.md index daa661a9..7548286a 100644 --- a/docs/models/restartconversationstreamrequest.md +++ b/docs/models/agentsapiv1conversationsrestartstreamrequest.md @@ -1,4 +1,4 @@ -# RestartConversationStreamRequest +# AgentsAPIV1ConversationsRestartStreamRequest ## Fields diff --git a/docs/models/basemodelcardgetmodelresponse.md b/docs/models/basemodelcardgetmodelresponse.md new file mode 100644 index 00000000..1dbd021d --- /dev/null +++ b/docs/models/basemodelcardgetmodelresponse.md @@ -0,0 +1,20 @@ +# BaseModelCardGetModelResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `object` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `created` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `owned_by` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `capabilities` | [models.ModelCapabilities](../models/modelcapabilities.md) | :heavy_check_mark: | N/A | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `max_context_length` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `aliases` | List[*str*] | :heavy_minus_sign: | N/A | +| `deprecation` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `deprecation_replacement_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `default_model_temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["base"]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/batchjobout.md b/docs/models/batchjob.md similarity index 99% rename from docs/models/batchjobout.md rename to docs/models/batchjob.md index 5f101173..162e2cff 100644 --- a/docs/models/batchjobout.md +++ b/docs/models/batchjob.md @@ -1,4 +1,4 @@ -# BatchJobOut +# BatchJob ## Fields diff --git a/docs/models/batchjobsout.md b/docs/models/batchjobsout.md deleted file mode 100644 index 7a9d6f68..00000000 --- a/docs/models/batchjobsout.md +++ /dev/null @@ -1,10 +0,0 @@ -# BatchJobsOut - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `data` | List[[models.BatchJobOut](../models/batchjobout.md)] | :heavy_minus_sign: | N/A | -| `object` | *Optional[Literal["list"]]* | :heavy_minus_sign: | N/A | -| `total` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/cancelfinetuningjobresponse.md b/docs/models/cancelfinetuningjobresponse.md index c512342e..76bc84a6 100644 --- a/docs/models/cancelfinetuningjobresponse.md +++ b/docs/models/cancelfinetuningjobresponse.md @@ -5,15 +5,15 @@ OK ## Supported Types -### `models.ClassifierDetailedJobOut` +### `models.ClassifierDetailedJobOutCancelFineTuningJobResponse` ```python -value: models.ClassifierDetailedJobOut = /* values here */ +value: models.ClassifierDetailedJobOutCancelFineTuningJobResponse = /* values here */ ``` -### `models.CompletionDetailedJobOut` +### `models.CompletionDetailedJobOutCancelFineTuningJobResponse` ```python -value: models.CompletionDetailedJobOut = /* values here */ +value: models.CompletionDetailedJobOutCancelFineTuningJobResponse = /* values here */ ``` diff --git a/docs/models/classifierdetailedjobout.md b/docs/models/classifierdetailedjobout.md deleted file mode 100644 index fb532449..00000000 --- a/docs/models/classifierdetailedjobout.md +++ /dev/null @@ -1,26 +0,0 @@ -# ClassifierDetailedJobOut - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | N/A | -| `auto_start` | *bool* | :heavy_check_mark: | N/A | -| `model` | *str* | :heavy_check_mark: | N/A | -| `status` | [models.ClassifierDetailedJobOutStatus](../models/classifierdetailedjoboutstatus.md) | :heavy_check_mark: | N/A | -| `created_at` | *int* | :heavy_check_mark: | N/A | -| `modified_at` | *int* | :heavy_check_mark: | N/A | -| `training_files` | List[*str*] | :heavy_check_mark: | N/A | -| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | -| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | -| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `integrations` | List[[models.ClassifierDetailedJobOutIntegration](../models/classifierdetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | -| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | -| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | -| `job_type` | *Literal["classifier"]* | :heavy_check_mark: | N/A | -| `hyperparameters` | [models.ClassifierTrainingParameters](../models/classifiertrainingparameters.md) | :heavy_check_mark: | N/A | -| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | -| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | -| `classifier_targets` | List[[models.ClassifierTargetOut](../models/classifiertargetout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/classifierdetailedjoboutcancelfinetuningjobresponse.md b/docs/models/classifierdetailedjoboutcancelfinetuningjobresponse.md new file mode 100644 index 00000000..895384de --- /dev/null +++ b/docs/models/classifierdetailedjoboutcancelfinetuningjobresponse.md @@ -0,0 +1,26 @@ +# ClassifierDetailedJobOutCancelFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus](../models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | *int* | :heavy_check_mark: | N/A | +| `modified_at` | *int* | :heavy_check_mark: | N/A | +| `training_files` | List[*str*] | :heavy_check_mark: | N/A | +| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `integrations` | List[[models.JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration](../models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["classifier"]* | :heavy_check_mark: | N/A | +| `hyperparameters` | [models.ClassifierTrainingParameters](../models/classifiertrainingparameters.md) | :heavy_check_mark: | N/A | +| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | +| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | +| `classifier_targets` | List[[models.ClassifierTargetOut](../models/classifiertargetout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/classifierdetailedjoboutgetfinetuningjobresponse.md b/docs/models/classifierdetailedjoboutgetfinetuningjobresponse.md new file mode 100644 index 00000000..99cc4256 --- /dev/null +++ b/docs/models/classifierdetailedjoboutgetfinetuningjobresponse.md @@ -0,0 +1,26 @@ +# ClassifierDetailedJobOutGetFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus](../models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | *int* | :heavy_check_mark: | N/A | +| `modified_at` | *int* | :heavy_check_mark: | N/A | +| `training_files` | List[*str*] | :heavy_check_mark: | N/A | +| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `integrations` | List[[models.JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration](../models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["classifier"]* | :heavy_check_mark: | N/A | +| `hyperparameters` | [models.ClassifierTrainingParameters](../models/classifiertrainingparameters.md) | :heavy_check_mark: | N/A | +| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | +| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | +| `classifier_targets` | List[[models.ClassifierTargetOut](../models/classifiertargetout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/classifierdetailedjoboutstartfinetuningjobresponse.md b/docs/models/classifierdetailedjoboutstartfinetuningjobresponse.md new file mode 100644 index 00000000..443d84bf --- /dev/null +++ b/docs/models/classifierdetailedjoboutstartfinetuningjobresponse.md @@ -0,0 +1,26 @@ +# ClassifierDetailedJobOutStartFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus](../models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | *int* | :heavy_check_mark: | N/A | +| `modified_at` | *int* | :heavy_check_mark: | N/A | +| `training_files` | List[*str*] | :heavy_check_mark: | N/A | +| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `integrations` | List[[models.JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration](../models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["classifier"]* | :heavy_check_mark: | N/A | +| `hyperparameters` | [models.ClassifierTrainingParameters](../models/classifiertrainingparameters.md) | :heavy_check_mark: | N/A | +| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | +| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | +| `classifier_targets` | List[[models.ClassifierTargetOut](../models/classifiertargetout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/classifierftmodelout.md b/docs/models/classifierftmodeloutupdatemodelresponse.md similarity index 99% rename from docs/models/classifierftmodelout.md rename to docs/models/classifierftmodeloutupdatemodelresponse.md index 6e7afbbe..ca516cfa 100644 --- a/docs/models/classifierftmodelout.md +++ b/docs/models/classifierftmodeloutupdatemodelresponse.md @@ -1,4 +1,4 @@ -# ClassifierFTModelOut +# ClassifierFTModelOutUpdateModelResponse ## Fields diff --git a/docs/models/classifierjoboutcreatefinetuningjobresponse.md b/docs/models/classifierjoboutcreatefinetuningjobresponse.md new file mode 100644 index 00000000..2fd4b291 --- /dev/null +++ b/docs/models/classifierjoboutcreatefinetuningjobresponse.md @@ -0,0 +1,23 @@ +# ClassifierJobOutCreateFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The ID of the job. | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus](../models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutstatus.md) | :heavy_check_mark: | The current status of the fine-tuning job. | +| `created_at` | *int* | :heavy_check_mark: | The UNIX timestamp (in seconds) for when the fine-tuning job was created. | +| `modified_at` | *int* | :heavy_check_mark: | The UNIX timestamp (in seconds) for when the fine-tuning job was last modified. | +| `training_files` | List[*str*] | :heavy_check_mark: | A list containing the IDs of uploaded files that contain training data. | +| `validation_files` | List[*str*] | :heavy_minus_sign: | A list containing the IDs of uploaded files that contain validation data. | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | The object type of the fine-tuning job. | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running. | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`. | +| `integrations` | List[[models.JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration](../models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutintegration.md)] | :heavy_minus_sign: | A list of integrations enabled for your fine-tuning job. | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | Total number of tokens trained. | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["classifier"]* | :heavy_check_mark: | The type of job (`FT` for fine-tuning). | +| `hyperparameters` | [models.ClassifierTrainingParameters](../models/classifiertrainingparameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/completiondetailedjobout.md b/docs/models/completiondetailedjobout.md deleted file mode 100644 index bc7e5d1c..00000000 --- a/docs/models/completiondetailedjobout.md +++ /dev/null @@ -1,26 +0,0 @@ -# CompletionDetailedJobOut - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *str* | :heavy_check_mark: | N/A | -| `auto_start` | *bool* | :heavy_check_mark: | N/A | -| `model` | *str* | :heavy_check_mark: | N/A | -| `status` | [models.CompletionDetailedJobOutStatus](../models/completiondetailedjoboutstatus.md) | :heavy_check_mark: | N/A | -| `created_at` | *int* | :heavy_check_mark: | N/A | -| `modified_at` | *int* | :heavy_check_mark: | N/A | -| `training_files` | List[*str*] | :heavy_check_mark: | N/A | -| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | -| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | -| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `integrations` | List[[models.CompletionDetailedJobOutIntegration](../models/completiondetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | -| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | -| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | -| `job_type` | *Literal["completion"]* | :heavy_check_mark: | N/A | -| `hyperparameters` | [models.CompletionTrainingParameters](../models/completiontrainingparameters.md) | :heavy_check_mark: | N/A | -| `repositories` | List[[models.CompletionDetailedJobOutRepository](../models/completiondetailedjoboutrepository.md)] | :heavy_minus_sign: | N/A | -| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | -| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/completiondetailedjoboutcancelfinetuningjobresponse.md b/docs/models/completiondetailedjoboutcancelfinetuningjobresponse.md new file mode 100644 index 00000000..c2d23c0b --- /dev/null +++ b/docs/models/completiondetailedjoboutcancelfinetuningjobresponse.md @@ -0,0 +1,26 @@ +# CompletionDetailedJobOutCancelFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus](../models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | *int* | :heavy_check_mark: | N/A | +| `modified_at` | *int* | :heavy_check_mark: | N/A | +| `training_files` | List[*str*] | :heavy_check_mark: | N/A | +| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `integrations` | List[[models.JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration](../models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["completion"]* | :heavy_check_mark: | N/A | +| `hyperparameters` | [models.CompletionTrainingParameters](../models/completiontrainingparameters.md) | :heavy_check_mark: | N/A | +| `repositories` | List[[models.JobsAPIRoutesFineTuningCancelFineTuningJobRepository](../models/jobsapiroutesfinetuningcancelfinetuningjobrepository.md)] | :heavy_minus_sign: | N/A | +| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | +| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/completiondetailedjoboutgetfinetuningjobresponse.md b/docs/models/completiondetailedjoboutgetfinetuningjobresponse.md new file mode 100644 index 00000000..01875391 --- /dev/null +++ b/docs/models/completiondetailedjoboutgetfinetuningjobresponse.md @@ -0,0 +1,26 @@ +# CompletionDetailedJobOutGetFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus](../models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | *int* | :heavy_check_mark: | N/A | +| `modified_at` | *int* | :heavy_check_mark: | N/A | +| `training_files` | List[*str*] | :heavy_check_mark: | N/A | +| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `integrations` | List[[models.JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration](../models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["completion"]* | :heavy_check_mark: | N/A | +| `hyperparameters` | [models.CompletionTrainingParameters](../models/completiontrainingparameters.md) | :heavy_check_mark: | N/A | +| `repositories` | List[[models.JobsAPIRoutesFineTuningGetFineTuningJobRepository](../models/jobsapiroutesfinetuninggetfinetuningjobrepository.md)] | :heavy_minus_sign: | N/A | +| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | +| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/completiondetailedjoboutstartfinetuningjobresponse.md b/docs/models/completiondetailedjoboutstartfinetuningjobresponse.md new file mode 100644 index 00000000..fd10c883 --- /dev/null +++ b/docs/models/completiondetailedjoboutstartfinetuningjobresponse.md @@ -0,0 +1,26 @@ +# CompletionDetailedJobOutStartFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus](../models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutstatus.md) | :heavy_check_mark: | N/A | +| `created_at` | *int* | :heavy_check_mark: | N/A | +| `modified_at` | *int* | :heavy_check_mark: | N/A | +| `training_files` | List[*str*] | :heavy_check_mark: | N/A | +| `validation_files` | List[*str*] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | N/A | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `integrations` | List[[models.JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration](../models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutintegration.md)] | :heavy_minus_sign: | N/A | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["completion"]* | :heavy_check_mark: | N/A | +| `hyperparameters` | [models.CompletionTrainingParameters](../models/completiontrainingparameters.md) | :heavy_check_mark: | N/A | +| `repositories` | List[[models.JobsAPIRoutesFineTuningStartFineTuningJobRepository](../models/jobsapiroutesfinetuningstartfinetuningjobrepository.md)] | :heavy_minus_sign: | N/A | +| `events` | List[[models.EventOut](../models/eventout.md)] | :heavy_minus_sign: | Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here. | +| `checkpoints` | List[[models.CheckpointOut](../models/checkpointout.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/completionftmodelout.md b/docs/models/completionftmodeloutupdatemodelresponse.md similarity index 99% rename from docs/models/completionftmodelout.md rename to docs/models/completionftmodeloutupdatemodelresponse.md index ccd4844f..41da5145 100644 --- a/docs/models/completionftmodelout.md +++ b/docs/models/completionftmodeloutupdatemodelresponse.md @@ -1,4 +1,4 @@ -# CompletionFTModelOut +# CompletionFTModelOutUpdateModelResponse ## Fields diff --git a/docs/models/completionjoboutcreatefinetuningjobresponse.md b/docs/models/completionjoboutcreatefinetuningjobresponse.md new file mode 100644 index 00000000..d1f62f23 --- /dev/null +++ b/docs/models/completionjoboutcreatefinetuningjobresponse.md @@ -0,0 +1,24 @@ +# CompletionJobOutCreateFineTuningJobResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | The ID of the job. | +| `auto_start` | *bool* | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | +| `status` | [models.JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus](../models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutstatus.md) | :heavy_check_mark: | The current status of the fine-tuning job. | +| `created_at` | *int* | :heavy_check_mark: | The UNIX timestamp (in seconds) for when the fine-tuning job was created. | +| `modified_at` | *int* | :heavy_check_mark: | The UNIX timestamp (in seconds) for when the fine-tuning job was last modified. | +| `training_files` | List[*str*] | :heavy_check_mark: | A list containing the IDs of uploaded files that contain training data. | +| `validation_files` | List[*str*] | :heavy_minus_sign: | A list containing the IDs of uploaded files that contain validation data. | +| `object` | *Optional[Literal["job"]]* | :heavy_minus_sign: | The object type of the fine-tuning job. | +| `fine_tuned_model` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running. | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`. | +| `integrations` | List[[models.JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration](../models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutintegration.md)] | :heavy_minus_sign: | A list of integrations enabled for your fine-tuning job. | +| `trained_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | Total number of tokens trained. | +| `metadata` | [OptionalNullable[models.JobMetadataOut]](../models/jobmetadataout.md) | :heavy_minus_sign: | N/A | +| `job_type` | *Literal["completion"]* | :heavy_check_mark: | The type of job (`FT` for fine-tuning). | +| `hyperparameters` | [models.CompletionTrainingParameters](../models/completiontrainingparameters.md) | :heavy_check_mark: | N/A | +| `repositories` | List[[models.JobsAPIRoutesFineTuningCreateFineTuningJobRepository](../models/jobsapiroutesfinetuningcreatefinetuningjobrepository.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/batchjobin.md b/docs/models/createbatchjobrequest.md similarity index 99% rename from docs/models/batchjobin.md rename to docs/models/createbatchjobrequest.md index 7dcf265d..7c562d91 100644 --- a/docs/models/batchjobin.md +++ b/docs/models/createbatchjobrequest.md @@ -1,4 +1,4 @@ -# BatchJobIn +# CreateBatchJobRequest ## Fields diff --git a/docs/models/jobin.md b/docs/models/createfinetuningjobrequest.md similarity index 97% rename from docs/models/jobin.md rename to docs/models/createfinetuningjobrequest.md index 62da9072..2e73b044 100644 --- a/docs/models/jobin.md +++ b/docs/models/createfinetuningjobrequest.md @@ -1,4 +1,4 @@ -# JobIn +# CreateFineTuningJobRequest ## Fields @@ -9,10 +9,10 @@ | `training_files` | List[[models.TrainingFile](../models/trainingfile.md)] | :heavy_minus_sign: | N/A | | `validation_files` | List[*str*] | :heavy_minus_sign: | A list containing the IDs of uploaded files that contain validation data. If you provide these files, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in `checkpoints` when getting the status of a running fine-tuning job. The same data should not be present in both train and validation files. | | `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | A string that will be added to your fine-tuning model name. For example, a suffix of "my-great-model" would produce a model name like `ft:open-mistral-7b:my-great-model:xxx...` | -| `integrations` | List[[models.JobInIntegration](../models/jobinintegration.md)] | :heavy_minus_sign: | A list of integrations to enable for your fine-tuning job. | +| `integrations` | List[[models.CreateFineTuningJobRequestIntegration](../models/createfinetuningjobrequestintegration.md)] | :heavy_minus_sign: | A list of integrations to enable for your fine-tuning job. | | `auto_start` | *Optional[bool]* | :heavy_minus_sign: | This field will be required in a future release. | | `invalid_sample_skip_percentage` | *Optional[float]* | :heavy_minus_sign: | N/A | | `job_type` | [OptionalNullable[models.FineTuneableModelType]](../models/finetuneablemodeltype.md) | :heavy_minus_sign: | N/A | | `hyperparameters` | [models.Hyperparameters](../models/hyperparameters.md) | :heavy_check_mark: | N/A | -| `repositories` | List[[models.JobInRepository](../models/jobinrepository.md)] | :heavy_minus_sign: | N/A | +| `repositories` | List[[models.CreateFineTuningJobRequestRepository](../models/createfinetuningjobrequestrepository.md)] | :heavy_minus_sign: | N/A | | `classifier_targets` | List[[models.ClassifierTargetIn](../models/classifiertargetin.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/jobinintegration.md b/docs/models/createfinetuningjobrequestintegration.md similarity index 74% rename from docs/models/jobinintegration.md rename to docs/models/createfinetuningjobrequestintegration.md index 103820e7..0054a4a6 100644 --- a/docs/models/jobinintegration.md +++ b/docs/models/createfinetuningjobrequestintegration.md @@ -1,4 +1,4 @@ -# JobInIntegration +# CreateFineTuningJobRequestIntegration ## Supported Types diff --git a/docs/models/jobinrepository.md b/docs/models/createfinetuningjobrequestrepository.md similarity index 75% rename from docs/models/jobinrepository.md rename to docs/models/createfinetuningjobrequestrepository.md index e873ae63..32be1b6d 100644 --- a/docs/models/jobinrepository.md +++ b/docs/models/createfinetuningjobrequestrepository.md @@ -1,4 +1,4 @@ -# JobInRepository +# CreateFineTuningJobRequestRepository ## Supported Types diff --git a/docs/models/createfinetuningjobresponse.md b/docs/models/createfinetuningjobresponse.md deleted file mode 100644 index f82cd793..00000000 --- a/docs/models/createfinetuningjobresponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateFineTuningJobResponse - -OK - - -## Supported Types - -### `models.Response` - -```python -value: models.Response = /* values here */ -``` - -### `models.LegacyJobMetadataOut` - -```python -value: models.LegacyJobMetadataOut = /* values here */ -``` - diff --git a/docs/models/createfinetuningjobresponseunion1.md b/docs/models/createfinetuningjobresponseunion1.md new file mode 100644 index 00000000..3952ff79 --- /dev/null +++ b/docs/models/createfinetuningjobresponseunion1.md @@ -0,0 +1,17 @@ +# CreateFineTuningJobResponseUnion1 + + +## Supported Types + +### `models.ClassifierJobOutCreateFineTuningJobResponse` + +```python +value: models.ClassifierJobOutCreateFineTuningJobResponse = /* values here */ +``` + +### `models.CompletionJobOutCreateFineTuningJobResponse` + +```python +value: models.CompletionJobOutCreateFineTuningJobResponse = /* values here */ +``` + diff --git a/docs/models/createfinetuningjobresponseunion2.md b/docs/models/createfinetuningjobresponseunion2.md new file mode 100644 index 00000000..3c837ce4 --- /dev/null +++ b/docs/models/createfinetuningjobresponseunion2.md @@ -0,0 +1,19 @@ +# CreateFineTuningJobResponseUnion2 + +OK + + +## Supported Types + +### `models.CreateFineTuningJobResponseUnion1` + +```python +value: models.CreateFineTuningJobResponseUnion1 = /* values here */ +``` + +### `models.LegacyJobMetadataOutCreateFineTuningJobResponse` + +```python +value: models.LegacyJobMetadataOutCreateFineTuningJobResponse = /* values here */ +``` + diff --git a/docs/models/libraryin.md b/docs/models/createlibraryrequest.md similarity index 95% rename from docs/models/libraryin.md rename to docs/models/createlibraryrequest.md index d6b11914..71562806 100644 --- a/docs/models/libraryin.md +++ b/docs/models/createlibraryrequest.md @@ -1,4 +1,4 @@ -# LibraryIn +# CreateLibraryRequest ## Fields diff --git a/docs/models/deletefileout.md b/docs/models/deletefileresponse.md similarity index 97% rename from docs/models/deletefileout.md rename to docs/models/deletefileresponse.md index 4709cc49..188e2504 100644 --- a/docs/models/deletefileout.md +++ b/docs/models/deletefileresponse.md @@ -1,4 +1,4 @@ -# DeleteFileOut +# DeleteFileResponse ## Fields diff --git a/docs/models/deletemodelrequest.md b/docs/models/deletemodelv1modelsmodeliddeleterequest.md similarity index 94% rename from docs/models/deletemodelrequest.md rename to docs/models/deletemodelv1modelsmodeliddeleterequest.md index d80103f1..d9bc15fe 100644 --- a/docs/models/deletemodelrequest.md +++ b/docs/models/deletemodelv1modelsmodeliddeleterequest.md @@ -1,4 +1,4 @@ -# DeleteModelRequest +# DeleteModelV1ModelsModelIDDeleteRequest ## Fields diff --git a/docs/models/document.md b/docs/models/document.md index 509d43b7..b2dc27c0 100644 --- a/docs/models/document.md +++ b/docs/models/document.md @@ -1,25 +1,26 @@ # Document -Document to run OCR on - - -## Supported Types - -### `models.FileChunk` - -```python -value: models.FileChunk = /* values here */ -``` - -### `models.DocumentURLChunk` - -```python -value: models.DocumentURLChunk = /* values here */ -``` - -### `models.ImageURLChunk` - -```python -value: models.ImageURLChunk = /* values here */ -``` +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `id` | *str* | :heavy_check_mark: | N/A | +| `library_id` | *str* | :heavy_check_mark: | N/A | +| `hash` | *Nullable[str]* | :heavy_check_mark: | N/A | +| `mime_type` | *Nullable[str]* | :heavy_check_mark: | N/A | +| `extension` | *Nullable[str]* | :heavy_check_mark: | N/A | +| `size` | *Nullable[int]* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `summary` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `last_processed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `number_of_pages` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `processing_status` | *str* | :heavy_check_mark: | N/A | +| `uploaded_by_id` | *Nullable[str]* | :heavy_check_mark: | N/A | +| `uploaded_by_type` | *str* | :heavy_check_mark: | N/A | +| `tokens_processing_main_content` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `tokens_processing_summary` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `attributes` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `tokens_processing_total` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/documentunion.md b/docs/models/documentunion.md new file mode 100644 index 00000000..e573bd46 --- /dev/null +++ b/docs/models/documentunion.md @@ -0,0 +1,25 @@ +# DocumentUnion + +Document to run OCR on + + +## Supported Types + +### `models.FileChunk` + +```python +value: models.FileChunk = /* values here */ +``` + +### `models.DocumentURLChunk` + +```python +value: models.DocumentURLChunk = /* values here */ +``` + +### `models.ImageURLChunk` + +```python +value: models.ImageURLChunk = /* values here */ +``` + diff --git a/docs/models/documentupdatein.md b/docs/models/documentupdaterequest.md similarity index 97% rename from docs/models/documentupdatein.md rename to docs/models/documentupdaterequest.md index 0993886d..aa194429 100644 --- a/docs/models/documentupdatein.md +++ b/docs/models/documentupdaterequest.md @@ -1,4 +1,4 @@ -# DocumentUpdateIn +# DocumentUpdateRequest ## Fields diff --git a/docs/models/documentupload.md b/docs/models/documentupload.md deleted file mode 100644 index 4e58a475..00000000 --- a/docs/models/documentupload.md +++ /dev/null @@ -1,8 +0,0 @@ -# DocumentUpload - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `file` | [models.File](../models/file.md) | :heavy_check_mark: | The File object (not file name) to be uploaded.
To upload a file and specify a custom file name you should format your request as such:
```bash
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
```
Otherwise, you can just keep the original file name:
```bash
file=@path/to/your/file.jsonl
``` | \ No newline at end of file diff --git a/docs/models/fileschema.md b/docs/models/fileobject.md similarity index 99% rename from docs/models/fileschema.md rename to docs/models/fileobject.md index 4f3e72db..3a84922a 100644 --- a/docs/models/fileschema.md +++ b/docs/models/fileobject.md @@ -1,4 +1,4 @@ -# FileSchema +# FileObject ## Fields diff --git a/docs/models/downloadfilerequest.md b/docs/models/filesapiroutesdeletefilerequest.md similarity index 88% rename from docs/models/downloadfilerequest.md rename to docs/models/filesapiroutesdeletefilerequest.md index 3f4dc6cc..1b02c2db 100644 --- a/docs/models/downloadfilerequest.md +++ b/docs/models/filesapiroutesdeletefilerequest.md @@ -1,4 +1,4 @@ -# DownloadFileRequest +# FilesAPIRoutesDeleteFileRequest ## Fields diff --git a/docs/models/retrievefilerequest.md b/docs/models/filesapiroutesdownloadfilerequest.md similarity index 88% rename from docs/models/retrievefilerequest.md rename to docs/models/filesapiroutesdownloadfilerequest.md index 454b9665..8b28cb0e 100644 --- a/docs/models/retrievefilerequest.md +++ b/docs/models/filesapiroutesdownloadfilerequest.md @@ -1,4 +1,4 @@ -# RetrieveFileRequest +# FilesAPIRoutesDownloadFileRequest ## Fields diff --git a/docs/models/getfilesignedurlrequest.md b/docs/models/filesapiroutesgetsignedurlrequest.md similarity index 96% rename from docs/models/getfilesignedurlrequest.md rename to docs/models/filesapiroutesgetsignedurlrequest.md index 0be3b288..dbe3c801 100644 --- a/docs/models/getfilesignedurlrequest.md +++ b/docs/models/filesapiroutesgetsignedurlrequest.md @@ -1,4 +1,4 @@ -# GetFileSignedURLRequest +# FilesAPIRoutesGetSignedURLRequest ## Fields diff --git a/docs/models/listfilesrequest.md b/docs/models/filesapirouteslistfilesrequest.md similarity index 98% rename from docs/models/listfilesrequest.md rename to docs/models/filesapirouteslistfilesrequest.md index 2d76a76b..57d11722 100644 --- a/docs/models/listfilesrequest.md +++ b/docs/models/filesapirouteslistfilesrequest.md @@ -1,4 +1,4 @@ -# ListFilesRequest +# FilesAPIRoutesListFilesRequest ## Fields diff --git a/docs/models/deletefilerequest.md b/docs/models/filesapiroutesretrievefilerequest.md similarity index 88% rename from docs/models/deletefilerequest.md rename to docs/models/filesapiroutesretrievefilerequest.md index bceae901..961bae1f 100644 --- a/docs/models/deletefilerequest.md +++ b/docs/models/filesapiroutesretrievefilerequest.md @@ -1,4 +1,4 @@ -# DeleteFileRequest +# FilesAPIRoutesRetrieveFileRequest ## Fields diff --git a/docs/models/documentout.md b/docs/models/ftmodelcardgetmodelresponse.md similarity index 54% rename from docs/models/documentout.md rename to docs/models/ftmodelcardgetmodelresponse.md index 28df11eb..47587e9c 100644 --- a/docs/models/documentout.md +++ b/docs/models/ftmodelcardgetmodelresponse.md @@ -1,4 +1,6 @@ -# DocumentOut +# FTModelCardGetModelResponse + +Extra fields for fine-tuned models. ## Fields @@ -6,21 +8,18 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | `id` | *str* | :heavy_check_mark: | N/A | -| `library_id` | *str* | :heavy_check_mark: | N/A | -| `hash` | *Nullable[str]* | :heavy_check_mark: | N/A | -| `mime_type` | *Nullable[str]* | :heavy_check_mark: | N/A | -| `extension` | *Nullable[str]* | :heavy_check_mark: | N/A | -| `size` | *Nullable[int]* | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `summary` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `last_processed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `number_of_pages` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | -| `processing_status` | *str* | :heavy_check_mark: | N/A | -| `uploaded_by_id` | *Nullable[str]* | :heavy_check_mark: | N/A | -| `uploaded_by_type` | *str* | :heavy_check_mark: | N/A | -| `tokens_processing_main_content` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | -| `tokens_processing_summary` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | -| `url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `attributes` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `tokens_processing_total` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file +| `object` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `created` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `owned_by` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `capabilities` | [models.ModelCapabilities](../models/modelcapabilities.md) | :heavy_check_mark: | N/A | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `max_context_length` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `aliases` | List[*str*] | :heavy_minus_sign: | N/A | +| `deprecation` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `deprecation_replacement_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `default_model_temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A | +| `type` | *Literal["fine-tuned"]* | :heavy_check_mark: | N/A | +| `job` | *str* | :heavy_check_mark: | N/A | +| `root` | *str* | :heavy_check_mark: | N/A | +| `archived` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getagentrequest.md b/docs/models/getagentrequest.md deleted file mode 100644 index 3f729dff..00000000 --- a/docs/models/getagentrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetAgentRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | N/A | -| `agent_version` | [OptionalNullable[models.GetAgentAgentVersion]](../models/getagentagentversion.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/getconversationresponse.md b/docs/models/getconversationresponse.md new file mode 100644 index 00000000..e324f77d --- /dev/null +++ b/docs/models/getconversationresponse.md @@ -0,0 +1,19 @@ +# GetConversationResponse + +Successful Response + + +## Supported Types + +### `models.ModelConversationGetConversationResponse` + +```python +value: models.ModelConversationGetConversationResponse = /* values here */ +``` + +### `models.AgentConversationGetConversationResponse` + +```python +value: models.AgentConversationGetConversationResponse = /* values here */ +``` + diff --git a/docs/models/getdocumenttextcontentrequest.md b/docs/models/getdocumenttextcontentrequest.md deleted file mode 100644 index 85933401..00000000 --- a/docs/models/getdocumenttextcontentrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetDocumentTextContentRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `library_id` | *str* | :heavy_check_mark: | N/A | -| `document_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/retrievefileout.md b/docs/models/getfileresponse.md similarity index 99% rename from docs/models/retrievefileout.md rename to docs/models/getfileresponse.md index 28f97dd2..0edd13e0 100644 --- a/docs/models/retrievefileout.md +++ b/docs/models/getfileresponse.md @@ -1,4 +1,4 @@ -# RetrieveFileOut +# GetFileResponse ## Fields diff --git a/docs/models/getfinetuningjobresponse.md b/docs/models/getfinetuningjobresponse.md index 1b0568dd..423f1b64 100644 --- a/docs/models/getfinetuningjobresponse.md +++ b/docs/models/getfinetuningjobresponse.md @@ -5,15 +5,15 @@ OK ## Supported Types -### `models.ClassifierDetailedJobOut` +### `models.ClassifierDetailedJobOutGetFineTuningJobResponse` ```python -value: models.ClassifierDetailedJobOut = /* values here */ +value: models.ClassifierDetailedJobOutGetFineTuningJobResponse = /* values here */ ``` -### `models.CompletionDetailedJobOut` +### `models.CompletionDetailedJobOutGetFineTuningJobResponse` ```python -value: models.CompletionDetailedJobOut = /* values here */ +value: models.CompletionDetailedJobOutGetFineTuningJobResponse = /* values here */ ``` diff --git a/docs/models/getmodelresponse.md b/docs/models/getmodelresponse.md new file mode 100644 index 00000000..79321bab --- /dev/null +++ b/docs/models/getmodelresponse.md @@ -0,0 +1,19 @@ +# GetModelResponse + +Successful Response + + +## Supported Types + +### `models.BaseModelCardGetModelResponse` + +```python +value: models.BaseModelCardGetModelResponse = /* values here */ +``` + +### `models.FTModelCardGetModelResponse` + +```python +value: models.FTModelCardGetModelResponse = /* values here */ +``` + diff --git a/docs/models/cancelbatchjobrequest.md b/docs/models/jobsapiroutesbatchcancelbatchjobrequest.md similarity index 86% rename from docs/models/cancelbatchjobrequest.md rename to docs/models/jobsapiroutesbatchcancelbatchjobrequest.md index f31f843b..c19d0241 100644 --- a/docs/models/cancelbatchjobrequest.md +++ b/docs/models/jobsapiroutesbatchcancelbatchjobrequest.md @@ -1,4 +1,4 @@ -# CancelBatchJobRequest +# JobsAPIRoutesBatchCancelBatchJobRequest ## Fields diff --git a/docs/models/getbatchjobrequest.md b/docs/models/jobsapiroutesbatchgetbatchjobrequest.md similarity index 92% rename from docs/models/getbatchjobrequest.md rename to docs/models/jobsapiroutesbatchgetbatchjobrequest.md index f3c67eb4..8c259bea 100644 --- a/docs/models/getbatchjobrequest.md +++ b/docs/models/jobsapiroutesbatchgetbatchjobrequest.md @@ -1,4 +1,4 @@ -# GetBatchJobRequest +# JobsAPIRoutesBatchGetBatchJobRequest ## Fields diff --git a/docs/models/listbatchjobsrequest.md b/docs/models/jobsapiroutesbatchgetbatchjobsrequest.md similarity index 98% rename from docs/models/listbatchjobsrequest.md rename to docs/models/jobsapiroutesbatchgetbatchjobsrequest.md index 19981b24..5ceb0b2c 100644 --- a/docs/models/listbatchjobsrequest.md +++ b/docs/models/jobsapiroutesbatchgetbatchjobsrequest.md @@ -1,4 +1,4 @@ -# ListBatchJobsRequest +# JobsAPIRoutesBatchGetBatchJobsRequest ## Fields diff --git a/docs/models/archivemodelrequest.md b/docs/models/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md similarity index 93% rename from docs/models/archivemodelrequest.md rename to docs/models/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md index 806d135e..f9700df5 100644 --- a/docs/models/archivemodelrequest.md +++ b/docs/models/jobsapiroutesfinetuningarchivefinetunedmodelrequest.md @@ -1,4 +1,4 @@ -# ArchiveModelRequest +# JobsAPIRoutesFineTuningArchiveFineTunedModelRequest ## Fields diff --git a/docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutintegration.md new file mode 100644 index 00000000..edb72a3d --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutintegration.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration + + +## Supported Types + +### `models.WandbIntegrationOut` + +```python +value: models.WandbIntegrationOut = /* values here */ +``` + diff --git a/docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutstatus.md b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutstatus.md new file mode 100644 index 00000000..abb379fe --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobclassifierdetailedjoboutstatus.md @@ -0,0 +1,17 @@ +# JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `QUEUED` | QUEUED | +| `STARTED` | STARTED | +| `VALIDATING` | VALIDATING | +| `VALIDATED` | VALIDATED | +| `RUNNING` | RUNNING | +| `FAILED_VALIDATION` | FAILED_VALIDATION | +| `FAILED` | FAILED | +| `SUCCESS` | SUCCESS | +| `CANCELLED` | CANCELLED | +| `CANCELLATION_REQUESTED` | CANCELLATION_REQUESTED | \ No newline at end of file diff --git a/docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutintegration.md new file mode 100644 index 00000000..16633fd4 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutintegration.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration + + +## Supported Types + +### `models.WandbIntegrationOut` + +```python +value: models.WandbIntegrationOut = /* values here */ +``` + diff --git a/docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutstatus.md b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutstatus.md new file mode 100644 index 00000000..f4e42950 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobcompletiondetailedjoboutstatus.md @@ -0,0 +1,17 @@ +# JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `QUEUED` | QUEUED | +| `STARTED` | STARTED | +| `VALIDATING` | VALIDATING | +| `VALIDATED` | VALIDATED | +| `RUNNING` | RUNNING | +| `FAILED_VALIDATION` | FAILED_VALIDATION | +| `FAILED` | FAILED | +| `SUCCESS` | SUCCESS | +| `CANCELLED` | CANCELLED | +| `CANCELLATION_REQUESTED` | CANCELLATION_REQUESTED | \ No newline at end of file diff --git a/docs/models/jobsapiroutesfinetuningcancelfinetuningjobrepository.md b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobrepository.md new file mode 100644 index 00000000..d074fecd --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobrepository.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningCancelFineTuningJobRepository + + +## Supported Types + +### `models.GithubRepositoryOut` + +```python +value: models.GithubRepositoryOut = /* values here */ +``` + diff --git a/docs/models/cancelfinetuningjobrequest.md b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobrequest.md similarity index 88% rename from docs/models/cancelfinetuningjobrequest.md rename to docs/models/jobsapiroutesfinetuningcancelfinetuningjobrequest.md index 6525788c..883cbac6 100644 --- a/docs/models/cancelfinetuningjobrequest.md +++ b/docs/models/jobsapiroutesfinetuningcancelfinetuningjobrequest.md @@ -1,4 +1,4 @@ -# CancelFineTuningJobRequest +# JobsAPIRoutesFineTuningCancelFineTuningJobRequest ## Fields diff --git a/docs/models/classifierdetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutintegration.md similarity index 63% rename from docs/models/classifierdetailedjoboutintegration.md rename to docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutintegration.md index 9dfa6e8a..72516c8f 100644 --- a/docs/models/classifierdetailedjoboutintegration.md +++ b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutintegration.md @@ -1,4 +1,4 @@ -# ClassifierDetailedJobOutIntegration +# JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration ## Supported Types diff --git a/docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutstatus.md b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutstatus.md new file mode 100644 index 00000000..e635ebc3 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobclassifierjoboutstatus.md @@ -0,0 +1,19 @@ +# JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus + +The current status of the fine-tuning job. + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `QUEUED` | QUEUED | +| `STARTED` | STARTED | +| `VALIDATING` | VALIDATING | +| `VALIDATED` | VALIDATED | +| `RUNNING` | RUNNING | +| `FAILED_VALIDATION` | FAILED_VALIDATION | +| `FAILED` | FAILED | +| `SUCCESS` | SUCCESS | +| `CANCELLED` | CANCELLED | +| `CANCELLATION_REQUESTED` | CANCELLATION_REQUESTED | \ No newline at end of file diff --git a/docs/models/completiondetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutintegration.md similarity index 63% rename from docs/models/completiondetailedjoboutintegration.md rename to docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutintegration.md index 9e526053..ad7bbb0f 100644 --- a/docs/models/completiondetailedjoboutintegration.md +++ b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutintegration.md @@ -1,4 +1,4 @@ -# CompletionDetailedJobOutIntegration +# JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration ## Supported Types diff --git a/docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutstatus.md b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutstatus.md new file mode 100644 index 00000000..ffeca212 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobcompletionjoboutstatus.md @@ -0,0 +1,19 @@ +# JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus + +The current status of the fine-tuning job. + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `QUEUED` | QUEUED | +| `STARTED` | STARTED | +| `VALIDATING` | VALIDATING | +| `VALIDATED` | VALIDATED | +| `RUNNING` | RUNNING | +| `FAILED_VALIDATION` | FAILED_VALIDATION | +| `FAILED` | FAILED | +| `SUCCESS` | SUCCESS | +| `CANCELLED` | CANCELLED | +| `CANCELLATION_REQUESTED` | CANCELLATION_REQUESTED | \ No newline at end of file diff --git a/docs/models/jobsapiroutesfinetuningcreatefinetuningjobrepository.md b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobrepository.md new file mode 100644 index 00000000..60dd9130 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningcreatefinetuningjobrepository.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningCreateFineTuningJobRepository + + +## Supported Types + +### `models.GithubRepositoryOut` + +```python +value: models.GithubRepositoryOut = /* values here */ +``` + diff --git a/docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutintegration.md new file mode 100644 index 00000000..10f0d8b4 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutintegration.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration + + +## Supported Types + +### `models.WandbIntegrationOut` + +```python +value: models.WandbIntegrationOut = /* values here */ +``` + diff --git a/docs/models/classifierdetailedjoboutstatus.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutstatus.md similarity index 90% rename from docs/models/classifierdetailedjoboutstatus.md rename to docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutstatus.md index c3118aaf..0c4d712c 100644 --- a/docs/models/classifierdetailedjoboutstatus.md +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobclassifierdetailedjoboutstatus.md @@ -1,4 +1,4 @@ -# ClassifierDetailedJobOutStatus +# JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus ## Values diff --git a/docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutintegration.md new file mode 100644 index 00000000..7d3a46c0 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutintegration.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration + + +## Supported Types + +### `models.WandbIntegrationOut` + +```python +value: models.WandbIntegrationOut = /* values here */ +``` + diff --git a/docs/models/completiondetailedjoboutstatus.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutstatus.md similarity index 90% rename from docs/models/completiondetailedjoboutstatus.md rename to docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutstatus.md index b80525ba..1be181fe 100644 --- a/docs/models/completiondetailedjoboutstatus.md +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobcompletiondetailedjoboutstatus.md @@ -1,4 +1,4 @@ -# CompletionDetailedJobOutStatus +# JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus ## Values diff --git a/docs/models/completiondetailedjoboutrepository.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobrepository.md similarity index 70% rename from docs/models/completiondetailedjoboutrepository.md rename to docs/models/jobsapiroutesfinetuninggetfinetuningjobrepository.md index 92a7b75c..be2d02a4 100644 --- a/docs/models/completiondetailedjoboutrepository.md +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobrepository.md @@ -1,4 +1,4 @@ -# CompletionDetailedJobOutRepository +# JobsAPIRoutesFineTuningGetFineTuningJobRepository ## Supported Types diff --git a/docs/models/getfinetuningjobrequest.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobrequest.md similarity index 89% rename from docs/models/getfinetuningjobrequest.md rename to docs/models/jobsapiroutesfinetuninggetfinetuningjobrequest.md index f20cb214..fde19800 100644 --- a/docs/models/getfinetuningjobrequest.md +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobrequest.md @@ -1,4 +1,4 @@ -# GetFineTuningJobRequest +# JobsAPIRoutesFineTuningGetFineTuningJobRequest ## Fields diff --git a/docs/models/jobsapiroutesfinetuninggetfinetuningjobsrequest.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobsrequest.md new file mode 100644 index 00000000..23c52c34 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobsrequest.md @@ -0,0 +1,17 @@ +# JobsAPIRoutesFineTuningGetFineTuningJobsRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `page` | *Optional[int]* | :heavy_minus_sign: | The page number of the results to be returned. | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | The number of items to return per page. | +| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | The model name used for fine-tuning to filter on. When set, the other results are not displayed. | +| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The date/time to filter on. When set, the results for previous creation times are not displayed. | +| `created_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | When set, only return results for jobs created by the API caller. Other results are not displayed. | +| `status` | [OptionalNullable[models.JobsAPIRoutesFineTuningGetFineTuningJobsStatus]](../models/jobsapiroutesfinetuninggetfinetuningjobsstatus.md) | :heavy_minus_sign: | The current job state to filter on. When set, the other results are not displayed. | +| `wandb_project` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weights and Biases project to filter on. When set, the other results are not displayed. | +| `wandb_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weight and Biases run name to filter on. When set, the other results are not displayed. | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | The model suffix to filter on. When set, the other results are not displayed. | \ No newline at end of file diff --git a/docs/models/listfinetuningjobsstatus.md b/docs/models/jobsapiroutesfinetuninggetfinetuningjobsstatus.md similarity index 94% rename from docs/models/listfinetuningjobsstatus.md rename to docs/models/jobsapiroutesfinetuninggetfinetuningjobsstatus.md index 07db9ae5..40d57686 100644 --- a/docs/models/listfinetuningjobsstatus.md +++ b/docs/models/jobsapiroutesfinetuninggetfinetuningjobsstatus.md @@ -1,4 +1,4 @@ -# ListFineTuningJobsStatus +# JobsAPIRoutesFineTuningGetFineTuningJobsStatus The current job state to filter on. When set, the other results are not displayed. diff --git a/docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutintegration.md new file mode 100644 index 00000000..e0c39b90 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutintegration.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration + + +## Supported Types + +### `models.WandbIntegrationOut` + +```python +value: models.WandbIntegrationOut = /* values here */ +``` + diff --git a/docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutstatus.md b/docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutstatus.md new file mode 100644 index 00000000..b4c35897 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningstartfinetuningjobclassifierdetailedjoboutstatus.md @@ -0,0 +1,17 @@ +# JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `QUEUED` | QUEUED | +| `STARTED` | STARTED | +| `VALIDATING` | VALIDATING | +| `VALIDATED` | VALIDATED | +| `RUNNING` | RUNNING | +| `FAILED_VALIDATION` | FAILED_VALIDATION | +| `FAILED` | FAILED | +| `SUCCESS` | SUCCESS | +| `CANCELLED` | CANCELLED | +| `CANCELLATION_REQUESTED` | CANCELLATION_REQUESTED | \ No newline at end of file diff --git a/docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutintegration.md b/docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutintegration.md new file mode 100644 index 00000000..094d4a28 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutintegration.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration + + +## Supported Types + +### `models.WandbIntegrationOut` + +```python +value: models.WandbIntegrationOut = /* values here */ +``` + diff --git a/docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutstatus.md b/docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutstatus.md new file mode 100644 index 00000000..7ab2b5a8 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningstartfinetuningjobcompletiondetailedjoboutstatus.md @@ -0,0 +1,17 @@ +# JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus + + +## Values + +| Name | Value | +| ------------------------ | ------------------------ | +| `QUEUED` | QUEUED | +| `STARTED` | STARTED | +| `VALIDATING` | VALIDATING | +| `VALIDATED` | VALIDATED | +| `RUNNING` | RUNNING | +| `FAILED_VALIDATION` | FAILED_VALIDATION | +| `FAILED` | FAILED | +| `SUCCESS` | SUCCESS | +| `CANCELLED` | CANCELLED | +| `CANCELLATION_REQUESTED` | CANCELLATION_REQUESTED | \ No newline at end of file diff --git a/docs/models/jobsapiroutesfinetuningstartfinetuningjobrepository.md b/docs/models/jobsapiroutesfinetuningstartfinetuningjobrepository.md new file mode 100644 index 00000000..0c161516 --- /dev/null +++ b/docs/models/jobsapiroutesfinetuningstartfinetuningjobrepository.md @@ -0,0 +1,11 @@ +# JobsAPIRoutesFineTuningStartFineTuningJobRepository + + +## Supported Types + +### `models.GithubRepositoryOut` + +```python +value: models.GithubRepositoryOut = /* values here */ +``` + diff --git a/docs/models/startfinetuningjobrequest.md b/docs/models/jobsapiroutesfinetuningstartfinetuningjobrequest.md similarity index 84% rename from docs/models/startfinetuningjobrequest.md rename to docs/models/jobsapiroutesfinetuningstartfinetuningjobrequest.md index 9df5aee8..4429fe48 100644 --- a/docs/models/startfinetuningjobrequest.md +++ b/docs/models/jobsapiroutesfinetuningstartfinetuningjobrequest.md @@ -1,4 +1,4 @@ -# StartFineTuningJobRequest +# JobsAPIRoutesFineTuningStartFineTuningJobRequest ## Fields diff --git a/docs/models/unarchivemodelrequest.md b/docs/models/jobsapiroutesfinetuningunarchivefinetunedmodelrequest.md similarity index 92% rename from docs/models/unarchivemodelrequest.md rename to docs/models/jobsapiroutesfinetuningunarchivefinetunedmodelrequest.md index 033dad8a..95c1734d 100644 --- a/docs/models/unarchivemodelrequest.md +++ b/docs/models/jobsapiroutesfinetuningunarchivefinetunedmodelrequest.md @@ -1,4 +1,4 @@ -# UnarchiveModelRequest +# JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest ## Fields diff --git a/docs/models/updatemodelrequest.md b/docs/models/jobsapiroutesfinetuningupdatefinetunedmodelrequest.md similarity index 95% rename from docs/models/updatemodelrequest.md rename to docs/models/jobsapiroutesfinetuningupdatefinetunedmodelrequest.md index 5799c63b..6d93832e 100644 --- a/docs/models/updatemodelrequest.md +++ b/docs/models/jobsapiroutesfinetuningupdatefinetunedmodelrequest.md @@ -1,4 +1,4 @@ -# UpdateModelRequest +# JobsAPIRoutesFineTuningUpdateFineTunedModelRequest ## Fields diff --git a/docs/models/jobsout.md b/docs/models/jobsout.md deleted file mode 100644 index 69f8342a..00000000 --- a/docs/models/jobsout.md +++ /dev/null @@ -1,10 +0,0 @@ -# JobsOut - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `data` | List[[models.JobsOutData](../models/jobsoutdata.md)] | :heavy_minus_sign: | N/A | -| `object` | *Optional[Literal["list"]]* | :heavy_minus_sign: | N/A | -| `total` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/jobsoutdata.md b/docs/models/jobsoutdata.md deleted file mode 100644 index 28cec311..00000000 --- a/docs/models/jobsoutdata.md +++ /dev/null @@ -1,17 +0,0 @@ -# JobsOutData - - -## Supported Types - -### `models.ClassifierJobOut` - -```python -value: models.ClassifierJobOut = /* values here */ -``` - -### `models.CompletionJobOut` - -```python -value: models.CompletionJobOut = /* values here */ -``` - diff --git a/docs/models/legacyjobmetadataout.md b/docs/models/legacyjobmetadataoutcreatefinetuningjobresponse.md similarity index 99% rename from docs/models/legacyjobmetadataout.md rename to docs/models/legacyjobmetadataoutcreatefinetuningjobresponse.md index 8a712140..947d9f76 100644 --- a/docs/models/legacyjobmetadataout.md +++ b/docs/models/legacyjobmetadataoutcreatefinetuningjobresponse.md @@ -1,4 +1,4 @@ -# LegacyJobMetadataOut +# LegacyJobMetadataOutCreateFineTuningJobResponse ## Fields diff --git a/docs/models/getlibraryrequest.md b/docs/models/librariesdeletev1request.md similarity index 90% rename from docs/models/getlibraryrequest.md rename to docs/models/librariesdeletev1request.md index 2a3acf50..68d7e543 100644 --- a/docs/models/getlibraryrequest.md +++ b/docs/models/librariesdeletev1request.md @@ -1,4 +1,4 @@ -# GetLibraryRequest +# LibrariesDeleteV1Request ## Fields diff --git a/docs/models/getdocumentstatusrequest.md b/docs/models/librariesdocumentsdeletev1request.md similarity index 90% rename from docs/models/getdocumentstatusrequest.md rename to docs/models/librariesdocumentsdeletev1request.md index 3557d773..efccdb1b 100644 --- a/docs/models/getdocumentstatusrequest.md +++ b/docs/models/librariesdocumentsdeletev1request.md @@ -1,4 +1,4 @@ -# GetDocumentStatusRequest +# LibrariesDocumentsDeleteV1Request ## Fields diff --git a/docs/models/librariesdocumentsgetextractedtextsignedurlv1request.md b/docs/models/librariesdocumentsgetextractedtextsignedurlv1request.md new file mode 100644 index 00000000..14ca66f7 --- /dev/null +++ b/docs/models/librariesdocumentsgetextractedtextsignedurlv1request.md @@ -0,0 +1,9 @@ +# LibrariesDocumentsGetExtractedTextSignedURLV1Request + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `library_id` | *str* | :heavy_check_mark: | N/A | +| `document_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/librariesdocumentsgetsignedurlv1request.md b/docs/models/librariesdocumentsgetsignedurlv1request.md new file mode 100644 index 00000000..7c08c180 --- /dev/null +++ b/docs/models/librariesdocumentsgetsignedurlv1request.md @@ -0,0 +1,9 @@ +# LibrariesDocumentsGetSignedURLV1Request + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `library_id` | *str* | :heavy_check_mark: | N/A | +| `document_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/getdocumentrequest.md b/docs/models/librariesdocumentsgetstatusv1request.md similarity index 90% rename from docs/models/getdocumentrequest.md rename to docs/models/librariesdocumentsgetstatusv1request.md index 29f62127..e6d41875 100644 --- a/docs/models/getdocumentrequest.md +++ b/docs/models/librariesdocumentsgetstatusv1request.md @@ -1,4 +1,4 @@ -# GetDocumentRequest +# LibrariesDocumentsGetStatusV1Request ## Fields diff --git a/docs/models/getdocumentextractedtextsignedurlrequest.md b/docs/models/librariesdocumentsgettextcontentv1request.md similarity index 89% rename from docs/models/getdocumentextractedtextsignedurlrequest.md rename to docs/models/librariesdocumentsgettextcontentv1request.md index ff703802..2f58a446 100644 --- a/docs/models/getdocumentextractedtextsignedurlrequest.md +++ b/docs/models/librariesdocumentsgettextcontentv1request.md @@ -1,4 +1,4 @@ -# GetDocumentExtractedTextSignedURLRequest +# LibrariesDocumentsGetTextContentV1Request ## Fields diff --git a/docs/models/getdocumentsignedurlrequest.md b/docs/models/librariesdocumentsgetv1request.md similarity index 91% rename from docs/models/getdocumentsignedurlrequest.md rename to docs/models/librariesdocumentsgetv1request.md index 72a179c0..6febc058 100644 --- a/docs/models/getdocumentsignedurlrequest.md +++ b/docs/models/librariesdocumentsgetv1request.md @@ -1,4 +1,4 @@ -# GetDocumentSignedURLRequest +# LibrariesDocumentsGetV1Request ## Fields diff --git a/docs/models/listdocumentsrequest.md b/docs/models/librariesdocumentslistv1request.md similarity index 96% rename from docs/models/listdocumentsrequest.md rename to docs/models/librariesdocumentslistv1request.md index 369e8edb..44f63001 100644 --- a/docs/models/listdocumentsrequest.md +++ b/docs/models/librariesdocumentslistv1request.md @@ -1,4 +1,4 @@ -# ListDocumentsRequest +# LibrariesDocumentsListV1Request ## Fields diff --git a/docs/models/deletedocumentrequest.md b/docs/models/librariesdocumentsreprocessv1request.md similarity index 90% rename from docs/models/deletedocumentrequest.md rename to docs/models/librariesdocumentsreprocessv1request.md index eb060099..196ba17b 100644 --- a/docs/models/deletedocumentrequest.md +++ b/docs/models/librariesdocumentsreprocessv1request.md @@ -1,4 +1,4 @@ -# DeleteDocumentRequest +# LibrariesDocumentsReprocessV1Request ## Fields diff --git a/docs/models/librariesdocumentsupdatev1request.md b/docs/models/librariesdocumentsupdatev1request.md new file mode 100644 index 00000000..87a65ee6 --- /dev/null +++ b/docs/models/librariesdocumentsupdatev1request.md @@ -0,0 +1,10 @@ +# LibrariesDocumentsUpdateV1Request + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `library_id` | *str* | :heavy_check_mark: | N/A | +| `document_id` | *str* | :heavy_check_mark: | N/A | +| `document_update_request` | [models.DocumentUpdateRequest](../models/documentupdaterequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/librariesdocumentsuploadv1request.md b/docs/models/librariesdocumentsuploadv1request.md new file mode 100644 index 00000000..022518aa --- /dev/null +++ b/docs/models/librariesdocumentsuploadv1request.md @@ -0,0 +1,9 @@ +# LibrariesDocumentsUploadV1Request + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `library_id` | *str* | :heavy_check_mark: | N/A | +| `request_body` | [models.UploadDocumentRequest](../models/uploaddocumentrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletelibraryrequest.md b/docs/models/librariesgetv1request.md similarity index 91% rename from docs/models/deletelibraryrequest.md rename to docs/models/librariesgetv1request.md index c229ad73..6e1e04c3 100644 --- a/docs/models/deletelibraryrequest.md +++ b/docs/models/librariesgetv1request.md @@ -1,4 +1,4 @@ -# DeleteLibraryRequest +# LibrariesGetV1Request ## Fields diff --git a/docs/models/librariessharecreatev1request.md b/docs/models/librariessharecreatev1request.md new file mode 100644 index 00000000..bcecdf5c --- /dev/null +++ b/docs/models/librariessharecreatev1request.md @@ -0,0 +1,9 @@ +# LibrariesShareCreateV1Request + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `library_id` | *str* | :heavy_check_mark: | N/A | +| `update_or_create_library_access_request` | [models.UpdateOrCreateLibraryAccessRequest](../models/updateorcreatelibraryaccessrequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/deletelibraryaccessrequest.md b/docs/models/librariessharedeletev1request.md similarity index 96% rename from docs/models/deletelibraryaccessrequest.md rename to docs/models/librariessharedeletev1request.md index c7034b98..850e22ab 100644 --- a/docs/models/deletelibraryaccessrequest.md +++ b/docs/models/librariessharedeletev1request.md @@ -1,4 +1,4 @@ -# DeleteLibraryAccessRequest +# LibrariesShareDeleteV1Request ## Fields diff --git a/docs/models/listlibraryaccessesrequest.md b/docs/models/librariessharelistv1request.md similarity index 90% rename from docs/models/listlibraryaccessesrequest.md rename to docs/models/librariessharelistv1request.md index d98bcda2..98bf6d17 100644 --- a/docs/models/listlibraryaccessesrequest.md +++ b/docs/models/librariessharelistv1request.md @@ -1,4 +1,4 @@ -# ListLibraryAccessesRequest +# LibrariesShareListV1Request ## Fields diff --git a/docs/models/updatelibraryrequest.md b/docs/models/librariesupdatev1request.md similarity index 97% rename from docs/models/updatelibraryrequest.md rename to docs/models/librariesupdatev1request.md index e03883cc..a68ef7a8 100644 --- a/docs/models/updatelibraryrequest.md +++ b/docs/models/librariesupdatev1request.md @@ -1,4 +1,4 @@ -# UpdateLibraryRequest +# LibrariesUpdateV1Request ## Fields diff --git a/docs/models/libraryout.md b/docs/models/library.md similarity index 99% rename from docs/models/libraryout.md rename to docs/models/library.md index ebf46d57..4319f43d 100644 --- a/docs/models/libraryout.md +++ b/docs/models/library.md @@ -1,4 +1,4 @@ -# LibraryOut +# Library ## Fields diff --git a/docs/models/listbatchjobsresponse.md b/docs/models/listbatchjobsresponse.md new file mode 100644 index 00000000..c23e3220 --- /dev/null +++ b/docs/models/listbatchjobsresponse.md @@ -0,0 +1,10 @@ +# ListBatchJobsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `data` | List[[models.BatchJob](../models/batchjob.md)] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["list"]]* | :heavy_minus_sign: | N/A | +| `total` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listdocumentout.md b/docs/models/listdocumentsresponse.md similarity index 90% rename from docs/models/listdocumentout.md rename to docs/models/listdocumentsresponse.md index f14157b8..47b9d3b7 100644 --- a/docs/models/listdocumentout.md +++ b/docs/models/listdocumentsresponse.md @@ -1,4 +1,4 @@ -# ListDocumentOut +# ListDocumentsResponse ## Fields @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | | `pagination` | [models.PaginationInfo](../models/paginationinfo.md) | :heavy_check_mark: | N/A | -| `data` | List[[models.DocumentOut](../models/documentout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `data` | List[[models.Document](../models/document.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listfilesout.md b/docs/models/listfilesresponse.md similarity index 92% rename from docs/models/listfilesout.md rename to docs/models/listfilesresponse.md index bcb1f13a..4b50a8fe 100644 --- a/docs/models/listfilesout.md +++ b/docs/models/listfilesresponse.md @@ -1,10 +1,10 @@ -# ListFilesOut +# ListFilesResponse ## Fields | Field | Type | Required | Description | | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | List[[models.FileSchema](../models/fileschema.md)] | :heavy_check_mark: | N/A | +| `data` | List[[models.FileObject](../models/fileobject.md)] | :heavy_check_mark: | N/A | | `object` | *str* | :heavy_check_mark: | N/A | | `total` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/listfinetuningjobsrequest.md b/docs/models/listfinetuningjobsrequest.md deleted file mode 100644 index 3a04fc70..00000000 --- a/docs/models/listfinetuningjobsrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# ListFineTuningJobsRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `page` | *Optional[int]* | :heavy_minus_sign: | The page number of the results to be returned. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | The number of items to return per page. | -| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | The model name used for fine-tuning to filter on. When set, the other results are not displayed. | -| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The date/time to filter on. When set, the results for previous creation times are not displayed. | -| `created_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | When set, only return results for jobs created by the API caller. Other results are not displayed. | -| `status` | [OptionalNullable[models.ListFineTuningJobsStatus]](../models/listfinetuningjobsstatus.md) | :heavy_minus_sign: | The current job state to filter on. When set, the other results are not displayed. | -| `wandb_project` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weights and Biases project to filter on. When set, the other results are not displayed. | -| `wandb_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weight and Biases run name to filter on. When set, the other results are not displayed. | -| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | The model suffix to filter on. When set, the other results are not displayed. | \ No newline at end of file diff --git a/docs/models/listfinetuningjobsresponse.md b/docs/models/listfinetuningjobsresponse.md new file mode 100644 index 00000000..00251242 --- /dev/null +++ b/docs/models/listfinetuningjobsresponse.md @@ -0,0 +1,10 @@ +# ListFineTuningJobsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `data` | List[[models.ListFineTuningJobsResponseData](../models/listfinetuningjobsresponsedata.md)] | :heavy_minus_sign: | N/A | +| `object` | *Optional[Literal["list"]]* | :heavy_minus_sign: | N/A | +| `total` | *int* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/response.md b/docs/models/listfinetuningjobsresponsedata.md similarity index 86% rename from docs/models/response.md rename to docs/models/listfinetuningjobsresponsedata.md index 3512b7a8..3cf37522 100644 --- a/docs/models/response.md +++ b/docs/models/listfinetuningjobsresponsedata.md @@ -1,4 +1,4 @@ -# Response +# ListFineTuningJobsResponseData ## Supported Types diff --git a/docs/models/listlibrariesresponse.md b/docs/models/listlibrariesresponse.md new file mode 100644 index 00000000..e21b9ced --- /dev/null +++ b/docs/models/listlibrariesresponse.md @@ -0,0 +1,8 @@ +# ListLibrariesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `data` | List[[models.Library](../models/library.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listlibraryaccessesresponse.md b/docs/models/listlibraryaccessesresponse.md new file mode 100644 index 00000000..5ae556f3 --- /dev/null +++ b/docs/models/listlibraryaccessesresponse.md @@ -0,0 +1,8 @@ +# ListLibraryAccessesResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `data` | List[[models.Sharing](../models/sharing.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listlibraryout.md b/docs/models/listlibraryout.md deleted file mode 100644 index db76ffa1..00000000 --- a/docs/models/listlibraryout.md +++ /dev/null @@ -1,8 +0,0 @@ -# ListLibraryOut - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | List[[models.LibraryOut](../models/libraryout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listsharingout.md b/docs/models/listsharingout.md deleted file mode 100644 index bcac4834..00000000 --- a/docs/models/listsharingout.md +++ /dev/null @@ -1,8 +0,0 @@ -# ListSharingOut - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | List[[models.SharingOut](../models/sharingout.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/modelconversationgetconversationresponse.md b/docs/models/modelconversationgetconversationresponse.md new file mode 100644 index 00000000..0685ebbc --- /dev/null +++ b/docs/models/modelconversationgetconversationresponse.md @@ -0,0 +1,18 @@ +# ModelConversationGetConversationResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | Instruction prompt the model will follow during the conversation. | +| `tools` | List[[models.AgentsAPIV1ConversationsGetTool](../models/agentsapiv1conversationsgettool.md)] | :heavy_minus_sign: | List of tools which are available to the model during the conversation. | +| `completion_args` | [Optional[models.CompletionArgs]](../models/completionargs.md) | :heavy_minus_sign: | White-listed arguments from the completion API | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name given to the conversation. | +| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description of the what the conversation is about. | +| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Custom metadata for the conversation. | +| `object` | [Optional[models.AgentsAPIV1ConversationsGetModelConversationObject]](../models/agentsapiv1conversationsgetmodelconversationobject.md) | :heavy_minus_sign: | N/A | +| `id` | *str* | :heavy_check_mark: | N/A | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `model` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ocrrequest.md b/docs/models/ocrrequest.md index 87929e53..3d4d1df7 100644 --- a/docs/models/ocrrequest.md +++ b/docs/models/ocrrequest.md @@ -7,7 +7,7 @@ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `model` | *Nullable[str]* | :heavy_check_mark: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `document` | [models.Document](../models/document.md) | :heavy_check_mark: | Document to run OCR on | | +| `document` | [models.DocumentUnion](../models/documentunion.md) | :heavy_check_mark: | Document to run OCR on | | | `pages` | List[*int*] | :heavy_minus_sign: | Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0 | | | `include_image_base64` | *OptionalNullable[bool]* | :heavy_minus_sign: | Include image URLs in response | | | `image_limit` | *OptionalNullable[int]* | :heavy_minus_sign: | Max images to extract | | diff --git a/docs/models/realtimetranscriptionsession.md b/docs/models/realtimetranscriptionsession.md index 94a0a89e..750bd7f7 100644 --- a/docs/models/realtimetranscriptionsession.md +++ b/docs/models/realtimetranscriptionsession.md @@ -7,4 +7,5 @@ | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | `request_id` | *str* | :heavy_check_mark: | N/A | | `model` | *str* | :heavy_check_mark: | N/A | -| `audio_format` | [models.AudioFormat](../models/audioformat.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `audio_format` | [models.AudioFormat](../models/audioformat.md) | :heavy_check_mark: | N/A | +| `target_streaming_delay_ms` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/reprocessdocumentrequest.md b/docs/models/reprocessdocumentrequest.md deleted file mode 100644 index cf3982a8..00000000 --- a/docs/models/reprocessdocumentrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# ReprocessDocumentRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `library_id` | *str* | :heavy_check_mark: | N/A | -| `document_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/responseretrievemodelv1modelsmodelidget.md b/docs/models/responseretrievemodelv1modelsmodelidget.md deleted file mode 100644 index ffbc1473..00000000 --- a/docs/models/responseretrievemodelv1modelsmodelidget.md +++ /dev/null @@ -1,19 +0,0 @@ -# ResponseRetrieveModelV1ModelsModelIDGet - -Successful Response - - -## Supported Types - -### `models.BaseModelCard` - -```python -value: models.BaseModelCard = /* values here */ -``` - -### `models.FTModelCard` - -```python -value: models.FTModelCard = /* values here */ -``` - diff --git a/docs/models/responsev1conversationsget.md b/docs/models/responsev1conversationsget.md deleted file mode 100644 index 844c5d61..00000000 --- a/docs/models/responsev1conversationsget.md +++ /dev/null @@ -1,19 +0,0 @@ -# ResponseV1ConversationsGet - -Successful Response - - -## Supported Types - -### `models.ModelConversation` - -```python -value: models.ModelConversation = /* values here */ -``` - -### `models.AgentConversation` - -```python -value: models.AgentConversation = /* values here */ -``` - diff --git a/docs/models/retrievemodelrequest.md b/docs/models/retrievemodelv1modelsmodelidgetrequest.md similarity index 94% rename from docs/models/retrievemodelrequest.md rename to docs/models/retrievemodelv1modelsmodelidgetrequest.md index 787c3dd1..f1280f88 100644 --- a/docs/models/retrievemodelrequest.md +++ b/docs/models/retrievemodelv1modelsmodelidgetrequest.md @@ -1,4 +1,4 @@ -# RetrieveModelRequest +# RetrieveModelV1ModelsModelIDGetRequest ## Fields diff --git a/docs/models/sharingout.md b/docs/models/sharing.md similarity index 98% rename from docs/models/sharingout.md rename to docs/models/sharing.md index 35aeff43..fc718632 100644 --- a/docs/models/sharingout.md +++ b/docs/models/sharing.md @@ -1,4 +1,4 @@ -# SharingOut +# Sharing ## Fields diff --git a/docs/models/sharingin.md b/docs/models/sharingin.md deleted file mode 100644 index bac18c8d..00000000 --- a/docs/models/sharingin.md +++ /dev/null @@ -1,11 +0,0 @@ -# SharingIn - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `org_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `level` | [models.ShareEnum](../models/shareenum.md) | :heavy_check_mark: | N/A | -| `share_with_uuid` | *str* | :heavy_check_mark: | The id of the entity (user, workspace or organization) to share with | -| `share_with_type` | [models.EntityType](../models/entitytype.md) | :heavy_check_mark: | The type of entity, used to share a library. | \ No newline at end of file diff --git a/docs/models/startfinetuningjobresponse.md b/docs/models/startfinetuningjobresponse.md index dce84c5a..1def433b 100644 --- a/docs/models/startfinetuningjobresponse.md +++ b/docs/models/startfinetuningjobresponse.md @@ -5,15 +5,15 @@ OK ## Supported Types -### `models.ClassifierDetailedJobOut` +### `models.ClassifierDetailedJobOutStartFineTuningJobResponse` ```python -value: models.ClassifierDetailedJobOut = /* values here */ +value: models.ClassifierDetailedJobOutStartFineTuningJobResponse = /* values here */ ``` -### `models.CompletionDetailedJobOut` +### `models.CompletionDetailedJobOutStartFineTuningJobResponse` ```python -value: models.CompletionDetailedJobOut = /* values here */ +value: models.CompletionDetailedJobOutStartFineTuningJobResponse = /* values here */ ``` diff --git a/docs/models/updatedocumentrequest.md b/docs/models/updatedocumentrequest.md deleted file mode 100644 index fa5d117a..00000000 --- a/docs/models/updatedocumentrequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# UpdateDocumentRequest - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `library_id` | *str* | :heavy_check_mark: | N/A | -| `document_id` | *str* | :heavy_check_mark: | N/A | -| `document_update_in` | [models.DocumentUpdateIn](../models/documentupdatein.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/updatemodelresponse.md b/docs/models/updatemodelresponse.md index 275ee77f..1f858fc2 100644 --- a/docs/models/updatemodelresponse.md +++ b/docs/models/updatemodelresponse.md @@ -5,15 +5,15 @@ OK ## Supported Types -### `models.ClassifierFTModelOut` +### `models.ClassifierFTModelOutUpdateModelResponse` ```python -value: models.ClassifierFTModelOut = /* values here */ +value: models.ClassifierFTModelOutUpdateModelResponse = /* values here */ ``` -### `models.CompletionFTModelOut` +### `models.CompletionFTModelOutUpdateModelResponse` ```python -value: models.CompletionFTModelOut = /* values here */ +value: models.CompletionFTModelOutUpdateModelResponse = /* values here */ ``` diff --git a/docs/models/updateorcreatelibraryaccessrequest.md b/docs/models/updateorcreatelibraryaccessrequest.md index e04567b4..a1baf837 100644 --- a/docs/models/updateorcreatelibraryaccessrequest.md +++ b/docs/models/updateorcreatelibraryaccessrequest.md @@ -3,7 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `library_id` | *str* | :heavy_check_mark: | N/A | -| `sharing_in` | [models.SharingIn](../models/sharingin.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `org_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `level` | [models.ShareEnum](../models/shareenum.md) | :heavy_check_mark: | N/A | +| `share_with_uuid` | *str* | :heavy_check_mark: | The id of the entity (user, workspace or organization) to share with | +| `share_with_type` | [models.EntityType](../models/entitytype.md) | :heavy_check_mark: | The type of entity, used to share a library. | \ No newline at end of file diff --git a/docs/models/uploaddocumentrequest.md b/docs/models/uploaddocumentrequest.md index 92152b7f..110e2bb0 100644 --- a/docs/models/uploaddocumentrequest.md +++ b/docs/models/uploaddocumentrequest.md @@ -3,7 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `library_id` | *str* | :heavy_check_mark: | N/A | -| `request_body` | [models.DocumentUpload](../models/documentupload.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `file` | [models.File](../models/file.md) | :heavy_check_mark: | The File object (not file name) to be uploaded.
To upload a file and specify a custom file name you should format your request as such:
```bash
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
```
Otherwise, you can just keep the original file name:
```bash
file=@path/to/your/file.jsonl
``` | \ No newline at end of file diff --git a/docs/models/multipartbodyparams.md b/docs/models/uploadfilerequest.md similarity index 99% rename from docs/models/multipartbodyparams.md rename to docs/models/uploadfilerequest.md index f14b9573..ea5cb4d6 100644 --- a/docs/models/multipartbodyparams.md +++ b/docs/models/uploadfilerequest.md @@ -1,4 +1,4 @@ -# MultiPartBodyParams +# UploadFileRequest ## Fields diff --git a/docs/models/uploadfileout.md b/docs/models/uploadfileresponse.md similarity index 99% rename from docs/models/uploadfileout.md rename to docs/models/uploadfileresponse.md index 6f09c9a6..14badc2f 100644 --- a/docs/models/uploadfileout.md +++ b/docs/models/uploadfileresponse.md @@ -1,4 +1,4 @@ -# UploadFileOut +# UploadFileResponse ## Fields diff --git a/docs/sdks/accesses/README.md b/docs/sdks/accesses/README.md index c1e3866d..b51a0c1c 100644 --- a/docs/sdks/accesses/README.md +++ b/docs/sdks/accesses/README.md @@ -16,7 +16,7 @@ Given a library, list all of the Entity that have access and to what level. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -26,7 +26,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.accesses.list(library_id="9eb628ef-f118-47eb-b3cc-9750c4ca5fb6") + res = mistral.beta.libraries.accesses.list(library_id="d2169833-d8e2-416e-a372-76518d3d99c2") # Handle response print(res) @@ -42,7 +42,7 @@ with Mistral( ### Response -**[models.ListSharingOut](../../models/listsharingout.md)** +**[models.ListLibraryAccessesResponse](../../models/listlibraryaccessesresponse.md)** ### Errors @@ -57,7 +57,7 @@ Given a library id, you can create or update the access level of an entity. You ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -67,7 +67,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.accesses.update_or_create(library_id="88bb030c-1cb5-4231-ba13-742c56554876", level="Viewer", share_with_uuid="6a736283-c1fa-49b0-9b6d-ea9309c0a766", share_with_type="Workspace") + res = mistral.beta.libraries.accesses.update_or_create(library_id="36de3a24-5b1c-4c8f-9d84-d5642205a976", level="Viewer", share_with_uuid="0ae92ecb-21ed-47c5-9f7e-0b2cbe325a20", share_with_type="User") # Handle response print(res) @@ -87,7 +87,7 @@ with Mistral( ### Response -**[models.SharingOut](../../models/sharingout.md)** +**[models.Sharing](../../models/sharing.md)** ### Errors @@ -102,7 +102,7 @@ Given a library id, you can delete the access level of an entity. An owner canno ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -112,7 +112,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.accesses.delete(library_id="fc7ab1cf-e33c-4791-a6e0-95ff1f921c43", share_with_uuid="5818ddff-3568-40f1-a9e4-39d6cb9f5c94", share_with_type="Org") + res = mistral.beta.libraries.accesses.delete(library_id="709e3cad-9fb2-4f4e-bf88-143cf1808107", share_with_uuid="b843cc47-ce8f-4354-8cfc-5fcd7fb2865b", share_with_type="User") # Handle response print(res) @@ -131,7 +131,7 @@ with Mistral( ### Response -**[models.SharingOut](../../models/sharingout.md)** +**[models.Sharing](../../models/sharing.md)** ### Errors diff --git a/docs/sdks/batchjobs/README.md b/docs/sdks/batchjobs/README.md index 24316d78..1c66aedc 100644 --- a/docs/sdks/batchjobs/README.md +++ b/docs/sdks/batchjobs/README.md @@ -15,7 +15,7 @@ Get a list of batch jobs for your organization and user. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -49,7 +49,7 @@ with Mistral( ### Response -**[models.BatchJobsOut](../../models/batchjobsout.md)** +**[models.ListBatchJobsResponse](../../models/listbatchjobsresponse.md)** ### Errors @@ -63,7 +63,7 @@ Create a new batch job, it will be queued for processing. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -73,7 +73,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.batch.jobs.create(endpoint="/v1/classifications", model="mistral-small-latest", timeout_hours=24) + res = mistral.batch.jobs.create(endpoint="/v1/moderations", model="mistral-small-latest", timeout_hours=24) # Handle response print(res) @@ -95,7 +95,7 @@ with Mistral( ### Response -**[models.BatchJobOut](../../models/batchjobout.md)** +**[models.BatchJob](../../models/batchjob.md)** ### Errors @@ -112,7 +112,7 @@ Args: ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -122,7 +122,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.batch.jobs.get(job_id="358c80a1-79bd-43f0-8f0e-8186713aa3ba") + res = mistral.batch.jobs.get(job_id="4017dc9f-b629-42f4-9700-8c681b9e7f0f") # Handle response print(res) @@ -139,7 +139,7 @@ with Mistral( ### Response -**[models.BatchJobOut](../../models/batchjobout.md)** +**[models.BatchJob](../../models/batchjob.md)** ### Errors @@ -153,7 +153,7 @@ Request the cancellation of a batch job. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -163,7 +163,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.batch.jobs.cancel(job_id="393537d7-8b33-4931-a289-7f61f8757eda") + res = mistral.batch.jobs.cancel(job_id="4fb29d1c-535b-4f0a-a1cb-2167f86da569") # Handle response print(res) @@ -179,7 +179,7 @@ with Mistral( ### Response -**[models.BatchJobOut](../../models/batchjobout.md)** +**[models.BatchJob](../../models/batchjob.md)** ### Errors diff --git a/docs/sdks/betaagents/README.md b/docs/sdks/betaagents/README.md index 0ef655a3..68732c5c 100644 --- a/docs/sdks/betaagents/README.md +++ b/docs/sdks/betaagents/README.md @@ -24,7 +24,7 @@ Create a new agent giving it instructions, tools, description. The agent is then ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -34,7 +34,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.agents.create(model="Mustang", name="", completion_args={ + res = mistral.beta.agents.create(model="LeBaron", name="", completion_args={ "response_format": { "type": "text", }, @@ -77,7 +77,7 @@ Retrieve a list of agent entities sorted by creation time. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -125,7 +125,7 @@ Given an agent, retrieve an agent entity with its attributes. The agent_version ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -144,11 +144,11 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `agent_id` | *str* | :heavy_check_mark: | N/A | -| `agent_version` | [OptionalNullable[models.GetAgentAgentVersion]](../../models/getagentagentversion.md) | :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 | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `agent_id` | *str* | :heavy_check_mark: | N/A | +| `agent_version` | [OptionalNullable[models.AgentsAPIV1AgentsGetAgentVersion]](../../models/agentsapiv1agentsgetagentversion.md) | :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 @@ -167,7 +167,7 @@ Update an agent attributes and create a new version. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -222,7 +222,7 @@ Delete an agent entity. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -258,7 +258,7 @@ Switch the version of an agent. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -268,7 +268,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.agents.update_version(agent_id="", version=958693) + res = mistral.beta.agents.update_version(agent_id="", version=157995) # Handle response print(res) @@ -300,7 +300,7 @@ Retrieve all versions for a specific agent with full agent context. Supports pag ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -343,7 +343,7 @@ Get a specific agent version by version number. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -353,7 +353,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.agents.get_version(agent_id="", version="") + res = mistral.beta.agents.get_version(agent_id="", version="788393") # Handle response print(res) @@ -385,7 +385,7 @@ Create a new alias or update an existing alias to point to a specific version. A ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -395,7 +395,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.agents.create_version_alias(agent_id="", alias="", version=154719) + res = mistral.beta.agents.create_version_alias(agent_id="", alias="", version=595141) # Handle response print(res) @@ -428,7 +428,7 @@ Retrieve all version aliases for a specific agent. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -469,7 +469,7 @@ Delete an existing alias for an agent. ### Example Usage - + ```python from mistralai.client import Mistral import os diff --git a/docs/sdks/conversations/README.md b/docs/sdks/conversations/README.md index c0089f12..c8950c7c 100644 --- a/docs/sdks/conversations/README.md +++ b/docs/sdks/conversations/README.md @@ -24,7 +24,7 @@ Create a new conversation, using a base model or an agent and append entries. Co ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -81,7 +81,7 @@ Retrieve a list of conversation entities sorted by creation time. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -109,7 +109,7 @@ with Mistral( ### Response -**[List[models.ListConversationsResponse]](../../models/.md)** +**[List[models.AgentsAPIV1ConversationsListResponse]](../../models/.md)** ### Errors @@ -124,7 +124,7 @@ Given a conversation_id retrieve a conversation entity with its attributes. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -150,7 +150,7 @@ with Mistral( ### Response -**[models.ResponseV1ConversationsGet](../../models/responsev1conversationsget.md)** +**[models.GetConversationResponse](../../models/getconversationresponse.md)** ### Errors @@ -165,7 +165,7 @@ Delete a conversation given a conversation_id. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -201,7 +201,7 @@ Run completion on the history of the conversation and the user entries. Return t ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -251,7 +251,7 @@ Given a conversation_id retrieve all the entries belonging to that conversation. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -292,7 +292,7 @@ Given a conversation_id retrieve all the messages belonging to that conversation ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -333,7 +333,7 @@ Given a conversation_id and an id, recreate a conversation from this point and r ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -386,7 +386,7 @@ Create a new conversation, using a base model or an agent and append entries. Co ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -396,7 +396,14 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.conversations.start_stream(inputs="", stream=True, completion_args={ + res = mistral.beta.conversations.start_stream(inputs=[ + { + "object": "entry", + "type": "function.result", + "tool_call_id": "", + "result": "", + }, + ], stream=True, completion_args={ "response_format": { "type": "text", }, @@ -445,7 +452,7 @@ Run completion on the history of the conversation and the user entries. Return t ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -497,7 +504,7 @@ Given a conversation_id and an id, recreate a conversation from this point and r ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -507,7 +514,15 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.conversations.restart_stream(conversation_id="", inputs="", from_entry_id="", stream=True, store=True, handoff_execution="server", completion_args={ + res = mistral.beta.conversations.restart_stream(conversation_id="", inputs=[ + { + "object": "entry", + "type": "message.input", + "role": "assistant", + "content": "", + "prefix": False, + }, + ], from_entry_id="", stream=True, store=True, handoff_execution="server", completion_args={ "response_format": { "type": "text", }, diff --git a/docs/sdks/documents/README.md b/docs/sdks/documents/README.md index 97831f86..414cd2f9 100644 --- a/docs/sdks/documents/README.md +++ b/docs/sdks/documents/README.md @@ -23,7 +23,7 @@ Given a library, lists the document that have been uploaded to that library. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -33,7 +33,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.list(library_id="05e1bda5-99b1-4baf-bb03-905d8e094f74", page_size=100, page=0, sort_by="created_at", sort_order="desc") + res = mistral.beta.libraries.documents.list(library_id="5c3ca4cd-62bc-4c71-ad8a-1531ae80d078", page_size=100, page=0, sort_by="created_at", sort_order="desc") # Handle response print(res) @@ -55,7 +55,7 @@ with Mistral( ### Response -**[models.ListDocumentOut](../../models/listdocumentout.md)** +**[models.ListDocumentsResponse](../../models/listdocumentsresponse.md)** ### Errors @@ -70,7 +70,7 @@ Given a library, upload a new document to that library. It is queued for process ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -80,7 +80,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.upload(library_id="f973c54e-979a-4464-9d36-8cc31beb21fe", file={ + res = mistral.beta.libraries.documents.upload(library_id="a02150d9-5ee0-4877-b62c-28b1fcdf3b76", file={ "file_name": "example.file", "content": open("example.file", "rb"), }) @@ -100,7 +100,7 @@ with Mistral( ### Response -**[models.DocumentOut](../../models/documentout.md)** +**[models.Document](../../models/document.md)** ### Errors @@ -115,7 +115,7 @@ Given a library and a document in this library, you can retrieve the metadata of ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -125,7 +125,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.get(library_id="f9902d0a-1ea4-4953-be48-52df6edd302a", document_id="c3e12fd9-e840-46f2-8d4a-79985ed36d24") + res = mistral.beta.libraries.documents.get(library_id="03d908c8-90a1-44fd-bf3a-8490fb7c9a03", document_id="90973aec-0508-4375-8b00-91d732414745") # Handle response print(res) @@ -142,7 +142,7 @@ with Mistral( ### Response -**[models.DocumentOut](../../models/documentout.md)** +**[models.Document](../../models/document.md)** ### Errors @@ -157,7 +157,7 @@ Given a library and a document in that library, update the name of that document ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -167,7 +167,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.update(library_id="3b900c67-d2b6-4637-93f2-3eff2c85f8dd", document_id="66f935fd-37ec-441f-bca5-b1129befcbca") + res = mistral.beta.libraries.documents.update(library_id="3ddd8d93-dca5-4a6d-980d-173226c35742", document_id="2a25e44c-b160-40ca-b5c2-b65fb2fcae34") # Handle response print(res) @@ -186,7 +186,7 @@ with Mistral( ### Response -**[models.DocumentOut](../../models/documentout.md)** +**[models.Document](../../models/document.md)** ### Errors @@ -201,7 +201,7 @@ Given a library and a document in that library, delete that document. The docume ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -211,7 +211,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - mistral.beta.libraries.documents.delete(library_id="c728d742-7845-462b-84ad-2aacbaf1c7cf", document_id="ed3f5797-846a-4abe-8e30-39b2fd2323e0") + mistral.beta.libraries.documents.delete(library_id="005daae9-d42e-407d-82d7-2261c6a1496c", document_id="edc236b0-baff-49a9-884b-4ca36a258da4") # Use the SDK ... @@ -238,7 +238,7 @@ Given a library and a document in that library, you can retrieve the text conten ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -248,7 +248,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.text_content(library_id="12689dc1-50df-4a0d-8202-2757f7a8c141", document_id="9d4057e9-d112-437c-911e-6ee031389739") + res = mistral.beta.libraries.documents.text_content(library_id="1d177215-3b6b-45ba-9fa9-baf773223bec", document_id="60214c91-2aba-4692-a4e6-a53365de8caf") # Handle response print(res) @@ -280,7 +280,7 @@ Given a library and a document in that library, retrieve the processing status o ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -290,7 +290,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.status(library_id="41bb33c4-7e53-453d-bf21-398bb2862772", document_id="416b95cf-19c8-45af-84be-26aaa3ab3666") + res = mistral.beta.libraries.documents.status(library_id="e6906f70-368f-4155-80da-c1718f01bc43", document_id="2c904915-d831-4e9d-a345-8ce405bcef66") # Handle response print(res) @@ -322,7 +322,7 @@ Given a library and a document in that library, retrieve the signed URL of a spe ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -332,7 +332,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.get_signed_url(library_id="2dbbe172-1374-41be-b03d-a088c733612e", document_id="b5d88764-47f1-4485-9df1-658775428344") + res = mistral.beta.libraries.documents.get_signed_url(library_id="23cf6904-a602-4ee8-9f5b-8efc557c336d", document_id="48598486-df71-4994-acbb-1133c72efa8c") # Handle response print(res) @@ -364,7 +364,7 @@ Given a library and a document in that library, retrieve the signed URL of text ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -374,7 +374,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.documents.extracted_text_signed_url(library_id="46d040ce-ae2e-4891-a54c-cdab6a8f62d8", document_id="3eddbfe2-3fd7-47f5-984b-b378e6950e37") + res = mistral.beta.libraries.documents.extracted_text_signed_url(library_id="a6f15de3-1e82-4f95-af82-851499042ef8", document_id="9749d4f9-24e5-4ca2-99a3-a406863f805d") # Handle response print(res) @@ -406,7 +406,7 @@ Given a library and a document in that library, reprocess that document, it will ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -416,7 +416,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - mistral.beta.libraries.documents.reprocess(library_id="76d357e4-d891-40c6-9d1e-6d6ce5056ee0", document_id="09798d2b-8f46-46c6-9765-8054a82a4bb2") + mistral.beta.libraries.documents.reprocess(library_id="51b29371-de8f-4ba4-932b-a0bafb3a7f64", document_id="3052422c-49ca-45ac-a918-cadb35d61fd8") # Use the SDK ... diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index ae29b7bf..700f1b4c 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -23,7 +23,7 @@ Please contact us if you need to increase these storage limits. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -53,7 +53,7 @@ with Mistral( ### Response -**[models.UploadFileOut](../../models/uploadfileout.md)** +**[models.UploadFileResponse](../../models/uploadfileresponse.md)** ### Errors @@ -67,7 +67,7 @@ Returns a list of files that belong to the user's organization. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -100,7 +100,7 @@ with Mistral( ### Response -**[models.ListFilesOut](../../models/listfilesout.md)** +**[models.ListFilesResponse](../../models/listfilesresponse.md)** ### Errors @@ -114,7 +114,7 @@ Returns information about a specific file. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -124,7 +124,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.files.retrieve(file_id="654a62d9-b7ee-49ac-835e-af4153e3c9ec") + res = mistral.files.retrieve(file_id="f2a27685-ca4e-4dc2-9f2b-88c422c3e0f6") # Handle response print(res) @@ -140,7 +140,7 @@ with Mistral( ### Response -**[models.RetrieveFileOut](../../models/retrievefileout.md)** +**[models.GetFileResponse](../../models/getfileresponse.md)** ### Errors @@ -154,7 +154,7 @@ Delete a file. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -164,7 +164,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.files.delete(file_id="789c27a4-69de-47c6-b67f-cf6e56ce9f41") + res = mistral.files.delete(file_id="3b6d45eb-e30b-416f-8019-f47e2e93d930") # Handle response print(res) @@ -180,7 +180,7 @@ with Mistral( ### Response -**[models.DeleteFileOut](../../models/deletefileout.md)** +**[models.DeleteFileResponse](../../models/deletefileresponse.md)** ### Errors @@ -194,7 +194,7 @@ Download a file ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -204,7 +204,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.files.download(file_id="e2ba278e-eac9-4050-ae8e-ec433e124efb") + res = mistral.files.download(file_id="f8919994-a4a1-46b2-8b5b-06335a4300ce") # Handle response print(res) @@ -234,7 +234,7 @@ Get Signed Url ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -244,7 +244,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.files.get_signed_url(file_id="7a0c108d-9e6b-4c47-990d-a20cba50b283", expiry=24) + res = mistral.files.get_signed_url(file_id="06a020ab-355c-49a6-b19d-304b7c01699f", expiry=24) # Handle response print(res) diff --git a/docs/sdks/finetuningjobs/README.md b/docs/sdks/finetuningjobs/README.md index fe18feeb..703cfef2 100644 --- a/docs/sdks/finetuningjobs/README.md +++ b/docs/sdks/finetuningjobs/README.md @@ -16,7 +16,7 @@ Get a list of fine-tuning jobs for your organization and user. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -35,23 +35,23 @@ with Mistral( ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `page` | *Optional[int]* | :heavy_minus_sign: | The page number of the results to be returned. | -| `page_size` | *Optional[int]* | :heavy_minus_sign: | The number of items to return per page. | -| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | The model name used for fine-tuning to filter on. When set, the other results are not displayed. | -| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The date/time to filter on. When set, the results for previous creation times are not displayed. | -| `created_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | When set, only return results for jobs created by the API caller. Other results are not displayed. | -| `status` | [OptionalNullable[models.ListFineTuningJobsStatus]](../../models/listfinetuningjobsstatus.md) | :heavy_minus_sign: | The current job state to filter on. When set, the other results are not displayed. | -| `wandb_project` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weights and Biases project to filter on. When set, the other results are not displayed. | -| `wandb_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weight and Biases run name to filter on. When set, the other results are not displayed. | -| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | The model suffix to filter on. When set, the other results are not displayed. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `page` | *Optional[int]* | :heavy_minus_sign: | The page number of the results to be returned. | +| `page_size` | *Optional[int]* | :heavy_minus_sign: | The number of items to return per page. | +| `model` | *OptionalNullable[str]* | :heavy_minus_sign: | The model name used for fine-tuning to filter on. When set, the other results are not displayed. | +| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The date/time to filter on. When set, the results for previous creation times are not displayed. | +| `created_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `created_by_me` | *Optional[bool]* | :heavy_minus_sign: | When set, only return results for jobs created by the API caller. Other results are not displayed. | +| `status` | [OptionalNullable[models.JobsAPIRoutesFineTuningGetFineTuningJobsStatus]](../../models/jobsapiroutesfinetuninggetfinetuningjobsstatus.md) | :heavy_minus_sign: | The current job state to filter on. When set, the other results are not displayed. | +| `wandb_project` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weights and Biases project to filter on. When set, the other results are not displayed. | +| `wandb_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The Weight and Biases run name to filter on. When set, the other results are not displayed. | +| `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | The model suffix to filter on. When set, the other results are not displayed. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response -**[models.JobsOut](../../models/jobsout.md)** +**[models.ListFineTuningJobsResponse](../../models/listfinetuningjobsresponse.md)** ### Errors @@ -65,7 +65,7 @@ Create a new fine-tuning job, it will be queued for processing. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -75,7 +75,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.fine_tuning.jobs.create(model="Countach", hyperparameters={ + res = mistral.fine_tuning.jobs.create(model="Camaro", hyperparameters={ "learning_rate": 0.0001, }, invalid_sample_skip_percentage=0) @@ -93,17 +93,17 @@ with Mistral( | `training_files` | List[[models.TrainingFile](../../models/trainingfile.md)] | :heavy_minus_sign: | N/A | | `validation_files` | List[*str*] | :heavy_minus_sign: | A list containing the IDs of uploaded files that contain validation data. If you provide these files, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in `checkpoints` when getting the status of a running fine-tuning job. The same data should not be present in both train and validation files. | | `suffix` | *OptionalNullable[str]* | :heavy_minus_sign: | A string that will be added to your fine-tuning model name. For example, a suffix of "my-great-model" would produce a model name like `ft:open-mistral-7b:my-great-model:xxx...` | -| `integrations` | List[[models.JobInIntegration](../../models/jobinintegration.md)] | :heavy_minus_sign: | A list of integrations to enable for your fine-tuning job. | +| `integrations` | List[[models.CreateFineTuningJobRequestIntegration](../../models/createfinetuningjobrequestintegration.md)] | :heavy_minus_sign: | A list of integrations to enable for your fine-tuning job. | | `auto_start` | *Optional[bool]* | :heavy_minus_sign: | This field will be required in a future release. | | `invalid_sample_skip_percentage` | *Optional[float]* | :heavy_minus_sign: | N/A | | `job_type` | [OptionalNullable[models.FineTuneableModelType]](../../models/finetuneablemodeltype.md) | :heavy_minus_sign: | N/A | -| `repositories` | List[[models.JobInRepository](../../models/jobinrepository.md)] | :heavy_minus_sign: | N/A | +| `repositories` | List[[models.CreateFineTuningJobRequestRepository](../../models/createfinetuningjobrequestrepository.md)] | :heavy_minus_sign: | N/A | | `classifier_targets` | List[[models.ClassifierTargetIn](../../models/classifiertargetin.md)] | :heavy_minus_sign: | N/A | | `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response -**[models.CreateFineTuningJobResponse](../../models/createfinetuningjobresponse.md)** +**[models.CreateFineTuningJobResponseUnion2](../../models/createfinetuningjobresponseunion2.md)** ### Errors @@ -117,7 +117,7 @@ Get a fine-tuned job details by its UUID. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -127,7 +127,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.fine_tuning.jobs.get(job_id="2855f873-414e-4cf5-a46e-e589e39ee809") + res = mistral.fine_tuning.jobs.get(job_id="c167a961-ffca-4bcf-93ac-6169468dd389") # Handle response print(res) @@ -157,7 +157,7 @@ Request the cancellation of a fine tuning job. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -167,7 +167,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.fine_tuning.jobs.cancel(job_id="ee7d6f03-fcbb-43ca-8f17-0388c0832eb9") + res = mistral.fine_tuning.jobs.cancel(job_id="6188a2f6-7513-4e0f-89cc-3f8088523a49") # Handle response print(res) @@ -197,7 +197,7 @@ Request the start of a validated fine tuning job. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -207,7 +207,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.fine_tuning.jobs.start(job_id="da371429-0ec2-4cea-b9c7-73ce3a1dd76f") + res = mistral.fine_tuning.jobs.start(job_id="56553e4d-0679-471e-b9ac-59a77d671103") # Handle response print(res) diff --git a/docs/sdks/libraries/README.md b/docs/sdks/libraries/README.md index 8835d0ec..aa073e22 100644 --- a/docs/sdks/libraries/README.md +++ b/docs/sdks/libraries/README.md @@ -18,7 +18,7 @@ List all libraries that you have created or have been shared with you. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -43,7 +43,7 @@ with Mistral( ### Response -**[models.ListLibraryOut](../../models/listlibraryout.md)** +**[models.ListLibrariesResponse](../../models/listlibrariesresponse.md)** ### Errors @@ -57,7 +57,7 @@ Create a new Library, you will be marked as the owner and only you will have the ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -85,7 +85,7 @@ with Mistral( ### Response -**[models.LibraryOut](../../models/libraryout.md)** +**[models.Library](../../models/library.md)** ### Errors @@ -100,7 +100,7 @@ Given a library id, details information about that Library. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -110,7 +110,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.get(library_id="44e385d6-783e-4b21-8fae-5181e6817bc4") + res = mistral.beta.libraries.get(library_id="d0d23a1e-bfe5-45e7-b7bb-22a4ea78d47f") # Handle response print(res) @@ -126,7 +126,7 @@ with Mistral( ### Response -**[models.LibraryOut](../../models/libraryout.md)** +**[models.Library](../../models/library.md)** ### Errors @@ -141,7 +141,7 @@ Given a library id, deletes it together with all documents that have been upload ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -151,7 +151,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.delete(library_id="441ba08a-3d1f-4700-8d6f-f32eeed49dff") + res = mistral.beta.libraries.delete(library_id="6cad0b6e-fd2e-4d11-a48b-21d30fb7c17a") # Handle response print(res) @@ -167,7 +167,7 @@ with Mistral( ### Response -**[models.LibraryOut](../../models/libraryout.md)** +**[models.Library](../../models/library.md)** ### Errors @@ -182,7 +182,7 @@ Given a library id, you can update the name and description. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -192,7 +192,7 @@ with Mistral( api_key=os.getenv("MISTRAL_API_KEY", ""), ) as mistral: - res = mistral.beta.libraries.update(library_id="27049553-3425-49ce-b965-fcb3a7ab03a3") + res = mistral.beta.libraries.update(library_id="e01880c3-d0b5-4a29-8b1b-abdb8ce917e4") # Handle response print(res) @@ -210,7 +210,7 @@ with Mistral( ### Response -**[models.LibraryOut](../../models/libraryout.md)** +**[models.Library](../../models/library.md)** ### Errors diff --git a/docs/sdks/models/README.md b/docs/sdks/models/README.md index 0cbf1bdd..926646b3 100644 --- a/docs/sdks/models/README.md +++ b/docs/sdks/models/README.md @@ -19,7 +19,7 @@ List all models available to the user. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -58,7 +58,7 @@ Retrieve information about a model. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -84,7 +84,7 @@ with Mistral( ### Response -**[models.ResponseRetrieveModelV1ModelsModelIDGet](../../models/responseretrievemodelv1modelsmodelidget.md)** +**[models.GetModelResponse](../../models/getmodelresponse.md)** ### Errors @@ -99,7 +99,7 @@ Delete a fine-tuned model. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -140,7 +140,7 @@ Update a model name or description. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -182,7 +182,7 @@ Archive a fine-tuned model. ### Example Usage - + ```python from mistralai.client import Mistral import os @@ -222,7 +222,7 @@ Un-archive a fine-tuned model. ### Example Usage - + ```python from mistralai.client import Mistral import os diff --git a/docs/sdks/ocr/README.md b/docs/sdks/ocr/README.md index 9fd9d6fc..cc57a427 100644 --- a/docs/sdks/ocr/README.md +++ b/docs/sdks/ocr/README.md @@ -45,7 +45,7 @@ with Mistral( | Parameter | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `model` | *Nullable[str]* | :heavy_check_mark: | N/A | | -| `document` | [models.Document](../../models/document.md) | :heavy_check_mark: | Document to run OCR on | | +| `document` | [models.DocumentUnion](../../models/documentunion.md) | :heavy_check_mark: | Document to run OCR on | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `pages` | List[*int*] | :heavy_minus_sign: | Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0 | | | `include_image_base64` | *OptionalNullable[bool]* | :heavy_minus_sign: | Include image URLs in response | | diff --git a/examples/mistral/typing_example.py b/examples/mistral/typing_example.py new file mode 100644 index 00000000..527df235 --- /dev/null +++ b/examples/mistral/typing_example.py @@ -0,0 +1,90 @@ +#!/usr/bin/env python +""" +Example demonstrating typed SDK usage. + +This file is type-checked by mypy in CI to ensure the SDK types are correct. +""" + +import os + +from mistralai.client import Mistral +from mistralai.client.models import ( + # Entity schemas - the actual resources + BatchJob, + FileObject, + Library, + # Response schemas - wrappers for list/delete operations + ListBatchJobsResponse, + ListFilesResponse, + ListLibrariesResponse, + # Request schemas exist but users typically use kwargs instead +) + + +def demo_batch_jobs(client: Mistral) -> None: + """Demonstrate BatchJob typing.""" + # list() returns ListBatchJobsResponse + response: ListBatchJobsResponse = client.batch.jobs.list(page_size=10) + + # response.data is List[BatchJob] (may be None) + jobs: list[BatchJob] = response.data or [] + + for job in jobs: + # BatchJob has typed attributes + job_id: str = job.id + status: str = job.status + created_at: int = job.created_at + print(f"Job {job_id}: {status} (created: {created_at})") + + +def demo_files(client: Mistral) -> None: + """Demonstrate File typing.""" + # list() returns ListFilesResponse + response: ListFilesResponse = client.files.list(page_size=10) + + # response.data is List[FileObject] + files: list[FileObject] = response.data + + for file in files: + # FileObject has typed attributes + file_id: str = file.id + filename: str = file.filename + size: int = file.size_bytes + print(f"File {file_id}: {filename} ({size} bytes)") + + +def demo_libraries(client: Mistral) -> None: + """Demonstrate Library typing.""" + # list() returns ListLibrariesResponse + response: ListLibrariesResponse = client.libraries.list() + + # response.data is List[Library] + libraries: list[Library] = response.data + + for lib in libraries: + # Library has typed attributes + lib_id: str = str(lib.id) + name: str = lib.name + print(f"Library {lib_id}: {name}") + + +def main() -> None: + api_key = os.environ.get("MISTRAL_API_KEY") + if not api_key: + print("MISTRAL_API_KEY not set, skipping runtime demo") + return + + client = Mistral(api_key=api_key) + + print("=== Batch Jobs ===") + demo_batch_jobs(client) + + print("\n=== Files ===") + demo_files(client) + + print("\n=== Libraries ===") + demo_libraries(client) + + +if __name__ == "__main__": + main() diff --git a/src/mistralai/client/accesses.py b/src/mistralai/client/accesses.py index cda484c8..2c107c1c 100644 --- a/src/mistralai/client/accesses.py +++ b/src/mistralai/client/accesses.py @@ -25,7 +25,7 @@ def list( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListSharingOut: + ) -> models.ListLibraryAccessesResponse: r"""List all of the access to this library. Given a library, list all of the Entity that have access and to what level. @@ -46,7 +46,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListLibraryAccessesRequest( + request = models.LibrariesShareListV1Request( library_id=library_id, ) @@ -79,7 +79,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListLibraryAccesses", + operation_id="libraries_share_list_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -92,7 +92,7 @@ def list( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListSharingOut, http_res) + return unmarshal_json_response(models.ListLibraryAccessesResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -115,7 +115,7 @@ async def list_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListSharingOut: + ) -> models.ListLibraryAccessesResponse: r"""List all of the access to this library. Given a library, list all of the Entity that have access and to what level. @@ -136,7 +136,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListLibraryAccessesRequest( + request = models.LibrariesShareListV1Request( library_id=library_id, ) @@ -169,7 +169,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListLibraryAccesses", + operation_id="libraries_share_list_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -182,7 +182,7 @@ async def list_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListSharingOut, http_res) + return unmarshal_json_response(models.ListLibraryAccessesResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -209,7 +209,7 @@ def update_or_create( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SharingOut: + ) -> models.Sharing: r"""Create or update an access level. Given a library id, you can create or update the access level of an entity. You have to be owner of the library to share a library. An owner cannot change their own role. A library cannot be shared outside of the organization. @@ -234,9 +234,9 @@ def update_or_create( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateOrCreateLibraryAccessRequest( + request = models.LibrariesShareCreateV1Request( library_id=library_id, - sharing_in=models.SharingIn( + update_or_create_library_access_request=models.UpdateOrCreateLibraryAccessRequest( org_id=org_id, level=level, share_with_uuid=share_with_uuid, @@ -258,7 +258,11 @@ def update_or_create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.sharing_in, False, False, "json", models.SharingIn + request.update_or_create_library_access_request, + False, + False, + "json", + models.UpdateOrCreateLibraryAccessRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -276,7 +280,7 @@ def update_or_create( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateOrCreateLibraryAccess", + operation_id="libraries_share_create_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -289,7 +293,7 @@ def update_or_create( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.SharingOut, http_res) + return unmarshal_json_response(models.Sharing, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -316,7 +320,7 @@ async def update_or_create_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SharingOut: + ) -> models.Sharing: r"""Create or update an access level. Given a library id, you can create or update the access level of an entity. You have to be owner of the library to share a library. An owner cannot change their own role. A library cannot be shared outside of the organization. @@ -341,9 +345,9 @@ async def update_or_create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateOrCreateLibraryAccessRequest( + request = models.LibrariesShareCreateV1Request( library_id=library_id, - sharing_in=models.SharingIn( + update_or_create_library_access_request=models.UpdateOrCreateLibraryAccessRequest( org_id=org_id, level=level, share_with_uuid=share_with_uuid, @@ -365,7 +369,11 @@ async def update_or_create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.sharing_in, False, False, "json", models.SharingIn + request.update_or_create_library_access_request, + False, + False, + "json", + models.UpdateOrCreateLibraryAccessRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -383,7 +391,7 @@ async def update_or_create_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateOrCreateLibraryAccess", + operation_id="libraries_share_create_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -396,7 +404,7 @@ async def update_or_create_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.SharingOut, http_res) + return unmarshal_json_response(models.Sharing, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -422,7 +430,7 @@ def delete( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SharingOut: + ) -> models.Sharing: r"""Delete an access level. Given a library id, you can delete the access level of an entity. An owner cannot delete it's own access. You have to be the owner of the library to delete an acces other than yours. @@ -446,7 +454,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteLibraryAccessRequest( + request = models.LibrariesShareDeleteV1Request( library_id=library_id, sharing_delete=models.SharingDelete( org_id=org_id, @@ -487,7 +495,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteLibraryAccess", + operation_id="libraries_share_delete_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -500,7 +508,7 @@ def delete( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.SharingOut, http_res) + return unmarshal_json_response(models.Sharing, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -526,7 +534,7 @@ async def delete_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.SharingOut: + ) -> models.Sharing: r"""Delete an access level. Given a library id, you can delete the access level of an entity. An owner cannot delete it's own access. You have to be the owner of the library to delete an acces other than yours. @@ -550,7 +558,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteLibraryAccessRequest( + request = models.LibrariesShareDeleteV1Request( library_id=library_id, sharing_delete=models.SharingDelete( org_id=org_id, @@ -591,7 +599,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteLibraryAccess", + operation_id="libraries_share_delete_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -604,7 +612,7 @@ async def delete_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.SharingOut, http_res) + return unmarshal_json_response(models.Sharing, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res diff --git a/src/mistralai/client/batch_jobs.py b/src/mistralai/client/batch_jobs.py index 752c7652..6d32a579 100644 --- a/src/mistralai/client/batch_jobs.py +++ b/src/mistralai/client/batch_jobs.py @@ -9,7 +9,7 @@ apiendpoint as models_apiendpoint, batchjobstatus as models_batchjobstatus, batchrequest as models_batchrequest, - listbatchjobsop as models_listbatchjobsop, + jobs_api_routes_batch_get_batch_jobsop as models_jobs_api_routes_batch_get_batch_jobsop, ) from mistralai.client.types import OptionalNullable, UNSET from mistralai.client.utils import get_security_from_env @@ -29,12 +29,14 @@ def list( created_after: OptionalNullable[datetime] = UNSET, created_by_me: Optional[bool] = False, status: OptionalNullable[List[models_batchjobstatus.BatchJobStatus]] = UNSET, - order_by: Optional[models_listbatchjobsop.OrderBy] = "-created", + order_by: Optional[ + models_jobs_api_routes_batch_get_batch_jobsop.OrderBy + ] = "-created", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobsOut: + ) -> models.ListBatchJobsResponse: r"""Get Batch Jobs Get a list of batch jobs for your organization and user. @@ -63,7 +65,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListBatchJobsRequest( + request = models.JobsAPIRoutesBatchGetBatchJobsRequest( page=page, page_size=page_size, model=model, @@ -104,7 +106,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListBatchJobs", + operation_id="jobs_api_routes_batch_get_batch_jobs", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -116,7 +118,7 @@ def list( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobsOut, http_res) + return unmarshal_json_response(models.ListBatchJobsResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -137,12 +139,14 @@ async def list_async( created_after: OptionalNullable[datetime] = UNSET, created_by_me: Optional[bool] = False, status: OptionalNullable[List[models_batchjobstatus.BatchJobStatus]] = UNSET, - order_by: Optional[models_listbatchjobsop.OrderBy] = "-created", + order_by: Optional[ + models_jobs_api_routes_batch_get_batch_jobsop.OrderBy + ] = "-created", retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobsOut: + ) -> models.ListBatchJobsResponse: r"""Get Batch Jobs Get a list of batch jobs for your organization and user. @@ -171,7 +175,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListBatchJobsRequest( + request = models.JobsAPIRoutesBatchGetBatchJobsRequest( page=page, page_size=page_size, model=model, @@ -212,7 +216,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListBatchJobs", + operation_id="jobs_api_routes_batch_get_batch_jobs", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -224,7 +228,7 @@ async def list_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobsOut, http_res) + return unmarshal_json_response(models.ListBatchJobsResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -253,7 +257,7 @@ def create( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobOut: + ) -> models.BatchJob: r"""Create Batch Job Create a new batch job, it will be queued for processing. @@ -280,7 +284,7 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.BatchJobIn( + request = models.CreateBatchJobRequest( input_files=input_files, requests=utils.get_pydantic_model( requests, OptionalNullable[List[models.BatchRequest]] @@ -306,7 +310,7 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.BatchJobIn + request, False, False, "json", models.CreateBatchJobRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -324,7 +328,7 @@ def create( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateBatchJob", + operation_id="jobs_api_routes_batch_create_batch_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -336,7 +340,7 @@ def create( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobOut, http_res) + return unmarshal_json_response(models.BatchJob, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -365,7 +369,7 @@ async def create_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobOut: + ) -> models.BatchJob: r"""Create Batch Job Create a new batch job, it will be queued for processing. @@ -392,7 +396,7 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.BatchJobIn( + request = models.CreateBatchJobRequest( input_files=input_files, requests=utils.get_pydantic_model( requests, OptionalNullable[List[models.BatchRequest]] @@ -418,7 +422,7 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.BatchJobIn + request, False, False, "json", models.CreateBatchJobRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -436,7 +440,7 @@ async def create_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateBatchJob", + operation_id="jobs_api_routes_batch_create_batch_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -448,7 +452,7 @@ async def create_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobOut, http_res) + return unmarshal_json_response(models.BatchJob, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -467,7 +471,7 @@ def get( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobOut: + ) -> models.BatchJob: r"""Get Batch Job Get a batch job details by its UUID. @@ -492,7 +496,7 @@ def get( else: base_url = self._get_url(base_url, url_variables) - request = models.GetBatchJobRequest( + request = models.JobsAPIRoutesBatchGetBatchJobRequest( job_id=job_id, inline=inline, ) @@ -526,7 +530,7 @@ def get( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetBatchJob", + operation_id="jobs_api_routes_batch_get_batch_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -538,7 +542,7 @@ def get( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobOut, http_res) + return unmarshal_json_response(models.BatchJob, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -557,7 +561,7 @@ async def get_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobOut: + ) -> models.BatchJob: r"""Get Batch Job Get a batch job details by its UUID. @@ -582,7 +586,7 @@ async def get_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetBatchJobRequest( + request = models.JobsAPIRoutesBatchGetBatchJobRequest( job_id=job_id, inline=inline, ) @@ -616,7 +620,7 @@ async def get_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetBatchJob", + operation_id="jobs_api_routes_batch_get_batch_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -628,7 +632,7 @@ async def get_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobOut, http_res) + return unmarshal_json_response(models.BatchJob, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -646,7 +650,7 @@ def cancel( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobOut: + ) -> models.BatchJob: r"""Cancel Batch Job Request the cancellation of a batch job. @@ -667,7 +671,7 @@ def cancel( else: base_url = self._get_url(base_url, url_variables) - request = models.CancelBatchJobRequest( + request = models.JobsAPIRoutesBatchCancelBatchJobRequest( job_id=job_id, ) @@ -700,7 +704,7 @@ def cancel( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CancelBatchJob", + operation_id="jobs_api_routes_batch_cancel_batch_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -712,7 +716,7 @@ def cancel( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobOut, http_res) + return unmarshal_json_response(models.BatchJob, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -730,7 +734,7 @@ async def cancel_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.BatchJobOut: + ) -> models.BatchJob: r"""Cancel Batch Job Request the cancellation of a batch job. @@ -751,7 +755,7 @@ async def cancel_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CancelBatchJobRequest( + request = models.JobsAPIRoutesBatchCancelBatchJobRequest( job_id=job_id, ) @@ -784,7 +788,7 @@ async def cancel_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CancelBatchJob", + operation_id="jobs_api_routes_batch_cancel_batch_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -796,7 +800,7 @@ async def cancel_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.BatchJobOut, http_res) + return unmarshal_json_response(models.BatchJob, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) diff --git a/src/mistralai/client/beta_agents.py b/src/mistralai/client/beta_agents.py index 4e692f17..f87743b3 100644 --- a/src/mistralai/client/beta_agents.py +++ b/src/mistralai/client/beta_agents.py @@ -6,9 +6,9 @@ from mistralai.client._hooks import HookContext from mistralai.client.models import ( agentcreationrequest as models_agentcreationrequest, + agents_api_v1_agents_getop as models_agents_api_v1_agents_getop, agentupdaterequest as models_agentupdaterequest, completionargs as models_completionargs, - getagentop as models_getagentop, requestsource as models_requestsource, ) from mistralai.client.types import OptionalNullable, UNSET @@ -123,7 +123,7 @@ def create( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateAgent", + operation_id="agents_api_v1_agents_create", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -254,7 +254,7 @@ async def create_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateAgent", + operation_id="agents_api_v1_agents_create", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -325,7 +325,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAgentsRequest( + request = models.AgentsAPIV1AgentsListRequest( page=page, page_size=page_size, deployment_chat=deployment_chat, @@ -365,7 +365,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListAgents", + operation_id="agents_api_v1_agents_list", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -436,7 +436,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAgentsRequest( + request = models.AgentsAPIV1AgentsListRequest( page=page, page_size=page_size, deployment_chat=deployment_chat, @@ -476,7 +476,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListAgents", + operation_id="agents_api_v1_agents_list", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -510,8 +510,8 @@ def get( agent_id: str, agent_version: OptionalNullable[ Union[ - models_getagentop.GetAgentAgentVersion, - models_getagentop.GetAgentAgentVersionTypedDict, + models_agents_api_v1_agents_getop.AgentsAPIV1AgentsGetAgentVersion, + models_agents_api_v1_agents_getop.AgentsAPIV1AgentsGetAgentVersionTypedDict, ] ] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -540,7 +540,7 @@ def get( else: base_url = self._get_url(base_url, url_variables) - request = models.GetAgentRequest( + request = models.AgentsAPIV1AgentsGetRequest( agent_id=agent_id, agent_version=agent_version, ) @@ -574,7 +574,7 @@ def get( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetAgent", + operation_id="agents_api_v1_agents_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -608,8 +608,8 @@ async def get_async( agent_id: str, agent_version: OptionalNullable[ Union[ - models_getagentop.GetAgentAgentVersion, - models_getagentop.GetAgentAgentVersionTypedDict, + models_agents_api_v1_agents_getop.AgentsAPIV1AgentsGetAgentVersion, + models_agents_api_v1_agents_getop.AgentsAPIV1AgentsGetAgentVersionTypedDict, ] ] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, @@ -638,7 +638,7 @@ async def get_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetAgentRequest( + request = models.AgentsAPIV1AgentsGetRequest( agent_id=agent_id, agent_version=agent_version, ) @@ -672,7 +672,7 @@ async def get_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetAgent", + operation_id="agents_api_v1_agents_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -759,7 +759,7 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateAgentRequest( + request = models.AgentsAPIV1AgentsUpdateRequest( agent_id=agent_id, agent_update_request=models.AgentUpdateRequest( instructions=instructions, @@ -815,7 +815,7 @@ def update( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateAgent", + operation_id="agents_api_v1_agents_update", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -902,7 +902,7 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateAgentRequest( + request = models.AgentsAPIV1AgentsUpdateRequest( agent_id=agent_id, agent_update_request=models.AgentUpdateRequest( instructions=instructions, @@ -958,7 +958,7 @@ async def update_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateAgent", + operation_id="agents_api_v1_agents_update", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1013,7 +1013,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAgentRequest( + request = models.AgentsAPIV1AgentsDeleteRequest( agent_id=agent_id, ) @@ -1046,7 +1046,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteAgent", + operation_id="agents_api_v1_agents_delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1101,7 +1101,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAgentRequest( + request = models.AgentsAPIV1AgentsDeleteRequest( agent_id=agent_id, ) @@ -1134,7 +1134,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteAgent", + operation_id="agents_api_v1_agents_delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1193,7 +1193,7 @@ def update_version( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateAgentVersionRequest( + request = models.AgentsAPIV1AgentsUpdateVersionRequest( agent_id=agent_id, version=version, ) @@ -1227,7 +1227,7 @@ def update_version( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateAgentVersion", + operation_id="agents_api_v1_agents_update_version", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1286,7 +1286,7 @@ async def update_version_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateAgentVersionRequest( + request = models.AgentsAPIV1AgentsUpdateVersionRequest( agent_id=agent_id, version=version, ) @@ -1320,7 +1320,7 @@ async def update_version_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateAgentVersion", + operation_id="agents_api_v1_agents_update_version", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1381,7 +1381,7 @@ def list_versions( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAgentVersionsRequest( + request = models.AgentsAPIV1AgentsListVersionsRequest( agent_id=agent_id, page=page, page_size=page_size, @@ -1416,7 +1416,7 @@ def list_versions( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListAgentVersions", + operation_id="agents_api_v1_agents_list_versions", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1477,7 +1477,7 @@ async def list_versions_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAgentVersionsRequest( + request = models.AgentsAPIV1AgentsListVersionsRequest( agent_id=agent_id, page=page, page_size=page_size, @@ -1512,7 +1512,7 @@ async def list_versions_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListAgentVersions", + operation_id="agents_api_v1_agents_list_versions", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1571,7 +1571,7 @@ def get_version( else: base_url = self._get_url(base_url, url_variables) - request = models.GetAgentVersionRequest( + request = models.AgentsAPIV1AgentsGetVersionRequest( agent_id=agent_id, version=version, ) @@ -1605,7 +1605,7 @@ def get_version( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetAgentVersion", + operation_id="agents_api_v1_agents_get_version", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1664,7 +1664,7 @@ async def get_version_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetAgentVersionRequest( + request = models.AgentsAPIV1AgentsGetVersionRequest( agent_id=agent_id, version=version, ) @@ -1698,7 +1698,7 @@ async def get_version_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetAgentVersion", + operation_id="agents_api_v1_agents_get_version", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1759,7 +1759,7 @@ def create_version_alias( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateOrUpdateAgentAliasRequest( + request = models.AgentsAPIV1AgentsCreateOrUpdateAliasRequest( agent_id=agent_id, alias=alias, version=version, @@ -1794,7 +1794,7 @@ def create_version_alias( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateOrUpdateAgentAlias", + operation_id="agents_api_v1_agents_create_or_update_alias", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1855,7 +1855,7 @@ async def create_version_alias_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CreateOrUpdateAgentAliasRequest( + request = models.AgentsAPIV1AgentsCreateOrUpdateAliasRequest( agent_id=agent_id, alias=alias, version=version, @@ -1890,7 +1890,7 @@ async def create_version_alias_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateOrUpdateAgentAlias", + operation_id="agents_api_v1_agents_create_or_update_alias", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1947,7 +1947,7 @@ def list_version_aliases( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAgentAliasesRequest( + request = models.AgentsAPIV1AgentsListVersionAliasesRequest( agent_id=agent_id, ) @@ -1980,7 +1980,7 @@ def list_version_aliases( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListAgentAliases", + operation_id="agents_api_v1_agents_list_version_aliases", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2037,7 +2037,7 @@ async def list_version_aliases_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListAgentAliasesRequest( + request = models.AgentsAPIV1AgentsListVersionAliasesRequest( agent_id=agent_id, ) @@ -2070,7 +2070,7 @@ async def list_version_aliases_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListAgentAliases", + operation_id="agents_api_v1_agents_list_version_aliases", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2129,7 +2129,7 @@ def delete_version_alias( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAgentAliasRequest( + request = models.AgentsAPIV1AgentsDeleteAliasRequest( agent_id=agent_id, alias=alias, ) @@ -2163,7 +2163,7 @@ def delete_version_alias( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteAgentAlias", + operation_id="agents_api_v1_agents_delete_alias", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2222,7 +2222,7 @@ async def delete_version_alias_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteAgentAliasRequest( + request = models.AgentsAPIV1AgentsDeleteAliasRequest( agent_id=agent_id, alias=alias, ) @@ -2256,7 +2256,7 @@ async def delete_version_alias_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteAgentAlias", + operation_id="agents_api_v1_agents_delete_alias", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/conversations.py b/src/mistralai/client/conversations.py index 646b91f3..3f46fe81 100644 --- a/src/mistralai/client/conversations.py +++ b/src/mistralai/client/conversations.py @@ -360,7 +360,7 @@ def start( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="StartConversation", + operation_id="agents_api_v1_conversations_start", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -513,7 +513,7 @@ async def start_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="StartConversation", + operation_id="agents_api_v1_conversations_start", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -551,7 +551,7 @@ def list( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> List[models.ListConversationsResponse]: + ) -> List[models.AgentsAPIV1ConversationsListResponse]: r"""List all created conversations. Retrieve a list of conversation entities sorted by creation time. @@ -574,7 +574,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListConversationsRequest( + request = models.AgentsAPIV1ConversationsListRequest( page=page, page_size=page_size, metadata=metadata, @@ -609,7 +609,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListConversations", + operation_id="agents_api_v1_conversations_list", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -623,7 +623,7 @@ def list( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - List[models.ListConversationsResponse], http_res + List[models.AgentsAPIV1ConversationsListResponse], http_res ) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( @@ -649,7 +649,7 @@ async def list_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> List[models.ListConversationsResponse]: + ) -> List[models.AgentsAPIV1ConversationsListResponse]: r"""List all created conversations. Retrieve a list of conversation entities sorted by creation time. @@ -672,7 +672,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListConversationsRequest( + request = models.AgentsAPIV1ConversationsListRequest( page=page, page_size=page_size, metadata=metadata, @@ -707,7 +707,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListConversations", + operation_id="agents_api_v1_conversations_list", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -721,7 +721,7 @@ async def list_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): return unmarshal_json_response( - List[models.ListConversationsResponse], http_res + List[models.AgentsAPIV1ConversationsListResponse], http_res ) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( @@ -745,7 +745,7 @@ def get( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ResponseV1ConversationsGet: + ) -> models.GetConversationResponse: r"""Retrieve a conversation information. Given a conversation_id retrieve a conversation entity with its attributes. @@ -766,7 +766,7 @@ def get( else: base_url = self._get_url(base_url, url_variables) - request = models.GetConversationRequest( + request = models.AgentsAPIV1ConversationsGetRequest( conversation_id=conversation_id, ) @@ -799,7 +799,7 @@ def get( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetConversation", + operation_id="agents_api_v1_conversations_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -812,7 +812,7 @@ def get( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ResponseV1ConversationsGet, http_res) + return unmarshal_json_response(models.GetConversationResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -835,7 +835,7 @@ async def get_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ResponseV1ConversationsGet: + ) -> models.GetConversationResponse: r"""Retrieve a conversation information. Given a conversation_id retrieve a conversation entity with its attributes. @@ -856,7 +856,7 @@ async def get_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetConversationRequest( + request = models.AgentsAPIV1ConversationsGetRequest( conversation_id=conversation_id, ) @@ -889,7 +889,7 @@ async def get_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetConversation", + operation_id="agents_api_v1_conversations_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -902,7 +902,7 @@ async def get_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ResponseV1ConversationsGet, http_res) + return unmarshal_json_response(models.GetConversationResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -946,7 +946,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteConversationRequest( + request = models.AgentsAPIV1ConversationsDeleteRequest( conversation_id=conversation_id, ) @@ -979,7 +979,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteConversation", + operation_id="agents_api_v1_conversations_delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1036,7 +1036,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteConversationRequest( + request = models.AgentsAPIV1ConversationsDeleteRequest( conversation_id=conversation_id, ) @@ -1069,7 +1069,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteConversation", + operation_id="agents_api_v1_conversations_delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1146,7 +1146,7 @@ def append( else: base_url = self._get_url(base_url, url_variables) - request = models.AppendConversationRequest( + request = models.AgentsAPIV1ConversationsAppendRequest( conversation_id=conversation_id, conversation_append_request=models.ConversationAppendRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -1195,7 +1195,7 @@ def append( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="AppendConversation", + operation_id="agents_api_v1_conversations_append", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1272,7 +1272,7 @@ async def append_async( else: base_url = self._get_url(base_url, url_variables) - request = models.AppendConversationRequest( + request = models.AgentsAPIV1ConversationsAppendRequest( conversation_id=conversation_id, conversation_append_request=models.ConversationAppendRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -1321,7 +1321,7 @@ async def append_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="AppendConversation", + operation_id="agents_api_v1_conversations_append", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1378,7 +1378,7 @@ def get_history( else: base_url = self._get_url(base_url, url_variables) - request = models.GetConversationHistoryRequest( + request = models.AgentsAPIV1ConversationsHistoryRequest( conversation_id=conversation_id, ) @@ -1411,7 +1411,7 @@ def get_history( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetConversationHistory", + operation_id="agents_api_v1_conversations_history", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1468,7 +1468,7 @@ async def get_history_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetConversationHistoryRequest( + request = models.AgentsAPIV1ConversationsHistoryRequest( conversation_id=conversation_id, ) @@ -1501,7 +1501,7 @@ async def get_history_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetConversationHistory", + operation_id="agents_api_v1_conversations_history", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1558,7 +1558,7 @@ def get_messages( else: base_url = self._get_url(base_url, url_variables) - request = models.GetConversationMessagesRequest( + request = models.AgentsAPIV1ConversationsMessagesRequest( conversation_id=conversation_id, ) @@ -1591,7 +1591,7 @@ def get_messages( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetConversationMessages", + operation_id="agents_api_v1_conversations_messages", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1648,7 +1648,7 @@ async def get_messages_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetConversationMessagesRequest( + request = models.AgentsAPIV1ConversationsMessagesRequest( conversation_id=conversation_id, ) @@ -1681,7 +1681,7 @@ async def get_messages_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetConversationMessages", + operation_id="agents_api_v1_conversations_messages", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1769,7 +1769,7 @@ def restart( else: base_url = self._get_url(base_url, url_variables) - request = models.RestartConversationRequest( + request = models.AgentsAPIV1ConversationsRestartRequest( conversation_id=conversation_id, conversation_restart_request=models.ConversationRestartRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -1821,7 +1821,7 @@ def restart( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RestartConversation", + operation_id="agents_api_v1_conversations_restart", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1909,7 +1909,7 @@ async def restart_async( else: base_url = self._get_url(base_url, url_variables) - request = models.RestartConversationRequest( + request = models.AgentsAPIV1ConversationsRestartRequest( conversation_id=conversation_id, conversation_restart_request=models.ConversationRestartRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -1961,7 +1961,7 @@ async def restart_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RestartConversation", + operation_id="agents_api_v1_conversations_restart", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2116,7 +2116,7 @@ def start_stream( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="StartConversationStream", + operation_id="agents_api_v1_conversations_start_stream", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2278,7 +2278,7 @@ async def start_stream_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="StartConversationStream", + operation_id="agents_api_v1_conversations_start_stream", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2362,7 +2362,7 @@ def append_stream( else: base_url = self._get_url(base_url, url_variables) - request = models.AppendConversationStreamRequest( + request = models.AgentsAPIV1ConversationsAppendStreamRequest( conversation_id=conversation_id, conversation_append_stream_request=models.ConversationAppendStreamRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -2411,7 +2411,7 @@ def append_stream( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="AppendConversationStream", + operation_id="agents_api_v1_conversations_append_stream", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2495,7 +2495,7 @@ async def append_stream_async( else: base_url = self._get_url(base_url, url_variables) - request = models.AppendConversationStreamRequest( + request = models.AgentsAPIV1ConversationsAppendStreamRequest( conversation_id=conversation_id, conversation_append_stream_request=models.ConversationAppendStreamRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -2544,7 +2544,7 @@ async def append_stream_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="AppendConversationStream", + operation_id="agents_api_v1_conversations_append_stream", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2639,7 +2639,7 @@ def restart_stream( else: base_url = self._get_url(base_url, url_variables) - request = models.RestartConversationStreamRequest( + request = models.AgentsAPIV1ConversationsRestartStreamRequest( conversation_id=conversation_id, conversation_restart_stream_request=models.ConversationRestartStreamRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -2691,7 +2691,7 @@ def restart_stream( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RestartConversationStream", + operation_id="agents_api_v1_conversations_restart_stream", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -2786,7 +2786,7 @@ async def restart_stream_async( else: base_url = self._get_url(base_url, url_variables) - request = models.RestartConversationStreamRequest( + request = models.AgentsAPIV1ConversationsRestartStreamRequest( conversation_id=conversation_id, conversation_restart_stream_request=models.ConversationRestartStreamRequest( inputs=utils.get_pydantic_model(inputs, models.ConversationInputs), @@ -2838,7 +2838,7 @@ async def restart_stream_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RestartConversationStream", + operation_id="agents_api_v1_conversations_restart_stream", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/documents.py b/src/mistralai/client/documents.py index c78f2944..216d9a30 100644 --- a/src/mistralai/client/documents.py +++ b/src/mistralai/client/documents.py @@ -5,7 +5,7 @@ from mistralai.client import models, utils from mistralai.client._hooks import HookContext from mistralai.client.models import ( - documentupdatein as models_documentupdatein, + documentupdaterequest as models_documentupdaterequest, file as models_file, ) from mistralai.client.types import OptionalNullable, UNSET @@ -31,7 +31,7 @@ def list( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListDocumentOut: + ) -> models.ListDocumentsResponse: r"""List documents in a given library. Given a library, lists the document that have been uploaded to that library. @@ -58,7 +58,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListDocumentsRequest( + request = models.LibrariesDocumentsListV1Request( library_id=library_id, search=search, page_size=page_size, @@ -97,7 +97,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListDocuments", + operation_id="libraries_documents_list_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -110,7 +110,7 @@ def list( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListDocumentOut, http_res) + return unmarshal_json_response(models.ListDocumentsResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -139,7 +139,7 @@ async def list_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListDocumentOut: + ) -> models.ListDocumentsResponse: r"""List documents in a given library. Given a library, lists the document that have been uploaded to that library. @@ -166,7 +166,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListDocumentsRequest( + request = models.LibrariesDocumentsListV1Request( library_id=library_id, search=search, page_size=page_size, @@ -205,7 +205,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListDocuments", + operation_id="libraries_documents_list_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -218,7 +218,7 @@ async def list_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListDocumentOut, http_res) + return unmarshal_json_response(models.ListDocumentsResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -242,7 +242,7 @@ def upload( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DocumentOut: + ) -> models.Document: r"""Upload a new document. Given a library, upload a new document to that library. It is queued for processing, it status will change it has been processed. The processing has to be completed in order be discoverable for the library search @@ -272,9 +272,9 @@ def upload( else: base_url = self._get_url(base_url, url_variables) - request = models.UploadDocumentRequest( + request = models.LibrariesDocumentsUploadV1Request( library_id=library_id, - request_body=models.DocumentUpload( + request_body=models.UploadDocumentRequest( file=utils.get_pydantic_model(file, models.File), ), ) @@ -293,7 +293,11 @@ def upload( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, False, False, "multipart", models.DocumentUpload + request.request_body, + False, + False, + "multipart", + models.UploadDocumentRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -311,7 +315,7 @@ def upload( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UploadDocument", + operation_id="libraries_documents_upload_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -324,7 +328,7 @@ def upload( response_data: Any = None if utils.match_response(http_res, ["200", "201"], "application/json"): - return unmarshal_json_response(models.DocumentOut, http_res) + return unmarshal_json_response(models.Document, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -348,7 +352,7 @@ async def upload_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DocumentOut: + ) -> models.Document: r"""Upload a new document. Given a library, upload a new document to that library. It is queued for processing, it status will change it has been processed. The processing has to be completed in order be discoverable for the library search @@ -378,9 +382,9 @@ async def upload_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UploadDocumentRequest( + request = models.LibrariesDocumentsUploadV1Request( library_id=library_id, - request_body=models.DocumentUpload( + request_body=models.UploadDocumentRequest( file=utils.get_pydantic_model(file, models.File), ), ) @@ -399,7 +403,11 @@ async def upload_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.request_body, False, False, "multipart", models.DocumentUpload + request.request_body, + False, + False, + "multipart", + models.UploadDocumentRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -417,7 +425,7 @@ async def upload_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UploadDocument", + operation_id="libraries_documents_upload_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -430,7 +438,7 @@ async def upload_async( response_data: Any = None if utils.match_response(http_res, ["200", "201"], "application/json"): - return unmarshal_json_response(models.DocumentOut, http_res) + return unmarshal_json_response(models.Document, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -454,7 +462,7 @@ def get( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DocumentOut: + ) -> models.Document: r"""Retrieve the metadata of a specific document. Given a library and a document in this library, you can retrieve the metadata of that document. @@ -476,7 +484,7 @@ def get( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentRequest( + request = models.LibrariesDocumentsGetV1Request( library_id=library_id, document_id=document_id, ) @@ -510,7 +518,7 @@ def get( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocument", + operation_id="libraries_documents_get_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -523,7 +531,7 @@ def get( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.DocumentOut, http_res) + return unmarshal_json_response(models.Document, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -547,7 +555,7 @@ async def get_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DocumentOut: + ) -> models.Document: r"""Retrieve the metadata of a specific document. Given a library and a document in this library, you can retrieve the metadata of that document. @@ -569,7 +577,7 @@ async def get_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentRequest( + request = models.LibrariesDocumentsGetV1Request( library_id=library_id, document_id=document_id, ) @@ -603,7 +611,7 @@ async def get_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocument", + operation_id="libraries_documents_get_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -616,7 +624,7 @@ async def get_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.DocumentOut, http_res) + return unmarshal_json_response(models.Document, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -639,15 +647,15 @@ def update( name: OptionalNullable[str] = UNSET, attributes: OptionalNullable[ Union[ - Dict[str, models_documentupdatein.Attributes], - Dict[str, models_documentupdatein.AttributesTypedDict], + Dict[str, models_documentupdaterequest.Attributes], + Dict[str, models_documentupdaterequest.AttributesTypedDict], ] ] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DocumentOut: + ) -> models.Document: r"""Update the metadata of a specific document. Given a library and a document in that library, update the name of that document. @@ -671,10 +679,10 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateDocumentRequest( + request = models.LibrariesDocumentsUpdateV1Request( library_id=library_id, document_id=document_id, - document_update_in=models.DocumentUpdateIn( + document_update_request=models.DocumentUpdateRequest( name=name, attributes=attributes, ), @@ -694,11 +702,11 @@ def update( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.document_update_in, + request.document_update_request, False, False, "json", - models.DocumentUpdateIn, + models.DocumentUpdateRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -716,7 +724,7 @@ def update( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateDocument", + operation_id="libraries_documents_update_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -729,7 +737,7 @@ def update( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.DocumentOut, http_res) + return unmarshal_json_response(models.Document, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -752,15 +760,15 @@ async def update_async( name: OptionalNullable[str] = UNSET, attributes: OptionalNullable[ Union[ - Dict[str, models_documentupdatein.Attributes], - Dict[str, models_documentupdatein.AttributesTypedDict], + Dict[str, models_documentupdaterequest.Attributes], + Dict[str, models_documentupdaterequest.AttributesTypedDict], ] ] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DocumentOut: + ) -> models.Document: r"""Update the metadata of a specific document. Given a library and a document in that library, update the name of that document. @@ -784,10 +792,10 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateDocumentRequest( + request = models.LibrariesDocumentsUpdateV1Request( library_id=library_id, document_id=document_id, - document_update_in=models.DocumentUpdateIn( + document_update_request=models.DocumentUpdateRequest( name=name, attributes=attributes, ), @@ -807,11 +815,11 @@ async def update_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request.document_update_in, + request.document_update_request, False, False, "json", - models.DocumentUpdateIn, + models.DocumentUpdateRequest, ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -829,7 +837,7 @@ async def update_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateDocument", + operation_id="libraries_documents_update_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -842,7 +850,7 @@ async def update_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.DocumentOut, http_res) + return unmarshal_json_response(models.Document, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -888,7 +896,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteDocumentRequest( + request = models.LibrariesDocumentsDeleteV1Request( library_id=library_id, document_id=document_id, ) @@ -922,7 +930,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteDocument", + operation_id="libraries_documents_delete_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -981,7 +989,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteDocumentRequest( + request = models.LibrariesDocumentsDeleteV1Request( library_id=library_id, document_id=document_id, ) @@ -1015,7 +1023,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteDocument", + operation_id="libraries_documents_delete_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1074,7 +1082,7 @@ def text_content( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentTextContentRequest( + request = models.LibrariesDocumentsGetTextContentV1Request( library_id=library_id, document_id=document_id, ) @@ -1108,7 +1116,7 @@ def text_content( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentTextContent", + operation_id="libraries_documents_get_text_content_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1167,7 +1175,7 @@ async def text_content_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentTextContentRequest( + request = models.LibrariesDocumentsGetTextContentV1Request( library_id=library_id, document_id=document_id, ) @@ -1201,7 +1209,7 @@ async def text_content_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentTextContent", + operation_id="libraries_documents_get_text_content_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1260,7 +1268,7 @@ def status( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentStatusRequest( + request = models.LibrariesDocumentsGetStatusV1Request( library_id=library_id, document_id=document_id, ) @@ -1294,7 +1302,7 @@ def status( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentStatus", + operation_id="libraries_documents_get_status_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1353,7 +1361,7 @@ async def status_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentStatusRequest( + request = models.LibrariesDocumentsGetStatusV1Request( library_id=library_id, document_id=document_id, ) @@ -1387,7 +1395,7 @@ async def status_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentStatus", + operation_id="libraries_documents_get_status_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1446,7 +1454,7 @@ def get_signed_url( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentSignedURLRequest( + request = models.LibrariesDocumentsGetSignedURLV1Request( library_id=library_id, document_id=document_id, ) @@ -1480,7 +1488,7 @@ def get_signed_url( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentSignedUrl", + operation_id="libraries_documents_get_signed_url_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1539,7 +1547,7 @@ async def get_signed_url_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentSignedURLRequest( + request = models.LibrariesDocumentsGetSignedURLV1Request( library_id=library_id, document_id=document_id, ) @@ -1573,7 +1581,7 @@ async def get_signed_url_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentSignedUrl", + operation_id="libraries_documents_get_signed_url_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1632,7 +1640,7 @@ def extracted_text_signed_url( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentExtractedTextSignedURLRequest( + request = models.LibrariesDocumentsGetExtractedTextSignedURLV1Request( library_id=library_id, document_id=document_id, ) @@ -1666,7 +1674,7 @@ def extracted_text_signed_url( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentExtractedTextSignedUrl", + operation_id="libraries_documents_get_extracted_text_signed_url_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1725,7 +1733,7 @@ async def extracted_text_signed_url_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetDocumentExtractedTextSignedURLRequest( + request = models.LibrariesDocumentsGetExtractedTextSignedURLV1Request( library_id=library_id, document_id=document_id, ) @@ -1759,7 +1767,7 @@ async def extracted_text_signed_url_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetDocumentExtractedTextSignedUrl", + operation_id="libraries_documents_get_extracted_text_signed_url_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1818,7 +1826,7 @@ def reprocess( else: base_url = self._get_url(base_url, url_variables) - request = models.ReprocessDocumentRequest( + request = models.LibrariesDocumentsReprocessV1Request( library_id=library_id, document_id=document_id, ) @@ -1852,7 +1860,7 @@ def reprocess( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ReprocessDocument", + operation_id="libraries_documents_reprocess_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1911,7 +1919,7 @@ async def reprocess_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ReprocessDocumentRequest( + request = models.LibrariesDocumentsReprocessV1Request( library_id=library_id, document_id=document_id, ) @@ -1945,7 +1953,7 @@ async def reprocess_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ReprocessDocument", + operation_id="libraries_documents_reprocess_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/files.py b/src/mistralai/client/files.py index 57d389f1..83100ac8 100644 --- a/src/mistralai/client/files.py +++ b/src/mistralai/client/files.py @@ -29,7 +29,7 @@ def upload( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.UploadFileOut: + ) -> models.UploadFileResponse: r"""Upload File Upload a file that can be used across various endpoints. @@ -63,7 +63,7 @@ def upload( else: base_url = self._get_url(base_url, url_variables) - request = models.MultiPartBodyParams( + request = models.UploadFileRequest( purpose=purpose, file=utils.get_pydantic_model(file, models.File), ) @@ -82,7 +82,7 @@ def upload( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "multipart", models.MultiPartBodyParams + request, False, False, "multipart", models.UploadFileRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -100,7 +100,7 @@ def upload( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UploadFile", + operation_id="files_api_routes_upload_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -112,7 +112,7 @@ def upload( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.UploadFileOut, http_res) + return unmarshal_json_response(models.UploadFileResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -131,7 +131,7 @@ async def upload_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.UploadFileOut: + ) -> models.UploadFileResponse: r"""Upload File Upload a file that can be used across various endpoints. @@ -165,7 +165,7 @@ async def upload_async( else: base_url = self._get_url(base_url, url_variables) - request = models.MultiPartBodyParams( + request = models.UploadFileRequest( purpose=purpose, file=utils.get_pydantic_model(file, models.File), ) @@ -184,7 +184,7 @@ async def upload_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "multipart", models.MultiPartBodyParams + request, False, False, "multipart", models.UploadFileRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -202,7 +202,7 @@ async def upload_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UploadFile", + operation_id="files_api_routes_upload_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -214,7 +214,7 @@ async def upload_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.UploadFileOut, http_res) + return unmarshal_json_response(models.UploadFileResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -239,7 +239,7 @@ def list( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListFilesOut: + ) -> models.ListFilesResponse: r"""List Files Returns a list of files that belong to the user's organization. @@ -267,7 +267,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListFilesRequest( + request = models.FilesAPIRoutesListFilesRequest( page=page, page_size=page_size, include_total=include_total, @@ -307,7 +307,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListFiles", + operation_id="files_api_routes_list_files", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -319,7 +319,7 @@ def list( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListFilesOut, http_res) + return unmarshal_json_response(models.ListFilesResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -344,7 +344,7 @@ async def list_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListFilesOut: + ) -> models.ListFilesResponse: r"""List Files Returns a list of files that belong to the user's organization. @@ -372,7 +372,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListFilesRequest( + request = models.FilesAPIRoutesListFilesRequest( page=page, page_size=page_size, include_total=include_total, @@ -412,7 +412,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListFiles", + operation_id="files_api_routes_list_files", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -424,7 +424,7 @@ async def list_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListFilesOut, http_res) + return unmarshal_json_response(models.ListFilesResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -442,7 +442,7 @@ def retrieve( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.RetrieveFileOut: + ) -> models.GetFileResponse: r"""Retrieve File Returns information about a specific file. @@ -463,7 +463,7 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.RetrieveFileRequest( + request = models.FilesAPIRoutesRetrieveFileRequest( file_id=file_id, ) @@ -496,7 +496,7 @@ def retrieve( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RetrieveFile", + operation_id="files_api_routes_retrieve_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -508,7 +508,7 @@ def retrieve( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.RetrieveFileOut, http_res) + return unmarshal_json_response(models.GetFileResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -526,7 +526,7 @@ async def retrieve_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.RetrieveFileOut: + ) -> models.GetFileResponse: r"""Retrieve File Returns information about a specific file. @@ -547,7 +547,7 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.RetrieveFileRequest( + request = models.FilesAPIRoutesRetrieveFileRequest( file_id=file_id, ) @@ -580,7 +580,7 @@ async def retrieve_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RetrieveFile", + operation_id="files_api_routes_retrieve_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -592,7 +592,7 @@ async def retrieve_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.RetrieveFileOut, http_res) + return unmarshal_json_response(models.GetFileResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -610,7 +610,7 @@ def delete( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DeleteFileOut: + ) -> models.DeleteFileResponse: r"""Delete File Delete a file. @@ -631,7 +631,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteFileRequest( + request = models.FilesAPIRoutesDeleteFileRequest( file_id=file_id, ) @@ -664,7 +664,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteFile", + operation_id="files_api_routes_delete_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -676,7 +676,7 @@ def delete( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.DeleteFileOut, http_res) + return unmarshal_json_response(models.DeleteFileResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -694,7 +694,7 @@ async def delete_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.DeleteFileOut: + ) -> models.DeleteFileResponse: r"""Delete File Delete a file. @@ -715,7 +715,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteFileRequest( + request = models.FilesAPIRoutesDeleteFileRequest( file_id=file_id, ) @@ -748,7 +748,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteFile", + operation_id="files_api_routes_delete_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -760,7 +760,7 @@ async def delete_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.DeleteFileOut, http_res) + return unmarshal_json_response(models.DeleteFileResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -799,7 +799,7 @@ def download( else: base_url = self._get_url(base_url, url_variables) - request = models.DownloadFileRequest( + request = models.FilesAPIRoutesDownloadFileRequest( file_id=file_id, ) @@ -832,7 +832,7 @@ def download( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DownloadFile", + operation_id="files_api_routes_download_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -885,7 +885,7 @@ async def download_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DownloadFileRequest( + request = models.FilesAPIRoutesDownloadFileRequest( file_id=file_id, ) @@ -918,7 +918,7 @@ async def download_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DownloadFile", + operation_id="files_api_routes_download_file", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -971,7 +971,7 @@ def get_signed_url( else: base_url = self._get_url(base_url, url_variables) - request = models.GetFileSignedURLRequest( + request = models.FilesAPIRoutesGetSignedURLRequest( file_id=file_id, expiry=expiry, ) @@ -1005,7 +1005,7 @@ def get_signed_url( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetFileSignedUrl", + operation_id="files_api_routes_get_signed_url", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1056,7 +1056,7 @@ async def get_signed_url_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetFileSignedURLRequest( + request = models.FilesAPIRoutesGetSignedURLRequest( file_id=file_id, expiry=expiry, ) @@ -1090,7 +1090,7 @@ async def get_signed_url_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetFileSignedUrl", + operation_id="files_api_routes_get_signed_url", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/fine_tuning_jobs.py b/src/mistralai/client/fine_tuning_jobs.py index 9a28ded1..5ac37943 100644 --- a/src/mistralai/client/fine_tuning_jobs.py +++ b/src/mistralai/client/fine_tuning_jobs.py @@ -7,9 +7,9 @@ from mistralai.client._hooks import HookContext from mistralai.client.models import ( classifiertargetin as models_classifiertargetin, + createfinetuningjobrequest as models_createfinetuningjobrequest, finetuneablemodeltype as models_finetuneablemodeltype, - jobin as models_jobin, - listfinetuningjobsop as models_listfinetuningjobsop, + jobs_api_routes_fine_tuning_get_fine_tuning_jobsop as models_jobs_api_routes_fine_tuning_get_fine_tuning_jobsop, trainingfile as models_trainingfile, ) from mistralai.client.types import OptionalNullable, UNSET @@ -29,7 +29,7 @@ def list( created_before: OptionalNullable[datetime] = UNSET, created_by_me: Optional[bool] = False, status: OptionalNullable[ - models_listfinetuningjobsop.ListFineTuningJobsStatus + models_jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.JobsAPIRoutesFineTuningGetFineTuningJobsStatus ] = UNSET, wandb_project: OptionalNullable[str] = UNSET, wandb_name: OptionalNullable[str] = UNSET, @@ -38,7 +38,7 @@ def list( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.JobsOut: + ) -> models.ListFineTuningJobsResponse: r"""Get Fine Tuning Jobs Get a list of fine-tuning jobs for your organization and user. @@ -68,7 +68,7 @@ def list( else: base_url = self._get_url(base_url, url_variables) - request = models.ListFineTuningJobsRequest( + request = models.JobsAPIRoutesFineTuningGetFineTuningJobsRequest( page=page, page_size=page_size, model=model, @@ -110,7 +110,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListFineTuningJobs", + operation_id="jobs_api_routes_fine_tuning_get_fine_tuning_jobs", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -122,7 +122,7 @@ def list( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.JobsOut, http_res) + return unmarshal_json_response(models.ListFineTuningJobsResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -142,7 +142,7 @@ async def list_async( created_before: OptionalNullable[datetime] = UNSET, created_by_me: Optional[bool] = False, status: OptionalNullable[ - models_listfinetuningjobsop.ListFineTuningJobsStatus + models_jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.JobsAPIRoutesFineTuningGetFineTuningJobsStatus ] = UNSET, wandb_project: OptionalNullable[str] = UNSET, wandb_name: OptionalNullable[str] = UNSET, @@ -151,7 +151,7 @@ async def list_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.JobsOut: + ) -> models.ListFineTuningJobsResponse: r"""Get Fine Tuning Jobs Get a list of fine-tuning jobs for your organization and user. @@ -181,7 +181,7 @@ async def list_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ListFineTuningJobsRequest( + request = models.JobsAPIRoutesFineTuningGetFineTuningJobsRequest( page=page, page_size=page_size, model=model, @@ -223,7 +223,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListFineTuningJobs", + operation_id="jobs_api_routes_fine_tuning_get_fine_tuning_jobs", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -235,7 +235,7 @@ async def list_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.JobsOut, http_res) + return unmarshal_json_response(models.ListFineTuningJobsResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -250,7 +250,8 @@ def create( *, model: str, hyperparameters: Union[ - models_jobin.Hyperparameters, models_jobin.HyperparametersTypedDict + models_createfinetuningjobrequest.Hyperparameters, + models_createfinetuningjobrequest.HyperparametersTypedDict, ], training_files: Optional[ Union[ @@ -262,8 +263,12 @@ def create( suffix: OptionalNullable[str] = UNSET, integrations: OptionalNullable[ Union[ - List[models_jobin.JobInIntegration], - List[models_jobin.JobInIntegrationTypedDict], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestIntegration + ], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestIntegrationTypedDict + ], ] ] = UNSET, auto_start: Optional[bool] = None, @@ -273,8 +278,12 @@ def create( ] = UNSET, repositories: OptionalNullable[ Union[ - List[models_jobin.JobInRepository], - List[models_jobin.JobInRepositoryTypedDict], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestRepository + ], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestRepositoryTypedDict + ], ] ] = UNSET, classifier_targets: OptionalNullable[ @@ -287,7 +296,7 @@ def create( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.CreateFineTuningJobResponse: + ) -> models.CreateFineTuningJobResponseUnion2: r"""Create Fine Tuning Job Create a new fine-tuning job, it will be queued for processing. @@ -318,7 +327,7 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.JobIn( + request = models.CreateFineTuningJobRequest( model=model, training_files=utils.get_pydantic_model( training_files, Optional[List[models.TrainingFile]] @@ -326,7 +335,8 @@ def create( validation_files=validation_files, suffix=suffix, integrations=utils.get_pydantic_model( - integrations, OptionalNullable[List[models.JobInIntegration]] + integrations, + OptionalNullable[List[models.CreateFineTuningJobRequestIntegration]], ), auto_start=auto_start, invalid_sample_skip_percentage=invalid_sample_skip_percentage, @@ -335,7 +345,8 @@ def create( hyperparameters, models.Hyperparameters ), repositories=utils.get_pydantic_model( - repositories, OptionalNullable[List[models.JobInRepository]] + repositories, + OptionalNullable[List[models.CreateFineTuningJobRequestRepository]], ), classifier_targets=utils.get_pydantic_model( classifier_targets, OptionalNullable[List[models.ClassifierTargetIn]] @@ -356,7 +367,7 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.JobIn + request, False, False, "json", models.CreateFineTuningJobRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -374,7 +385,7 @@ def create( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_create_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -386,7 +397,9 @@ def create( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.CreateFineTuningJobResponse, http_res) + return unmarshal_json_response( + models.CreateFineTuningJobResponseUnion2, http_res + ) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -401,7 +414,8 @@ async def create_async( *, model: str, hyperparameters: Union[ - models_jobin.Hyperparameters, models_jobin.HyperparametersTypedDict + models_createfinetuningjobrequest.Hyperparameters, + models_createfinetuningjobrequest.HyperparametersTypedDict, ], training_files: Optional[ Union[ @@ -413,8 +427,12 @@ async def create_async( suffix: OptionalNullable[str] = UNSET, integrations: OptionalNullable[ Union[ - List[models_jobin.JobInIntegration], - List[models_jobin.JobInIntegrationTypedDict], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestIntegration + ], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestIntegrationTypedDict + ], ] ] = UNSET, auto_start: Optional[bool] = None, @@ -424,8 +442,12 @@ async def create_async( ] = UNSET, repositories: OptionalNullable[ Union[ - List[models_jobin.JobInRepository], - List[models_jobin.JobInRepositoryTypedDict], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestRepository + ], + List[ + models_createfinetuningjobrequest.CreateFineTuningJobRequestRepositoryTypedDict + ], ] ] = UNSET, classifier_targets: OptionalNullable[ @@ -438,7 +460,7 @@ async def create_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.CreateFineTuningJobResponse: + ) -> models.CreateFineTuningJobResponseUnion2: r"""Create Fine Tuning Job Create a new fine-tuning job, it will be queued for processing. @@ -469,7 +491,7 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.JobIn( + request = models.CreateFineTuningJobRequest( model=model, training_files=utils.get_pydantic_model( training_files, Optional[List[models.TrainingFile]] @@ -477,7 +499,8 @@ async def create_async( validation_files=validation_files, suffix=suffix, integrations=utils.get_pydantic_model( - integrations, OptionalNullable[List[models.JobInIntegration]] + integrations, + OptionalNullable[List[models.CreateFineTuningJobRequestIntegration]], ), auto_start=auto_start, invalid_sample_skip_percentage=invalid_sample_skip_percentage, @@ -486,7 +509,8 @@ async def create_async( hyperparameters, models.Hyperparameters ), repositories=utils.get_pydantic_model( - repositories, OptionalNullable[List[models.JobInRepository]] + repositories, + OptionalNullable[List[models.CreateFineTuningJobRequestRepository]], ), classifier_targets=utils.get_pydantic_model( classifier_targets, OptionalNullable[List[models.ClassifierTargetIn]] @@ -507,7 +531,7 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.JobIn + request, False, False, "json", models.CreateFineTuningJobRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -525,7 +549,7 @@ async def create_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_create_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -537,7 +561,9 @@ async def create_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.CreateFineTuningJobResponse, http_res) + return unmarshal_json_response( + models.CreateFineTuningJobResponseUnion2, http_res + ) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -576,7 +602,7 @@ def get( else: base_url = self._get_url(base_url, url_variables) - request = models.GetFineTuningJobRequest( + request = models.JobsAPIRoutesFineTuningGetFineTuningJobRequest( job_id=job_id, ) @@ -609,7 +635,7 @@ def get( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_get_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -660,7 +686,7 @@ async def get_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetFineTuningJobRequest( + request = models.JobsAPIRoutesFineTuningGetFineTuningJobRequest( job_id=job_id, ) @@ -693,7 +719,7 @@ async def get_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_get_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -744,7 +770,7 @@ def cancel( else: base_url = self._get_url(base_url, url_variables) - request = models.CancelFineTuningJobRequest( + request = models.JobsAPIRoutesFineTuningCancelFineTuningJobRequest( job_id=job_id, ) @@ -777,7 +803,7 @@ def cancel( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CancelFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_cancel_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -828,7 +854,7 @@ async def cancel_async( else: base_url = self._get_url(base_url, url_variables) - request = models.CancelFineTuningJobRequest( + request = models.JobsAPIRoutesFineTuningCancelFineTuningJobRequest( job_id=job_id, ) @@ -861,7 +887,7 @@ async def cancel_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CancelFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_cancel_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -912,7 +938,7 @@ def start( else: base_url = self._get_url(base_url, url_variables) - request = models.StartFineTuningJobRequest( + request = models.JobsAPIRoutesFineTuningStartFineTuningJobRequest( job_id=job_id, ) @@ -945,7 +971,7 @@ def start( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="StartFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_start_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -996,7 +1022,7 @@ async def start_async( else: base_url = self._get_url(base_url, url_variables) - request = models.StartFineTuningJobRequest( + request = models.JobsAPIRoutesFineTuningStartFineTuningJobRequest( job_id=job_id, ) @@ -1029,7 +1055,7 @@ async def start_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="StartFineTuningJob", + operation_id="jobs_api_routes_fine_tuning_start_fine_tuning_job", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/libraries.py b/src/mistralai/client/libraries.py index 26ceabe1..5073c29b 100644 --- a/src/mistralai/client/libraries.py +++ b/src/mistralai/client/libraries.py @@ -39,7 +39,7 @@ def list( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListLibraryOut: + ) -> models.ListLibrariesResponse: r"""List all libraries you have access to. List all libraries that you have created or have been shared with you. @@ -87,7 +87,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListLibraries", + operation_id="libraries_list_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -99,7 +99,7 @@ def list( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListLibraryOut, http_res) + return unmarshal_json_response(models.ListLibrariesResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = utils.stream_to_text(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -116,7 +116,7 @@ async def list_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ListLibraryOut: + ) -> models.ListLibrariesResponse: r"""List all libraries you have access to. List all libraries that you have created or have been shared with you. @@ -164,7 +164,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListLibraries", + operation_id="libraries_list_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -176,7 +176,7 @@ async def list_async( ) if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.ListLibraryOut, http_res) + return unmarshal_json_response(models.ListLibrariesResponse, http_res) if utils.match_response(http_res, "4XX", "*"): http_res_text = await utils.stream_to_text_async(http_res) raise models.SDKError("API error occurred", http_res, http_res_text) @@ -196,7 +196,7 @@ def create( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Create a new Library. Create a new Library, you will be marked as the owner and only you will have the possibility to share it with others. When first created this will only be accessible by you. @@ -219,7 +219,7 @@ def create( else: base_url = self._get_url(base_url, url_variables) - request = models.LibraryIn( + request = models.CreateLibraryRequest( name=name, description=description, chunk_size=chunk_size, @@ -239,7 +239,7 @@ def create( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.LibraryIn + request, False, False, "json", models.CreateLibraryRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -257,7 +257,7 @@ def create( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateLibrary", + operation_id="libraries_create_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -270,7 +270,7 @@ def create( response_data: Any = None if utils.match_response(http_res, "201", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -295,7 +295,7 @@ async def create_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Create a new Library. Create a new Library, you will be marked as the owner and only you will have the possibility to share it with others. When first created this will only be accessible by you. @@ -318,7 +318,7 @@ async def create_async( else: base_url = self._get_url(base_url, url_variables) - request = models.LibraryIn( + request = models.CreateLibraryRequest( name=name, description=description, chunk_size=chunk_size, @@ -338,7 +338,7 @@ async def create_async( http_headers=http_headers, security=self.sdk_configuration.security, get_serialized_body=lambda: utils.serialize_request_body( - request, False, False, "json", models.LibraryIn + request, False, False, "json", models.CreateLibraryRequest ), allow_empty_value=None, timeout_ms=timeout_ms, @@ -356,7 +356,7 @@ async def create_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="CreateLibrary", + operation_id="libraries_create_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -369,7 +369,7 @@ async def create_async( response_data: Any = None if utils.match_response(http_res, "201", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -392,7 +392,7 @@ def get( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Detailed information about a specific Library. Given a library id, details information about that Library. @@ -413,7 +413,7 @@ def get( else: base_url = self._get_url(base_url, url_variables) - request = models.GetLibraryRequest( + request = models.LibrariesGetV1Request( library_id=library_id, ) @@ -446,7 +446,7 @@ def get( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetLibrary", + operation_id="libraries_get_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -459,7 +459,7 @@ def get( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -482,7 +482,7 @@ async def get_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Detailed information about a specific Library. Given a library id, details information about that Library. @@ -503,7 +503,7 @@ async def get_async( else: base_url = self._get_url(base_url, url_variables) - request = models.GetLibraryRequest( + request = models.LibrariesGetV1Request( library_id=library_id, ) @@ -536,7 +536,7 @@ async def get_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="GetLibrary", + operation_id="libraries_get_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -549,7 +549,7 @@ async def get_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -572,7 +572,7 @@ def delete( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Delete a library and all of it's document. Given a library id, deletes it together with all documents that have been uploaded to that library. @@ -593,7 +593,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteLibraryRequest( + request = models.LibrariesDeleteV1Request( library_id=library_id, ) @@ -626,7 +626,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteLibrary", + operation_id="libraries_delete_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -639,7 +639,7 @@ def delete( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -662,7 +662,7 @@ async def delete_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Delete a library and all of it's document. Given a library id, deletes it together with all documents that have been uploaded to that library. @@ -683,7 +683,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteLibraryRequest( + request = models.LibrariesDeleteV1Request( library_id=library_id, ) @@ -716,7 +716,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteLibrary", + operation_id="libraries_delete_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -729,7 +729,7 @@ async def delete_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -754,7 +754,7 @@ def update( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Update a library. Given a library id, you can update the name and description. @@ -777,7 +777,7 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateLibraryRequest( + request = models.LibrariesUpdateV1Request( library_id=library_id, library_in_update=models.LibraryInUpdate( name=name, @@ -817,7 +817,7 @@ def update( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateLibrary", + operation_id="libraries_update_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -830,7 +830,7 @@ def update( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -855,7 +855,7 @@ async def update_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.LibraryOut: + ) -> models.Library: r"""Update a library. Given a library id, you can update the name and description. @@ -878,7 +878,7 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateLibraryRequest( + request = models.LibrariesUpdateV1Request( library_id=library_id, library_in_update=models.LibraryInUpdate( name=name, @@ -918,7 +918,7 @@ async def update_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateLibrary", + operation_id="libraries_update_v1", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -931,7 +931,7 @@ async def update_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response(models.LibraryOut, http_res) + return unmarshal_json_response(models.Library, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res diff --git a/src/mistralai/client/models/__init__.py b/src/mistralai/client/models/__init__.py index 093ffcbd..11794f37 100644 --- a/src/mistralai/client/models/__init__.py +++ b/src/mistralai/client/models/__init__.py @@ -37,6 +37,98 @@ AgentHandoffStartedEvent, AgentHandoffStartedEventTypedDict, ) + from .agents_api_v1_agents_create_or_update_aliasop import ( + AgentsAPIV1AgentsCreateOrUpdateAliasRequest, + AgentsAPIV1AgentsCreateOrUpdateAliasRequestTypedDict, + ) + from .agents_api_v1_agents_delete_aliasop import ( + AgentsAPIV1AgentsDeleteAliasRequest, + AgentsAPIV1AgentsDeleteAliasRequestTypedDict, + ) + from .agents_api_v1_agents_deleteop import ( + AgentsAPIV1AgentsDeleteRequest, + AgentsAPIV1AgentsDeleteRequestTypedDict, + ) + from .agents_api_v1_agents_get_versionop import ( + AgentsAPIV1AgentsGetVersionRequest, + AgentsAPIV1AgentsGetVersionRequestTypedDict, + ) + from .agents_api_v1_agents_getop import ( + AgentsAPIV1AgentsGetAgentVersion, + AgentsAPIV1AgentsGetAgentVersionTypedDict, + AgentsAPIV1AgentsGetRequest, + AgentsAPIV1AgentsGetRequestTypedDict, + ) + from .agents_api_v1_agents_list_version_aliasesop import ( + AgentsAPIV1AgentsListVersionAliasesRequest, + AgentsAPIV1AgentsListVersionAliasesRequestTypedDict, + ) + from .agents_api_v1_agents_list_versionsop import ( + AgentsAPIV1AgentsListVersionsRequest, + AgentsAPIV1AgentsListVersionsRequestTypedDict, + ) + from .agents_api_v1_agents_listop import ( + AgentsAPIV1AgentsListRequest, + AgentsAPIV1AgentsListRequestTypedDict, + ) + from .agents_api_v1_agents_update_versionop import ( + AgentsAPIV1AgentsUpdateVersionRequest, + AgentsAPIV1AgentsUpdateVersionRequestTypedDict, + ) + from .agents_api_v1_agents_updateop import ( + AgentsAPIV1AgentsUpdateRequest, + AgentsAPIV1AgentsUpdateRequestTypedDict, + ) + from .agents_api_v1_conversations_append_streamop import ( + AgentsAPIV1ConversationsAppendStreamRequest, + AgentsAPIV1ConversationsAppendStreamRequestTypedDict, + ) + from .agents_api_v1_conversations_appendop import ( + AgentsAPIV1ConversationsAppendRequest, + AgentsAPIV1ConversationsAppendRequestTypedDict, + ) + from .agents_api_v1_conversations_deleteop import ( + AgentsAPIV1ConversationsDeleteRequest, + AgentsAPIV1ConversationsDeleteRequestTypedDict, + ) + from .agents_api_v1_conversations_getop import ( + AgentConversationGetConversationResponse, + AgentConversationGetConversationResponseTypedDict, + AgentsAPIV1ConversationsGetAgentConversationObject, + AgentsAPIV1ConversationsGetAgentVersion, + AgentsAPIV1ConversationsGetAgentVersionTypedDict, + AgentsAPIV1ConversationsGetModelConversationObject, + AgentsAPIV1ConversationsGetRequest, + AgentsAPIV1ConversationsGetRequestTypedDict, + AgentsAPIV1ConversationsGetTool, + AgentsAPIV1ConversationsGetToolTypedDict, + GetConversationResponse, + GetConversationResponseTypedDict, + ModelConversationGetConversationResponse, + ModelConversationGetConversationResponseTypedDict, + ) + from .agents_api_v1_conversations_historyop import ( + AgentsAPIV1ConversationsHistoryRequest, + AgentsAPIV1ConversationsHistoryRequestTypedDict, + ) + from .agents_api_v1_conversations_listop import ( + AgentsAPIV1ConversationsListRequest, + AgentsAPIV1ConversationsListRequestTypedDict, + AgentsAPIV1ConversationsListResponse, + AgentsAPIV1ConversationsListResponseTypedDict, + ) + from .agents_api_v1_conversations_messagesop import ( + AgentsAPIV1ConversationsMessagesRequest, + AgentsAPIV1ConversationsMessagesRequestTypedDict, + ) + from .agents_api_v1_conversations_restart_streamop import ( + AgentsAPIV1ConversationsRestartStreamRequest, + AgentsAPIV1ConversationsRestartStreamRequestTypedDict, + ) + from .agents_api_v1_conversations_restartop import ( + AgentsAPIV1ConversationsRestartRequest, + AgentsAPIV1ConversationsRestartRequestTypedDict, + ) from .agentscompletionrequest import ( AgentsCompletionRequest, AgentsCompletionRequestMessage, @@ -64,16 +156,7 @@ AgentUpdateRequestTypedDict, ) from .apiendpoint import APIEndpoint - from .appendconversationop import ( - AppendConversationRequest, - AppendConversationRequestTypedDict, - ) - from .appendconversationstreamop import ( - AppendConversationStreamRequest, - AppendConversationStreamRequestTypedDict, - ) from .archiveftmodelout import ArchiveFTModelOut, ArchiveFTModelOutTypedDict - from .archivemodelop import ArchiveModelRequest, ArchiveModelRequestTypedDict from .assistantmessage import ( AssistantMessage, AssistantMessageContent, @@ -94,19 +177,10 @@ ) from .basemodelcard import BaseModelCard, BaseModelCardTypedDict from .batcherror import BatchError, BatchErrorTypedDict - from .batchjobin import BatchJobIn, BatchJobInTypedDict - from .batchjobout import BatchJobOut, BatchJobOutTypedDict - from .batchjobsout import BatchJobsOut, BatchJobsOutTypedDict + from .batchjob import BatchJob, BatchJobTypedDict from .batchjobstatus import BatchJobStatus from .batchrequest import BatchRequest, BatchRequestTypedDict from .builtinconnectors import BuiltInConnectors - from .cancelbatchjobop import CancelBatchJobRequest, CancelBatchJobRequestTypedDict - from .cancelfinetuningjobop import ( - CancelFineTuningJobRequest, - CancelFineTuningJobRequestTypedDict, - CancelFineTuningJobResponse, - CancelFineTuningJobResponseTypedDict, - ) from .chatclassificationrequest import ( ChatClassificationRequest, ChatClassificationRequestTypedDict, @@ -165,17 +239,6 @@ ClassificationTargetResult, ClassificationTargetResultTypedDict, ) - from .classifierdetailedjobout import ( - ClassifierDetailedJobOut, - ClassifierDetailedJobOutIntegration, - ClassifierDetailedJobOutIntegrationTypedDict, - ClassifierDetailedJobOutStatus, - ClassifierDetailedJobOutTypedDict, - ) - from .classifierftmodelout import ( - ClassifierFTModelOut, - ClassifierFTModelOutTypedDict, - ) from .classifierjobout import ( ClassifierJobOut, ClassifierJobOutIntegration, @@ -197,20 +260,7 @@ from .completionargs import CompletionArgs, CompletionArgsTypedDict from .completionargsstop import CompletionArgsStop, CompletionArgsStopTypedDict from .completionchunk import CompletionChunk, CompletionChunkTypedDict - from .completiondetailedjobout import ( - CompletionDetailedJobOut, - CompletionDetailedJobOutIntegration, - CompletionDetailedJobOutIntegrationTypedDict, - CompletionDetailedJobOutRepository, - CompletionDetailedJobOutRepositoryTypedDict, - CompletionDetailedJobOutStatus, - CompletionDetailedJobOutTypedDict, - ) from .completionevent import CompletionEvent, CompletionEventTypedDict - from .completionftmodelout import ( - CompletionFTModelOut, - CompletionFTModelOutTypedDict, - ) from .completionjobout import ( CompletionJobOut, CompletionJobOutIntegration, @@ -306,34 +356,29 @@ ConversationUsageInfo, ConversationUsageInfoTypedDict, ) - from .createfinetuningjobop import ( - CreateFineTuningJobResponse, - CreateFineTuningJobResponseTypedDict, - Response, - ResponseTypedDict, - ) - from .createorupdateagentaliasop import ( - CreateOrUpdateAgentAliasRequest, - CreateOrUpdateAgentAliasRequestTypedDict, - ) - from .deleteagentaliasop import ( - DeleteAgentAliasRequest, - DeleteAgentAliasRequestTypedDict, - ) - from .deleteagentop import DeleteAgentRequest, DeleteAgentRequestTypedDict - from .deleteconversationop import ( - DeleteConversationRequest, - DeleteConversationRequestTypedDict, - ) - from .deletedocumentop import DeleteDocumentRequest, DeleteDocumentRequestTypedDict - from .deletefileop import DeleteFileRequest, DeleteFileRequestTypedDict - from .deletefileout import DeleteFileOut, DeleteFileOutTypedDict - from .deletelibraryaccessop import ( - DeleteLibraryAccessRequest, - DeleteLibraryAccessRequestTypedDict, - ) - from .deletelibraryop import DeleteLibraryRequest, DeleteLibraryRequestTypedDict - from .deletemodelop import DeleteModelRequest, DeleteModelRequestTypedDict + from .createbatchjobrequest import ( + CreateBatchJobRequest, + CreateBatchJobRequestTypedDict, + ) + from .createfinetuningjobrequest import ( + CreateFineTuningJobRequest, + CreateFineTuningJobRequestIntegration, + CreateFineTuningJobRequestIntegrationTypedDict, + CreateFineTuningJobRequestRepository, + CreateFineTuningJobRequestRepositoryTypedDict, + CreateFineTuningJobRequestTypedDict, + Hyperparameters, + HyperparametersTypedDict, + ) + from .createlibraryrequest import ( + CreateLibraryRequest, + CreateLibraryRequestTypedDict, + ) + from .delete_model_v1_models_model_id_deleteop import ( + DeleteModelV1ModelsModelIDDeleteRequest, + DeleteModelV1ModelsModelIDDeleteRequestTypedDict, + ) + from .deletefileresponse import DeleteFileResponse, DeleteFileResponseTypedDict from .deletemodelout import DeleteModelOut, DeleteModelOutTypedDict from .deltamessage import ( DeltaMessage, @@ -341,21 +386,20 @@ DeltaMessageContentTypedDict, DeltaMessageTypedDict, ) + from .document import Document, DocumentTypedDict from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict - from .documentout import DocumentOut, DocumentOutTypedDict from .documenttextcontent import DocumentTextContent, DocumentTextContentTypedDict - from .documentupdatein import ( + from .documentupdaterequest import ( Attributes, AttributesTypedDict, - DocumentUpdateIn, - DocumentUpdateInTypedDict, + DocumentUpdateRequest, + DocumentUpdateRequestTypedDict, ) from .documenturlchunk import ( DocumentURLChunk, DocumentURLChunkType, DocumentURLChunkTypedDict, ) - from .downloadfileop import DownloadFileRequest, DownloadFileRequestTypedDict from .embeddingdtype import EmbeddingDtype from .embeddingrequest import ( EmbeddingRequest, @@ -373,8 +417,32 @@ from .eventout import EventOut, EventOutTypedDict from .file import File, FileTypedDict from .filechunk import FileChunk, FileChunkTypedDict + from .fileobject import FileObject, FileObjectTypedDict from .filepurpose import FilePurpose - from .fileschema import FileSchema, FileSchemaTypedDict + from .files_api_routes_delete_fileop import ( + FilesAPIRoutesDeleteFileRequest, + FilesAPIRoutesDeleteFileRequestTypedDict, + ) + from .files_api_routes_download_fileop import ( + FilesAPIRoutesDownloadFileRequest, + FilesAPIRoutesDownloadFileRequestTypedDict, + ) + from .files_api_routes_get_signed_urlop import ( + FilesAPIRoutesGetSignedURLRequest, + FilesAPIRoutesGetSignedURLRequestTypedDict, + ) + from .files_api_routes_list_filesop import ( + FilesAPIRoutesListFilesRequest, + FilesAPIRoutesListFilesRequestTypedDict, + ) + from .files_api_routes_retrieve_fileop import ( + FilesAPIRoutesRetrieveFileRequest, + FilesAPIRoutesRetrieveFileRequestTypedDict, + ) + from .files_api_routes_upload_fileop import ( + UploadFileRequest, + UploadFileRequestTypedDict, + ) from .filesignedurl import FileSignedURL, FileSignedURLTypedDict from .fimcompletionrequest import ( FIMCompletionRequest, @@ -425,59 +493,7 @@ FunctionResultEntryTypedDict, ) from .functiontool import FunctionTool, FunctionToolTypedDict - from .getagentop import ( - GetAgentAgentVersion, - GetAgentAgentVersionTypedDict, - GetAgentRequest, - GetAgentRequestTypedDict, - ) - from .getagentversionop import ( - GetAgentVersionRequest, - GetAgentVersionRequestTypedDict, - ) - from .getbatchjobop import GetBatchJobRequest, GetBatchJobRequestTypedDict - from .getconversationhistoryop import ( - GetConversationHistoryRequest, - GetConversationHistoryRequestTypedDict, - ) - from .getconversationmessagesop import ( - GetConversationMessagesRequest, - GetConversationMessagesRequestTypedDict, - ) - from .getconversationop import ( - GetConversationRequest, - GetConversationRequestTypedDict, - ResponseV1ConversationsGet, - ResponseV1ConversationsGetTypedDict, - ) - from .getdocumentextractedtextsignedurlop import ( - GetDocumentExtractedTextSignedURLRequest, - GetDocumentExtractedTextSignedURLRequestTypedDict, - ) - from .getdocumentop import GetDocumentRequest, GetDocumentRequestTypedDict - from .getdocumentsignedurlop import ( - GetDocumentSignedURLRequest, - GetDocumentSignedURLRequestTypedDict, - ) - from .getdocumentstatusop import ( - GetDocumentStatusRequest, - GetDocumentStatusRequestTypedDict, - ) - from .getdocumenttextcontentop import ( - GetDocumentTextContentRequest, - GetDocumentTextContentRequestTypedDict, - ) - from .getfilesignedurlop import ( - GetFileSignedURLRequest, - GetFileSignedURLRequestTypedDict, - ) - from .getfinetuningjobop import ( - GetFineTuningJobRequest, - GetFineTuningJobRequestTypedDict, - GetFineTuningJobResponse, - GetFineTuningJobResponseTypedDict, - ) - from .getlibraryop import GetLibraryRequest, GetLibraryRequestTypedDict + from .getfileresponse import GetFileResponse, GetFileResponseTypedDict from .githubrepositoryin import GithubRepositoryIn, GithubRepositoryInTypedDict from .githubrepositoryout import GithubRepositoryOut, GithubRepositoryOutTypedDict from .httpvalidationerror import HTTPValidationError, HTTPValidationErrorData @@ -505,61 +521,209 @@ InstructRequestMessageTypedDict, InstructRequestTypedDict, ) - from .jobin import ( - Hyperparameters, - HyperparametersTypedDict, - JobIn, - JobInIntegration, - JobInIntegrationTypedDict, - JobInRepository, - JobInRepositoryTypedDict, - JobInTypedDict, - ) from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict - from .jobsout import JobsOut, JobsOutData, JobsOutDataTypedDict, JobsOutTypedDict + from .jobs_api_routes_batch_cancel_batch_jobop import ( + JobsAPIRoutesBatchCancelBatchJobRequest, + JobsAPIRoutesBatchCancelBatchJobRequestTypedDict, + ) + from .jobs_api_routes_batch_get_batch_jobop import ( + JobsAPIRoutesBatchGetBatchJobRequest, + JobsAPIRoutesBatchGetBatchJobRequestTypedDict, + ) + from .jobs_api_routes_batch_get_batch_jobsop import ( + JobsAPIRoutesBatchGetBatchJobsRequest, + JobsAPIRoutesBatchGetBatchJobsRequestTypedDict, + OrderBy, + ) + from .jobs_api_routes_fine_tuning_archive_fine_tuned_modelop import ( + JobsAPIRoutesFineTuningArchiveFineTunedModelRequest, + JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict, + ) + from .jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop import ( + CancelFineTuningJobResponse, + CancelFineTuningJobResponseTypedDict, + ClassifierDetailedJobOutCancelFineTuningJobResponse, + ClassifierDetailedJobOutCancelFineTuningJobResponseTypedDict, + CompletionDetailedJobOutCancelFineTuningJobResponse, + CompletionDetailedJobOutCancelFineTuningJobResponseTypedDict, + JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration, + JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus, + JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration, + JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus, + JobsAPIRoutesFineTuningCancelFineTuningJobRepository, + JobsAPIRoutesFineTuningCancelFineTuningJobRepositoryTypedDict, + JobsAPIRoutesFineTuningCancelFineTuningJobRequest, + JobsAPIRoutesFineTuningCancelFineTuningJobRequestTypedDict, + ) + from .jobs_api_routes_fine_tuning_create_fine_tuning_jobop import ( + ClassifierJobOutCreateFineTuningJobResponse, + ClassifierJobOutCreateFineTuningJobResponseTypedDict, + CompletionJobOutCreateFineTuningJobResponse, + CompletionJobOutCreateFineTuningJobResponseTypedDict, + CreateFineTuningJobResponseUnion1, + CreateFineTuningJobResponseUnion1TypedDict, + CreateFineTuningJobResponseUnion2, + CreateFineTuningJobResponseUnion2TypedDict, + JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration, + JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus, + JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration, + JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus, + JobsAPIRoutesFineTuningCreateFineTuningJobRepository, + JobsAPIRoutesFineTuningCreateFineTuningJobRepositoryTypedDict, + LegacyJobMetadataOutCreateFineTuningJobResponse, + LegacyJobMetadataOutCreateFineTuningJobResponseTypedDict, + ) + from .jobs_api_routes_fine_tuning_get_fine_tuning_jobop import ( + ClassifierDetailedJobOutGetFineTuningJobResponse, + ClassifierDetailedJobOutGetFineTuningJobResponseTypedDict, + CompletionDetailedJobOutGetFineTuningJobResponse, + CompletionDetailedJobOutGetFineTuningJobResponseTypedDict, + GetFineTuningJobResponse, + GetFineTuningJobResponseTypedDict, + JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration, + JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus, + JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration, + JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus, + JobsAPIRoutesFineTuningGetFineTuningJobRepository, + JobsAPIRoutesFineTuningGetFineTuningJobRepositoryTypedDict, + JobsAPIRoutesFineTuningGetFineTuningJobRequest, + JobsAPIRoutesFineTuningGetFineTuningJobRequestTypedDict, + ) + from .jobs_api_routes_fine_tuning_get_fine_tuning_jobsop import ( + JobsAPIRoutesFineTuningGetFineTuningJobsRequest, + JobsAPIRoutesFineTuningGetFineTuningJobsRequestTypedDict, + JobsAPIRoutesFineTuningGetFineTuningJobsStatus, + ) + from .jobs_api_routes_fine_tuning_start_fine_tuning_jobop import ( + ClassifierDetailedJobOutStartFineTuningJobResponse, + ClassifierDetailedJobOutStartFineTuningJobResponseTypedDict, + CompletionDetailedJobOutStartFineTuningJobResponse, + CompletionDetailedJobOutStartFineTuningJobResponseTypedDict, + JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration, + JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus, + JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration, + JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegrationTypedDict, + JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus, + JobsAPIRoutesFineTuningStartFineTuningJobRepository, + JobsAPIRoutesFineTuningStartFineTuningJobRepositoryTypedDict, + JobsAPIRoutesFineTuningStartFineTuningJobRequest, + JobsAPIRoutesFineTuningStartFineTuningJobRequestTypedDict, + StartFineTuningJobResponse, + StartFineTuningJobResponseTypedDict, + ) + from .jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop import ( + JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest, + JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequestTypedDict, + ) + from .jobs_api_routes_fine_tuning_update_fine_tuned_modelop import ( + ClassifierFTModelOutUpdateModelResponse, + ClassifierFTModelOutUpdateModelResponseTypedDict, + CompletionFTModelOutUpdateModelResponse, + CompletionFTModelOutUpdateModelResponseTypedDict, + JobsAPIRoutesFineTuningUpdateFineTunedModelRequest, + JobsAPIRoutesFineTuningUpdateFineTunedModelRequestTypedDict, + UpdateModelResponse, + UpdateModelResponseTypedDict, + ) from .jsonschema import JSONSchema, JSONSchemaTypedDict - from .legacyjobmetadataout import ( - LegacyJobMetadataOut, - LegacyJobMetadataOutTypedDict, + from .libraries_delete_v1op import ( + LibrariesDeleteV1Request, + LibrariesDeleteV1RequestTypedDict, + ) + from .libraries_documents_delete_v1op import ( + LibrariesDocumentsDeleteV1Request, + LibrariesDocumentsDeleteV1RequestTypedDict, + ) + from .libraries_documents_get_extracted_text_signed_url_v1op import ( + LibrariesDocumentsGetExtractedTextSignedURLV1Request, + LibrariesDocumentsGetExtractedTextSignedURLV1RequestTypedDict, + ) + from .libraries_documents_get_signed_url_v1op import ( + LibrariesDocumentsGetSignedURLV1Request, + LibrariesDocumentsGetSignedURLV1RequestTypedDict, + ) + from .libraries_documents_get_status_v1op import ( + LibrariesDocumentsGetStatusV1Request, + LibrariesDocumentsGetStatusV1RequestTypedDict, + ) + from .libraries_documents_get_text_content_v1op import ( + LibrariesDocumentsGetTextContentV1Request, + LibrariesDocumentsGetTextContentV1RequestTypedDict, + ) + from .libraries_documents_get_v1op import ( + LibrariesDocumentsGetV1Request, + LibrariesDocumentsGetV1RequestTypedDict, + ) + from .libraries_documents_list_v1op import ( + LibrariesDocumentsListV1Request, + LibrariesDocumentsListV1RequestTypedDict, + ) + from .libraries_documents_reprocess_v1op import ( + LibrariesDocumentsReprocessV1Request, + LibrariesDocumentsReprocessV1RequestTypedDict, + ) + from .libraries_documents_update_v1op import ( + LibrariesDocumentsUpdateV1Request, + LibrariesDocumentsUpdateV1RequestTypedDict, + ) + from .libraries_documents_upload_v1op import ( + LibrariesDocumentsUploadV1Request, + LibrariesDocumentsUploadV1RequestTypedDict, + UploadDocumentRequest, + UploadDocumentRequestTypedDict, + ) + from .libraries_get_v1op import ( + LibrariesGetV1Request, + LibrariesGetV1RequestTypedDict, + ) + from .libraries_share_create_v1op import ( + LibrariesShareCreateV1Request, + LibrariesShareCreateV1RequestTypedDict, + ) + from .libraries_share_delete_v1op import ( + LibrariesShareDeleteV1Request, + LibrariesShareDeleteV1RequestTypedDict, ) - from .libraryin import LibraryIn, LibraryInTypedDict + from .libraries_share_list_v1op import ( + LibrariesShareListV1Request, + LibrariesShareListV1RequestTypedDict, + ) + from .libraries_update_v1op import ( + LibrariesUpdateV1Request, + LibrariesUpdateV1RequestTypedDict, + ) + from .library import Library, LibraryTypedDict from .libraryinupdate import LibraryInUpdate, LibraryInUpdateTypedDict - from .libraryout import LibraryOut, LibraryOutTypedDict - from .listagentaliasesop import ( - ListAgentAliasesRequest, - ListAgentAliasesRequestTypedDict, - ) - from .listagentsop import ListAgentsRequest, ListAgentsRequestTypedDict - from .listagentversionsop import ( - ListAgentVersionsRequest, - ListAgentVersionsRequestTypedDict, - ) - from .listbatchjobsop import ( - ListBatchJobsRequest, - ListBatchJobsRequestTypedDict, - OrderBy, + from .listbatchjobsresponse import ( + ListBatchJobsResponse, + ListBatchJobsResponseTypedDict, + ) + from .listdocumentsresponse import ( + ListDocumentsResponse, + ListDocumentsResponseTypedDict, + ) + from .listfilesresponse import ListFilesResponse, ListFilesResponseTypedDict + from .listfinetuningjobsresponse import ( + ListFineTuningJobsResponse, + ListFineTuningJobsResponseData, + ListFineTuningJobsResponseDataTypedDict, + ListFineTuningJobsResponseTypedDict, + ) + from .listlibrariesresponse import ( + ListLibrariesResponse, + ListLibrariesResponseTypedDict, + ) + from .listlibraryaccessesresponse import ( + ListLibraryAccessesResponse, + ListLibraryAccessesResponseTypedDict, ) - from .listconversationsop import ( - ListConversationsRequest, - ListConversationsRequestTypedDict, - ListConversationsResponse, - ListConversationsResponseTypedDict, - ) - from .listdocumentout import ListDocumentOut, ListDocumentOutTypedDict - from .listdocumentsop import ListDocumentsRequest, ListDocumentsRequestTypedDict - from .listfilesop import ListFilesRequest, ListFilesRequestTypedDict - from .listfilesout import ListFilesOut, ListFilesOutTypedDict - from .listfinetuningjobsop import ( - ListFineTuningJobsRequest, - ListFineTuningJobsRequestTypedDict, - ListFineTuningJobsStatus, - ) - from .listlibraryaccessesop import ( - ListLibraryAccessesRequest, - ListLibraryAccessesRequestTypedDict, - ) - from .listlibraryout import ListLibraryOut, ListLibraryOutTypedDict - from .listsharingout import ListSharingOut, ListSharingOutTypedDict from .messageentries import MessageEntries, MessageEntriesTypedDict from .messageinputcontentchunks import ( MessageInputContentChunks, @@ -617,8 +781,8 @@ from .ocrpagedimensions import OCRPageDimensions, OCRPageDimensionsTypedDict from .ocrpageobject import OCRPageObject, OCRPageObjectTypedDict from .ocrrequest import ( - Document, - DocumentTypedDict, + DocumentUnion, + DocumentUnionTypedDict, OCRRequest, OCRRequestTypedDict, TableFormat, @@ -657,10 +821,6 @@ ReferenceChunkType, ReferenceChunkTypedDict, ) - from .reprocessdocumentop import ( - ReprocessDocumentRequest, - ReprocessDocumentRequestTypedDict, - ) from .requestsource import RequestSource from .responsedoneevent import ResponseDoneEvent, ResponseDoneEventTypedDict from .responseerrorevent import ResponseErrorEvent, ResponseErrorEventTypedDict @@ -671,37 +831,24 @@ ResponseStartedEventTypedDict, ) from .responsevalidationerror import ResponseValidationError - from .restartconversationop import ( - RestartConversationRequest, - RestartConversationRequestTypedDict, - ) - from .restartconversationstreamop import ( - RestartConversationStreamRequest, - RestartConversationStreamRequestTypedDict, - ) - from .retrievefileop import RetrieveFileRequest, RetrieveFileRequestTypedDict - from .retrievefileout import RetrieveFileOut, RetrieveFileOutTypedDict - from .retrievemodelop import ( - ResponseRetrieveModelV1ModelsModelIDGet, - ResponseRetrieveModelV1ModelsModelIDGetTypedDict, - RetrieveModelRequest, - RetrieveModelRequestTypedDict, + from .retrieve_model_v1_models_model_id_getop import ( + BaseModelCardGetModelResponse, + BaseModelCardGetModelResponseTypedDict, + FTModelCardGetModelResponse, + FTModelCardGetModelResponseTypedDict, + GetModelResponse, + GetModelResponseTypedDict, + RetrieveModelV1ModelsModelIDGetRequest, + RetrieveModelV1ModelsModelIDGetRequestTypedDict, ) from .sampletype import SampleType from .sdkerror import SDKError from .security import Security, SecurityTypedDict from .shareenum import ShareEnum + from .sharing import Sharing, SharingTypedDict from .sharingdelete import SharingDelete, SharingDeleteTypedDict - from .sharingin import SharingIn, SharingInTypedDict - from .sharingout import SharingOut, SharingOutTypedDict from .source import Source from .ssetypes import SSETypes - from .startfinetuningjobop import ( - StartFineTuningJobRequest, - StartFineTuningJobRequestTypedDict, - StartFineTuningJobResponse, - StartFineTuningJobResponseTypedDict, - ) from .systemmessage import ( SystemMessage, SystemMessageContent, @@ -806,33 +953,12 @@ TranscriptionStreamTextDeltaTypedDict, ) from .unarchiveftmodelout import UnarchiveFTModelOut, UnarchiveFTModelOutTypedDict - from .unarchivemodelop import UnarchiveModelRequest, UnarchiveModelRequestTypedDict - from .updateagentop import UpdateAgentRequest, UpdateAgentRequestTypedDict - from .updateagentversionop import ( - UpdateAgentVersionRequest, - UpdateAgentVersionRequestTypedDict, - ) - from .updatedocumentop import UpdateDocumentRequest, UpdateDocumentRequestTypedDict from .updateftmodelin import UpdateFTModelIn, UpdateFTModelInTypedDict - from .updatelibraryop import UpdateLibraryRequest, UpdateLibraryRequestTypedDict - from .updatemodelop import ( - UpdateModelRequest, - UpdateModelRequestTypedDict, - UpdateModelResponse, - UpdateModelResponseTypedDict, - ) - from .updateorcreatelibraryaccessop import ( + from .updateorcreatelibraryaccessrequest import ( UpdateOrCreateLibraryAccessRequest, UpdateOrCreateLibraryAccessRequestTypedDict, ) - from .uploaddocumentop import ( - DocumentUpload, - DocumentUploadTypedDict, - UploadDocumentRequest, - UploadDocumentRequestTypedDict, - ) - from .uploadfileop import MultiPartBodyParams, MultiPartBodyParamsTypedDict - from .uploadfileout import UploadFileOut, UploadFileOutTypedDict + from .uploadfileresponse import UploadFileResponse, UploadFileResponseTypedDict from .usageinfo import UsageInfo, UsageInfoTypedDict from .usermessage import ( UserMessage, @@ -862,6 +988,8 @@ "AgentConversation", "AgentConversationAgentVersion", "AgentConversationAgentVersionTypedDict", + "AgentConversationGetConversationResponse", + "AgentConversationGetConversationResponseTypedDict", "AgentConversationObject", "AgentConversationTypedDict", "AgentCreationRequest", @@ -884,6 +1012,54 @@ "AgentUpdateRequestTool", "AgentUpdateRequestToolTypedDict", "AgentUpdateRequestTypedDict", + "AgentsAPIV1AgentsCreateOrUpdateAliasRequest", + "AgentsAPIV1AgentsCreateOrUpdateAliasRequestTypedDict", + "AgentsAPIV1AgentsDeleteAliasRequest", + "AgentsAPIV1AgentsDeleteAliasRequestTypedDict", + "AgentsAPIV1AgentsDeleteRequest", + "AgentsAPIV1AgentsDeleteRequestTypedDict", + "AgentsAPIV1AgentsGetAgentVersion", + "AgentsAPIV1AgentsGetAgentVersionTypedDict", + "AgentsAPIV1AgentsGetRequest", + "AgentsAPIV1AgentsGetRequestTypedDict", + "AgentsAPIV1AgentsGetVersionRequest", + "AgentsAPIV1AgentsGetVersionRequestTypedDict", + "AgentsAPIV1AgentsListRequest", + "AgentsAPIV1AgentsListRequestTypedDict", + "AgentsAPIV1AgentsListVersionAliasesRequest", + "AgentsAPIV1AgentsListVersionAliasesRequestTypedDict", + "AgentsAPIV1AgentsListVersionsRequest", + "AgentsAPIV1AgentsListVersionsRequestTypedDict", + "AgentsAPIV1AgentsUpdateRequest", + "AgentsAPIV1AgentsUpdateRequestTypedDict", + "AgentsAPIV1AgentsUpdateVersionRequest", + "AgentsAPIV1AgentsUpdateVersionRequestTypedDict", + "AgentsAPIV1ConversationsAppendRequest", + "AgentsAPIV1ConversationsAppendRequestTypedDict", + "AgentsAPIV1ConversationsAppendStreamRequest", + "AgentsAPIV1ConversationsAppendStreamRequestTypedDict", + "AgentsAPIV1ConversationsDeleteRequest", + "AgentsAPIV1ConversationsDeleteRequestTypedDict", + "AgentsAPIV1ConversationsGetAgentConversationObject", + "AgentsAPIV1ConversationsGetAgentVersion", + "AgentsAPIV1ConversationsGetAgentVersionTypedDict", + "AgentsAPIV1ConversationsGetModelConversationObject", + "AgentsAPIV1ConversationsGetRequest", + "AgentsAPIV1ConversationsGetRequestTypedDict", + "AgentsAPIV1ConversationsGetTool", + "AgentsAPIV1ConversationsGetToolTypedDict", + "AgentsAPIV1ConversationsHistoryRequest", + "AgentsAPIV1ConversationsHistoryRequestTypedDict", + "AgentsAPIV1ConversationsListRequest", + "AgentsAPIV1ConversationsListRequestTypedDict", + "AgentsAPIV1ConversationsListResponse", + "AgentsAPIV1ConversationsListResponseTypedDict", + "AgentsAPIV1ConversationsMessagesRequest", + "AgentsAPIV1ConversationsMessagesRequestTypedDict", + "AgentsAPIV1ConversationsRestartRequest", + "AgentsAPIV1ConversationsRestartRequestTypedDict", + "AgentsAPIV1ConversationsRestartStreamRequest", + "AgentsAPIV1ConversationsRestartStreamRequestTypedDict", "AgentsCompletionRequest", "AgentsCompletionRequestMessage", "AgentsCompletionRequestMessageTypedDict", @@ -900,14 +1076,8 @@ "AgentsCompletionStreamRequestToolChoice", "AgentsCompletionStreamRequestToolChoiceTypedDict", "AgentsCompletionStreamRequestTypedDict", - "AppendConversationRequest", - "AppendConversationRequestTypedDict", - "AppendConversationStreamRequest", - "AppendConversationStreamRequestTypedDict", "ArchiveFTModelOut", "ArchiveFTModelOutTypedDict", - "ArchiveModelRequest", - "ArchiveModelRequestTypedDict", "Arguments", "ArgumentsTypedDict", "AssistantMessage", @@ -927,23 +1097,17 @@ "AudioTranscriptionRequestStreamTypedDict", "AudioTranscriptionRequestTypedDict", "BaseModelCard", + "BaseModelCardGetModelResponse", + "BaseModelCardGetModelResponseTypedDict", "BaseModelCardTypedDict", "BatchError", "BatchErrorTypedDict", - "BatchJobIn", - "BatchJobInTypedDict", - "BatchJobOut", - "BatchJobOutTypedDict", + "BatchJob", "BatchJobStatus", - "BatchJobsOut", - "BatchJobsOutTypedDict", + "BatchJobTypedDict", "BatchRequest", "BatchRequestTypedDict", "BuiltInConnectors", - "CancelBatchJobRequest", - "CancelBatchJobRequestTypedDict", - "CancelFineTuningJobRequest", - "CancelFineTuningJobRequestTypedDict", "CancelFineTuningJobResponse", "CancelFineTuningJobResponseTypedDict", "ChatClassificationRequest", @@ -987,14 +1151,17 @@ "ClassificationResponseTypedDict", "ClassificationTargetResult", "ClassificationTargetResultTypedDict", - "ClassifierDetailedJobOut", - "ClassifierDetailedJobOutIntegration", - "ClassifierDetailedJobOutIntegrationTypedDict", - "ClassifierDetailedJobOutStatus", - "ClassifierDetailedJobOutTypedDict", - "ClassifierFTModelOut", - "ClassifierFTModelOutTypedDict", + "ClassifierDetailedJobOutCancelFineTuningJobResponse", + "ClassifierDetailedJobOutCancelFineTuningJobResponseTypedDict", + "ClassifierDetailedJobOutGetFineTuningJobResponse", + "ClassifierDetailedJobOutGetFineTuningJobResponseTypedDict", + "ClassifierDetailedJobOutStartFineTuningJobResponse", + "ClassifierDetailedJobOutStartFineTuningJobResponseTypedDict", + "ClassifierFTModelOutUpdateModelResponse", + "ClassifierFTModelOutUpdateModelResponseTypedDict", "ClassifierJobOut", + "ClassifierJobOutCreateFineTuningJobResponse", + "ClassifierJobOutCreateFineTuningJobResponseTypedDict", "ClassifierJobOutIntegration", "ClassifierJobOutIntegrationTypedDict", "ClassifierJobOutStatus", @@ -1015,18 +1182,19 @@ "CompletionArgsTypedDict", "CompletionChunk", "CompletionChunkTypedDict", - "CompletionDetailedJobOut", - "CompletionDetailedJobOutIntegration", - "CompletionDetailedJobOutIntegrationTypedDict", - "CompletionDetailedJobOutRepository", - "CompletionDetailedJobOutRepositoryTypedDict", - "CompletionDetailedJobOutStatus", - "CompletionDetailedJobOutTypedDict", + "CompletionDetailedJobOutCancelFineTuningJobResponse", + "CompletionDetailedJobOutCancelFineTuningJobResponseTypedDict", + "CompletionDetailedJobOutGetFineTuningJobResponse", + "CompletionDetailedJobOutGetFineTuningJobResponseTypedDict", + "CompletionDetailedJobOutStartFineTuningJobResponse", + "CompletionDetailedJobOutStartFineTuningJobResponseTypedDict", "CompletionEvent", "CompletionEventTypedDict", - "CompletionFTModelOut", - "CompletionFTModelOutTypedDict", + "CompletionFTModelOutUpdateModelResponse", + "CompletionFTModelOutUpdateModelResponseTypedDict", "CompletionJobOut", + "CompletionJobOutCreateFineTuningJobResponse", + "CompletionJobOutCreateFineTuningJobResponseTypedDict", "CompletionJobOutIntegration", "CompletionJobOutIntegrationTypedDict", "CompletionJobOutRepository", @@ -1089,30 +1257,26 @@ "ConversationStreamRequestTypedDict", "ConversationUsageInfo", "ConversationUsageInfoTypedDict", - "CreateFineTuningJobResponse", - "CreateFineTuningJobResponseTypedDict", - "CreateOrUpdateAgentAliasRequest", - "CreateOrUpdateAgentAliasRequestTypedDict", - "DeleteAgentAliasRequest", - "DeleteAgentAliasRequestTypedDict", - "DeleteAgentRequest", - "DeleteAgentRequestTypedDict", - "DeleteConversationRequest", - "DeleteConversationRequestTypedDict", - "DeleteDocumentRequest", - "DeleteDocumentRequestTypedDict", - "DeleteFileOut", - "DeleteFileOutTypedDict", - "DeleteFileRequest", - "DeleteFileRequestTypedDict", - "DeleteLibraryAccessRequest", - "DeleteLibraryAccessRequestTypedDict", - "DeleteLibraryRequest", - "DeleteLibraryRequestTypedDict", + "CreateBatchJobRequest", + "CreateBatchJobRequestTypedDict", + "CreateFineTuningJobRequest", + "CreateFineTuningJobRequestIntegration", + "CreateFineTuningJobRequestIntegrationTypedDict", + "CreateFineTuningJobRequestRepository", + "CreateFineTuningJobRequestRepositoryTypedDict", + "CreateFineTuningJobRequestTypedDict", + "CreateFineTuningJobResponseUnion1", + "CreateFineTuningJobResponseUnion1TypedDict", + "CreateFineTuningJobResponseUnion2", + "CreateFineTuningJobResponseUnion2TypedDict", + "CreateLibraryRequest", + "CreateLibraryRequestTypedDict", + "DeleteFileResponse", + "DeleteFileResponseTypedDict", "DeleteModelOut", "DeleteModelOutTypedDict", - "DeleteModelRequest", - "DeleteModelRequestTypedDict", + "DeleteModelV1ModelsModelIDDeleteRequest", + "DeleteModelV1ModelsModelIDDeleteRequestTypedDict", "DeltaMessage", "DeltaMessageContent", "DeltaMessageContentTypedDict", @@ -1120,20 +1284,16 @@ "Document", "DocumentLibraryTool", "DocumentLibraryToolTypedDict", - "DocumentOut", - "DocumentOutTypedDict", "DocumentTextContent", "DocumentTextContentTypedDict", "DocumentTypedDict", "DocumentURLChunk", "DocumentURLChunkType", "DocumentURLChunkTypedDict", - "DocumentUpdateIn", - "DocumentUpdateInTypedDict", - "DocumentUpload", - "DocumentUploadTypedDict", - "DownloadFileRequest", - "DownloadFileRequestTypedDict", + "DocumentUnion", + "DocumentUnionTypedDict", + "DocumentUpdateRequest", + "DocumentUpdateRequestTypedDict", "EmbeddingDtype", "EmbeddingRequest", "EmbeddingRequestInputs", @@ -1163,16 +1323,28 @@ "FTModelCapabilitiesOut", "FTModelCapabilitiesOutTypedDict", "FTModelCard", + "FTModelCardGetModelResponse", + "FTModelCardGetModelResponseTypedDict", "FTModelCardTypedDict", "File", "FileChunk", "FileChunkTypedDict", + "FileObject", + "FileObjectTypedDict", "FilePurpose", - "FileSchema", - "FileSchemaTypedDict", "FileSignedURL", "FileSignedURLTypedDict", "FileTypedDict", + "FilesAPIRoutesDeleteFileRequest", + "FilesAPIRoutesDeleteFileRequestTypedDict", + "FilesAPIRoutesDownloadFileRequest", + "FilesAPIRoutesDownloadFileRequestTypedDict", + "FilesAPIRoutesGetSignedURLRequest", + "FilesAPIRoutesGetSignedURLRequestTypedDict", + "FilesAPIRoutesListFilesRequest", + "FilesAPIRoutesListFilesRequestTypedDict", + "FilesAPIRoutesRetrieveFileRequest", + "FilesAPIRoutesRetrieveFileRequestTypedDict", "FineTuneableModelType", "Format", "Function", @@ -1195,38 +1367,14 @@ "FunctionTool", "FunctionToolTypedDict", "FunctionTypedDict", - "GetAgentAgentVersion", - "GetAgentAgentVersionTypedDict", - "GetAgentRequest", - "GetAgentRequestTypedDict", - "GetAgentVersionRequest", - "GetAgentVersionRequestTypedDict", - "GetBatchJobRequest", - "GetBatchJobRequestTypedDict", - "GetConversationHistoryRequest", - "GetConversationHistoryRequestTypedDict", - "GetConversationMessagesRequest", - "GetConversationMessagesRequestTypedDict", - "GetConversationRequest", - "GetConversationRequestTypedDict", - "GetDocumentExtractedTextSignedURLRequest", - "GetDocumentExtractedTextSignedURLRequestTypedDict", - "GetDocumentRequest", - "GetDocumentRequestTypedDict", - "GetDocumentSignedURLRequest", - "GetDocumentSignedURLRequestTypedDict", - "GetDocumentStatusRequest", - "GetDocumentStatusRequestTypedDict", - "GetDocumentTextContentRequest", - "GetDocumentTextContentRequestTypedDict", - "GetFileSignedURLRequest", - "GetFileSignedURLRequestTypedDict", - "GetFineTuningJobRequest", - "GetFineTuningJobRequestTypedDict", + "GetConversationResponse", + "GetConversationResponseTypedDict", + "GetFileResponse", + "GetFileResponseTypedDict", "GetFineTuningJobResponse", "GetFineTuningJobResponseTypedDict", - "GetLibraryRequest", - "GetLibraryRequestTypedDict", + "GetModelResponse", + "GetModelResponseTypedDict", "GithubRepositoryIn", "GithubRepositoryInTypedDict", "GithubRepositoryOut", @@ -1258,55 +1406,113 @@ "InstructRequestTypedDict", "JSONSchema", "JSONSchemaTypedDict", - "JobIn", - "JobInIntegration", - "JobInIntegrationTypedDict", - "JobInRepository", - "JobInRepositoryTypedDict", - "JobInTypedDict", "JobMetadataOut", "JobMetadataOutTypedDict", - "JobsOut", - "JobsOutData", - "JobsOutDataTypedDict", - "JobsOutTypedDict", - "LegacyJobMetadataOut", - "LegacyJobMetadataOutTypedDict", - "LibraryIn", - "LibraryInTypedDict", + "JobsAPIRoutesBatchCancelBatchJobRequest", + "JobsAPIRoutesBatchCancelBatchJobRequestTypedDict", + "JobsAPIRoutesBatchGetBatchJobRequest", + "JobsAPIRoutesBatchGetBatchJobRequestTypedDict", + "JobsAPIRoutesBatchGetBatchJobsRequest", + "JobsAPIRoutesBatchGetBatchJobsRequestTypedDict", + "JobsAPIRoutesFineTuningArchiveFineTunedModelRequest", + "JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict", + "JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration", + "JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus", + "JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration", + "JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus", + "JobsAPIRoutesFineTuningCancelFineTuningJobRepository", + "JobsAPIRoutesFineTuningCancelFineTuningJobRepositoryTypedDict", + "JobsAPIRoutesFineTuningCancelFineTuningJobRequest", + "JobsAPIRoutesFineTuningCancelFineTuningJobRequestTypedDict", + "JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration", + "JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus", + "JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration", + "JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus", + "JobsAPIRoutesFineTuningCreateFineTuningJobRepository", + "JobsAPIRoutesFineTuningCreateFineTuningJobRepositoryTypedDict", + "JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration", + "JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus", + "JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration", + "JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus", + "JobsAPIRoutesFineTuningGetFineTuningJobRepository", + "JobsAPIRoutesFineTuningGetFineTuningJobRepositoryTypedDict", + "JobsAPIRoutesFineTuningGetFineTuningJobRequest", + "JobsAPIRoutesFineTuningGetFineTuningJobRequestTypedDict", + "JobsAPIRoutesFineTuningGetFineTuningJobsRequest", + "JobsAPIRoutesFineTuningGetFineTuningJobsRequestTypedDict", + "JobsAPIRoutesFineTuningGetFineTuningJobsStatus", + "JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration", + "JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus", + "JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration", + "JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegrationTypedDict", + "JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus", + "JobsAPIRoutesFineTuningStartFineTuningJobRepository", + "JobsAPIRoutesFineTuningStartFineTuningJobRepositoryTypedDict", + "JobsAPIRoutesFineTuningStartFineTuningJobRequest", + "JobsAPIRoutesFineTuningStartFineTuningJobRequestTypedDict", + "JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest", + "JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequestTypedDict", + "JobsAPIRoutesFineTuningUpdateFineTunedModelRequest", + "JobsAPIRoutesFineTuningUpdateFineTunedModelRequestTypedDict", + "LegacyJobMetadataOutCreateFineTuningJobResponse", + "LegacyJobMetadataOutCreateFineTuningJobResponseTypedDict", + "LibrariesDeleteV1Request", + "LibrariesDeleteV1RequestTypedDict", + "LibrariesDocumentsDeleteV1Request", + "LibrariesDocumentsDeleteV1RequestTypedDict", + "LibrariesDocumentsGetExtractedTextSignedURLV1Request", + "LibrariesDocumentsGetExtractedTextSignedURLV1RequestTypedDict", + "LibrariesDocumentsGetSignedURLV1Request", + "LibrariesDocumentsGetSignedURLV1RequestTypedDict", + "LibrariesDocumentsGetStatusV1Request", + "LibrariesDocumentsGetStatusV1RequestTypedDict", + "LibrariesDocumentsGetTextContentV1Request", + "LibrariesDocumentsGetTextContentV1RequestTypedDict", + "LibrariesDocumentsGetV1Request", + "LibrariesDocumentsGetV1RequestTypedDict", + "LibrariesDocumentsListV1Request", + "LibrariesDocumentsListV1RequestTypedDict", + "LibrariesDocumentsReprocessV1Request", + "LibrariesDocumentsReprocessV1RequestTypedDict", + "LibrariesDocumentsUpdateV1Request", + "LibrariesDocumentsUpdateV1RequestTypedDict", + "LibrariesDocumentsUploadV1Request", + "LibrariesDocumentsUploadV1RequestTypedDict", + "LibrariesGetV1Request", + "LibrariesGetV1RequestTypedDict", + "LibrariesShareCreateV1Request", + "LibrariesShareCreateV1RequestTypedDict", + "LibrariesShareDeleteV1Request", + "LibrariesShareDeleteV1RequestTypedDict", + "LibrariesShareListV1Request", + "LibrariesShareListV1RequestTypedDict", + "LibrariesUpdateV1Request", + "LibrariesUpdateV1RequestTypedDict", + "Library", "LibraryInUpdate", "LibraryInUpdateTypedDict", - "LibraryOut", - "LibraryOutTypedDict", - "ListAgentAliasesRequest", - "ListAgentAliasesRequestTypedDict", - "ListAgentVersionsRequest", - "ListAgentVersionsRequestTypedDict", - "ListAgentsRequest", - "ListAgentsRequestTypedDict", - "ListBatchJobsRequest", - "ListBatchJobsRequestTypedDict", - "ListConversationsRequest", - "ListConversationsRequestTypedDict", - "ListConversationsResponse", - "ListConversationsResponseTypedDict", - "ListDocumentOut", - "ListDocumentOutTypedDict", - "ListDocumentsRequest", - "ListDocumentsRequestTypedDict", - "ListFilesOut", - "ListFilesOutTypedDict", - "ListFilesRequest", - "ListFilesRequestTypedDict", - "ListFineTuningJobsRequest", - "ListFineTuningJobsRequestTypedDict", - "ListFineTuningJobsStatus", - "ListLibraryAccessesRequest", - "ListLibraryAccessesRequestTypedDict", - "ListLibraryOut", - "ListLibraryOutTypedDict", - "ListSharingOut", - "ListSharingOutTypedDict", + "LibraryTypedDict", + "ListBatchJobsResponse", + "ListBatchJobsResponseTypedDict", + "ListDocumentsResponse", + "ListDocumentsResponseTypedDict", + "ListFilesResponse", + "ListFilesResponseTypedDict", + "ListFineTuningJobsResponse", + "ListFineTuningJobsResponseData", + "ListFineTuningJobsResponseDataTypedDict", + "ListFineTuningJobsResponseTypedDict", + "ListLibrariesResponse", + "ListLibrariesResponseTypedDict", + "ListLibraryAccessesResponse", + "ListLibraryAccessesResponseTypedDict", "Loc", "LocTypedDict", "MessageEntries", @@ -1341,6 +1547,8 @@ "ModelCapabilities", "ModelCapabilitiesTypedDict", "ModelConversation", + "ModelConversationGetConversationResponse", + "ModelConversationGetConversationResponseTypedDict", "ModelConversationObject", "ModelConversationTool", "ModelConversationToolTypedDict", @@ -1353,8 +1561,6 @@ "ModerationObjectTypedDict", "ModerationResponse", "ModerationResponseTypedDict", - "MultiPartBodyParams", - "MultiPartBodyParamsTypedDict", "NoResponseError", "OCRImageObject", "OCRImageObjectTypedDict", @@ -1396,10 +1602,7 @@ "ReferenceChunk", "ReferenceChunkType", "ReferenceChunkTypedDict", - "ReprocessDocumentRequest", - "ReprocessDocumentRequestTypedDict", "RequestSource", - "Response", "ResponseDoneEvent", "ResponseDoneEventTypedDict", "ResponseErrorEvent", @@ -1407,39 +1610,22 @@ "ResponseFormat", "ResponseFormatTypedDict", "ResponseFormats", - "ResponseRetrieveModelV1ModelsModelIDGet", - "ResponseRetrieveModelV1ModelsModelIDGetTypedDict", "ResponseStartedEvent", "ResponseStartedEventTypedDict", - "ResponseTypedDict", - "ResponseV1ConversationsGet", - "ResponseV1ConversationsGetTypedDict", "ResponseValidationError", - "RestartConversationRequest", - "RestartConversationRequestTypedDict", - "RestartConversationStreamRequest", - "RestartConversationStreamRequestTypedDict", - "RetrieveFileOut", - "RetrieveFileOutTypedDict", - "RetrieveFileRequest", - "RetrieveFileRequestTypedDict", - "RetrieveModelRequest", - "RetrieveModelRequestTypedDict", + "RetrieveModelV1ModelsModelIDGetRequest", + "RetrieveModelV1ModelsModelIDGetRequestTypedDict", "SDKError", "SSETypes", "SampleType", "Security", "SecurityTypedDict", "ShareEnum", + "Sharing", "SharingDelete", "SharingDeleteTypedDict", - "SharingIn", - "SharingInTypedDict", - "SharingOut", - "SharingOutTypedDict", + "SharingTypedDict", "Source", - "StartFineTuningJobRequest", - "StartFineTuningJobRequestTypedDict", "StartFineTuningJobResponse", "StartFineTuningJobResponseTypedDict", "SystemMessage", @@ -1520,28 +1706,18 @@ "TranscriptionStreamTextDeltaTypedDict", "UnarchiveFTModelOut", "UnarchiveFTModelOutTypedDict", - "UnarchiveModelRequest", - "UnarchiveModelRequestTypedDict", - "UpdateAgentRequest", - "UpdateAgentRequestTypedDict", - "UpdateAgentVersionRequest", - "UpdateAgentVersionRequestTypedDict", - "UpdateDocumentRequest", - "UpdateDocumentRequestTypedDict", "UpdateFTModelIn", "UpdateFTModelInTypedDict", - "UpdateLibraryRequest", - "UpdateLibraryRequestTypedDict", - "UpdateModelRequest", - "UpdateModelRequestTypedDict", "UpdateModelResponse", "UpdateModelResponseTypedDict", "UpdateOrCreateLibraryAccessRequest", "UpdateOrCreateLibraryAccessRequestTypedDict", "UploadDocumentRequest", "UploadDocumentRequestTypedDict", - "UploadFileOut", - "UploadFileOutTypedDict", + "UploadFileRequest", + "UploadFileRequestTypedDict", + "UploadFileResponse", + "UploadFileResponseTypedDict", "UsageInfo", "UsageInfoTypedDict", "UserMessage", @@ -1585,6 +1761,60 @@ "AgentHandoffEntryTypedDict": ".agenthandoffentry", "AgentHandoffStartedEvent": ".agenthandoffstartedevent", "AgentHandoffStartedEventTypedDict": ".agenthandoffstartedevent", + "AgentsAPIV1AgentsCreateOrUpdateAliasRequest": ".agents_api_v1_agents_create_or_update_aliasop", + "AgentsAPIV1AgentsCreateOrUpdateAliasRequestTypedDict": ".agents_api_v1_agents_create_or_update_aliasop", + "AgentsAPIV1AgentsDeleteAliasRequest": ".agents_api_v1_agents_delete_aliasop", + "AgentsAPIV1AgentsDeleteAliasRequestTypedDict": ".agents_api_v1_agents_delete_aliasop", + "AgentsAPIV1AgentsDeleteRequest": ".agents_api_v1_agents_deleteop", + "AgentsAPIV1AgentsDeleteRequestTypedDict": ".agents_api_v1_agents_deleteop", + "AgentsAPIV1AgentsGetVersionRequest": ".agents_api_v1_agents_get_versionop", + "AgentsAPIV1AgentsGetVersionRequestTypedDict": ".agents_api_v1_agents_get_versionop", + "AgentsAPIV1AgentsGetAgentVersion": ".agents_api_v1_agents_getop", + "AgentsAPIV1AgentsGetAgentVersionTypedDict": ".agents_api_v1_agents_getop", + "AgentsAPIV1AgentsGetRequest": ".agents_api_v1_agents_getop", + "AgentsAPIV1AgentsGetRequestTypedDict": ".agents_api_v1_agents_getop", + "AgentsAPIV1AgentsListVersionAliasesRequest": ".agents_api_v1_agents_list_version_aliasesop", + "AgentsAPIV1AgentsListVersionAliasesRequestTypedDict": ".agents_api_v1_agents_list_version_aliasesop", + "AgentsAPIV1AgentsListVersionsRequest": ".agents_api_v1_agents_list_versionsop", + "AgentsAPIV1AgentsListVersionsRequestTypedDict": ".agents_api_v1_agents_list_versionsop", + "AgentsAPIV1AgentsListRequest": ".agents_api_v1_agents_listop", + "AgentsAPIV1AgentsListRequestTypedDict": ".agents_api_v1_agents_listop", + "AgentsAPIV1AgentsUpdateVersionRequest": ".agents_api_v1_agents_update_versionop", + "AgentsAPIV1AgentsUpdateVersionRequestTypedDict": ".agents_api_v1_agents_update_versionop", + "AgentsAPIV1AgentsUpdateRequest": ".agents_api_v1_agents_updateop", + "AgentsAPIV1AgentsUpdateRequestTypedDict": ".agents_api_v1_agents_updateop", + "AgentsAPIV1ConversationsAppendStreamRequest": ".agents_api_v1_conversations_append_streamop", + "AgentsAPIV1ConversationsAppendStreamRequestTypedDict": ".agents_api_v1_conversations_append_streamop", + "AgentsAPIV1ConversationsAppendRequest": ".agents_api_v1_conversations_appendop", + "AgentsAPIV1ConversationsAppendRequestTypedDict": ".agents_api_v1_conversations_appendop", + "AgentsAPIV1ConversationsDeleteRequest": ".agents_api_v1_conversations_deleteop", + "AgentsAPIV1ConversationsDeleteRequestTypedDict": ".agents_api_v1_conversations_deleteop", + "AgentConversationGetConversationResponse": ".agents_api_v1_conversations_getop", + "AgentConversationGetConversationResponseTypedDict": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetAgentConversationObject": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetAgentVersion": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetAgentVersionTypedDict": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetModelConversationObject": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetRequest": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetRequestTypedDict": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetTool": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsGetToolTypedDict": ".agents_api_v1_conversations_getop", + "GetConversationResponse": ".agents_api_v1_conversations_getop", + "GetConversationResponseTypedDict": ".agents_api_v1_conversations_getop", + "ModelConversationGetConversationResponse": ".agents_api_v1_conversations_getop", + "ModelConversationGetConversationResponseTypedDict": ".agents_api_v1_conversations_getop", + "AgentsAPIV1ConversationsHistoryRequest": ".agents_api_v1_conversations_historyop", + "AgentsAPIV1ConversationsHistoryRequestTypedDict": ".agents_api_v1_conversations_historyop", + "AgentsAPIV1ConversationsListRequest": ".agents_api_v1_conversations_listop", + "AgentsAPIV1ConversationsListRequestTypedDict": ".agents_api_v1_conversations_listop", + "AgentsAPIV1ConversationsListResponse": ".agents_api_v1_conversations_listop", + "AgentsAPIV1ConversationsListResponseTypedDict": ".agents_api_v1_conversations_listop", + "AgentsAPIV1ConversationsMessagesRequest": ".agents_api_v1_conversations_messagesop", + "AgentsAPIV1ConversationsMessagesRequestTypedDict": ".agents_api_v1_conversations_messagesop", + "AgentsAPIV1ConversationsRestartStreamRequest": ".agents_api_v1_conversations_restart_streamop", + "AgentsAPIV1ConversationsRestartStreamRequestTypedDict": ".agents_api_v1_conversations_restart_streamop", + "AgentsAPIV1ConversationsRestartRequest": ".agents_api_v1_conversations_restartop", + "AgentsAPIV1ConversationsRestartRequestTypedDict": ".agents_api_v1_conversations_restartop", "AgentsCompletionRequest": ".agentscompletionrequest", "AgentsCompletionRequestMessage": ".agentscompletionrequest", "AgentsCompletionRequestMessageTypedDict": ".agentscompletionrequest", @@ -1606,14 +1836,8 @@ "AgentUpdateRequestToolTypedDict": ".agentupdaterequest", "AgentUpdateRequestTypedDict": ".agentupdaterequest", "APIEndpoint": ".apiendpoint", - "AppendConversationRequest": ".appendconversationop", - "AppendConversationRequestTypedDict": ".appendconversationop", - "AppendConversationStreamRequest": ".appendconversationstreamop", - "AppendConversationStreamRequestTypedDict": ".appendconversationstreamop", "ArchiveFTModelOut": ".archiveftmodelout", "ArchiveFTModelOutTypedDict": ".archiveftmodelout", - "ArchiveModelRequest": ".archivemodelop", - "ArchiveModelRequestTypedDict": ".archivemodelop", "AssistantMessage": ".assistantmessage", "AssistantMessageContent": ".assistantmessage", "AssistantMessageContentTypedDict": ".assistantmessage", @@ -1632,22 +1856,12 @@ "BaseModelCardTypedDict": ".basemodelcard", "BatchError": ".batcherror", "BatchErrorTypedDict": ".batcherror", - "BatchJobIn": ".batchjobin", - "BatchJobInTypedDict": ".batchjobin", - "BatchJobOut": ".batchjobout", - "BatchJobOutTypedDict": ".batchjobout", - "BatchJobsOut": ".batchjobsout", - "BatchJobsOutTypedDict": ".batchjobsout", + "BatchJob": ".batchjob", + "BatchJobTypedDict": ".batchjob", "BatchJobStatus": ".batchjobstatus", "BatchRequest": ".batchrequest", "BatchRequestTypedDict": ".batchrequest", "BuiltInConnectors": ".builtinconnectors", - "CancelBatchJobRequest": ".cancelbatchjobop", - "CancelBatchJobRequestTypedDict": ".cancelbatchjobop", - "CancelFineTuningJobRequest": ".cancelfinetuningjobop", - "CancelFineTuningJobRequestTypedDict": ".cancelfinetuningjobop", - "CancelFineTuningJobResponse": ".cancelfinetuningjobop", - "CancelFineTuningJobResponseTypedDict": ".cancelfinetuningjobop", "ChatClassificationRequest": ".chatclassificationrequest", "ChatClassificationRequestTypedDict": ".chatclassificationrequest", "ChatCompletionChoice": ".chatcompletionchoice", @@ -1689,13 +1903,6 @@ "ClassificationResponseTypedDict": ".classificationresponse", "ClassificationTargetResult": ".classificationtargetresult", "ClassificationTargetResultTypedDict": ".classificationtargetresult", - "ClassifierDetailedJobOut": ".classifierdetailedjobout", - "ClassifierDetailedJobOutIntegration": ".classifierdetailedjobout", - "ClassifierDetailedJobOutIntegrationTypedDict": ".classifierdetailedjobout", - "ClassifierDetailedJobOutStatus": ".classifierdetailedjobout", - "ClassifierDetailedJobOutTypedDict": ".classifierdetailedjobout", - "ClassifierFTModelOut": ".classifierftmodelout", - "ClassifierFTModelOutTypedDict": ".classifierftmodelout", "ClassifierJobOut": ".classifierjobout", "ClassifierJobOutIntegration": ".classifierjobout", "ClassifierJobOutIntegrationTypedDict": ".classifierjobout", @@ -1717,17 +1924,8 @@ "CompletionArgsStopTypedDict": ".completionargsstop", "CompletionChunk": ".completionchunk", "CompletionChunkTypedDict": ".completionchunk", - "CompletionDetailedJobOut": ".completiondetailedjobout", - "CompletionDetailedJobOutIntegration": ".completiondetailedjobout", - "CompletionDetailedJobOutIntegrationTypedDict": ".completiondetailedjobout", - "CompletionDetailedJobOutRepository": ".completiondetailedjobout", - "CompletionDetailedJobOutRepositoryTypedDict": ".completiondetailedjobout", - "CompletionDetailedJobOutStatus": ".completiondetailedjobout", - "CompletionDetailedJobOutTypedDict": ".completiondetailedjobout", "CompletionEvent": ".completionevent", "CompletionEventTypedDict": ".completionevent", - "CompletionFTModelOut": ".completionftmodelout", - "CompletionFTModelOutTypedDict": ".completionftmodelout", "CompletionJobOut": ".completionjobout", "CompletionJobOutIntegration": ".completionjobout", "CompletionJobOutIntegrationTypedDict": ".completionjobout", @@ -1795,51 +1993,41 @@ "ConversationStreamRequestTypedDict": ".conversationstreamrequest", "ConversationUsageInfo": ".conversationusageinfo", "ConversationUsageInfoTypedDict": ".conversationusageinfo", - "CreateFineTuningJobResponse": ".createfinetuningjobop", - "CreateFineTuningJobResponseTypedDict": ".createfinetuningjobop", - "Response": ".createfinetuningjobop", - "ResponseTypedDict": ".createfinetuningjobop", - "CreateOrUpdateAgentAliasRequest": ".createorupdateagentaliasop", - "CreateOrUpdateAgentAliasRequestTypedDict": ".createorupdateagentaliasop", - "DeleteAgentAliasRequest": ".deleteagentaliasop", - "DeleteAgentAliasRequestTypedDict": ".deleteagentaliasop", - "DeleteAgentRequest": ".deleteagentop", - "DeleteAgentRequestTypedDict": ".deleteagentop", - "DeleteConversationRequest": ".deleteconversationop", - "DeleteConversationRequestTypedDict": ".deleteconversationop", - "DeleteDocumentRequest": ".deletedocumentop", - "DeleteDocumentRequestTypedDict": ".deletedocumentop", - "DeleteFileRequest": ".deletefileop", - "DeleteFileRequestTypedDict": ".deletefileop", - "DeleteFileOut": ".deletefileout", - "DeleteFileOutTypedDict": ".deletefileout", - "DeleteLibraryAccessRequest": ".deletelibraryaccessop", - "DeleteLibraryAccessRequestTypedDict": ".deletelibraryaccessop", - "DeleteLibraryRequest": ".deletelibraryop", - "DeleteLibraryRequestTypedDict": ".deletelibraryop", - "DeleteModelRequest": ".deletemodelop", - "DeleteModelRequestTypedDict": ".deletemodelop", + "CreateBatchJobRequest": ".createbatchjobrequest", + "CreateBatchJobRequestTypedDict": ".createbatchjobrequest", + "CreateFineTuningJobRequest": ".createfinetuningjobrequest", + "CreateFineTuningJobRequestIntegration": ".createfinetuningjobrequest", + "CreateFineTuningJobRequestIntegrationTypedDict": ".createfinetuningjobrequest", + "CreateFineTuningJobRequestRepository": ".createfinetuningjobrequest", + "CreateFineTuningJobRequestRepositoryTypedDict": ".createfinetuningjobrequest", + "CreateFineTuningJobRequestTypedDict": ".createfinetuningjobrequest", + "Hyperparameters": ".createfinetuningjobrequest", + "HyperparametersTypedDict": ".createfinetuningjobrequest", + "CreateLibraryRequest": ".createlibraryrequest", + "CreateLibraryRequestTypedDict": ".createlibraryrequest", + "DeleteModelV1ModelsModelIDDeleteRequest": ".delete_model_v1_models_model_id_deleteop", + "DeleteModelV1ModelsModelIDDeleteRequestTypedDict": ".delete_model_v1_models_model_id_deleteop", + "DeleteFileResponse": ".deletefileresponse", + "DeleteFileResponseTypedDict": ".deletefileresponse", "DeleteModelOut": ".deletemodelout", "DeleteModelOutTypedDict": ".deletemodelout", "DeltaMessage": ".deltamessage", "DeltaMessageContent": ".deltamessage", "DeltaMessageContentTypedDict": ".deltamessage", "DeltaMessageTypedDict": ".deltamessage", + "Document": ".document", + "DocumentTypedDict": ".document", "DocumentLibraryTool": ".documentlibrarytool", "DocumentLibraryToolTypedDict": ".documentlibrarytool", - "DocumentOut": ".documentout", - "DocumentOutTypedDict": ".documentout", "DocumentTextContent": ".documenttextcontent", "DocumentTextContentTypedDict": ".documenttextcontent", - "Attributes": ".documentupdatein", - "AttributesTypedDict": ".documentupdatein", - "DocumentUpdateIn": ".documentupdatein", - "DocumentUpdateInTypedDict": ".documentupdatein", + "Attributes": ".documentupdaterequest", + "AttributesTypedDict": ".documentupdaterequest", + "DocumentUpdateRequest": ".documentupdaterequest", + "DocumentUpdateRequestTypedDict": ".documentupdaterequest", "DocumentURLChunk": ".documenturlchunk", "DocumentURLChunkType": ".documenturlchunk", "DocumentURLChunkTypedDict": ".documenturlchunk", - "DownloadFileRequest": ".downloadfileop", - "DownloadFileRequestTypedDict": ".downloadfileop", "EmbeddingDtype": ".embeddingdtype", "EmbeddingRequest": ".embeddingrequest", "EmbeddingRequestInputs": ".embeddingrequest", @@ -1857,9 +2045,21 @@ "FileTypedDict": ".file", "FileChunk": ".filechunk", "FileChunkTypedDict": ".filechunk", + "FileObject": ".fileobject", + "FileObjectTypedDict": ".fileobject", "FilePurpose": ".filepurpose", - "FileSchema": ".fileschema", - "FileSchemaTypedDict": ".fileschema", + "FilesAPIRoutesDeleteFileRequest": ".files_api_routes_delete_fileop", + "FilesAPIRoutesDeleteFileRequestTypedDict": ".files_api_routes_delete_fileop", + "FilesAPIRoutesDownloadFileRequest": ".files_api_routes_download_fileop", + "FilesAPIRoutesDownloadFileRequestTypedDict": ".files_api_routes_download_fileop", + "FilesAPIRoutesGetSignedURLRequest": ".files_api_routes_get_signed_urlop", + "FilesAPIRoutesGetSignedURLRequestTypedDict": ".files_api_routes_get_signed_urlop", + "FilesAPIRoutesListFilesRequest": ".files_api_routes_list_filesop", + "FilesAPIRoutesListFilesRequestTypedDict": ".files_api_routes_list_filesop", + "FilesAPIRoutesRetrieveFileRequest": ".files_api_routes_retrieve_fileop", + "FilesAPIRoutesRetrieveFileRequestTypedDict": ".files_api_routes_retrieve_fileop", + "UploadFileRequest": ".files_api_routes_upload_fileop", + "UploadFileRequestTypedDict": ".files_api_routes_upload_fileop", "FileSignedURL": ".filesignedurl", "FileSignedURLTypedDict": ".filesignedurl", "FIMCompletionRequest": ".fimcompletionrequest", @@ -1900,40 +2100,8 @@ "FunctionResultEntryTypedDict": ".functionresultentry", "FunctionTool": ".functiontool", "FunctionToolTypedDict": ".functiontool", - "GetAgentAgentVersion": ".getagentop", - "GetAgentAgentVersionTypedDict": ".getagentop", - "GetAgentRequest": ".getagentop", - "GetAgentRequestTypedDict": ".getagentop", - "GetAgentVersionRequest": ".getagentversionop", - "GetAgentVersionRequestTypedDict": ".getagentversionop", - "GetBatchJobRequest": ".getbatchjobop", - "GetBatchJobRequestTypedDict": ".getbatchjobop", - "GetConversationHistoryRequest": ".getconversationhistoryop", - "GetConversationHistoryRequestTypedDict": ".getconversationhistoryop", - "GetConversationMessagesRequest": ".getconversationmessagesop", - "GetConversationMessagesRequestTypedDict": ".getconversationmessagesop", - "GetConversationRequest": ".getconversationop", - "GetConversationRequestTypedDict": ".getconversationop", - "ResponseV1ConversationsGet": ".getconversationop", - "ResponseV1ConversationsGetTypedDict": ".getconversationop", - "GetDocumentExtractedTextSignedURLRequest": ".getdocumentextractedtextsignedurlop", - "GetDocumentExtractedTextSignedURLRequestTypedDict": ".getdocumentextractedtextsignedurlop", - "GetDocumentRequest": ".getdocumentop", - "GetDocumentRequestTypedDict": ".getdocumentop", - "GetDocumentSignedURLRequest": ".getdocumentsignedurlop", - "GetDocumentSignedURLRequestTypedDict": ".getdocumentsignedurlop", - "GetDocumentStatusRequest": ".getdocumentstatusop", - "GetDocumentStatusRequestTypedDict": ".getdocumentstatusop", - "GetDocumentTextContentRequest": ".getdocumenttextcontentop", - "GetDocumentTextContentRequestTypedDict": ".getdocumenttextcontentop", - "GetFileSignedURLRequest": ".getfilesignedurlop", - "GetFileSignedURLRequestTypedDict": ".getfilesignedurlop", - "GetFineTuningJobRequest": ".getfinetuningjobop", - "GetFineTuningJobRequestTypedDict": ".getfinetuningjobop", - "GetFineTuningJobResponse": ".getfinetuningjobop", - "GetFineTuningJobResponseTypedDict": ".getfinetuningjobop", - "GetLibraryRequest": ".getlibraryop", - "GetLibraryRequestTypedDict": ".getlibraryop", + "GetFileResponse": ".getfileresponse", + "GetFileResponseTypedDict": ".getfileresponse", "GithubRepositoryIn": ".githubrepositoryin", "GithubRepositoryInTypedDict": ".githubrepositoryin", "GithubRepositoryOut": ".githubrepositoryout", @@ -1961,60 +2129,150 @@ "InstructRequestMessage": ".instructrequest", "InstructRequestMessageTypedDict": ".instructrequest", "InstructRequestTypedDict": ".instructrequest", - "Hyperparameters": ".jobin", - "HyperparametersTypedDict": ".jobin", - "JobIn": ".jobin", - "JobInIntegration": ".jobin", - "JobInIntegrationTypedDict": ".jobin", - "JobInRepository": ".jobin", - "JobInRepositoryTypedDict": ".jobin", - "JobInTypedDict": ".jobin", "JobMetadataOut": ".jobmetadataout", "JobMetadataOutTypedDict": ".jobmetadataout", - "JobsOut": ".jobsout", - "JobsOutData": ".jobsout", - "JobsOutDataTypedDict": ".jobsout", - "JobsOutTypedDict": ".jobsout", + "JobsAPIRoutesBatchCancelBatchJobRequest": ".jobs_api_routes_batch_cancel_batch_jobop", + "JobsAPIRoutesBatchCancelBatchJobRequestTypedDict": ".jobs_api_routes_batch_cancel_batch_jobop", + "JobsAPIRoutesBatchGetBatchJobRequest": ".jobs_api_routes_batch_get_batch_jobop", + "JobsAPIRoutesBatchGetBatchJobRequestTypedDict": ".jobs_api_routes_batch_get_batch_jobop", + "JobsAPIRoutesBatchGetBatchJobsRequest": ".jobs_api_routes_batch_get_batch_jobsop", + "JobsAPIRoutesBatchGetBatchJobsRequestTypedDict": ".jobs_api_routes_batch_get_batch_jobsop", + "OrderBy": ".jobs_api_routes_batch_get_batch_jobsop", + "JobsAPIRoutesFineTuningArchiveFineTunedModelRequest": ".jobs_api_routes_fine_tuning_archive_fine_tuned_modelop", + "JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict": ".jobs_api_routes_fine_tuning_archive_fine_tuned_modelop", + "CancelFineTuningJobResponse": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "CancelFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "ClassifierDetailedJobOutCancelFineTuningJobResponse": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "ClassifierDetailedJobOutCancelFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "CompletionDetailedJobOutCancelFineTuningJobResponse": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "CompletionDetailedJobOutCancelFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobRepository": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobRepositoryTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobRequest": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCancelFineTuningJobRequestTypedDict": ".jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop", + "ClassifierJobOutCreateFineTuningJobResponse": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "ClassifierJobOutCreateFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "CompletionJobOutCreateFineTuningJobResponse": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "CompletionJobOutCreateFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "CreateFineTuningJobResponseUnion1": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "CreateFineTuningJobResponseUnion1TypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "CreateFineTuningJobResponseUnion2": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "CreateFineTuningJobResponseUnion2TypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobRepository": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "JobsAPIRoutesFineTuningCreateFineTuningJobRepositoryTypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "LegacyJobMetadataOutCreateFineTuningJobResponse": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "LegacyJobMetadataOutCreateFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_create_fine_tuning_jobop", + "ClassifierDetailedJobOutGetFineTuningJobResponse": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "ClassifierDetailedJobOutGetFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "CompletionDetailedJobOutGetFineTuningJobResponse": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "CompletionDetailedJobOutGetFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "GetFineTuningJobResponse": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "GetFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobRepository": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobRepositoryTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobRequest": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobRequestTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobop", + "JobsAPIRoutesFineTuningGetFineTuningJobsRequest": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobsop", + "JobsAPIRoutesFineTuningGetFineTuningJobsRequestTypedDict": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobsop", + "JobsAPIRoutesFineTuningGetFineTuningJobsStatus": ".jobs_api_routes_fine_tuning_get_fine_tuning_jobsop", + "ClassifierDetailedJobOutStartFineTuningJobResponse": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "ClassifierDetailedJobOutStartFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "CompletionDetailedJobOutStartFineTuningJobResponse": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "CompletionDetailedJobOutStartFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegrationTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobRepository": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobRepositoryTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobRequest": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningStartFineTuningJobRequestTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "StartFineTuningJobResponse": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "StartFineTuningJobResponseTypedDict": ".jobs_api_routes_fine_tuning_start_fine_tuning_jobop", + "JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest": ".jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop", + "JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequestTypedDict": ".jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop", + "ClassifierFTModelOutUpdateModelResponse": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "ClassifierFTModelOutUpdateModelResponseTypedDict": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "CompletionFTModelOutUpdateModelResponse": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "CompletionFTModelOutUpdateModelResponseTypedDict": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "JobsAPIRoutesFineTuningUpdateFineTunedModelRequest": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "JobsAPIRoutesFineTuningUpdateFineTunedModelRequestTypedDict": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "UpdateModelResponse": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", + "UpdateModelResponseTypedDict": ".jobs_api_routes_fine_tuning_update_fine_tuned_modelop", "JSONSchema": ".jsonschema", "JSONSchemaTypedDict": ".jsonschema", - "LegacyJobMetadataOut": ".legacyjobmetadataout", - "LegacyJobMetadataOutTypedDict": ".legacyjobmetadataout", - "LibraryIn": ".libraryin", - "LibraryInTypedDict": ".libraryin", + "LibrariesDeleteV1Request": ".libraries_delete_v1op", + "LibrariesDeleteV1RequestTypedDict": ".libraries_delete_v1op", + "LibrariesDocumentsDeleteV1Request": ".libraries_documents_delete_v1op", + "LibrariesDocumentsDeleteV1RequestTypedDict": ".libraries_documents_delete_v1op", + "LibrariesDocumentsGetExtractedTextSignedURLV1Request": ".libraries_documents_get_extracted_text_signed_url_v1op", + "LibrariesDocumentsGetExtractedTextSignedURLV1RequestTypedDict": ".libraries_documents_get_extracted_text_signed_url_v1op", + "LibrariesDocumentsGetSignedURLV1Request": ".libraries_documents_get_signed_url_v1op", + "LibrariesDocumentsGetSignedURLV1RequestTypedDict": ".libraries_documents_get_signed_url_v1op", + "LibrariesDocumentsGetStatusV1Request": ".libraries_documents_get_status_v1op", + "LibrariesDocumentsGetStatusV1RequestTypedDict": ".libraries_documents_get_status_v1op", + "LibrariesDocumentsGetTextContentV1Request": ".libraries_documents_get_text_content_v1op", + "LibrariesDocumentsGetTextContentV1RequestTypedDict": ".libraries_documents_get_text_content_v1op", + "LibrariesDocumentsGetV1Request": ".libraries_documents_get_v1op", + "LibrariesDocumentsGetV1RequestTypedDict": ".libraries_documents_get_v1op", + "LibrariesDocumentsListV1Request": ".libraries_documents_list_v1op", + "LibrariesDocumentsListV1RequestTypedDict": ".libraries_documents_list_v1op", + "LibrariesDocumentsReprocessV1Request": ".libraries_documents_reprocess_v1op", + "LibrariesDocumentsReprocessV1RequestTypedDict": ".libraries_documents_reprocess_v1op", + "LibrariesDocumentsUpdateV1Request": ".libraries_documents_update_v1op", + "LibrariesDocumentsUpdateV1RequestTypedDict": ".libraries_documents_update_v1op", + "LibrariesDocumentsUploadV1Request": ".libraries_documents_upload_v1op", + "LibrariesDocumentsUploadV1RequestTypedDict": ".libraries_documents_upload_v1op", + "UploadDocumentRequest": ".libraries_documents_upload_v1op", + "UploadDocumentRequestTypedDict": ".libraries_documents_upload_v1op", + "LibrariesGetV1Request": ".libraries_get_v1op", + "LibrariesGetV1RequestTypedDict": ".libraries_get_v1op", + "LibrariesShareCreateV1Request": ".libraries_share_create_v1op", + "LibrariesShareCreateV1RequestTypedDict": ".libraries_share_create_v1op", + "LibrariesShareDeleteV1Request": ".libraries_share_delete_v1op", + "LibrariesShareDeleteV1RequestTypedDict": ".libraries_share_delete_v1op", + "LibrariesShareListV1Request": ".libraries_share_list_v1op", + "LibrariesShareListV1RequestTypedDict": ".libraries_share_list_v1op", + "LibrariesUpdateV1Request": ".libraries_update_v1op", + "LibrariesUpdateV1RequestTypedDict": ".libraries_update_v1op", + "Library": ".library", + "LibraryTypedDict": ".library", "LibraryInUpdate": ".libraryinupdate", "LibraryInUpdateTypedDict": ".libraryinupdate", - "LibraryOut": ".libraryout", - "LibraryOutTypedDict": ".libraryout", - "ListAgentAliasesRequest": ".listagentaliasesop", - "ListAgentAliasesRequestTypedDict": ".listagentaliasesop", - "ListAgentsRequest": ".listagentsop", - "ListAgentsRequestTypedDict": ".listagentsop", - "ListAgentVersionsRequest": ".listagentversionsop", - "ListAgentVersionsRequestTypedDict": ".listagentversionsop", - "ListBatchJobsRequest": ".listbatchjobsop", - "ListBatchJobsRequestTypedDict": ".listbatchjobsop", - "OrderBy": ".listbatchjobsop", - "ListConversationsRequest": ".listconversationsop", - "ListConversationsRequestTypedDict": ".listconversationsop", - "ListConversationsResponse": ".listconversationsop", - "ListConversationsResponseTypedDict": ".listconversationsop", - "ListDocumentOut": ".listdocumentout", - "ListDocumentOutTypedDict": ".listdocumentout", - "ListDocumentsRequest": ".listdocumentsop", - "ListDocumentsRequestTypedDict": ".listdocumentsop", - "ListFilesRequest": ".listfilesop", - "ListFilesRequestTypedDict": ".listfilesop", - "ListFilesOut": ".listfilesout", - "ListFilesOutTypedDict": ".listfilesout", - "ListFineTuningJobsRequest": ".listfinetuningjobsop", - "ListFineTuningJobsRequestTypedDict": ".listfinetuningjobsop", - "ListFineTuningJobsStatus": ".listfinetuningjobsop", - "ListLibraryAccessesRequest": ".listlibraryaccessesop", - "ListLibraryAccessesRequestTypedDict": ".listlibraryaccessesop", - "ListLibraryOut": ".listlibraryout", - "ListLibraryOutTypedDict": ".listlibraryout", - "ListSharingOut": ".listsharingout", - "ListSharingOutTypedDict": ".listsharingout", + "ListBatchJobsResponse": ".listbatchjobsresponse", + "ListBatchJobsResponseTypedDict": ".listbatchjobsresponse", + "ListDocumentsResponse": ".listdocumentsresponse", + "ListDocumentsResponseTypedDict": ".listdocumentsresponse", + "ListFilesResponse": ".listfilesresponse", + "ListFilesResponseTypedDict": ".listfilesresponse", + "ListFineTuningJobsResponse": ".listfinetuningjobsresponse", + "ListFineTuningJobsResponseData": ".listfinetuningjobsresponse", + "ListFineTuningJobsResponseDataTypedDict": ".listfinetuningjobsresponse", + "ListFineTuningJobsResponseTypedDict": ".listfinetuningjobsresponse", + "ListLibrariesResponse": ".listlibrariesresponse", + "ListLibrariesResponseTypedDict": ".listlibrariesresponse", + "ListLibraryAccessesResponse": ".listlibraryaccessesresponse", + "ListLibraryAccessesResponseTypedDict": ".listlibraryaccessesresponse", "MessageEntries": ".messageentries", "MessageEntriesTypedDict": ".messageentries", "MessageInputContentChunks": ".messageinputcontentchunks", @@ -2065,8 +2323,8 @@ "OCRPageDimensionsTypedDict": ".ocrpagedimensions", "OCRPageObject": ".ocrpageobject", "OCRPageObjectTypedDict": ".ocrpageobject", - "Document": ".ocrrequest", - "DocumentTypedDict": ".ocrrequest", + "DocumentUnion": ".ocrrequest", + "DocumentUnionTypedDict": ".ocrrequest", "OCRRequest": ".ocrrequest", "OCRRequestTypedDict": ".ocrrequest", "TableFormat": ".ocrrequest", @@ -2100,8 +2358,6 @@ "ReferenceChunk": ".referencechunk", "ReferenceChunkType": ".referencechunk", "ReferenceChunkTypedDict": ".referencechunk", - "ReprocessDocumentRequest": ".reprocessdocumentop", - "ReprocessDocumentRequestTypedDict": ".reprocessdocumentop", "RequestSource": ".requestsource", "ResponseDoneEvent": ".responsedoneevent", "ResponseDoneEventTypedDict": ".responsedoneevent", @@ -2113,35 +2369,25 @@ "ResponseStartedEvent": ".responsestartedevent", "ResponseStartedEventTypedDict": ".responsestartedevent", "ResponseValidationError": ".responsevalidationerror", - "RestartConversationRequest": ".restartconversationop", - "RestartConversationRequestTypedDict": ".restartconversationop", - "RestartConversationStreamRequest": ".restartconversationstreamop", - "RestartConversationStreamRequestTypedDict": ".restartconversationstreamop", - "RetrieveFileRequest": ".retrievefileop", - "RetrieveFileRequestTypedDict": ".retrievefileop", - "RetrieveFileOut": ".retrievefileout", - "RetrieveFileOutTypedDict": ".retrievefileout", - "ResponseRetrieveModelV1ModelsModelIDGet": ".retrievemodelop", - "ResponseRetrieveModelV1ModelsModelIDGetTypedDict": ".retrievemodelop", - "RetrieveModelRequest": ".retrievemodelop", - "RetrieveModelRequestTypedDict": ".retrievemodelop", + "BaseModelCardGetModelResponse": ".retrieve_model_v1_models_model_id_getop", + "BaseModelCardGetModelResponseTypedDict": ".retrieve_model_v1_models_model_id_getop", + "FTModelCardGetModelResponse": ".retrieve_model_v1_models_model_id_getop", + "FTModelCardGetModelResponseTypedDict": ".retrieve_model_v1_models_model_id_getop", + "GetModelResponse": ".retrieve_model_v1_models_model_id_getop", + "GetModelResponseTypedDict": ".retrieve_model_v1_models_model_id_getop", + "RetrieveModelV1ModelsModelIDGetRequest": ".retrieve_model_v1_models_model_id_getop", + "RetrieveModelV1ModelsModelIDGetRequestTypedDict": ".retrieve_model_v1_models_model_id_getop", "SampleType": ".sampletype", "SDKError": ".sdkerror", "Security": ".security", "SecurityTypedDict": ".security", "ShareEnum": ".shareenum", + "Sharing": ".sharing", + "SharingTypedDict": ".sharing", "SharingDelete": ".sharingdelete", "SharingDeleteTypedDict": ".sharingdelete", - "SharingIn": ".sharingin", - "SharingInTypedDict": ".sharingin", - "SharingOut": ".sharingout", - "SharingOutTypedDict": ".sharingout", "Source": ".source", "SSETypes": ".ssetypes", - "StartFineTuningJobRequest": ".startfinetuningjobop", - "StartFineTuningJobRequestTypedDict": ".startfinetuningjobop", - "StartFineTuningJobResponse": ".startfinetuningjobop", - "StartFineTuningJobResponseTypedDict": ".startfinetuningjobop", "SystemMessage": ".systemmessage", "SystemMessageContent": ".systemmessage", "SystemMessageContentTypedDict": ".systemmessage", @@ -2219,32 +2465,12 @@ "TranscriptionStreamTextDeltaTypedDict": ".transcriptionstreamtextdelta", "UnarchiveFTModelOut": ".unarchiveftmodelout", "UnarchiveFTModelOutTypedDict": ".unarchiveftmodelout", - "UnarchiveModelRequest": ".unarchivemodelop", - "UnarchiveModelRequestTypedDict": ".unarchivemodelop", - "UpdateAgentRequest": ".updateagentop", - "UpdateAgentRequestTypedDict": ".updateagentop", - "UpdateAgentVersionRequest": ".updateagentversionop", - "UpdateAgentVersionRequestTypedDict": ".updateagentversionop", - "UpdateDocumentRequest": ".updatedocumentop", - "UpdateDocumentRequestTypedDict": ".updatedocumentop", "UpdateFTModelIn": ".updateftmodelin", "UpdateFTModelInTypedDict": ".updateftmodelin", - "UpdateLibraryRequest": ".updatelibraryop", - "UpdateLibraryRequestTypedDict": ".updatelibraryop", - "UpdateModelRequest": ".updatemodelop", - "UpdateModelRequestTypedDict": ".updatemodelop", - "UpdateModelResponse": ".updatemodelop", - "UpdateModelResponseTypedDict": ".updatemodelop", - "UpdateOrCreateLibraryAccessRequest": ".updateorcreatelibraryaccessop", - "UpdateOrCreateLibraryAccessRequestTypedDict": ".updateorcreatelibraryaccessop", - "DocumentUpload": ".uploaddocumentop", - "DocumentUploadTypedDict": ".uploaddocumentop", - "UploadDocumentRequest": ".uploaddocumentop", - "UploadDocumentRequestTypedDict": ".uploaddocumentop", - "MultiPartBodyParams": ".uploadfileop", - "MultiPartBodyParamsTypedDict": ".uploadfileop", - "UploadFileOut": ".uploadfileout", - "UploadFileOutTypedDict": ".uploadfileout", + "UpdateOrCreateLibraryAccessRequest": ".updateorcreatelibraryaccessrequest", + "UpdateOrCreateLibraryAccessRequestTypedDict": ".updateorcreatelibraryaccessrequest", + "UploadFileResponse": ".uploadfileresponse", + "UploadFileResponseTypedDict": ".uploadfileresponse", "UsageInfo": ".usageinfo", "UsageInfoTypedDict": ".usageinfo", "UserMessage": ".usermessage", diff --git a/src/mistralai/client/models/createorupdateagentaliasop.py b/src/mistralai/client/models/agents_api_v1_agents_create_or_update_aliasop.py similarity index 80% rename from src/mistralai/client/models/createorupdateagentaliasop.py rename to src/mistralai/client/models/agents_api_v1_agents_create_or_update_aliasop.py index cde1dd05..04761ae7 100644 --- a/src/mistralai/client/models/createorupdateagentaliasop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_create_or_update_aliasop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: a79cf28bda01 +# @generated-id: 23a832f8f175 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,13 +7,13 @@ from typing_extensions import Annotated, TypedDict -class CreateOrUpdateAgentAliasRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsCreateOrUpdateAliasRequestTypedDict(TypedDict): agent_id: str alias: str version: int -class CreateOrUpdateAgentAliasRequest(BaseModel): +class AgentsAPIV1AgentsCreateOrUpdateAliasRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/deleteagentaliasop.py b/src/mistralai/client/models/agents_api_v1_agents_delete_aliasop.py similarity index 78% rename from src/mistralai/client/models/deleteagentaliasop.py rename to src/mistralai/client/models/agents_api_v1_agents_delete_aliasop.py index c52d099e..291a9802 100644 --- a/src/mistralai/client/models/deleteagentaliasop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_delete_aliasop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: e4d0d7f75b24 +# @generated-id: 9c9947e768d3 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class DeleteAgentAliasRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsDeleteAliasRequestTypedDict(TypedDict): agent_id: str alias: str -class DeleteAgentAliasRequest(BaseModel): +class AgentsAPIV1AgentsDeleteAliasRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listagentaliasesop.py b/src/mistralai/client/models/agents_api_v1_agents_deleteop.py similarity index 74% rename from src/mistralai/client/models/listagentaliasesop.py rename to src/mistralai/client/models/agents_api_v1_agents_deleteop.py index 83c6d176..5e41fdcd 100644 --- a/src/mistralai/client/models/listagentaliasesop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_deleteop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ff038766a902 +# @generated-id: 95adb6768908 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class ListAgentAliasesRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsDeleteRequestTypedDict(TypedDict): agent_id: str -class ListAgentAliasesRequest(BaseModel): +class AgentsAPIV1AgentsDeleteRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getagentversionop.py b/src/mistralai/client/models/agents_api_v1_agents_get_versionop.py similarity index 78% rename from src/mistralai/client/models/getagentversionop.py rename to src/mistralai/client/models/agents_api_v1_agents_get_versionop.py index 77b8a266..941863d0 100644 --- a/src/mistralai/client/models/getagentversionop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_get_versionop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: a0db5a6aab1f +# @generated-id: ef9914284afb from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetAgentVersionRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsGetVersionRequestTypedDict(TypedDict): agent_id: str version: str -class GetAgentVersionRequest(BaseModel): +class AgentsAPIV1AgentsGetVersionRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getagentop.py b/src/mistralai/client/models/agents_api_v1_agents_getop.py similarity index 76% rename from src/mistralai/client/models/getagentop.py rename to src/mistralai/client/models/agents_api_v1_agents_getop.py index 55d8fe68..6870441c 100644 --- a/src/mistralai/client/models/getagentop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_getop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 5a28bb1e727e +# @generated-id: f5918c34f1c7 from __future__ import annotations from mistralai.client.types import ( @@ -15,26 +15,28 @@ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict -GetAgentAgentVersionTypedDict = TypeAliasType( - "GetAgentAgentVersionTypedDict", Union[int, str] +AgentsAPIV1AgentsGetAgentVersionTypedDict = TypeAliasType( + "AgentsAPIV1AgentsGetAgentVersionTypedDict", Union[int, str] ) -GetAgentAgentVersion = TypeAliasType("GetAgentAgentVersion", Union[int, str]) +AgentsAPIV1AgentsGetAgentVersion = TypeAliasType( + "AgentsAPIV1AgentsGetAgentVersion", Union[int, str] +) -class GetAgentRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsGetRequestTypedDict(TypedDict): agent_id: str - agent_version: NotRequired[Nullable[GetAgentAgentVersionTypedDict]] + agent_version: NotRequired[Nullable[AgentsAPIV1AgentsGetAgentVersionTypedDict]] -class GetAgentRequest(BaseModel): +class AgentsAPIV1AgentsGetRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] agent_version: Annotated[ - OptionalNullable[GetAgentAgentVersion], + OptionalNullable[AgentsAPIV1AgentsGetAgentVersion], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET diff --git a/src/mistralai/client/models/deleteagentop.py b/src/mistralai/client/models/agents_api_v1_agents_list_version_aliasesop.py similarity index 71% rename from src/mistralai/client/models/deleteagentop.py rename to src/mistralai/client/models/agents_api_v1_agents_list_version_aliasesop.py index 8b14bca7..bb1da602 100644 --- a/src/mistralai/client/models/deleteagentop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_list_version_aliasesop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 089fb7f87aea +# @generated-id: a04815e6c798 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class DeleteAgentRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsListVersionAliasesRequestTypedDict(TypedDict): agent_id: str -class DeleteAgentRequest(BaseModel): +class AgentsAPIV1AgentsListVersionAliasesRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listagentversionsop.py b/src/mistralai/client/models/agents_api_v1_agents_list_versionsop.py similarity index 86% rename from src/mistralai/client/models/listagentversionsop.py rename to src/mistralai/client/models/agents_api_v1_agents_list_versionsop.py index 613d3d85..1e14ff06 100644 --- a/src/mistralai/client/models/listagentversionsop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_list_versionsop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ccc5fb48e78f +# @generated-id: 19e3310c3907 from __future__ import annotations from mistralai.client.types import BaseModel @@ -8,7 +8,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class ListAgentVersionsRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsListVersionsRequestTypedDict(TypedDict): agent_id: str page: NotRequired[int] r"""Page number (0-indexed)""" @@ -16,7 +16,7 @@ class ListAgentVersionsRequestTypedDict(TypedDict): r"""Number of versions per page""" -class ListAgentVersionsRequest(BaseModel): +class AgentsAPIV1AgentsListVersionsRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listagentsop.py b/src/mistralai/client/models/agents_api_v1_agents_listop.py similarity index 96% rename from src/mistralai/client/models/listagentsop.py rename to src/mistralai/client/models/agents_api_v1_agents_listop.py index 863fc13a..2e7ab864 100644 --- a/src/mistralai/client/models/listagentsop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_listop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: a573a873c404 +# @generated-id: 25a6460a6e19 from __future__ import annotations from .requestsource import RequestSource @@ -16,7 +16,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class ListAgentsRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsListRequestTypedDict(TypedDict): page: NotRequired[int] r"""Page number (0-indexed)""" page_size: NotRequired[int] @@ -31,7 +31,7 @@ class ListAgentsRequestTypedDict(TypedDict): metadata: NotRequired[Nullable[Dict[str, Any]]] -class ListAgentsRequest(BaseModel): +class AgentsAPIV1AgentsListRequest(BaseModel): page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), diff --git a/src/mistralai/client/models/updateagentversionop.py b/src/mistralai/client/models/agents_api_v1_agents_update_versionop.py similarity index 78% rename from src/mistralai/client/models/updateagentversionop.py rename to src/mistralai/client/models/agents_api_v1_agents_update_versionop.py index 114013bc..5ab821ea 100644 --- a/src/mistralai/client/models/updateagentversionop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_update_versionop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 3821dca5b20a +# @generated-id: 63f61b8891bf from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class UpdateAgentVersionRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsUpdateVersionRequestTypedDict(TypedDict): agent_id: str version: int -class UpdateAgentVersionRequest(BaseModel): +class AgentsAPIV1AgentsUpdateVersionRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/updateagentop.py b/src/mistralai/client/models/agents_api_v1_agents_updateop.py similarity index 83% rename from src/mistralai/client/models/updateagentop.py rename to src/mistralai/client/models/agents_api_v1_agents_updateop.py index 28acc83d..e5165a4b 100644 --- a/src/mistralai/client/models/updateagentop.py +++ b/src/mistralai/client/models/agents_api_v1_agents_updateop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ae3a6abea468 +# @generated-id: bb55993c932d from __future__ import annotations from .agentupdaterequest import AgentUpdateRequest, AgentUpdateRequestTypedDict @@ -8,12 +8,12 @@ from typing_extensions import Annotated, TypedDict -class UpdateAgentRequestTypedDict(TypedDict): +class AgentsAPIV1AgentsUpdateRequestTypedDict(TypedDict): agent_id: str agent_update_request: AgentUpdateRequestTypedDict -class UpdateAgentRequest(BaseModel): +class AgentsAPIV1AgentsUpdateRequest(BaseModel): agent_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/appendconversationstreamop.py b/src/mistralai/client/models/agents_api_v1_conversations_append_streamop.py similarity index 85% rename from src/mistralai/client/models/appendconversationstreamop.py rename to src/mistralai/client/models/agents_api_v1_conversations_append_streamop.py index 55efca0e..d257dc78 100644 --- a/src/mistralai/client/models/appendconversationstreamop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_append_streamop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1ab08b189e9d +# @generated-id: ec00e0905f15 from __future__ import annotations from .conversationappendstreamrequest import ( @@ -11,13 +11,13 @@ from typing_extensions import Annotated, TypedDict -class AppendConversationStreamRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsAppendStreamRequestTypedDict(TypedDict): conversation_id: str r"""ID of the conversation to which we append entries.""" conversation_append_stream_request: ConversationAppendStreamRequestTypedDict -class AppendConversationStreamRequest(BaseModel): +class AgentsAPIV1ConversationsAppendStreamRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/appendconversationop.py b/src/mistralai/client/models/agents_api_v1_conversations_appendop.py similarity index 85% rename from src/mistralai/client/models/appendconversationop.py rename to src/mistralai/client/models/agents_api_v1_conversations_appendop.py index 710b8e1c..61fec083 100644 --- a/src/mistralai/client/models/appendconversationop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_appendop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1c47dd1e7c7e +# @generated-id: 39c6125e850c from __future__ import annotations from .conversationappendrequest import ( @@ -11,13 +11,13 @@ from typing_extensions import Annotated, TypedDict -class AppendConversationRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsAppendRequestTypedDict(TypedDict): conversation_id: str r"""ID of the conversation to which we append entries.""" conversation_append_request: ConversationAppendRequestTypedDict -class AppendConversationRequest(BaseModel): +class AgentsAPIV1ConversationsAppendRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/deleteconversationop.py b/src/mistralai/client/models/agents_api_v1_conversations_deleteop.py similarity index 78% rename from src/mistralai/client/models/deleteconversationop.py rename to src/mistralai/client/models/agents_api_v1_conversations_deleteop.py index 39607f40..499645a7 100644 --- a/src/mistralai/client/models/deleteconversationop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_deleteop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 86fefc353db0 +# @generated-id: 0792e6abbdcb from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class DeleteConversationRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsDeleteRequestTypedDict(TypedDict): conversation_id: str r"""ID of the conversation from which we are fetching metadata.""" -class DeleteConversationRequest(BaseModel): +class AgentsAPIV1ConversationsDeleteRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/agents_api_v1_conversations_getop.py b/src/mistralai/client/models/agents_api_v1_conversations_getop.py new file mode 100644 index 00000000..bf985d98 --- /dev/null +++ b/src/mistralai/client/models/agents_api_v1_conversations_getop.py @@ -0,0 +1,259 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: c530f2fc64d0 + +from __future__ import annotations +from .codeinterpretertool import CodeInterpreterTool, CodeInterpreterToolTypedDict +from .completionargs import CompletionArgs, CompletionArgsTypedDict +from .documentlibrarytool import DocumentLibraryTool, DocumentLibraryToolTypedDict +from .functiontool import FunctionTool, FunctionToolTypedDict +from .imagegenerationtool import ImageGenerationTool, ImageGenerationToolTypedDict +from .websearchpremiumtool import WebSearchPremiumTool, WebSearchPremiumToolTypedDict +from .websearchtool import WebSearchTool, WebSearchToolTypedDict +from datetime import datetime +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from pydantic import Field, model_serializer +from typing import Any, Dict, List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class AgentsAPIV1ConversationsGetRequestTypedDict(TypedDict): + conversation_id: str + r"""ID of the conversation from which we are fetching metadata.""" + + +class AgentsAPIV1ConversationsGetRequest(BaseModel): + conversation_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + r"""ID of the conversation from which we are fetching metadata.""" + + +AgentsAPIV1ConversationsGetAgentConversationObject = Literal["conversation",] + + +AgentsAPIV1ConversationsGetAgentVersionTypedDict = TypeAliasType( + "AgentsAPIV1ConversationsGetAgentVersionTypedDict", Union[str, int] +) + + +AgentsAPIV1ConversationsGetAgentVersion = TypeAliasType( + "AgentsAPIV1ConversationsGetAgentVersion", Union[str, int] +) + + +class AgentConversationGetConversationResponseTypedDict(TypedDict): + id: str + created_at: datetime + updated_at: datetime + agent_id: str + name: NotRequired[Nullable[str]] + r"""Name given to the conversation.""" + description: NotRequired[Nullable[str]] + r"""Description of the what the conversation is about.""" + metadata: NotRequired[Nullable[Dict[str, Any]]] + r"""Custom metadata for the conversation.""" + object: NotRequired[AgentsAPIV1ConversationsGetAgentConversationObject] + agent_version: NotRequired[ + Nullable[AgentsAPIV1ConversationsGetAgentVersionTypedDict] + ] + + +class AgentConversationGetConversationResponse(BaseModel): + id: str + + created_at: datetime + + updated_at: datetime + + agent_id: str + + name: OptionalNullable[str] = UNSET + r"""Name given to the conversation.""" + + description: OptionalNullable[str] = UNSET + r"""Description of the what the conversation is about.""" + + metadata: OptionalNullable[Dict[str, Any]] = UNSET + r"""Custom metadata for the conversation.""" + + object: Optional[AgentsAPIV1ConversationsGetAgentConversationObject] = ( + "conversation" + ) + + agent_version: OptionalNullable[AgentsAPIV1ConversationsGetAgentVersion] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["name", "description", "metadata", "object", "agent_version"] + nullable_fields = ["name", "description", "metadata", "agent_version"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +AgentsAPIV1ConversationsGetToolTypedDict = TypeAliasType( + "AgentsAPIV1ConversationsGetToolTypedDict", + Union[ + WebSearchToolTypedDict, + WebSearchPremiumToolTypedDict, + CodeInterpreterToolTypedDict, + ImageGenerationToolTypedDict, + FunctionToolTypedDict, + DocumentLibraryToolTypedDict, + ], +) + + +AgentsAPIV1ConversationsGetTool = Annotated[ + Union[ + CodeInterpreterTool, + DocumentLibraryTool, + FunctionTool, + ImageGenerationTool, + WebSearchTool, + WebSearchPremiumTool, + ], + Field(discriminator="TYPE"), +] + + +AgentsAPIV1ConversationsGetModelConversationObject = Literal["conversation",] + + +class ModelConversationGetConversationResponseTypedDict(TypedDict): + id: str + created_at: datetime + updated_at: datetime + model: str + instructions: NotRequired[Nullable[str]] + r"""Instruction prompt the model will follow during the conversation.""" + tools: NotRequired[List[AgentsAPIV1ConversationsGetToolTypedDict]] + r"""List of tools which are available to the model during the conversation.""" + completion_args: NotRequired[CompletionArgsTypedDict] + r"""White-listed arguments from the completion API""" + name: NotRequired[Nullable[str]] + r"""Name given to the conversation.""" + description: NotRequired[Nullable[str]] + r"""Description of the what the conversation is about.""" + metadata: NotRequired[Nullable[Dict[str, Any]]] + r"""Custom metadata for the conversation.""" + object: NotRequired[AgentsAPIV1ConversationsGetModelConversationObject] + + +class ModelConversationGetConversationResponse(BaseModel): + id: str + + created_at: datetime + + updated_at: datetime + + model: str + + instructions: OptionalNullable[str] = UNSET + r"""Instruction prompt the model will follow during the conversation.""" + + tools: Optional[List[AgentsAPIV1ConversationsGetTool]] = None + r"""List of tools which are available to the model during the conversation.""" + + completion_args: Optional[CompletionArgs] = None + r"""White-listed arguments from the completion API""" + + name: OptionalNullable[str] = UNSET + r"""Name given to the conversation.""" + + description: OptionalNullable[str] = UNSET + r"""Description of the what the conversation is about.""" + + metadata: OptionalNullable[Dict[str, Any]] = UNSET + r"""Custom metadata for the conversation.""" + + object: Optional[AgentsAPIV1ConversationsGetModelConversationObject] = ( + "conversation" + ) + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "instructions", + "tools", + "completion_args", + "name", + "description", + "metadata", + "object", + ] + nullable_fields = ["instructions", "name", "description", "metadata"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +GetConversationResponseTypedDict = TypeAliasType( + "GetConversationResponseTypedDict", + Union[ + AgentConversationGetConversationResponseTypedDict, + ModelConversationGetConversationResponseTypedDict, + ], +) +r"""Successful Response""" + + +GetConversationResponse = TypeAliasType( + "GetConversationResponse", + Union[ + AgentConversationGetConversationResponse, + ModelConversationGetConversationResponse, + ], +) +r"""Successful Response""" diff --git a/src/mistralai/client/models/getconversationhistoryop.py b/src/mistralai/client/models/agents_api_v1_conversations_historyop.py similarity index 78% rename from src/mistralai/client/models/getconversationhistoryop.py rename to src/mistralai/client/models/agents_api_v1_conversations_historyop.py index c1fbf3de..ef0a4eb0 100644 --- a/src/mistralai/client/models/getconversationhistoryop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_historyop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: c863a4cbeb34 +# @generated-id: 2f5ca33768aa from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetConversationHistoryRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsHistoryRequestTypedDict(TypedDict): conversation_id: str r"""ID of the conversation from which we are fetching entries.""" -class GetConversationHistoryRequest(BaseModel): +class AgentsAPIV1ConversationsHistoryRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listconversationsop.py b/src/mistralai/client/models/agents_api_v1_conversations_listop.py similarity index 84% rename from src/mistralai/client/models/listconversationsop.py rename to src/mistralai/client/models/agents_api_v1_conversations_listop.py index 1c9a347c..01dec1dd 100644 --- a/src/mistralai/client/models/listconversationsop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_listop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d6007f6c1643 +# @generated-id: 936e36181d36 from __future__ import annotations from .agentconversation import AgentConversation, AgentConversationTypedDict @@ -17,13 +17,13 @@ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict -class ListConversationsRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsListRequestTypedDict(TypedDict): page: NotRequired[int] page_size: NotRequired[int] metadata: NotRequired[Nullable[Dict[str, Any]]] -class ListConversationsRequest(BaseModel): +class AgentsAPIV1ConversationsListRequest(BaseModel): page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -70,12 +70,12 @@ def serialize_model(self, handler): return m -ListConversationsResponseTypedDict = TypeAliasType( - "ListConversationsResponseTypedDict", +AgentsAPIV1ConversationsListResponseTypedDict = TypeAliasType( + "AgentsAPIV1ConversationsListResponseTypedDict", Union[AgentConversationTypedDict, ModelConversationTypedDict], ) -ListConversationsResponse = TypeAliasType( - "ListConversationsResponse", Union[AgentConversation, ModelConversation] +AgentsAPIV1ConversationsListResponse = TypeAliasType( + "AgentsAPIV1ConversationsListResponse", Union[AgentConversation, ModelConversation] ) diff --git a/src/mistralai/client/models/getconversationmessagesop.py b/src/mistralai/client/models/agents_api_v1_conversations_messagesop.py similarity index 78% rename from src/mistralai/client/models/getconversationmessagesop.py rename to src/mistralai/client/models/agents_api_v1_conversations_messagesop.py index 6666198e..19978a19 100644 --- a/src/mistralai/client/models/getconversationmessagesop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_messagesop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: bb8a90ba7c22 +# @generated-id: b5141764a708 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetConversationMessagesRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsMessagesRequestTypedDict(TypedDict): conversation_id: str r"""ID of the conversation from which we are fetching messages.""" -class GetConversationMessagesRequest(BaseModel): +class AgentsAPIV1ConversationsMessagesRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/restartconversationstreamop.py b/src/mistralai/client/models/agents_api_v1_conversations_restart_streamop.py similarity index 85% rename from src/mistralai/client/models/restartconversationstreamop.py rename to src/mistralai/client/models/agents_api_v1_conversations_restart_streamop.py index 3b2025f5..63c74449 100644 --- a/src/mistralai/client/models/restartconversationstreamop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_restart_streamop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 16dc9ee5bf22 +# @generated-id: c284a1711148 from __future__ import annotations from .conversationrestartstreamrequest import ( @@ -11,13 +11,13 @@ from typing_extensions import Annotated, TypedDict -class RestartConversationStreamRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsRestartStreamRequestTypedDict(TypedDict): conversation_id: str r"""ID of the original conversation which is being restarted.""" conversation_restart_stream_request: ConversationRestartStreamRequestTypedDict -class RestartConversationStreamRequest(BaseModel): +class AgentsAPIV1ConversationsRestartStreamRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/restartconversationop.py b/src/mistralai/client/models/agents_api_v1_conversations_restartop.py similarity index 85% rename from src/mistralai/client/models/restartconversationop.py rename to src/mistralai/client/models/agents_api_v1_conversations_restartop.py index b09eaed5..3186d5df 100644 --- a/src/mistralai/client/models/restartconversationop.py +++ b/src/mistralai/client/models/agents_api_v1_conversations_restartop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 2f6f3e4bbfd8 +# @generated-id: 3ba234e5a8fc from __future__ import annotations from .conversationrestartrequest import ( @@ -11,13 +11,13 @@ from typing_extensions import Annotated, TypedDict -class RestartConversationRequestTypedDict(TypedDict): +class AgentsAPIV1ConversationsRestartRequestTypedDict(TypedDict): conversation_id: str r"""ID of the original conversation which is being restarted.""" conversation_restart_request: ConversationRestartRequestTypedDict -class RestartConversationRequest(BaseModel): +class AgentsAPIV1ConversationsRestartRequest(BaseModel): conversation_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/batchjobout.py b/src/mistralai/client/models/batchjob.py similarity index 97% rename from src/mistralai/client/models/batchjobout.py rename to src/mistralai/client/models/batchjob.py index 99c2b951..0c315af6 100644 --- a/src/mistralai/client/models/batchjobout.py +++ b/src/mistralai/client/models/batchjob.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: cbf1d872a46e +# @generated-id: 85cd28932cc7 from __future__ import annotations from .batcherror import BatchError, BatchErrorTypedDict @@ -19,7 +19,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class BatchJobOutTypedDict(TypedDict): +class BatchJobTypedDict(TypedDict): id: str input_files: List[str] endpoint: str @@ -41,7 +41,7 @@ class BatchJobOutTypedDict(TypedDict): completed_at: NotRequired[Nullable[int]] -class BatchJobOut(BaseModel): +class BatchJob(BaseModel): id: str input_files: List[str] diff --git a/src/mistralai/client/models/cancelfinetuningjobop.py b/src/mistralai/client/models/cancelfinetuningjobop.py deleted file mode 100644 index ddd445bb..00000000 --- a/src/mistralai/client/models/cancelfinetuningjobop.py +++ /dev/null @@ -1,43 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: c9a1b39f0d02 - -from __future__ import annotations -from .classifierdetailedjobout import ( - ClassifierDetailedJobOut, - ClassifierDetailedJobOutTypedDict, -) -from .completiondetailedjobout import ( - CompletionDetailedJobOut, - CompletionDetailedJobOutTypedDict, -) -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from pydantic import Field -from typing import Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -class CancelFineTuningJobRequestTypedDict(TypedDict): - job_id: str - r"""The ID of the job to cancel.""" - - -class CancelFineTuningJobRequest(BaseModel): - job_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - r"""The ID of the job to cancel.""" - - -CancelFineTuningJobResponseTypedDict = TypeAliasType( - "CancelFineTuningJobResponseTypedDict", - Union[CompletionDetailedJobOutTypedDict, ClassifierDetailedJobOutTypedDict], -) -r"""OK""" - - -CancelFineTuningJobResponse = Annotated[ - Union[ClassifierDetailedJobOut, CompletionDetailedJobOut], - Field(discriminator="JOB_TYPE"), -] -r"""OK""" diff --git a/src/mistralai/client/models/classifierdetailedjobout.py b/src/mistralai/client/models/classifierdetailedjobout.py deleted file mode 100644 index bc5c5381..00000000 --- a/src/mistralai/client/models/classifierdetailedjobout.py +++ /dev/null @@ -1,169 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d8daeb39ef9f - -from __future__ import annotations -from .checkpointout import CheckpointOut, CheckpointOutTypedDict -from .classifiertargetout import ClassifierTargetOut, ClassifierTargetOutTypedDict -from .classifiertrainingparameters import ( - ClassifierTrainingParameters, - ClassifierTrainingParametersTypedDict, -) -from .eventout import EventOut, EventOutTypedDict -from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict -from .wandbintegrationout import WandbIntegrationOut, WandbIntegrationOutTypedDict -from mistralai.client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, - UnrecognizedStr, -) -from mistralai.client.utils import validate_const -import pydantic -from pydantic import model_serializer -from pydantic.functional_validators import AfterValidator -from typing import List, Literal, Optional, Union -from typing_extensions import Annotated, NotRequired, TypedDict - - -ClassifierDetailedJobOutStatus = Union[ - Literal[ - "QUEUED", - "STARTED", - "VALIDATING", - "VALIDATED", - "RUNNING", - "FAILED_VALIDATION", - "FAILED", - "SUCCESS", - "CANCELLED", - "CANCELLATION_REQUESTED", - ], - UnrecognizedStr, -] - - -ClassifierDetailedJobOutIntegrationTypedDict = WandbIntegrationOutTypedDict - - -ClassifierDetailedJobOutIntegration = WandbIntegrationOut - - -class ClassifierDetailedJobOutTypedDict(TypedDict): - id: str - auto_start: bool - model: str - status: ClassifierDetailedJobOutStatus - created_at: int - modified_at: int - training_files: List[str] - hyperparameters: ClassifierTrainingParametersTypedDict - classifier_targets: List[ClassifierTargetOutTypedDict] - validation_files: NotRequired[Nullable[List[str]]] - object: Literal["job"] - fine_tuned_model: NotRequired[Nullable[str]] - suffix: NotRequired[Nullable[str]] - integrations: NotRequired[ - Nullable[List[ClassifierDetailedJobOutIntegrationTypedDict]] - ] - trained_tokens: NotRequired[Nullable[int]] - metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] - job_type: Literal["classifier"] - events: NotRequired[List[EventOutTypedDict]] - r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" - checkpoints: NotRequired[List[CheckpointOutTypedDict]] - - -class ClassifierDetailedJobOut(BaseModel): - id: str - - auto_start: bool - - model: str - - status: ClassifierDetailedJobOutStatus - - created_at: int - - modified_at: int - - training_files: List[str] - - hyperparameters: ClassifierTrainingParameters - - classifier_targets: List[ClassifierTargetOut] - - validation_files: OptionalNullable[List[str]] = UNSET - - OBJECT: Annotated[ - Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], - pydantic.Field(alias="object"), - ] = "job" - - fine_tuned_model: OptionalNullable[str] = UNSET - - suffix: OptionalNullable[str] = UNSET - - integrations: OptionalNullable[List[ClassifierDetailedJobOutIntegration]] = UNSET - - trained_tokens: OptionalNullable[int] = UNSET - - metadata: OptionalNullable[JobMetadataOut] = UNSET - - JOB_TYPE: Annotated[ - Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], - pydantic.Field(alias="job_type"), - ] = "classifier" - - events: Optional[List[EventOut]] = None - r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" - - checkpoints: Optional[List[CheckpointOut]] = None - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = [ - "validation_files", - "object", - "fine_tuned_model", - "suffix", - "integrations", - "trained_tokens", - "metadata", - "events", - "checkpoints", - ] - nullable_fields = [ - "validation_files", - "fine_tuned_model", - "suffix", - "integrations", - "trained_tokens", - "metadata", - ] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/mistralai/client/models/classifierftmodelout.py b/src/mistralai/client/models/classifierftmodelout.py deleted file mode 100644 index 182f4954..00000000 --- a/src/mistralai/client/models/classifierftmodelout.py +++ /dev/null @@ -1,117 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 2903a7123b06 - -from __future__ import annotations -from .classifiertargetout import ClassifierTargetOut, ClassifierTargetOutTypedDict -from .ftmodelcapabilitiesout import ( - FTModelCapabilitiesOut, - FTModelCapabilitiesOutTypedDict, -) -from mistralai.client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from mistralai.client.utils import validate_const -import pydantic -from pydantic import model_serializer -from pydantic.functional_validators import AfterValidator -from typing import List, Literal, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class ClassifierFTModelOutTypedDict(TypedDict): - id: str - created: int - owned_by: str - workspace_id: str - root: str - root_version: str - archived: bool - capabilities: FTModelCapabilitiesOutTypedDict - job: str - classifier_targets: List[ClassifierTargetOutTypedDict] - object: Literal["model"] - name: NotRequired[Nullable[str]] - description: NotRequired[Nullable[str]] - max_context_length: NotRequired[int] - aliases: NotRequired[List[str]] - model_type: Literal["classifier"] - - -class ClassifierFTModelOut(BaseModel): - id: str - - created: int - - owned_by: str - - workspace_id: str - - root: str - - root_version: str - - archived: bool - - capabilities: FTModelCapabilitiesOut - - job: str - - classifier_targets: List[ClassifierTargetOut] - - OBJECT: Annotated[ - Annotated[Optional[Literal["model"]], AfterValidator(validate_const("model"))], - pydantic.Field(alias="object"), - ] = "model" - - name: OptionalNullable[str] = UNSET - - description: OptionalNullable[str] = UNSET - - max_context_length: Optional[int] = 32768 - - aliases: Optional[List[str]] = None - - MODEL_TYPE: Annotated[ - Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], - pydantic.Field(alias="model_type"), - ] = "classifier" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = [ - "object", - "name", - "description", - "max_context_length", - "aliases", - ] - nullable_fields = ["name", "description"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/mistralai/client/models/completiondetailedjobout.py b/src/mistralai/client/models/completiondetailedjobout.py deleted file mode 100644 index cd3a86ee..00000000 --- a/src/mistralai/client/models/completiondetailedjobout.py +++ /dev/null @@ -1,176 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 9bc38dcfbddf - -from __future__ import annotations -from .checkpointout import CheckpointOut, CheckpointOutTypedDict -from .completiontrainingparameters import ( - CompletionTrainingParameters, - CompletionTrainingParametersTypedDict, -) -from .eventout import EventOut, EventOutTypedDict -from .githubrepositoryout import GithubRepositoryOut, GithubRepositoryOutTypedDict -from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict -from .wandbintegrationout import WandbIntegrationOut, WandbIntegrationOutTypedDict -from mistralai.client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, - UnrecognizedStr, -) -from mistralai.client.utils import validate_const -import pydantic -from pydantic import model_serializer -from pydantic.functional_validators import AfterValidator -from typing import List, Literal, Optional, Union -from typing_extensions import Annotated, NotRequired, TypedDict - - -CompletionDetailedJobOutStatus = Union[ - Literal[ - "QUEUED", - "STARTED", - "VALIDATING", - "VALIDATED", - "RUNNING", - "FAILED_VALIDATION", - "FAILED", - "SUCCESS", - "CANCELLED", - "CANCELLATION_REQUESTED", - ], - UnrecognizedStr, -] - - -CompletionDetailedJobOutIntegrationTypedDict = WandbIntegrationOutTypedDict - - -CompletionDetailedJobOutIntegration = WandbIntegrationOut - - -CompletionDetailedJobOutRepositoryTypedDict = GithubRepositoryOutTypedDict - - -CompletionDetailedJobOutRepository = GithubRepositoryOut - - -class CompletionDetailedJobOutTypedDict(TypedDict): - id: str - auto_start: bool - model: str - status: CompletionDetailedJobOutStatus - created_at: int - modified_at: int - training_files: List[str] - hyperparameters: CompletionTrainingParametersTypedDict - validation_files: NotRequired[Nullable[List[str]]] - object: Literal["job"] - fine_tuned_model: NotRequired[Nullable[str]] - suffix: NotRequired[Nullable[str]] - integrations: NotRequired[ - Nullable[List[CompletionDetailedJobOutIntegrationTypedDict]] - ] - trained_tokens: NotRequired[Nullable[int]] - metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] - job_type: Literal["completion"] - repositories: NotRequired[List[CompletionDetailedJobOutRepositoryTypedDict]] - events: NotRequired[List[EventOutTypedDict]] - r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" - checkpoints: NotRequired[List[CheckpointOutTypedDict]] - - -class CompletionDetailedJobOut(BaseModel): - id: str - - auto_start: bool - - model: str - - status: CompletionDetailedJobOutStatus - - created_at: int - - modified_at: int - - training_files: List[str] - - hyperparameters: CompletionTrainingParameters - - validation_files: OptionalNullable[List[str]] = UNSET - - OBJECT: Annotated[ - Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], - pydantic.Field(alias="object"), - ] = "job" - - fine_tuned_model: OptionalNullable[str] = UNSET - - suffix: OptionalNullable[str] = UNSET - - integrations: OptionalNullable[List[CompletionDetailedJobOutIntegration]] = UNSET - - trained_tokens: OptionalNullable[int] = UNSET - - metadata: OptionalNullable[JobMetadataOut] = UNSET - - JOB_TYPE: Annotated[ - Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], - pydantic.Field(alias="job_type"), - ] = "completion" - - repositories: Optional[List[CompletionDetailedJobOutRepository]] = None - - events: Optional[List[EventOut]] = None - r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" - - checkpoints: Optional[List[CheckpointOut]] = None - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = [ - "validation_files", - "object", - "fine_tuned_model", - "suffix", - "integrations", - "trained_tokens", - "metadata", - "repositories", - "events", - "checkpoints", - ] - nullable_fields = [ - "validation_files", - "fine_tuned_model", - "suffix", - "integrations", - "trained_tokens", - "metadata", - ] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/mistralai/client/models/completionftmodelout.py b/src/mistralai/client/models/completionftmodelout.py deleted file mode 100644 index 7ecbf54a..00000000 --- a/src/mistralai/client/models/completionftmodelout.py +++ /dev/null @@ -1,113 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 0f5277833b3e - -from __future__ import annotations -from .ftmodelcapabilitiesout import ( - FTModelCapabilitiesOut, - FTModelCapabilitiesOutTypedDict, -) -from mistralai.client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from mistralai.client.utils import validate_const -import pydantic -from pydantic import model_serializer -from pydantic.functional_validators import AfterValidator -from typing import List, Literal, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class CompletionFTModelOutTypedDict(TypedDict): - id: str - created: int - owned_by: str - workspace_id: str - root: str - root_version: str - archived: bool - capabilities: FTModelCapabilitiesOutTypedDict - job: str - object: Literal["model"] - name: NotRequired[Nullable[str]] - description: NotRequired[Nullable[str]] - max_context_length: NotRequired[int] - aliases: NotRequired[List[str]] - model_type: Literal["completion"] - - -class CompletionFTModelOut(BaseModel): - id: str - - created: int - - owned_by: str - - workspace_id: str - - root: str - - root_version: str - - archived: bool - - capabilities: FTModelCapabilitiesOut - - job: str - - OBJECT: Annotated[ - Annotated[Optional[Literal["model"]], AfterValidator(validate_const("model"))], - pydantic.Field(alias="object"), - ] = "model" - - name: OptionalNullable[str] = UNSET - - description: OptionalNullable[str] = UNSET - - max_context_length: Optional[int] = 32768 - - aliases: Optional[List[str]] = None - - MODEL_TYPE: Annotated[ - Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], - pydantic.Field(alias="model_type"), - ] = "completion" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = [ - "object", - "name", - "description", - "max_context_length", - "aliases", - ] - nullable_fields = ["name", "description"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/mistralai/client/models/batchjobin.py b/src/mistralai/client/models/createbatchjobrequest.py similarity index 97% rename from src/mistralai/client/models/batchjobin.py rename to src/mistralai/client/models/createbatchjobrequest.py index a0c3b914..2e765ce6 100644 --- a/src/mistralai/client/models/batchjobin.py +++ b/src/mistralai/client/models/createbatchjobrequest.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 72b25c2038d4 +# @generated-id: 56e24cd24e98 from __future__ import annotations from .apiendpoint import APIEndpoint @@ -16,7 +16,7 @@ from typing_extensions import NotRequired, TypedDict -class BatchJobInTypedDict(TypedDict): +class CreateBatchJobRequestTypedDict(TypedDict): endpoint: APIEndpoint input_files: NotRequired[Nullable[List[str]]] r"""The list of input files to be used for batch inference, these files should be `jsonl` files, containing the input data corresponding to the bory request for the batch inference in a \"body\" field. An example of such file is the following: ```json {\"custom_id\": \"0\", \"body\": {\"max_tokens\": 100, \"messages\": [{\"role\": \"user\", \"content\": \"What is the best French cheese?\"}]}} {\"custom_id\": \"1\", \"body\": {\"max_tokens\": 100, \"messages\": [{\"role\": \"user\", \"content\": \"What is the best French wine?\"}]}} ```""" @@ -31,7 +31,7 @@ class BatchJobInTypedDict(TypedDict): r"""The timeout in hours for the batch inference job.""" -class BatchJobIn(BaseModel): +class CreateBatchJobRequest(BaseModel): endpoint: APIEndpoint input_files: OptionalNullable[List[str]] = UNSET diff --git a/src/mistralai/client/models/createfinetuningjobop.py b/src/mistralai/client/models/createfinetuningjobop.py deleted file mode 100644 index f55deef5..00000000 --- a/src/mistralai/client/models/createfinetuningjobop.py +++ /dev/null @@ -1,33 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: fd3c305df250 - -from __future__ import annotations -from .classifierjobout import ClassifierJobOut, ClassifierJobOutTypedDict -from .completionjobout import CompletionJobOut, CompletionJobOutTypedDict -from .legacyjobmetadataout import LegacyJobMetadataOut, LegacyJobMetadataOutTypedDict -from pydantic import Field -from typing import Union -from typing_extensions import Annotated, TypeAliasType - - -ResponseTypedDict = TypeAliasType( - "ResponseTypedDict", Union[ClassifierJobOutTypedDict, CompletionJobOutTypedDict] -) - - -Response = Annotated[ - Union[ClassifierJobOut, CompletionJobOut], Field(discriminator="JOB_TYPE") -] - - -CreateFineTuningJobResponseTypedDict = TypeAliasType( - "CreateFineTuningJobResponseTypedDict", - Union[LegacyJobMetadataOutTypedDict, ResponseTypedDict], -) -r"""OK""" - - -CreateFineTuningJobResponse = TypeAliasType( - "CreateFineTuningJobResponse", Union[LegacyJobMetadataOut, Response] -) -r"""OK""" diff --git a/src/mistralai/client/models/jobin.py b/src/mistralai/client/models/createfinetuningjobrequest.py similarity index 86% rename from src/mistralai/client/models/jobin.py rename to src/mistralai/client/models/createfinetuningjobrequest.py index b3cb8998..2d7d5a7d 100644 --- a/src/mistralai/client/models/jobin.py +++ b/src/mistralai/client/models/createfinetuningjobrequest.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: f4d176123ccc +# @generated-id: c60d2a45d66b from __future__ import annotations from .classifiertargetin import ClassifierTargetIn, ClassifierTargetInTypedDict @@ -27,10 +27,10 @@ from typing_extensions import NotRequired, TypeAliasType, TypedDict -JobInIntegrationTypedDict = WandbIntegrationTypedDict +CreateFineTuningJobRequestIntegrationTypedDict = WandbIntegrationTypedDict -JobInIntegration = WandbIntegration +CreateFineTuningJobRequestIntegration = WandbIntegration HyperparametersTypedDict = TypeAliasType( @@ -47,13 +47,13 @@ ) -JobInRepositoryTypedDict = GithubRepositoryInTypedDict +CreateFineTuningJobRequestRepositoryTypedDict = GithubRepositoryInTypedDict -JobInRepository = GithubRepositoryIn +CreateFineTuningJobRequestRepository = GithubRepositoryIn -class JobInTypedDict(TypedDict): +class CreateFineTuningJobRequestTypedDict(TypedDict): model: str hyperparameters: HyperparametersTypedDict training_files: NotRequired[List[TrainingFileTypedDict]] @@ -61,17 +61,21 @@ class JobInTypedDict(TypedDict): r"""A list containing the IDs of uploaded files that contain validation data. If you provide these files, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in `checkpoints` when getting the status of a running fine-tuning job. The same data should not be present in both train and validation files.""" suffix: NotRequired[Nullable[str]] r"""A string that will be added to your fine-tuning model name. For example, a suffix of \"my-great-model\" would produce a model name like `ft:open-mistral-7b:my-great-model:xxx...`""" - integrations: NotRequired[Nullable[List[JobInIntegrationTypedDict]]] + integrations: NotRequired[ + Nullable[List[CreateFineTuningJobRequestIntegrationTypedDict]] + ] r"""A list of integrations to enable for your fine-tuning job.""" auto_start: NotRequired[bool] r"""This field will be required in a future release.""" invalid_sample_skip_percentage: NotRequired[float] job_type: NotRequired[Nullable[FineTuneableModelType]] - repositories: NotRequired[Nullable[List[JobInRepositoryTypedDict]]] + repositories: NotRequired[ + Nullable[List[CreateFineTuningJobRequestRepositoryTypedDict]] + ] classifier_targets: NotRequired[Nullable[List[ClassifierTargetInTypedDict]]] -class JobIn(BaseModel): +class CreateFineTuningJobRequest(BaseModel): model: str hyperparameters: Hyperparameters @@ -84,7 +88,7 @@ class JobIn(BaseModel): suffix: OptionalNullable[str] = UNSET r"""A string that will be added to your fine-tuning model name. For example, a suffix of \"my-great-model\" would produce a model name like `ft:open-mistral-7b:my-great-model:xxx...`""" - integrations: OptionalNullable[List[JobInIntegration]] = UNSET + integrations: OptionalNullable[List[CreateFineTuningJobRequestIntegration]] = UNSET r"""A list of integrations to enable for your fine-tuning job.""" auto_start: Optional[bool] = None @@ -94,7 +98,7 @@ class JobIn(BaseModel): job_type: OptionalNullable[FineTuneableModelType] = UNSET - repositories: OptionalNullable[List[JobInRepository]] = UNSET + repositories: OptionalNullable[List[CreateFineTuningJobRequestRepository]] = UNSET classifier_targets: OptionalNullable[List[ClassifierTargetIn]] = UNSET diff --git a/src/mistralai/client/models/libraryin.py b/src/mistralai/client/models/createlibraryrequest.py similarity index 92% rename from src/mistralai/client/models/libraryin.py rename to src/mistralai/client/models/createlibraryrequest.py index 1a71d410..8865e664 100644 --- a/src/mistralai/client/models/libraryin.py +++ b/src/mistralai/client/models/createlibraryrequest.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 6147d5df71d9 +# @generated-id: 1c489bec2f53 from __future__ import annotations from mistralai.client.types import ( @@ -13,13 +13,13 @@ from typing_extensions import NotRequired, TypedDict -class LibraryInTypedDict(TypedDict): +class CreateLibraryRequestTypedDict(TypedDict): name: str description: NotRequired[Nullable[str]] chunk_size: NotRequired[Nullable[int]] -class LibraryIn(BaseModel): +class CreateLibraryRequest(BaseModel): name: str description: OptionalNullable[str] = UNSET diff --git a/src/mistralai/client/models/deletemodelop.py b/src/mistralai/client/models/delete_model_v1_models_model_id_deleteop.py similarity index 76% rename from src/mistralai/client/models/deletemodelop.py rename to src/mistralai/client/models/delete_model_v1_models_model_id_deleteop.py index 55c4b242..199614f5 100644 --- a/src/mistralai/client/models/deletemodelop.py +++ b/src/mistralai/client/models/delete_model_v1_models_model_id_deleteop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 2c494d99a44d +# @generated-id: 767aba526e43 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class DeleteModelRequestTypedDict(TypedDict): +class DeleteModelV1ModelsModelIDDeleteRequestTypedDict(TypedDict): model_id: str r"""The ID of the model to delete.""" -class DeleteModelRequest(BaseModel): +class DeleteModelV1ModelsModelIDDeleteRequest(BaseModel): model_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/deletefileout.py b/src/mistralai/client/models/deletefileresponse.py similarity index 82% rename from src/mistralai/client/models/deletefileout.py rename to src/mistralai/client/models/deletefileresponse.py index c721f32c..ffd0e0d0 100644 --- a/src/mistralai/client/models/deletefileout.py +++ b/src/mistralai/client/models/deletefileresponse.py @@ -1,12 +1,12 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 5578701e7327 +# @generated-id: 3ee464763a32 from __future__ import annotations from mistralai.client.types import BaseModel from typing_extensions import TypedDict -class DeleteFileOutTypedDict(TypedDict): +class DeleteFileResponseTypedDict(TypedDict): id: str r"""The ID of the deleted file.""" object: str @@ -15,7 +15,7 @@ class DeleteFileOutTypedDict(TypedDict): r"""The deletion status.""" -class DeleteFileOut(BaseModel): +class DeleteFileResponse(BaseModel): id: str r"""The ID of the deleted file.""" diff --git a/src/mistralai/client/models/documentout.py b/src/mistralai/client/models/document.py similarity index 96% rename from src/mistralai/client/models/documentout.py rename to src/mistralai/client/models/document.py index 3b1a5713..ae9fbd23 100644 --- a/src/mistralai/client/models/documentout.py +++ b/src/mistralai/client/models/document.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 7a85b9dca506 +# @generated-id: fbbf7428328c from __future__ import annotations from datetime import datetime @@ -15,7 +15,7 @@ from typing_extensions import NotRequired, TypedDict -class DocumentOutTypedDict(TypedDict): +class DocumentTypedDict(TypedDict): id: str library_id: str hash: Nullable[str] @@ -37,7 +37,7 @@ class DocumentOutTypedDict(TypedDict): attributes: NotRequired[Nullable[Dict[str, Any]]] -class DocumentOut(BaseModel): +class Document(BaseModel): id: str library_id: str diff --git a/src/mistralai/client/models/documentupdatein.py b/src/mistralai/client/models/documentupdaterequest.py similarity index 94% rename from src/mistralai/client/models/documentupdatein.py rename to src/mistralai/client/models/documentupdaterequest.py index 669554de..73d08874 100644 --- a/src/mistralai/client/models/documentupdatein.py +++ b/src/mistralai/client/models/documentupdaterequest.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d19c1b26a875 +# @generated-id: 2e3de3f7e71f from __future__ import annotations from datetime import datetime @@ -31,12 +31,12 @@ ) -class DocumentUpdateInTypedDict(TypedDict): +class DocumentUpdateRequestTypedDict(TypedDict): name: NotRequired[Nullable[str]] attributes: NotRequired[Nullable[Dict[str, AttributesTypedDict]]] -class DocumentUpdateIn(BaseModel): +class DocumentUpdateRequest(BaseModel): name: OptionalNullable[str] = UNSET attributes: OptionalNullable[Dict[str, Attributes]] = UNSET diff --git a/src/mistralai/client/models/fileschema.py b/src/mistralai/client/models/fileobject.py similarity index 96% rename from src/mistralai/client/models/fileschema.py rename to src/mistralai/client/models/fileobject.py index cbe9b0d1..0c333a0b 100644 --- a/src/mistralai/client/models/fileschema.py +++ b/src/mistralai/client/models/fileobject.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 19cde41ca32a +# @generated-id: 7020482d0781 from __future__ import annotations from .filepurpose import FilePurpose @@ -17,7 +17,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class FileSchemaTypedDict(TypedDict): +class FileObjectTypedDict(TypedDict): id: str r"""The unique identifier of the file.""" object: str @@ -36,7 +36,7 @@ class FileSchemaTypedDict(TypedDict): signature: NotRequired[Nullable[str]] -class FileSchema(BaseModel): +class FileObject(BaseModel): id: str r"""The unique identifier of the file.""" diff --git a/src/mistralai/client/models/deletefileop.py b/src/mistralai/client/models/files_api_routes_delete_fileop.py similarity index 74% rename from src/mistralai/client/models/deletefileop.py rename to src/mistralai/client/models/files_api_routes_delete_fileop.py index 4feb7812..eaba274b 100644 --- a/src/mistralai/client/models/deletefileop.py +++ b/src/mistralai/client/models/files_api_routes_delete_fileop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 286b4e583638 +# @generated-id: 2f385cc6138f from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class DeleteFileRequestTypedDict(TypedDict): +class FilesAPIRoutesDeleteFileRequestTypedDict(TypedDict): file_id: str -class DeleteFileRequest(BaseModel): +class FilesAPIRoutesDeleteFileRequest(BaseModel): file_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/downloadfileop.py b/src/mistralai/client/models/files_api_routes_download_fileop.py similarity index 73% rename from src/mistralai/client/models/downloadfileop.py rename to src/mistralai/client/models/files_api_routes_download_fileop.py index fcdc01d6..83de8e73 100644 --- a/src/mistralai/client/models/downloadfileop.py +++ b/src/mistralai/client/models/files_api_routes_download_fileop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 4d051f08057d +# @generated-id: 8184ee3577c3 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class DownloadFileRequestTypedDict(TypedDict): +class FilesAPIRoutesDownloadFileRequestTypedDict(TypedDict): file_id: str -class DownloadFileRequest(BaseModel): +class FilesAPIRoutesDownloadFileRequest(BaseModel): file_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getfilesignedurlop.py b/src/mistralai/client/models/files_api_routes_get_signed_urlop.py similarity index 84% rename from src/mistralai/client/models/getfilesignedurlop.py rename to src/mistralai/client/models/files_api_routes_get_signed_urlop.py index 06ed79ee..01f15821 100644 --- a/src/mistralai/client/models/getfilesignedurlop.py +++ b/src/mistralai/client/models/files_api_routes_get_signed_urlop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1aa50b81c8cf +# @generated-id: 0a1a18c6431e from __future__ import annotations from mistralai.client.types import BaseModel @@ -8,13 +8,13 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class GetFileSignedURLRequestTypedDict(TypedDict): +class FilesAPIRoutesGetSignedURLRequestTypedDict(TypedDict): file_id: str expiry: NotRequired[int] r"""Number of hours before the url becomes invalid. Defaults to 24h""" -class GetFileSignedURLRequest(BaseModel): +class FilesAPIRoutesGetSignedURLRequest(BaseModel): file_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listfilesop.py b/src/mistralai/client/models/files_api_routes_list_filesop.py similarity index 95% rename from src/mistralai/client/models/listfilesop.py rename to src/mistralai/client/models/files_api_routes_list_filesop.py index a9af5c70..9d47692d 100644 --- a/src/mistralai/client/models/listfilesop.py +++ b/src/mistralai/client/models/files_api_routes_list_filesop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: e5bd46ac0145 +# @generated-id: b2e92f2a29b4 from __future__ import annotations from .filepurpose import FilePurpose @@ -18,7 +18,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class ListFilesRequestTypedDict(TypedDict): +class FilesAPIRoutesListFilesRequestTypedDict(TypedDict): page: NotRequired[int] page_size: NotRequired[int] include_total: NotRequired[bool] @@ -29,7 +29,7 @@ class ListFilesRequestTypedDict(TypedDict): mimetypes: NotRequired[Nullable[List[str]]] -class ListFilesRequest(BaseModel): +class FilesAPIRoutesListFilesRequest(BaseModel): page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), diff --git a/src/mistralai/client/models/retrievefileop.py b/src/mistralai/client/models/files_api_routes_retrieve_fileop.py similarity index 73% rename from src/mistralai/client/models/retrievefileop.py rename to src/mistralai/client/models/files_api_routes_retrieve_fileop.py index edd50e57..5f8de05f 100644 --- a/src/mistralai/client/models/retrievefileop.py +++ b/src/mistralai/client/models/files_api_routes_retrieve_fileop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ee73efdf9180 +# @generated-id: 5d5dbb8d5f7a from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class RetrieveFileRequestTypedDict(TypedDict): +class FilesAPIRoutesRetrieveFileRequestTypedDict(TypedDict): file_id: str -class RetrieveFileRequest(BaseModel): +class FilesAPIRoutesRetrieveFileRequest(BaseModel): file_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/uploadfileop.py b/src/mistralai/client/models/files_api_routes_upload_fileop.py similarity index 92% rename from src/mistralai/client/models/uploadfileop.py rename to src/mistralai/client/models/files_api_routes_upload_fileop.py index 50848f0b..180db778 100644 --- a/src/mistralai/client/models/uploadfileop.py +++ b/src/mistralai/client/models/files_api_routes_upload_fileop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d67619670938 +# @generated-id: f13b84de6fa7 from __future__ import annotations from .file import File, FileTypedDict @@ -10,7 +10,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class MultiPartBodyParamsTypedDict(TypedDict): +class UploadFileRequestTypedDict(TypedDict): file: FileTypedDict r"""The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such: @@ -25,7 +25,7 @@ class MultiPartBodyParamsTypedDict(TypedDict): purpose: NotRequired[FilePurpose] -class MultiPartBodyParams(BaseModel): +class UploadFileRequest(BaseModel): file: Annotated[File, FieldMetadata(multipart=MultipartFormMetadata(file=True))] r"""The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such: diff --git a/src/mistralai/client/models/getconversationop.py b/src/mistralai/client/models/getconversationop.py deleted file mode 100644 index d204d175..00000000 --- a/src/mistralai/client/models/getconversationop.py +++ /dev/null @@ -1,35 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 1a622b8337ac - -from __future__ import annotations -from .agentconversation import AgentConversation, AgentConversationTypedDict -from .modelconversation import ModelConversation, ModelConversationTypedDict -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing import Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -class GetConversationRequestTypedDict(TypedDict): - conversation_id: str - r"""ID of the conversation from which we are fetching metadata.""" - - -class GetConversationRequest(BaseModel): - conversation_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - r"""ID of the conversation from which we are fetching metadata.""" - - -ResponseV1ConversationsGetTypedDict = TypeAliasType( - "ResponseV1ConversationsGetTypedDict", - Union[AgentConversationTypedDict, ModelConversationTypedDict], -) -r"""Successful Response""" - - -ResponseV1ConversationsGet = TypeAliasType( - "ResponseV1ConversationsGet", Union[AgentConversation, ModelConversation] -) -r"""Successful Response""" diff --git a/src/mistralai/client/models/getdocumenttextcontentop.py b/src/mistralai/client/models/getdocumenttextcontentop.py deleted file mode 100644 index 8a7b4aae..00000000 --- a/src/mistralai/client/models/getdocumenttextcontentop.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ba23717093ef - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class GetDocumentTextContentRequestTypedDict(TypedDict): - library_id: str - document_id: str - - -class GetDocumentTextContentRequest(BaseModel): - library_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - document_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/retrievefileout.py b/src/mistralai/client/models/getfileresponse.py similarity index 95% rename from src/mistralai/client/models/retrievefileout.py rename to src/mistralai/client/models/getfileresponse.py index 2abf2161..93cf297f 100644 --- a/src/mistralai/client/models/retrievefileout.py +++ b/src/mistralai/client/models/getfileresponse.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 8bb5859aa0d0 +# @generated-id: 81919086e371 from __future__ import annotations from .filepurpose import FilePurpose @@ -17,7 +17,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class RetrieveFileOutTypedDict(TypedDict): +class GetFileResponseTypedDict(TypedDict): id: str r"""The unique identifier of the file.""" object: str @@ -37,7 +37,7 @@ class RetrieveFileOutTypedDict(TypedDict): signature: NotRequired[Nullable[str]] -class RetrieveFileOut(BaseModel): +class GetFileResponse(BaseModel): id: str r"""The unique identifier of the file.""" diff --git a/src/mistralai/client/models/getfinetuningjobop.py b/src/mistralai/client/models/getfinetuningjobop.py deleted file mode 100644 index 1fb732f4..00000000 --- a/src/mistralai/client/models/getfinetuningjobop.py +++ /dev/null @@ -1,43 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: afe997f96d69 - -from __future__ import annotations -from .classifierdetailedjobout import ( - ClassifierDetailedJobOut, - ClassifierDetailedJobOutTypedDict, -) -from .completiondetailedjobout import ( - CompletionDetailedJobOut, - CompletionDetailedJobOutTypedDict, -) -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from pydantic import Field -from typing import Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -class GetFineTuningJobRequestTypedDict(TypedDict): - job_id: str - r"""The ID of the job to analyse.""" - - -class GetFineTuningJobRequest(BaseModel): - job_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - r"""The ID of the job to analyse.""" - - -GetFineTuningJobResponseTypedDict = TypeAliasType( - "GetFineTuningJobResponseTypedDict", - Union[CompletionDetailedJobOutTypedDict, ClassifierDetailedJobOutTypedDict], -) -r"""OK""" - - -GetFineTuningJobResponse = Annotated[ - Union[ClassifierDetailedJobOut, CompletionDetailedJobOut], - Field(discriminator="JOB_TYPE"), -] -r"""OK""" diff --git a/src/mistralai/client/models/cancelbatchjobop.py b/src/mistralai/client/models/jobs_api_routes_batch_cancel_batch_jobop.py similarity index 72% rename from src/mistralai/client/models/cancelbatchjobop.py rename to src/mistralai/client/models/jobs_api_routes_batch_cancel_batch_jobop.py index cd94ee86..de2e6347 100644 --- a/src/mistralai/client/models/cancelbatchjobop.py +++ b/src/mistralai/client/models/jobs_api_routes_batch_cancel_batch_jobop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: cebac10b56a9 +# @generated-id: b56cb6c17c95 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class CancelBatchJobRequestTypedDict(TypedDict): +class JobsAPIRoutesBatchCancelBatchJobRequestTypedDict(TypedDict): job_id: str -class CancelBatchJobRequest(BaseModel): +class JobsAPIRoutesBatchCancelBatchJobRequest(BaseModel): job_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getbatchjobop.py b/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobop.py similarity index 91% rename from src/mistralai/client/models/getbatchjobop.py rename to src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobop.py index 792c3e21..c78afcdc 100644 --- a/src/mistralai/client/models/getbatchjobop.py +++ b/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 443103fe3b88 +# @generated-id: 36b5a6b3ceee from __future__ import annotations from mistralai.client.types import ( @@ -14,12 +14,12 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class GetBatchJobRequestTypedDict(TypedDict): +class JobsAPIRoutesBatchGetBatchJobRequestTypedDict(TypedDict): job_id: str inline: NotRequired[Nullable[bool]] -class GetBatchJobRequest(BaseModel): +class JobsAPIRoutesBatchGetBatchJobRequest(BaseModel): job_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listbatchjobsop.py b/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py similarity index 95% rename from src/mistralai/client/models/listbatchjobsop.py rename to src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py index 5322df81..c5f2a78c 100644 --- a/src/mistralai/client/models/listbatchjobsop.py +++ b/src/mistralai/client/models/jobs_api_routes_batch_get_batch_jobsop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: f49af453f5e6 +# @generated-id: d8f0af99c94d from __future__ import annotations from .batchjobstatus import BatchJobStatus @@ -23,7 +23,7 @@ ] -class ListBatchJobsRequestTypedDict(TypedDict): +class JobsAPIRoutesBatchGetBatchJobsRequestTypedDict(TypedDict): page: NotRequired[int] page_size: NotRequired[int] model: NotRequired[Nullable[str]] @@ -35,7 +35,7 @@ class ListBatchJobsRequestTypedDict(TypedDict): order_by: NotRequired[OrderBy] -class ListBatchJobsRequest(BaseModel): +class JobsAPIRoutesBatchGetBatchJobsRequest(BaseModel): page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), diff --git a/src/mistralai/client/models/archivemodelop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py similarity index 73% rename from src/mistralai/client/models/archivemodelop.py rename to src/mistralai/client/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py index 30b4a9bd..9fa99837 100644 --- a/src/mistralai/client/models/archivemodelop.py +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: beefa1df3b7c +# @generated-id: 34f89d2af0ec from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class ArchiveModelRequestTypedDict(TypedDict): +class JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict(TypedDict): model_id: str r"""The ID of the model to archive.""" -class ArchiveModelRequest(BaseModel): +class JobsAPIRoutesFineTuningArchiveFineTunedModelRequest(BaseModel): model_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py new file mode 100644 index 00000000..aa673d8c --- /dev/null +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py @@ -0,0 +1,381 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d175c6e32ecb + +from __future__ import annotations +from .checkpointout import CheckpointOut, CheckpointOutTypedDict +from .classifiertargetout import ClassifierTargetOut, ClassifierTargetOutTypedDict +from .classifiertrainingparameters import ( + ClassifierTrainingParameters, + ClassifierTrainingParametersTypedDict, +) +from .completiontrainingparameters import ( + CompletionTrainingParameters, + CompletionTrainingParametersTypedDict, +) +from .eventout import EventOut, EventOutTypedDict +from .githubrepositoryout import GithubRepositoryOut, GithubRepositoryOutTypedDict +from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict +from .wandbintegrationout import WandbIntegrationOut, WandbIntegrationOutTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata, validate_const +import pydantic +from pydantic import Field, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class JobsAPIRoutesFineTuningCancelFineTuningJobRequestTypedDict(TypedDict): + job_id: str + r"""The ID of the job to cancel.""" + + +class JobsAPIRoutesFineTuningCancelFineTuningJobRequest(BaseModel): + job_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + r"""The ID of the job to cancel.""" + + +JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] + + +JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegrationTypedDict = WandbIntegrationOutTypedDict + + +JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration = ( + WandbIntegrationOut +) + + +class ClassifierDetailedJobOutCancelFineTuningJobResponseTypedDict(TypedDict): + id: str + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus + created_at: int + modified_at: int + training_files: List[str] + hyperparameters: ClassifierTrainingParametersTypedDict + classifier_targets: List[ClassifierTargetOutTypedDict] + validation_files: NotRequired[Nullable[List[str]]] + object: Literal["job"] + fine_tuned_model: NotRequired[Nullable[str]] + suffix: NotRequired[Nullable[str]] + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegrationTypedDict + ] + ] + ] + trained_tokens: NotRequired[Nullable[int]] + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["classifier"] + events: NotRequired[List[EventOutTypedDict]] + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + checkpoints: NotRequired[List[CheckpointOutTypedDict]] + + +class ClassifierDetailedJobOutCancelFineTuningJobResponse(BaseModel): + id: str + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutStatus + + created_at: int + + modified_at: int + + training_files: List[str] + + hyperparameters: ClassifierTrainingParameters + + classifier_targets: List[ClassifierTargetOut] + + validation_files: OptionalNullable[List[str]] = UNSET + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + + fine_tuned_model: OptionalNullable[str] = UNSET + + suffix: OptionalNullable[str] = UNSET + + integrations: OptionalNullable[ + List[ + JobsAPIRoutesFineTuningCancelFineTuningJobClassifierDetailedJobOutIntegration + ] + ] = UNSET + + trained_tokens: OptionalNullable[int] = UNSET + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], + pydantic.Field(alias="job_type"), + ] = "classifier" + + events: Optional[List[EventOut]] = None + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + + checkpoints: Optional[List[CheckpointOut]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "events", + "checkpoints", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] + + +JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegrationTypedDict = WandbIntegrationOutTypedDict + + +JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration = ( + WandbIntegrationOut +) + + +JobsAPIRoutesFineTuningCancelFineTuningJobRepositoryTypedDict = ( + GithubRepositoryOutTypedDict +) + + +JobsAPIRoutesFineTuningCancelFineTuningJobRepository = GithubRepositoryOut + + +class CompletionDetailedJobOutCancelFineTuningJobResponseTypedDict(TypedDict): + id: str + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus + created_at: int + modified_at: int + training_files: List[str] + hyperparameters: CompletionTrainingParametersTypedDict + validation_files: NotRequired[Nullable[List[str]]] + object: Literal["job"] + fine_tuned_model: NotRequired[Nullable[str]] + suffix: NotRequired[Nullable[str]] + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegrationTypedDict + ] + ] + ] + trained_tokens: NotRequired[Nullable[int]] + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["completion"] + repositories: NotRequired[ + List[JobsAPIRoutesFineTuningCancelFineTuningJobRepositoryTypedDict] + ] + events: NotRequired[List[EventOutTypedDict]] + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + checkpoints: NotRequired[List[CheckpointOutTypedDict]] + + +class CompletionDetailedJobOutCancelFineTuningJobResponse(BaseModel): + id: str + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutStatus + + created_at: int + + modified_at: int + + training_files: List[str] + + hyperparameters: CompletionTrainingParameters + + validation_files: OptionalNullable[List[str]] = UNSET + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + + fine_tuned_model: OptionalNullable[str] = UNSET + + suffix: OptionalNullable[str] = UNSET + + integrations: OptionalNullable[ + List[ + JobsAPIRoutesFineTuningCancelFineTuningJobCompletionDetailedJobOutIntegration + ] + ] = UNSET + + trained_tokens: OptionalNullable[int] = UNSET + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], + pydantic.Field(alias="job_type"), + ] = "completion" + + repositories: Optional[ + List[JobsAPIRoutesFineTuningCancelFineTuningJobRepository] + ] = None + + events: Optional[List[EventOut]] = None + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + + checkpoints: Optional[List[CheckpointOut]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "repositories", + "events", + "checkpoints", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +CancelFineTuningJobResponseTypedDict = TypeAliasType( + "CancelFineTuningJobResponseTypedDict", + Union[ + CompletionDetailedJobOutCancelFineTuningJobResponseTypedDict, + ClassifierDetailedJobOutCancelFineTuningJobResponseTypedDict, + ], +) +r"""OK""" + + +CancelFineTuningJobResponse = Annotated[ + Union[ + ClassifierDetailedJobOutCancelFineTuningJobResponse, + CompletionDetailedJobOutCancelFineTuningJobResponse, + ], + Field(discriminator="JOB_TYPE"), +] +r"""OK""" diff --git a/src/mistralai/client/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py new file mode 100644 index 00000000..a7ed80b9 --- /dev/null +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py @@ -0,0 +1,526 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 81651291187a + +from __future__ import annotations +from .classifiertrainingparameters import ( + ClassifierTrainingParameters, + ClassifierTrainingParametersTypedDict, +) +from .completiontrainingparameters import ( + CompletionTrainingParameters, + CompletionTrainingParametersTypedDict, +) +from .githubrepositoryout import GithubRepositoryOut, GithubRepositoryOutTypedDict +from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict +from .wandbintegrationout import WandbIntegrationOut, WandbIntegrationOutTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, +) +from mistralai.client.utils import validate_const +import pydantic +from pydantic import Field, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class LegacyJobMetadataOutCreateFineTuningJobResponseTypedDict(TypedDict): + details: str + expected_duration_seconds: NotRequired[Nullable[int]] + r"""The approximated time (in seconds) for the fine-tuning process to complete.""" + cost: NotRequired[Nullable[float]] + r"""The cost of the fine-tuning job.""" + cost_currency: NotRequired[Nullable[str]] + r"""The currency used for the fine-tuning job cost.""" + train_tokens_per_step: NotRequired[Nullable[int]] + r"""The number of tokens consumed by one training step.""" + train_tokens: NotRequired[Nullable[int]] + r"""The total number of tokens used during the fine-tuning process.""" + data_tokens: NotRequired[Nullable[int]] + r"""The total number of tokens in the training dataset.""" + estimated_start_time: NotRequired[Nullable[int]] + deprecated: NotRequired[bool] + epochs: NotRequired[Nullable[float]] + r"""The number of complete passes through the entire training dataset.""" + training_steps: NotRequired[Nullable[int]] + r"""The number of training steps to perform. A training step refers to a single update of the model weights during the fine-tuning process. This update is typically calculated using a batch of samples from the training dataset.""" + object: Literal["job.metadata"] + + +class LegacyJobMetadataOutCreateFineTuningJobResponse(BaseModel): + details: str + + expected_duration_seconds: OptionalNullable[int] = UNSET + r"""The approximated time (in seconds) for the fine-tuning process to complete.""" + + cost: OptionalNullable[float] = UNSET + r"""The cost of the fine-tuning job.""" + + cost_currency: OptionalNullable[str] = UNSET + r"""The currency used for the fine-tuning job cost.""" + + train_tokens_per_step: OptionalNullable[int] = UNSET + r"""The number of tokens consumed by one training step.""" + + train_tokens: OptionalNullable[int] = UNSET + r"""The total number of tokens used during the fine-tuning process.""" + + data_tokens: OptionalNullable[int] = UNSET + r"""The total number of tokens in the training dataset.""" + + estimated_start_time: OptionalNullable[int] = UNSET + + deprecated: Optional[bool] = True + + epochs: OptionalNullable[float] = UNSET + r"""The number of complete passes through the entire training dataset.""" + + training_steps: OptionalNullable[int] = UNSET + r"""The number of training steps to perform. A training step refers to a single update of the model weights during the fine-tuning process. This update is typically calculated using a batch of samples from the training dataset.""" + + OBJECT: Annotated[ + Annotated[ + Optional[Literal["job.metadata"]], + AfterValidator(validate_const("job.metadata")), + ], + pydantic.Field(alias="object"), + ] = "job.metadata" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "expected_duration_seconds", + "cost", + "cost_currency", + "train_tokens_per_step", + "train_tokens", + "data_tokens", + "estimated_start_time", + "deprecated", + "epochs", + "training_steps", + "object", + ] + nullable_fields = [ + "expected_duration_seconds", + "cost", + "cost_currency", + "train_tokens_per_step", + "train_tokens", + "data_tokens", + "estimated_start_time", + "epochs", + "training_steps", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] +r"""The current status of the fine-tuning job.""" + + +JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegrationTypedDict = ( + WandbIntegrationOutTypedDict +) + + +JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration = ( + WandbIntegrationOut +) + + +class ClassifierJobOutCreateFineTuningJobResponseTypedDict(TypedDict): + id: str + r"""The ID of the job.""" + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus + r"""The current status of the fine-tuning job.""" + created_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was created.""" + modified_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was last modified.""" + training_files: List[str] + r"""A list containing the IDs of uploaded files that contain training data.""" + hyperparameters: ClassifierTrainingParametersTypedDict + validation_files: NotRequired[Nullable[List[str]]] + r"""A list containing the IDs of uploaded files that contain validation data.""" + object: Literal["job"] + r"""The object type of the fine-tuning job.""" + fine_tuned_model: NotRequired[Nullable[str]] + r"""The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running.""" + suffix: NotRequired[Nullable[str]] + r"""Optional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`.""" + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegrationTypedDict + ] + ] + ] + r"""A list of integrations enabled for your fine-tuning job.""" + trained_tokens: NotRequired[Nullable[int]] + r"""Total number of tokens trained.""" + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["classifier"] + r"""The type of job (`FT` for fine-tuning).""" + + +class ClassifierJobOutCreateFineTuningJobResponse(BaseModel): + id: str + r"""The ID of the job.""" + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutStatus + r"""The current status of the fine-tuning job.""" + + created_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was created.""" + + modified_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was last modified.""" + + training_files: List[str] + r"""A list containing the IDs of uploaded files that contain training data.""" + + hyperparameters: ClassifierTrainingParameters + + validation_files: OptionalNullable[List[str]] = UNSET + r"""A list containing the IDs of uploaded files that contain validation data.""" + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + r"""The object type of the fine-tuning job.""" + + fine_tuned_model: OptionalNullable[str] = UNSET + r"""The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running.""" + + suffix: OptionalNullable[str] = UNSET + r"""Optional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`.""" + + integrations: OptionalNullable[ + List[JobsAPIRoutesFineTuningCreateFineTuningJobClassifierJobOutIntegration] + ] = UNSET + r"""A list of integrations enabled for your fine-tuning job.""" + + trained_tokens: OptionalNullable[int] = UNSET + r"""Total number of tokens trained.""" + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], + pydantic.Field(alias="job_type"), + ] = "classifier" + r"""The type of job (`FT` for fine-tuning).""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] +r"""The current status of the fine-tuning job.""" + + +JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegrationTypedDict = ( + WandbIntegrationOutTypedDict +) + + +JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration = ( + WandbIntegrationOut +) + + +JobsAPIRoutesFineTuningCreateFineTuningJobRepositoryTypedDict = ( + GithubRepositoryOutTypedDict +) + + +JobsAPIRoutesFineTuningCreateFineTuningJobRepository = GithubRepositoryOut + + +class CompletionJobOutCreateFineTuningJobResponseTypedDict(TypedDict): + id: str + r"""The ID of the job.""" + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus + r"""The current status of the fine-tuning job.""" + created_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was created.""" + modified_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was last modified.""" + training_files: List[str] + r"""A list containing the IDs of uploaded files that contain training data.""" + hyperparameters: CompletionTrainingParametersTypedDict + validation_files: NotRequired[Nullable[List[str]]] + r"""A list containing the IDs of uploaded files that contain validation data.""" + object: Literal["job"] + r"""The object type of the fine-tuning job.""" + fine_tuned_model: NotRequired[Nullable[str]] + r"""The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running.""" + suffix: NotRequired[Nullable[str]] + r"""Optional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`.""" + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegrationTypedDict + ] + ] + ] + r"""A list of integrations enabled for your fine-tuning job.""" + trained_tokens: NotRequired[Nullable[int]] + r"""Total number of tokens trained.""" + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["completion"] + r"""The type of job (`FT` for fine-tuning).""" + repositories: NotRequired[ + List[JobsAPIRoutesFineTuningCreateFineTuningJobRepositoryTypedDict] + ] + + +class CompletionJobOutCreateFineTuningJobResponse(BaseModel): + id: str + r"""The ID of the job.""" + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutStatus + r"""The current status of the fine-tuning job.""" + + created_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was created.""" + + modified_at: int + r"""The UNIX timestamp (in seconds) for when the fine-tuning job was last modified.""" + + training_files: List[str] + r"""A list containing the IDs of uploaded files that contain training data.""" + + hyperparameters: CompletionTrainingParameters + + validation_files: OptionalNullable[List[str]] = UNSET + r"""A list containing the IDs of uploaded files that contain validation data.""" + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + r"""The object type of the fine-tuning job.""" + + fine_tuned_model: OptionalNullable[str] = UNSET + r"""The name of the fine-tuned model that is being created. The value will be `null` if the fine-tuning job is still running.""" + + suffix: OptionalNullable[str] = UNSET + r"""Optional text/code that adds more context for the model. When given a `prompt` and a `suffix` the model will fill what is between them. When `suffix` is not provided, the model will simply execute completion starting with `prompt`.""" + + integrations: OptionalNullable[ + List[JobsAPIRoutesFineTuningCreateFineTuningJobCompletionJobOutIntegration] + ] = UNSET + r"""A list of integrations enabled for your fine-tuning job.""" + + trained_tokens: OptionalNullable[int] = UNSET + r"""Total number of tokens trained.""" + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], + pydantic.Field(alias="job_type"), + ] = "completion" + r"""The type of job (`FT` for fine-tuning).""" + + repositories: Optional[ + List[JobsAPIRoutesFineTuningCreateFineTuningJobRepository] + ] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "repositories", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +CreateFineTuningJobResponseUnion1TypedDict = TypeAliasType( + "CreateFineTuningJobResponseUnion1TypedDict", + Union[ + ClassifierJobOutCreateFineTuningJobResponseTypedDict, + CompletionJobOutCreateFineTuningJobResponseTypedDict, + ], +) + + +CreateFineTuningJobResponseUnion1 = Annotated[ + Union[ + ClassifierJobOutCreateFineTuningJobResponse, + CompletionJobOutCreateFineTuningJobResponse, + ], + Field(discriminator="JOB_TYPE"), +] + + +CreateFineTuningJobResponseUnion2TypedDict = TypeAliasType( + "CreateFineTuningJobResponseUnion2TypedDict", + Union[ + LegacyJobMetadataOutCreateFineTuningJobResponseTypedDict, + CreateFineTuningJobResponseUnion1TypedDict, + ], +) +r"""OK""" + + +CreateFineTuningJobResponseUnion2 = TypeAliasType( + "CreateFineTuningJobResponseUnion2", + Union[ + LegacyJobMetadataOutCreateFineTuningJobResponse, + CreateFineTuningJobResponseUnion1, + ], +) +r"""OK""" diff --git a/src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py new file mode 100644 index 00000000..f7bde386 --- /dev/null +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py @@ -0,0 +1,381 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d910fd8fe2d6 + +from __future__ import annotations +from .checkpointout import CheckpointOut, CheckpointOutTypedDict +from .classifiertargetout import ClassifierTargetOut, ClassifierTargetOutTypedDict +from .classifiertrainingparameters import ( + ClassifierTrainingParameters, + ClassifierTrainingParametersTypedDict, +) +from .completiontrainingparameters import ( + CompletionTrainingParameters, + CompletionTrainingParametersTypedDict, +) +from .eventout import EventOut, EventOutTypedDict +from .githubrepositoryout import GithubRepositoryOut, GithubRepositoryOutTypedDict +from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict +from .wandbintegrationout import WandbIntegrationOut, WandbIntegrationOutTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata, validate_const +import pydantic +from pydantic import Field, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class JobsAPIRoutesFineTuningGetFineTuningJobRequestTypedDict(TypedDict): + job_id: str + r"""The ID of the job to analyse.""" + + +class JobsAPIRoutesFineTuningGetFineTuningJobRequest(BaseModel): + job_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + r"""The ID of the job to analyse.""" + + +JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] + + +JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegrationTypedDict = ( + WandbIntegrationOutTypedDict +) + + +JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration = ( + WandbIntegrationOut +) + + +class ClassifierDetailedJobOutGetFineTuningJobResponseTypedDict(TypedDict): + id: str + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus + created_at: int + modified_at: int + training_files: List[str] + hyperparameters: ClassifierTrainingParametersTypedDict + classifier_targets: List[ClassifierTargetOutTypedDict] + validation_files: NotRequired[Nullable[List[str]]] + object: Literal["job"] + fine_tuned_model: NotRequired[Nullable[str]] + suffix: NotRequired[Nullable[str]] + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegrationTypedDict + ] + ] + ] + trained_tokens: NotRequired[Nullable[int]] + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["classifier"] + events: NotRequired[List[EventOutTypedDict]] + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + checkpoints: NotRequired[List[CheckpointOutTypedDict]] + + +class ClassifierDetailedJobOutGetFineTuningJobResponse(BaseModel): + id: str + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutStatus + + created_at: int + + modified_at: int + + training_files: List[str] + + hyperparameters: ClassifierTrainingParameters + + classifier_targets: List[ClassifierTargetOut] + + validation_files: OptionalNullable[List[str]] = UNSET + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + + fine_tuned_model: OptionalNullable[str] = UNSET + + suffix: OptionalNullable[str] = UNSET + + integrations: OptionalNullable[ + List[JobsAPIRoutesFineTuningGetFineTuningJobClassifierDetailedJobOutIntegration] + ] = UNSET + + trained_tokens: OptionalNullable[int] = UNSET + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], + pydantic.Field(alias="job_type"), + ] = "classifier" + + events: Optional[List[EventOut]] = None + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + + checkpoints: Optional[List[CheckpointOut]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "events", + "checkpoints", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] + + +JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegrationTypedDict = ( + WandbIntegrationOutTypedDict +) + + +JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration = ( + WandbIntegrationOut +) + + +JobsAPIRoutesFineTuningGetFineTuningJobRepositoryTypedDict = ( + GithubRepositoryOutTypedDict +) + + +JobsAPIRoutesFineTuningGetFineTuningJobRepository = GithubRepositoryOut + + +class CompletionDetailedJobOutGetFineTuningJobResponseTypedDict(TypedDict): + id: str + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus + created_at: int + modified_at: int + training_files: List[str] + hyperparameters: CompletionTrainingParametersTypedDict + validation_files: NotRequired[Nullable[List[str]]] + object: Literal["job"] + fine_tuned_model: NotRequired[Nullable[str]] + suffix: NotRequired[Nullable[str]] + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegrationTypedDict + ] + ] + ] + trained_tokens: NotRequired[Nullable[int]] + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["completion"] + repositories: NotRequired[ + List[JobsAPIRoutesFineTuningGetFineTuningJobRepositoryTypedDict] + ] + events: NotRequired[List[EventOutTypedDict]] + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + checkpoints: NotRequired[List[CheckpointOutTypedDict]] + + +class CompletionDetailedJobOutGetFineTuningJobResponse(BaseModel): + id: str + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutStatus + + created_at: int + + modified_at: int + + training_files: List[str] + + hyperparameters: CompletionTrainingParameters + + validation_files: OptionalNullable[List[str]] = UNSET + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + + fine_tuned_model: OptionalNullable[str] = UNSET + + suffix: OptionalNullable[str] = UNSET + + integrations: OptionalNullable[ + List[JobsAPIRoutesFineTuningGetFineTuningJobCompletionDetailedJobOutIntegration] + ] = UNSET + + trained_tokens: OptionalNullable[int] = UNSET + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], + pydantic.Field(alias="job_type"), + ] = "completion" + + repositories: Optional[List[JobsAPIRoutesFineTuningGetFineTuningJobRepository]] = ( + None + ) + + events: Optional[List[EventOut]] = None + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + + checkpoints: Optional[List[CheckpointOut]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "repositories", + "events", + "checkpoints", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +GetFineTuningJobResponseTypedDict = TypeAliasType( + "GetFineTuningJobResponseTypedDict", + Union[ + CompletionDetailedJobOutGetFineTuningJobResponseTypedDict, + ClassifierDetailedJobOutGetFineTuningJobResponseTypedDict, + ], +) +r"""OK""" + + +GetFineTuningJobResponse = Annotated[ + Union[ + ClassifierDetailedJobOutGetFineTuningJobResponse, + CompletionDetailedJobOutGetFineTuningJobResponse, + ], + Field(discriminator="JOB_TYPE"), +] +r"""OK""" diff --git a/src/mistralai/client/models/listfinetuningjobsop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py similarity index 93% rename from src/mistralai/client/models/listfinetuningjobsop.py rename to src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py index 8712c3fa..7412f875 100644 --- a/src/mistralai/client/models/listfinetuningjobsop.py +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: b77fe203b929 +# @generated-id: cf43028824bf from __future__ import annotations from datetime import datetime @@ -16,7 +16,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -ListFineTuningJobsStatus = Literal[ +JobsAPIRoutesFineTuningGetFineTuningJobsStatus = Literal[ "QUEUED", "STARTED", "VALIDATING", @@ -31,7 +31,7 @@ r"""The current job state to filter on. When set, the other results are not displayed.""" -class ListFineTuningJobsRequestTypedDict(TypedDict): +class JobsAPIRoutesFineTuningGetFineTuningJobsRequestTypedDict(TypedDict): page: NotRequired[int] r"""The page number of the results to be returned.""" page_size: NotRequired[int] @@ -43,7 +43,7 @@ class ListFineTuningJobsRequestTypedDict(TypedDict): created_before: NotRequired[Nullable[datetime]] created_by_me: NotRequired[bool] r"""When set, only return results for jobs created by the API caller. Other results are not displayed.""" - status: NotRequired[Nullable[ListFineTuningJobsStatus]] + status: NotRequired[Nullable[JobsAPIRoutesFineTuningGetFineTuningJobsStatus]] r"""The current job state to filter on. When set, the other results are not displayed.""" wandb_project: NotRequired[Nullable[str]] r"""The Weights and Biases project to filter on. When set, the other results are not displayed.""" @@ -53,7 +53,7 @@ class ListFineTuningJobsRequestTypedDict(TypedDict): r"""The model suffix to filter on. When set, the other results are not displayed.""" -class ListFineTuningJobsRequest(BaseModel): +class JobsAPIRoutesFineTuningGetFineTuningJobsRequest(BaseModel): page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -90,7 +90,7 @@ class ListFineTuningJobsRequest(BaseModel): r"""When set, only return results for jobs created by the API caller. Other results are not displayed.""" status: Annotated[ - OptionalNullable[ListFineTuningJobsStatus], + OptionalNullable[JobsAPIRoutesFineTuningGetFineTuningJobsStatus], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET r"""The current job state to filter on. When set, the other results are not displayed.""" diff --git a/src/mistralai/client/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py new file mode 100644 index 00000000..78e6a599 --- /dev/null +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py @@ -0,0 +1,379 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: e7ff4a4a4edb + +from __future__ import annotations +from .checkpointout import CheckpointOut, CheckpointOutTypedDict +from .classifiertargetout import ClassifierTargetOut, ClassifierTargetOutTypedDict +from .classifiertrainingparameters import ( + ClassifierTrainingParameters, + ClassifierTrainingParametersTypedDict, +) +from .completiontrainingparameters import ( + CompletionTrainingParameters, + CompletionTrainingParametersTypedDict, +) +from .eventout import EventOut, EventOutTypedDict +from .githubrepositoryout import GithubRepositoryOut, GithubRepositoryOutTypedDict +from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict +from .wandbintegrationout import WandbIntegrationOut, WandbIntegrationOutTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, + UnrecognizedStr, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata, validate_const +import pydantic +from pydantic import Field, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class JobsAPIRoutesFineTuningStartFineTuningJobRequestTypedDict(TypedDict): + job_id: str + + +class JobsAPIRoutesFineTuningStartFineTuningJobRequest(BaseModel): + job_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + +JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] + + +JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegrationTypedDict = WandbIntegrationOutTypedDict + + +JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration = ( + WandbIntegrationOut +) + + +class ClassifierDetailedJobOutStartFineTuningJobResponseTypedDict(TypedDict): + id: str + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus + created_at: int + modified_at: int + training_files: List[str] + hyperparameters: ClassifierTrainingParametersTypedDict + classifier_targets: List[ClassifierTargetOutTypedDict] + validation_files: NotRequired[Nullable[List[str]]] + object: Literal["job"] + fine_tuned_model: NotRequired[Nullable[str]] + suffix: NotRequired[Nullable[str]] + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegrationTypedDict + ] + ] + ] + trained_tokens: NotRequired[Nullable[int]] + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["classifier"] + events: NotRequired[List[EventOutTypedDict]] + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + checkpoints: NotRequired[List[CheckpointOutTypedDict]] + + +class ClassifierDetailedJobOutStartFineTuningJobResponse(BaseModel): + id: str + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutStatus + + created_at: int + + modified_at: int + + training_files: List[str] + + hyperparameters: ClassifierTrainingParameters + + classifier_targets: List[ClassifierTargetOut] + + validation_files: OptionalNullable[List[str]] = UNSET + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + + fine_tuned_model: OptionalNullable[str] = UNSET + + suffix: OptionalNullable[str] = UNSET + + integrations: OptionalNullable[ + List[ + JobsAPIRoutesFineTuningStartFineTuningJobClassifierDetailedJobOutIntegration + ] + ] = UNSET + + trained_tokens: OptionalNullable[int] = UNSET + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], + pydantic.Field(alias="job_type"), + ] = "classifier" + + events: Optional[List[EventOut]] = None + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + + checkpoints: Optional[List[CheckpointOut]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "events", + "checkpoints", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus = Union[ + Literal[ + "QUEUED", + "STARTED", + "VALIDATING", + "VALIDATED", + "RUNNING", + "FAILED_VALIDATION", + "FAILED", + "SUCCESS", + "CANCELLED", + "CANCELLATION_REQUESTED", + ], + UnrecognizedStr, +] + + +JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegrationTypedDict = WandbIntegrationOutTypedDict + + +JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration = ( + WandbIntegrationOut +) + + +JobsAPIRoutesFineTuningStartFineTuningJobRepositoryTypedDict = ( + GithubRepositoryOutTypedDict +) + + +JobsAPIRoutesFineTuningStartFineTuningJobRepository = GithubRepositoryOut + + +class CompletionDetailedJobOutStartFineTuningJobResponseTypedDict(TypedDict): + id: str + auto_start: bool + model: str + status: JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus + created_at: int + modified_at: int + training_files: List[str] + hyperparameters: CompletionTrainingParametersTypedDict + validation_files: NotRequired[Nullable[List[str]]] + object: Literal["job"] + fine_tuned_model: NotRequired[Nullable[str]] + suffix: NotRequired[Nullable[str]] + integrations: NotRequired[ + Nullable[ + List[ + JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegrationTypedDict + ] + ] + ] + trained_tokens: NotRequired[Nullable[int]] + metadata: NotRequired[Nullable[JobMetadataOutTypedDict]] + job_type: Literal["completion"] + repositories: NotRequired[ + List[JobsAPIRoutesFineTuningStartFineTuningJobRepositoryTypedDict] + ] + events: NotRequired[List[EventOutTypedDict]] + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + checkpoints: NotRequired[List[CheckpointOutTypedDict]] + + +class CompletionDetailedJobOutStartFineTuningJobResponse(BaseModel): + id: str + + auto_start: bool + + model: str + + status: JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutStatus + + created_at: int + + modified_at: int + + training_files: List[str] + + hyperparameters: CompletionTrainingParameters + + validation_files: OptionalNullable[List[str]] = UNSET + + OBJECT: Annotated[ + Annotated[Optional[Literal["job"]], AfterValidator(validate_const("job"))], + pydantic.Field(alias="object"), + ] = "job" + + fine_tuned_model: OptionalNullable[str] = UNSET + + suffix: OptionalNullable[str] = UNSET + + integrations: OptionalNullable[ + List[ + JobsAPIRoutesFineTuningStartFineTuningJobCompletionDetailedJobOutIntegration + ] + ] = UNSET + + trained_tokens: OptionalNullable[int] = UNSET + + metadata: OptionalNullable[JobMetadataOut] = UNSET + + JOB_TYPE: Annotated[ + Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], + pydantic.Field(alias="job_type"), + ] = "completion" + + repositories: Optional[ + List[JobsAPIRoutesFineTuningStartFineTuningJobRepository] + ] = None + + events: Optional[List[EventOut]] = None + r"""Event items are created every time the status of a fine-tuning job changes. The timestamped list of all events is accessible here.""" + + checkpoints: Optional[List[CheckpointOut]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "validation_files", + "object", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + "repositories", + "events", + "checkpoints", + ] + nullable_fields = [ + "validation_files", + "fine_tuned_model", + "suffix", + "integrations", + "trained_tokens", + "metadata", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +StartFineTuningJobResponseTypedDict = TypeAliasType( + "StartFineTuningJobResponseTypedDict", + Union[ + CompletionDetailedJobOutStartFineTuningJobResponseTypedDict, + ClassifierDetailedJobOutStartFineTuningJobResponseTypedDict, + ], +) +r"""OK""" + + +StartFineTuningJobResponse = Annotated[ + Union[ + ClassifierDetailedJobOutStartFineTuningJobResponse, + CompletionDetailedJobOutStartFineTuningJobResponse, + ], + Field(discriminator="JOB_TYPE"), +] +r"""OK""" diff --git a/src/mistralai/client/models/unarchivemodelop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py similarity index 73% rename from src/mistralai/client/models/unarchivemodelop.py rename to src/mistralai/client/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py index 1d68a06a..fd01fe69 100644 --- a/src/mistralai/client/models/unarchivemodelop.py +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: eb18584fd78c +# @generated-id: 7cc1c80335a9 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class UnarchiveModelRequestTypedDict(TypedDict): +class JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequestTypedDict(TypedDict): model_id: str r"""The ID of the model to unarchive.""" -class UnarchiveModelRequest(BaseModel): +class JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest(BaseModel): model_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py b/src/mistralai/client/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py new file mode 100644 index 00000000..0387c039 --- /dev/null +++ b/src/mistralai/client/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py @@ -0,0 +1,252 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 6d9dc624aafd + +from __future__ import annotations +from .classifiertargetout import ClassifierTargetOut, ClassifierTargetOutTypedDict +from .ftmodelcapabilitiesout import ( + FTModelCapabilitiesOut, + FTModelCapabilitiesOutTypedDict, +) +from .updateftmodelin import UpdateFTModelIn, UpdateFTModelInTypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import ( + FieldMetadata, + PathParamMetadata, + RequestMetadata, + validate_const, +) +import pydantic +from pydantic import Field, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class JobsAPIRoutesFineTuningUpdateFineTunedModelRequestTypedDict(TypedDict): + model_id: str + r"""The ID of the model to update.""" + update_ft_model_in: UpdateFTModelInTypedDict + + +class JobsAPIRoutesFineTuningUpdateFineTunedModelRequest(BaseModel): + model_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + r"""The ID of the model to update.""" + + update_ft_model_in: Annotated[ + UpdateFTModelIn, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] + + +class ClassifierFTModelOutUpdateModelResponseTypedDict(TypedDict): + id: str + created: int + owned_by: str + workspace_id: str + root: str + root_version: str + archived: bool + capabilities: FTModelCapabilitiesOutTypedDict + job: str + classifier_targets: List[ClassifierTargetOutTypedDict] + object: Literal["model"] + name: NotRequired[Nullable[str]] + description: NotRequired[Nullable[str]] + max_context_length: NotRequired[int] + aliases: NotRequired[List[str]] + model_type: Literal["classifier"] + + +class ClassifierFTModelOutUpdateModelResponse(BaseModel): + id: str + + created: int + + owned_by: str + + workspace_id: str + + root: str + + root_version: str + + archived: bool + + capabilities: FTModelCapabilitiesOut + + job: str + + classifier_targets: List[ClassifierTargetOut] + + OBJECT: Annotated[ + Annotated[Optional[Literal["model"]], AfterValidator(validate_const("model"))], + pydantic.Field(alias="object"), + ] = "model" + + name: OptionalNullable[str] = UNSET + + description: OptionalNullable[str] = UNSET + + max_context_length: Optional[int] = 32768 + + aliases: Optional[List[str]] = None + + MODEL_TYPE: Annotated[ + Annotated[Literal["classifier"], AfterValidator(validate_const("classifier"))], + pydantic.Field(alias="model_type"), + ] = "classifier" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "object", + "name", + "description", + "max_context_length", + "aliases", + ] + nullable_fields = ["name", "description"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +class CompletionFTModelOutUpdateModelResponseTypedDict(TypedDict): + id: str + created: int + owned_by: str + workspace_id: str + root: str + root_version: str + archived: bool + capabilities: FTModelCapabilitiesOutTypedDict + job: str + object: Literal["model"] + name: NotRequired[Nullable[str]] + description: NotRequired[Nullable[str]] + max_context_length: NotRequired[int] + aliases: NotRequired[List[str]] + model_type: Literal["completion"] + + +class CompletionFTModelOutUpdateModelResponse(BaseModel): + id: str + + created: int + + owned_by: str + + workspace_id: str + + root: str + + root_version: str + + archived: bool + + capabilities: FTModelCapabilitiesOut + + job: str + + OBJECT: Annotated[ + Annotated[Optional[Literal["model"]], AfterValidator(validate_const("model"))], + pydantic.Field(alias="object"), + ] = "model" + + name: OptionalNullable[str] = UNSET + + description: OptionalNullable[str] = UNSET + + max_context_length: Optional[int] = 32768 + + aliases: Optional[List[str]] = None + + MODEL_TYPE: Annotated[ + Annotated[Literal["completion"], AfterValidator(validate_const("completion"))], + pydantic.Field(alias="model_type"), + ] = "completion" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "object", + "name", + "description", + "max_context_length", + "aliases", + ] + nullable_fields = ["name", "description"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +UpdateModelResponseTypedDict = TypeAliasType( + "UpdateModelResponseTypedDict", + Union[ + CompletionFTModelOutUpdateModelResponseTypedDict, + ClassifierFTModelOutUpdateModelResponseTypedDict, + ], +) +r"""OK""" + + +UpdateModelResponse = Annotated[ + Union[ + ClassifierFTModelOutUpdateModelResponse, CompletionFTModelOutUpdateModelResponse + ], + Field(discriminator="MODEL_TYPE"), +] +r"""OK""" diff --git a/src/mistralai/client/models/legacyjobmetadataout.py b/src/mistralai/client/models/legacyjobmetadataout.py deleted file mode 100644 index 4453c157..00000000 --- a/src/mistralai/client/models/legacyjobmetadataout.py +++ /dev/null @@ -1,132 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 4f44aa38c864 - -from __future__ import annotations -from mistralai.client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from mistralai.client.utils import validate_const -import pydantic -from pydantic import model_serializer -from pydantic.functional_validators import AfterValidator -from typing import Literal, Optional -from typing_extensions import Annotated, NotRequired, TypedDict - - -class LegacyJobMetadataOutTypedDict(TypedDict): - details: str - expected_duration_seconds: NotRequired[Nullable[int]] - r"""The approximated time (in seconds) for the fine-tuning process to complete.""" - cost: NotRequired[Nullable[float]] - r"""The cost of the fine-tuning job.""" - cost_currency: NotRequired[Nullable[str]] - r"""The currency used for the fine-tuning job cost.""" - train_tokens_per_step: NotRequired[Nullable[int]] - r"""The number of tokens consumed by one training step.""" - train_tokens: NotRequired[Nullable[int]] - r"""The total number of tokens used during the fine-tuning process.""" - data_tokens: NotRequired[Nullable[int]] - r"""The total number of tokens in the training dataset.""" - estimated_start_time: NotRequired[Nullable[int]] - deprecated: NotRequired[bool] - epochs: NotRequired[Nullable[float]] - r"""The number of complete passes through the entire training dataset.""" - training_steps: NotRequired[Nullable[int]] - r"""The number of training steps to perform. A training step refers to a single update of the model weights during the fine-tuning process. This update is typically calculated using a batch of samples from the training dataset.""" - object: Literal["job.metadata"] - - -class LegacyJobMetadataOut(BaseModel): - details: str - - expected_duration_seconds: OptionalNullable[int] = UNSET - r"""The approximated time (in seconds) for the fine-tuning process to complete.""" - - cost: OptionalNullable[float] = UNSET - r"""The cost of the fine-tuning job.""" - - cost_currency: OptionalNullable[str] = UNSET - r"""The currency used for the fine-tuning job cost.""" - - train_tokens_per_step: OptionalNullable[int] = UNSET - r"""The number of tokens consumed by one training step.""" - - train_tokens: OptionalNullable[int] = UNSET - r"""The total number of tokens used during the fine-tuning process.""" - - data_tokens: OptionalNullable[int] = UNSET - r"""The total number of tokens in the training dataset.""" - - estimated_start_time: OptionalNullable[int] = UNSET - - deprecated: Optional[bool] = True - - epochs: OptionalNullable[float] = UNSET - r"""The number of complete passes through the entire training dataset.""" - - training_steps: OptionalNullable[int] = UNSET - r"""The number of training steps to perform. A training step refers to a single update of the model weights during the fine-tuning process. This update is typically calculated using a batch of samples from the training dataset.""" - - OBJECT: Annotated[ - Annotated[ - Optional[Literal["job.metadata"]], - AfterValidator(validate_const("job.metadata")), - ], - pydantic.Field(alias="object"), - ] = "job.metadata" - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = [ - "expected_duration_seconds", - "cost", - "cost_currency", - "train_tokens_per_step", - "train_tokens", - "data_tokens", - "estimated_start_time", - "deprecated", - "epochs", - "training_steps", - "object", - ] - nullable_fields = [ - "expected_duration_seconds", - "cost", - "cost_currency", - "train_tokens_per_step", - "train_tokens", - "data_tokens", - "estimated_start_time", - "epochs", - "training_steps", - ] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/mistralai/client/models/deletelibraryop.py b/src/mistralai/client/models/libraries_delete_v1op.py similarity index 76% rename from src/mistralai/client/models/deletelibraryop.py rename to src/mistralai/client/models/libraries_delete_v1op.py index 5eb6fc31..893ab53b 100644 --- a/src/mistralai/client/models/deletelibraryop.py +++ b/src/mistralai/client/models/libraries_delete_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: cd0ce9bf8d51 +# @generated-id: b2e8bbd19baa from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class DeleteLibraryRequestTypedDict(TypedDict): +class LibrariesDeleteV1RequestTypedDict(TypedDict): library_id: str -class DeleteLibraryRequest(BaseModel): +class LibrariesDeleteV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getdocumentstatusop.py b/src/mistralai/client/models/libraries_documents_delete_v1op.py similarity index 79% rename from src/mistralai/client/models/getdocumentstatusop.py rename to src/mistralai/client/models/libraries_documents_delete_v1op.py index 4206f593..0495832e 100644 --- a/src/mistralai/client/models/getdocumentstatusop.py +++ b/src/mistralai/client/models/libraries_documents_delete_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: f1f40b8f003f +# @generated-id: 81eb34382a3d from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetDocumentStatusRequestTypedDict(TypedDict): +class LibrariesDocumentsDeleteV1RequestTypedDict(TypedDict): library_id: str document_id: str -class GetDocumentStatusRequest(BaseModel): +class LibrariesDocumentsDeleteV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/libraries_documents_get_extracted_text_signed_url_v1op.py b/src/mistralai/client/models/libraries_documents_get_extracted_text_signed_url_v1op.py new file mode 100644 index 00000000..186baaed --- /dev/null +++ b/src/mistralai/client/models/libraries_documents_get_extracted_text_signed_url_v1op.py @@ -0,0 +1,22 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: a7417ebd6040 + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing_extensions import Annotated, TypedDict + + +class LibrariesDocumentsGetExtractedTextSignedURLV1RequestTypedDict(TypedDict): + library_id: str + document_id: str + + +class LibrariesDocumentsGetExtractedTextSignedURLV1Request(BaseModel): + library_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + document_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] diff --git a/src/mistralai/client/models/libraries_documents_get_signed_url_v1op.py b/src/mistralai/client/models/libraries_documents_get_signed_url_v1op.py new file mode 100644 index 00000000..ebcf85d7 --- /dev/null +++ b/src/mistralai/client/models/libraries_documents_get_signed_url_v1op.py @@ -0,0 +1,22 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: d4b7b47913ba + +from __future__ import annotations +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata +from typing_extensions import Annotated, TypedDict + + +class LibrariesDocumentsGetSignedURLV1RequestTypedDict(TypedDict): + library_id: str + document_id: str + + +class LibrariesDocumentsGetSignedURLV1Request(BaseModel): + library_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + document_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] diff --git a/src/mistralai/client/models/getdocumentop.py b/src/mistralai/client/models/libraries_documents_get_status_v1op.py similarity index 78% rename from src/mistralai/client/models/getdocumentop.py rename to src/mistralai/client/models/libraries_documents_get_status_v1op.py index d7b07db7..1f484787 100644 --- a/src/mistralai/client/models/getdocumentop.py +++ b/src/mistralai/client/models/libraries_documents_get_status_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: de89ff93d373 +# @generated-id: f314f73e909c from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetDocumentRequestTypedDict(TypedDict): +class LibrariesDocumentsGetStatusV1RequestTypedDict(TypedDict): library_id: str document_id: str -class GetDocumentRequest(BaseModel): +class LibrariesDocumentsGetStatusV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getdocumentextractedtextsignedurlop.py b/src/mistralai/client/models/libraries_documents_get_text_content_v1op.py similarity index 77% rename from src/mistralai/client/models/getdocumentextractedtextsignedurlop.py rename to src/mistralai/client/models/libraries_documents_get_text_content_v1op.py index 9a71181d..e0508d66 100644 --- a/src/mistralai/client/models/getdocumentextractedtextsignedurlop.py +++ b/src/mistralai/client/models/libraries_documents_get_text_content_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 69099395d631 +# @generated-id: 1ca4e0c41321 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetDocumentExtractedTextSignedURLRequestTypedDict(TypedDict): +class LibrariesDocumentsGetTextContentV1RequestTypedDict(TypedDict): library_id: str document_id: str -class GetDocumentExtractedTextSignedURLRequest(BaseModel): +class LibrariesDocumentsGetTextContentV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/deletedocumentop.py b/src/mistralai/client/models/libraries_documents_get_v1op.py similarity index 80% rename from src/mistralai/client/models/deletedocumentop.py rename to src/mistralai/client/models/libraries_documents_get_v1op.py index 400070a4..857dfbe6 100644 --- a/src/mistralai/client/models/deletedocumentop.py +++ b/src/mistralai/client/models/libraries_documents_get_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 62522db1ccf2 +# @generated-id: 26ff35f0c69d from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class DeleteDocumentRequestTypedDict(TypedDict): +class LibrariesDocumentsGetV1RequestTypedDict(TypedDict): library_id: str document_id: str -class DeleteDocumentRequest(BaseModel): +class LibrariesDocumentsGetV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listdocumentsop.py b/src/mistralai/client/models/libraries_documents_list_v1op.py similarity index 95% rename from src/mistralai/client/models/listdocumentsop.py rename to src/mistralai/client/models/libraries_documents_list_v1op.py index 0f7c4584..c301b6f5 100644 --- a/src/mistralai/client/models/listdocumentsop.py +++ b/src/mistralai/client/models/libraries_documents_list_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 3e42bdc15383 +# @generated-id: 756f26de3cbe from __future__ import annotations from mistralai.client.types import ( @@ -15,7 +15,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class ListDocumentsRequestTypedDict(TypedDict): +class LibrariesDocumentsListV1RequestTypedDict(TypedDict): library_id: str search: NotRequired[Nullable[str]] page_size: NotRequired[int] @@ -25,7 +25,7 @@ class ListDocumentsRequestTypedDict(TypedDict): sort_order: NotRequired[str] -class ListDocumentsRequest(BaseModel): +class LibrariesDocumentsListV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/getdocumentsignedurlop.py b/src/mistralai/client/models/libraries_documents_reprocess_v1op.py similarity index 78% rename from src/mistralai/client/models/getdocumentsignedurlop.py rename to src/mistralai/client/models/libraries_documents_reprocess_v1op.py index e5d56c54..a2f9ba2a 100644 --- a/src/mistralai/client/models/getdocumentsignedurlop.py +++ b/src/mistralai/client/models/libraries_documents_reprocess_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: b8d95511c6d1 +# @generated-id: dbbeb02fc336 from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,12 +7,12 @@ from typing_extensions import Annotated, TypedDict -class GetDocumentSignedURLRequestTypedDict(TypedDict): +class LibrariesDocumentsReprocessV1RequestTypedDict(TypedDict): library_id: str document_id: str -class GetDocumentSignedURLRequest(BaseModel): +class LibrariesDocumentsReprocessV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/updatedocumentop.py b/src/mistralai/client/models/libraries_documents_update_v1op.py similarity index 64% rename from src/mistralai/client/models/updatedocumentop.py rename to src/mistralai/client/models/libraries_documents_update_v1op.py index 073f22a9..5bf8de83 100644 --- a/src/mistralai/client/models/updatedocumentop.py +++ b/src/mistralai/client/models/libraries_documents_update_v1op.py @@ -1,20 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: eee9ef317180 +# @generated-id: 734ba6c19f5f from __future__ import annotations -from .documentupdatein import DocumentUpdateIn, DocumentUpdateInTypedDict +from .documentupdaterequest import DocumentUpdateRequest, DocumentUpdateRequestTypedDict from mistralai.client.types import BaseModel from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata from typing_extensions import Annotated, TypedDict -class UpdateDocumentRequestTypedDict(TypedDict): +class LibrariesDocumentsUpdateV1RequestTypedDict(TypedDict): library_id: str document_id: str - document_update_in: DocumentUpdateInTypedDict + document_update_request: DocumentUpdateRequestTypedDict -class UpdateDocumentRequest(BaseModel): +class LibrariesDocumentsUpdateV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] @@ -23,7 +23,7 @@ class UpdateDocumentRequest(BaseModel): str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] - document_update_in: Annotated[ - DocumentUpdateIn, + document_update_request: Annotated[ + DocumentUpdateRequest, FieldMetadata(request=RequestMetadata(media_type="application/json")), ] diff --git a/src/mistralai/client/models/uploaddocumentop.py b/src/mistralai/client/models/libraries_documents_upload_v1op.py similarity index 87% rename from src/mistralai/client/models/uploaddocumentop.py rename to src/mistralai/client/models/libraries_documents_upload_v1op.py index 2c957947..e36a6a0a 100644 --- a/src/mistralai/client/models/uploaddocumentop.py +++ b/src/mistralai/client/models/libraries_documents_upload_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 0018fe7ff48c +# @generated-id: 744466971862 from __future__ import annotations from .file import File, FileTypedDict @@ -13,7 +13,7 @@ from typing_extensions import Annotated, TypedDict -class DocumentUploadTypedDict(TypedDict): +class UploadDocumentRequestTypedDict(TypedDict): file: FileTypedDict r"""The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such: @@ -27,7 +27,7 @@ class DocumentUploadTypedDict(TypedDict): """ -class DocumentUpload(BaseModel): +class UploadDocumentRequest(BaseModel): file: Annotated[File, FieldMetadata(multipart=MultipartFormMetadata(file=True))] r"""The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such: @@ -41,17 +41,17 @@ class DocumentUpload(BaseModel): """ -class UploadDocumentRequestTypedDict(TypedDict): +class LibrariesDocumentsUploadV1RequestTypedDict(TypedDict): library_id: str - request_body: DocumentUploadTypedDict + request_body: UploadDocumentRequestTypedDict -class UploadDocumentRequest(BaseModel): +class LibrariesDocumentsUploadV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] request_body: Annotated[ - DocumentUpload, + UploadDocumentRequest, FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")), ] diff --git a/src/mistralai/client/models/getlibraryop.py b/src/mistralai/client/models/libraries_get_v1op.py similarity index 77% rename from src/mistralai/client/models/getlibraryop.py rename to src/mistralai/client/models/libraries_get_v1op.py index bc0b4a23..7a51d605 100644 --- a/src/mistralai/client/models/getlibraryop.py +++ b/src/mistralai/client/models/libraries_get_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: c84a92e23a90 +# @generated-id: d493f39e7ebb from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class GetLibraryRequestTypedDict(TypedDict): +class LibrariesGetV1RequestTypedDict(TypedDict): library_id: str -class GetLibraryRequest(BaseModel): +class LibrariesGetV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/libraries_share_create_v1op.py b/src/mistralai/client/models/libraries_share_create_v1op.py new file mode 100644 index 00000000..c80955b1 --- /dev/null +++ b/src/mistralai/client/models/libraries_share_create_v1op.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: feaacfd46dd3 + +from __future__ import annotations +from .updateorcreatelibraryaccessrequest import ( + UpdateOrCreateLibraryAccessRequest, + UpdateOrCreateLibraryAccessRequestTypedDict, +) +from mistralai.client.types import BaseModel +from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata +from typing_extensions import Annotated, TypedDict + + +class LibrariesShareCreateV1RequestTypedDict(TypedDict): + library_id: str + update_or_create_library_access_request: UpdateOrCreateLibraryAccessRequestTypedDict + + +class LibrariesShareCreateV1Request(BaseModel): + library_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + update_or_create_library_access_request: Annotated[ + UpdateOrCreateLibraryAccessRequest, + FieldMetadata(request=RequestMetadata(media_type="application/json")), + ] diff --git a/src/mistralai/client/models/deletelibraryaccessop.py b/src/mistralai/client/models/libraries_share_delete_v1op.py similarity index 83% rename from src/mistralai/client/models/deletelibraryaccessop.py rename to src/mistralai/client/models/libraries_share_delete_v1op.py index ca14c3ff..eca3f86a 100644 --- a/src/mistralai/client/models/deletelibraryaccessop.py +++ b/src/mistralai/client/models/libraries_share_delete_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: df80945bcf19 +# @generated-id: 7f3a679ca384 from __future__ import annotations from .sharingdelete import SharingDelete, SharingDeleteTypedDict @@ -8,12 +8,12 @@ from typing_extensions import Annotated, TypedDict -class DeleteLibraryAccessRequestTypedDict(TypedDict): +class LibrariesShareDeleteV1RequestTypedDict(TypedDict): library_id: str sharing_delete: SharingDeleteTypedDict -class DeleteLibraryAccessRequest(BaseModel): +class LibrariesShareDeleteV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/listlibraryaccessesop.py b/src/mistralai/client/models/libraries_share_list_v1op.py similarity index 75% rename from src/mistralai/client/models/listlibraryaccessesop.py rename to src/mistralai/client/models/libraries_share_list_v1op.py index 2206310f..895a2590 100644 --- a/src/mistralai/client/models/listlibraryaccessesop.py +++ b/src/mistralai/client/models/libraries_share_list_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 581b332626b7 +# @generated-id: 8f0af379bf1c from __future__ import annotations from mistralai.client.types import BaseModel @@ -7,11 +7,11 @@ from typing_extensions import Annotated, TypedDict -class ListLibraryAccessesRequestTypedDict(TypedDict): +class LibrariesShareListV1RequestTypedDict(TypedDict): library_id: str -class ListLibraryAccessesRequest(BaseModel): +class LibrariesShareListV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/updatelibraryop.py b/src/mistralai/client/models/libraries_update_v1op.py similarity index 84% rename from src/mistralai/client/models/updatelibraryop.py rename to src/mistralai/client/models/libraries_update_v1op.py index c5a1ad30..457e4199 100644 --- a/src/mistralai/client/models/updatelibraryop.py +++ b/src/mistralai/client/models/libraries_update_v1op.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 4ba7acdb62c6 +# @generated-id: 92c8d4132252 from __future__ import annotations from .libraryinupdate import LibraryInUpdate, LibraryInUpdateTypedDict @@ -8,12 +8,12 @@ from typing_extensions import Annotated, TypedDict -class UpdateLibraryRequestTypedDict(TypedDict): +class LibrariesUpdateV1RequestTypedDict(TypedDict): library_id: str library_in_update: LibraryInUpdateTypedDict -class UpdateLibraryRequest(BaseModel): +class LibrariesUpdateV1Request(BaseModel): library_id: Annotated[ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) ] diff --git a/src/mistralai/client/models/libraryout.py b/src/mistralai/client/models/library.py similarity index 96% rename from src/mistralai/client/models/libraryout.py rename to src/mistralai/client/models/library.py index c7ab7b8d..4197d1d3 100644 --- a/src/mistralai/client/models/libraryout.py +++ b/src/mistralai/client/models/library.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 4e608c7aafc4 +# @generated-id: 028a34b08f9c from __future__ import annotations from datetime import datetime @@ -14,7 +14,7 @@ from typing_extensions import NotRequired, TypedDict -class LibraryOutTypedDict(TypedDict): +class LibraryTypedDict(TypedDict): id: str name: str created_at: datetime @@ -34,7 +34,7 @@ class LibraryOutTypedDict(TypedDict): r"""Generated Name""" -class LibraryOut(BaseModel): +class Library(BaseModel): id: str name: str diff --git a/src/mistralai/client/models/batchjobsout.py b/src/mistralai/client/models/listbatchjobsresponse.py similarity index 70% rename from src/mistralai/client/models/batchjobsout.py rename to src/mistralai/client/models/listbatchjobsresponse.py index f65fc040..93844338 100644 --- a/src/mistralai/client/models/batchjobsout.py +++ b/src/mistralai/client/models/listbatchjobsresponse.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 20b2516e7efa +# @generated-id: 99d94c86a871 from __future__ import annotations -from .batchjobout import BatchJobOut, BatchJobOutTypedDict +from .batchjob import BatchJob, BatchJobTypedDict from mistralai.client.types import BaseModel from mistralai.client.utils import validate_const import pydantic @@ -11,16 +11,16 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class BatchJobsOutTypedDict(TypedDict): +class ListBatchJobsResponseTypedDict(TypedDict): total: int - data: NotRequired[List[BatchJobOutTypedDict]] + data: NotRequired[List[BatchJobTypedDict]] object: Literal["list"] -class BatchJobsOut(BaseModel): +class ListBatchJobsResponse(BaseModel): total: int - data: Optional[List[BatchJobOut]] = None + data: Optional[List[BatchJob]] = None OBJECT: Annotated[ Annotated[Optional[Literal["list"]], AfterValidator(validate_const("list"))], diff --git a/src/mistralai/client/models/listdocumentout.py b/src/mistralai/client/models/listdocumentsresponse.py similarity index 60% rename from src/mistralai/client/models/listdocumentout.py rename to src/mistralai/client/models/listdocumentsresponse.py index a636b3de..c48b8c05 100644 --- a/src/mistralai/client/models/listdocumentout.py +++ b/src/mistralai/client/models/listdocumentsresponse.py @@ -1,20 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: b2c96075ce00 +# @generated-id: f593d8e66833 from __future__ import annotations -from .documentout import DocumentOut, DocumentOutTypedDict +from .document import Document, DocumentTypedDict from .paginationinfo import PaginationInfo, PaginationInfoTypedDict from mistralai.client.types import BaseModel from typing import List from typing_extensions import TypedDict -class ListDocumentOutTypedDict(TypedDict): +class ListDocumentsResponseTypedDict(TypedDict): pagination: PaginationInfoTypedDict - data: List[DocumentOutTypedDict] + data: List[DocumentTypedDict] -class ListDocumentOut(BaseModel): +class ListDocumentsResponse(BaseModel): pagination: PaginationInfo - data: List[DocumentOut] + data: List[Document] diff --git a/src/mistralai/client/models/listfilesout.py b/src/mistralai/client/models/listfilesresponse.py similarity index 85% rename from src/mistralai/client/models/listfilesout.py rename to src/mistralai/client/models/listfilesresponse.py index 460822f7..d93c5b9d 100644 --- a/src/mistralai/client/models/listfilesout.py +++ b/src/mistralai/client/models/listfilesresponse.py @@ -1,8 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ae5fa21b141c +# @generated-id: 85d6d24c1a19 from __future__ import annotations -from .fileschema import FileSchema, FileSchemaTypedDict +from .fileobject import FileObject, FileObjectTypedDict from mistralai.client.types import ( BaseModel, Nullable, @@ -15,14 +15,14 @@ from typing_extensions import NotRequired, TypedDict -class ListFilesOutTypedDict(TypedDict): - data: List[FileSchemaTypedDict] +class ListFilesResponseTypedDict(TypedDict): + data: List[FileObjectTypedDict] object: str total: NotRequired[Nullable[int]] -class ListFilesOut(BaseModel): - data: List[FileSchema] +class ListFilesResponse(BaseModel): + data: List[FileObject] object: str diff --git a/src/mistralai/client/models/jobsout.py b/src/mistralai/client/models/listfinetuningjobsresponse.py similarity index 65% rename from src/mistralai/client/models/jobsout.py rename to src/mistralai/client/models/listfinetuningjobsresponse.py index a4127a5d..c4583cb6 100644 --- a/src/mistralai/client/models/jobsout.py +++ b/src/mistralai/client/models/listfinetuningjobsresponse.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 22e91e9631a9 +# @generated-id: 118e05dbfbbd from __future__ import annotations from .classifierjobout import ClassifierJobOut, ClassifierJobOutTypedDict @@ -13,26 +13,27 @@ from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict -JobsOutDataTypedDict = TypeAliasType( - "JobsOutDataTypedDict", Union[ClassifierJobOutTypedDict, CompletionJobOutTypedDict] +ListFineTuningJobsResponseDataTypedDict = TypeAliasType( + "ListFineTuningJobsResponseDataTypedDict", + Union[ClassifierJobOutTypedDict, CompletionJobOutTypedDict], ) -JobsOutData = Annotated[ +ListFineTuningJobsResponseData = Annotated[ Union[ClassifierJobOut, CompletionJobOut], Field(discriminator="JOB_TYPE") ] -class JobsOutTypedDict(TypedDict): +class ListFineTuningJobsResponseTypedDict(TypedDict): total: int - data: NotRequired[List[JobsOutDataTypedDict]] + data: NotRequired[List[ListFineTuningJobsResponseDataTypedDict]] object: Literal["list"] -class JobsOut(BaseModel): +class ListFineTuningJobsResponse(BaseModel): total: int - data: Optional[List[JobsOutData]] = None + data: Optional[List[ListFineTuningJobsResponseData]] = None OBJECT: Annotated[ Annotated[Optional[Literal["list"]], AfterValidator(validate_const("list"))], diff --git a/src/mistralai/client/models/listlibrariesresponse.py b/src/mistralai/client/models/listlibrariesresponse.py new file mode 100644 index 00000000..337fe105 --- /dev/null +++ b/src/mistralai/client/models/listlibrariesresponse.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: df556a618365 + +from __future__ import annotations +from .library import Library, LibraryTypedDict +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class ListLibrariesResponseTypedDict(TypedDict): + data: List[LibraryTypedDict] + + +class ListLibrariesResponse(BaseModel): + data: List[Library] diff --git a/src/mistralai/client/models/listlibraryaccessesresponse.py b/src/mistralai/client/models/listlibraryaccessesresponse.py new file mode 100644 index 00000000..c4279f41 --- /dev/null +++ b/src/mistralai/client/models/listlibraryaccessesresponse.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: e9adebbefbf7 + +from __future__ import annotations +from .sharing import Sharing, SharingTypedDict +from mistralai.client.types import BaseModel +from typing import List +from typing_extensions import TypedDict + + +class ListLibraryAccessesResponseTypedDict(TypedDict): + data: List[SharingTypedDict] + + +class ListLibraryAccessesResponse(BaseModel): + data: List[Sharing] diff --git a/src/mistralai/client/models/listlibraryout.py b/src/mistralai/client/models/listlibraryout.py deleted file mode 100644 index 39fa459f..00000000 --- a/src/mistralai/client/models/listlibraryout.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: cb78c529e763 - -from __future__ import annotations -from .libraryout import LibraryOut, LibraryOutTypedDict -from mistralai.client.types import BaseModel -from typing import List -from typing_extensions import TypedDict - - -class ListLibraryOutTypedDict(TypedDict): - data: List[LibraryOutTypedDict] - - -class ListLibraryOut(BaseModel): - data: List[LibraryOut] diff --git a/src/mistralai/client/models/listsharingout.py b/src/mistralai/client/models/listsharingout.py deleted file mode 100644 index 443ad0d6..00000000 --- a/src/mistralai/client/models/listsharingout.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ee708a7ccdad - -from __future__ import annotations -from .sharingout import SharingOut, SharingOutTypedDict -from mistralai.client.types import BaseModel -from typing import List -from typing_extensions import TypedDict - - -class ListSharingOutTypedDict(TypedDict): - data: List[SharingOutTypedDict] - - -class ListSharingOut(BaseModel): - data: List[SharingOut] diff --git a/src/mistralai/client/models/ocrrequest.py b/src/mistralai/client/models/ocrrequest.py index 18b899dd..cd4469b3 100644 --- a/src/mistralai/client/models/ocrrequest.py +++ b/src/mistralai/client/models/ocrrequest.py @@ -18,14 +18,16 @@ from typing_extensions import NotRequired, TypeAliasType, TypedDict -DocumentTypedDict = TypeAliasType( - "DocumentTypedDict", +DocumentUnionTypedDict = TypeAliasType( + "DocumentUnionTypedDict", Union[FileChunkTypedDict, ImageURLChunkTypedDict, DocumentURLChunkTypedDict], ) r"""Document to run OCR on""" -Document = TypeAliasType("Document", Union[FileChunk, ImageURLChunk, DocumentURLChunk]) +DocumentUnion = TypeAliasType( + "DocumentUnion", Union[FileChunk, ImageURLChunk, DocumentURLChunk] +) r"""Document to run OCR on""" @@ -37,7 +39,7 @@ class OCRRequestTypedDict(TypedDict): model: Nullable[str] - document: DocumentTypedDict + document: DocumentUnionTypedDict r"""Document to run OCR on""" id: NotRequired[str] pages: NotRequired[Nullable[List[int]]] @@ -62,7 +64,7 @@ class OCRRequestTypedDict(TypedDict): class OCRRequest(BaseModel): model: Nullable[str] - document: Document + document: DocumentUnion r"""Document to run OCR on""" id: Optional[str] = None diff --git a/src/mistralai/client/models/realtimetranscriptionsession.py b/src/mistralai/client/models/realtimetranscriptionsession.py index d20d0d8c..ac580262 100644 --- a/src/mistralai/client/models/realtimetranscriptionsession.py +++ b/src/mistralai/client/models/realtimetranscriptionsession.py @@ -3,14 +3,22 @@ from __future__ import annotations from .audioformat import AudioFormat, AudioFormatTypedDict -from mistralai.client.types import BaseModel -from typing_extensions import TypedDict +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict class RealtimeTranscriptionSessionTypedDict(TypedDict): request_id: str model: str audio_format: AudioFormatTypedDict + target_streaming_delay_ms: NotRequired[Nullable[int]] class RealtimeTranscriptionSession(BaseModel): @@ -19,3 +27,35 @@ class RealtimeTranscriptionSession(BaseModel): model: str audio_format: AudioFormat + + target_streaming_delay_ms: OptionalNullable[int] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["target_streaming_delay_ms"] + nullable_fields = ["target_streaming_delay_ms"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/mistralai/client/models/reprocessdocumentop.py b/src/mistralai/client/models/reprocessdocumentop.py deleted file mode 100644 index 48a4b72b..00000000 --- a/src/mistralai/client/models/reprocessdocumentop.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: b2913a7aa5c9 - -from __future__ import annotations -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from typing_extensions import Annotated, TypedDict - - -class ReprocessDocumentRequestTypedDict(TypedDict): - library_id: str - document_id: str - - -class ReprocessDocumentRequest(BaseModel): - library_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - document_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] diff --git a/src/mistralai/client/models/retrieve_model_v1_models_model_id_getop.py b/src/mistralai/client/models/retrieve_model_v1_models_model_id_getop.py new file mode 100644 index 00000000..58fcb7e8 --- /dev/null +++ b/src/mistralai/client/models/retrieve_model_v1_models_model_id_getop.py @@ -0,0 +1,247 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" +# @generated-id: 6fefa90ca351 + +from __future__ import annotations +from .modelcapabilities import ModelCapabilities, ModelCapabilitiesTypedDict +from datetime import datetime +from mistralai.client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from mistralai.client.utils import FieldMetadata, PathParamMetadata, validate_const +import pydantic +from pydantic import Field, model_serializer +from pydantic.functional_validators import AfterValidator +from typing import List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +class RetrieveModelV1ModelsModelIDGetRequestTypedDict(TypedDict): + model_id: str + r"""The ID of the model to retrieve.""" + + +class RetrieveModelV1ModelsModelIDGetRequest(BaseModel): + model_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + r"""The ID of the model to retrieve.""" + + +class FTModelCardGetModelResponseTypedDict(TypedDict): + r"""Extra fields for fine-tuned models.""" + + id: str + capabilities: ModelCapabilitiesTypedDict + job: str + root: str + object: NotRequired[str] + created: NotRequired[int] + owned_by: NotRequired[str] + name: NotRequired[Nullable[str]] + description: NotRequired[Nullable[str]] + max_context_length: NotRequired[int] + aliases: NotRequired[List[str]] + deprecation: NotRequired[Nullable[datetime]] + deprecation_replacement_model: NotRequired[Nullable[str]] + default_model_temperature: NotRequired[Nullable[float]] + type: Literal["fine-tuned"] + archived: NotRequired[bool] + + +class FTModelCardGetModelResponse(BaseModel): + r"""Extra fields for fine-tuned models.""" + + id: str + + capabilities: ModelCapabilities + + job: str + + root: str + + object: Optional[str] = "model" + + created: Optional[int] = None + + owned_by: Optional[str] = "mistralai" + + name: OptionalNullable[str] = UNSET + + description: OptionalNullable[str] = UNSET + + max_context_length: Optional[int] = 32768 + + aliases: Optional[List[str]] = None + + deprecation: OptionalNullable[datetime] = UNSET + + deprecation_replacement_model: OptionalNullable[str] = UNSET + + default_model_temperature: OptionalNullable[float] = UNSET + + TYPE: Annotated[ + Annotated[Literal["fine-tuned"], AfterValidator(validate_const("fine-tuned"))], + pydantic.Field(alias="type"), + ] = "fine-tuned" + + archived: Optional[bool] = False + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "object", + "created", + "owned_by", + "name", + "description", + "max_context_length", + "aliases", + "deprecation", + "deprecation_replacement_model", + "default_model_temperature", + "archived", + ] + nullable_fields = [ + "name", + "description", + "deprecation", + "deprecation_replacement_model", + "default_model_temperature", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +class BaseModelCardGetModelResponseTypedDict(TypedDict): + id: str + capabilities: ModelCapabilitiesTypedDict + object: NotRequired[str] + created: NotRequired[int] + owned_by: NotRequired[str] + name: NotRequired[Nullable[str]] + description: NotRequired[Nullable[str]] + max_context_length: NotRequired[int] + aliases: NotRequired[List[str]] + deprecation: NotRequired[Nullable[datetime]] + deprecation_replacement_model: NotRequired[Nullable[str]] + default_model_temperature: NotRequired[Nullable[float]] + type: Literal["base"] + + +class BaseModelCardGetModelResponse(BaseModel): + id: str + + capabilities: ModelCapabilities + + object: Optional[str] = "model" + + created: Optional[int] = None + + owned_by: Optional[str] = "mistralai" + + name: OptionalNullable[str] = UNSET + + description: OptionalNullable[str] = UNSET + + max_context_length: Optional[int] = 32768 + + aliases: Optional[List[str]] = None + + deprecation: OptionalNullable[datetime] = UNSET + + deprecation_replacement_model: OptionalNullable[str] = UNSET + + default_model_temperature: OptionalNullable[float] = UNSET + + TYPE: Annotated[ + Annotated[Literal["base"], AfterValidator(validate_const("base"))], + pydantic.Field(alias="type"), + ] = "base" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "object", + "created", + "owned_by", + "name", + "description", + "max_context_length", + "aliases", + "deprecation", + "deprecation_replacement_model", + "default_model_temperature", + ] + nullable_fields = [ + "name", + "description", + "deprecation", + "deprecation_replacement_model", + "default_model_temperature", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +GetModelResponseTypedDict = TypeAliasType( + "GetModelResponseTypedDict", + Union[BaseModelCardGetModelResponseTypedDict, FTModelCardGetModelResponseTypedDict], +) +r"""Successful Response""" + + +GetModelResponse = Annotated[ + Union[BaseModelCardGetModelResponse, FTModelCardGetModelResponse], + Field(discriminator="TYPE"), +] +r"""Successful Response""" diff --git a/src/mistralai/client/models/retrievemodelop.py b/src/mistralai/client/models/retrievemodelop.py deleted file mode 100644 index b4334e9a..00000000 --- a/src/mistralai/client/models/retrievemodelop.py +++ /dev/null @@ -1,36 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: d883baa79c9e - -from __future__ import annotations -from .basemodelcard import BaseModelCard, BaseModelCardTypedDict -from .ftmodelcard import FTModelCard, FTModelCardTypedDict -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from pydantic import Field -from typing import Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -class RetrieveModelRequestTypedDict(TypedDict): - model_id: str - r"""The ID of the model to retrieve.""" - - -class RetrieveModelRequest(BaseModel): - model_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - r"""The ID of the model to retrieve.""" - - -ResponseRetrieveModelV1ModelsModelIDGetTypedDict = TypeAliasType( - "ResponseRetrieveModelV1ModelsModelIDGetTypedDict", - Union[BaseModelCardTypedDict, FTModelCardTypedDict], -) -r"""Successful Response""" - - -ResponseRetrieveModelV1ModelsModelIDGet = Annotated[ - Union[BaseModelCard, FTModelCard], Field(discriminator="TYPE") -] -r"""Successful Response""" diff --git a/src/mistralai/client/models/sharingout.py b/src/mistralai/client/models/sharing.py similarity index 94% rename from src/mistralai/client/models/sharingout.py rename to src/mistralai/client/models/sharing.py index 77807154..28e1ea1b 100644 --- a/src/mistralai/client/models/sharingout.py +++ b/src/mistralai/client/models/sharing.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 0b8804effb5c +# @generated-id: 324f5ac27249 from __future__ import annotations from mistralai.client.types import ( @@ -13,7 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class SharingOutTypedDict(TypedDict): +class SharingTypedDict(TypedDict): library_id: str org_id: str role: str @@ -22,7 +22,7 @@ class SharingOutTypedDict(TypedDict): user_id: NotRequired[Nullable[str]] -class SharingOut(BaseModel): +class Sharing(BaseModel): library_id: str org_id: str diff --git a/src/mistralai/client/models/startfinetuningjobop.py b/src/mistralai/client/models/startfinetuningjobop.py deleted file mode 100644 index 805a8721..00000000 --- a/src/mistralai/client/models/startfinetuningjobop.py +++ /dev/null @@ -1,41 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 663886392468 - -from __future__ import annotations -from .classifierdetailedjobout import ( - ClassifierDetailedJobOut, - ClassifierDetailedJobOutTypedDict, -) -from .completiondetailedjobout import ( - CompletionDetailedJobOut, - CompletionDetailedJobOutTypedDict, -) -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata -from pydantic import Field -from typing import Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -class StartFineTuningJobRequestTypedDict(TypedDict): - job_id: str - - -class StartFineTuningJobRequest(BaseModel): - job_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - -StartFineTuningJobResponseTypedDict = TypeAliasType( - "StartFineTuningJobResponseTypedDict", - Union[CompletionDetailedJobOutTypedDict, ClassifierDetailedJobOutTypedDict], -) -r"""OK""" - - -StartFineTuningJobResponse = Annotated[ - Union[ClassifierDetailedJobOut, CompletionDetailedJobOut], - Field(discriminator="JOB_TYPE"), -] -r"""OK""" diff --git a/src/mistralai/client/models/updatemodelop.py b/src/mistralai/client/models/updatemodelop.py deleted file mode 100644 index 023be979..00000000 --- a/src/mistralai/client/models/updatemodelop.py +++ /dev/null @@ -1,43 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ba149ecfe03e - -from __future__ import annotations -from .classifierftmodelout import ClassifierFTModelOut, ClassifierFTModelOutTypedDict -from .completionftmodelout import CompletionFTModelOut, CompletionFTModelOutTypedDict -from .updateftmodelin import UpdateFTModelIn, UpdateFTModelInTypedDict -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata -from pydantic import Field -from typing import Union -from typing_extensions import Annotated, TypeAliasType, TypedDict - - -class UpdateModelRequestTypedDict(TypedDict): - model_id: str - r"""The ID of the model to update.""" - update_ft_model_in: UpdateFTModelInTypedDict - - -class UpdateModelRequest(BaseModel): - model_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - r"""The ID of the model to update.""" - - update_ft_model_in: Annotated[ - UpdateFTModelIn, - FieldMetadata(request=RequestMetadata(media_type="application/json")), - ] - - -UpdateModelResponseTypedDict = TypeAliasType( - "UpdateModelResponseTypedDict", - Union[CompletionFTModelOutTypedDict, ClassifierFTModelOutTypedDict], -) -r"""OK""" - - -UpdateModelResponse = Annotated[ - Union[ClassifierFTModelOut, CompletionFTModelOut], Field(discriminator="MODEL_TYPE") -] -r"""OK""" diff --git a/src/mistralai/client/models/updateorcreatelibraryaccessop.py b/src/mistralai/client/models/updateorcreatelibraryaccessop.py deleted file mode 100644 index 1abe6eda..00000000 --- a/src/mistralai/client/models/updateorcreatelibraryaccessop.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: ec9b15418f5c - -from __future__ import annotations -from .sharingin import SharingIn, SharingInTypedDict -from mistralai.client.types import BaseModel -from mistralai.client.utils import FieldMetadata, PathParamMetadata, RequestMetadata -from typing_extensions import Annotated, TypedDict - - -class UpdateOrCreateLibraryAccessRequestTypedDict(TypedDict): - library_id: str - sharing_in: SharingInTypedDict - - -class UpdateOrCreateLibraryAccessRequest(BaseModel): - library_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - sharing_in: Annotated[ - SharingIn, FieldMetadata(request=RequestMetadata(media_type="application/json")) - ] diff --git a/src/mistralai/client/models/sharingin.py b/src/mistralai/client/models/updateorcreatelibraryaccessrequest.py similarity index 92% rename from src/mistralai/client/models/sharingin.py rename to src/mistralai/client/models/updateorcreatelibraryaccessrequest.py index 8cc3e896..70d68e03 100644 --- a/src/mistralai/client/models/sharingin.py +++ b/src/mistralai/client/models/updateorcreatelibraryaccessrequest.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: e953dda09c02 +# @generated-id: 6c57f392c4fe from __future__ import annotations from .entitytype import EntityType @@ -15,7 +15,7 @@ from typing_extensions import NotRequired, TypedDict -class SharingInTypedDict(TypedDict): +class UpdateOrCreateLibraryAccessRequestTypedDict(TypedDict): level: ShareEnum share_with_uuid: str r"""The id of the entity (user, workspace or organization) to share with""" @@ -24,7 +24,7 @@ class SharingInTypedDict(TypedDict): org_id: NotRequired[Nullable[str]] -class SharingIn(BaseModel): +class UpdateOrCreateLibraryAccessRequest(BaseModel): level: ShareEnum share_with_uuid: str diff --git a/src/mistralai/client/models/uploadfileout.py b/src/mistralai/client/models/uploadfileresponse.py similarity index 95% rename from src/mistralai/client/models/uploadfileout.py rename to src/mistralai/client/models/uploadfileresponse.py index be291efb..7131a7ec 100644 --- a/src/mistralai/client/models/uploadfileout.py +++ b/src/mistralai/client/models/uploadfileresponse.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -# @generated-id: 42466f2bebfb +# @generated-id: a753c1368601 from __future__ import annotations from .filepurpose import FilePurpose @@ -17,7 +17,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class UploadFileOutTypedDict(TypedDict): +class UploadFileResponseTypedDict(TypedDict): id: str r"""The unique identifier of the file.""" object: str @@ -36,7 +36,7 @@ class UploadFileOutTypedDict(TypedDict): signature: NotRequired[Nullable[str]] -class UploadFileOut(BaseModel): +class UploadFileResponse(BaseModel): id: str r"""The unique identifier of the file.""" diff --git a/src/mistralai/client/models_.py b/src/mistralai/client/models_.py index 05b33ac7..92e77143 100644 --- a/src/mistralai/client/models_.py +++ b/src/mistralai/client/models_.py @@ -68,7 +68,7 @@ def list( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListModels", + operation_id="list_models_v1_models_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -145,7 +145,7 @@ async def list_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ListModels", + operation_id="list_models_v1_models_get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -175,7 +175,7 @@ def retrieve( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ResponseRetrieveModelV1ModelsModelIDGet: + ) -> models.GetModelResponse: r"""Retrieve Model Retrieve information about a model. @@ -196,7 +196,7 @@ def retrieve( else: base_url = self._get_url(base_url, url_variables) - request = models.RetrieveModelRequest( + request = models.RetrieveModelV1ModelsModelIDGetRequest( model_id=model_id, ) @@ -229,7 +229,7 @@ def retrieve( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RetrieveModel", + operation_id="retrieve_model_v1_models__model_id__get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -242,9 +242,7 @@ def retrieve( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.ResponseRetrieveModelV1ModelsModelIDGet, http_res - ) + return unmarshal_json_response(models.GetModelResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -267,7 +265,7 @@ async def retrieve_async( server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> models.ResponseRetrieveModelV1ModelsModelIDGet: + ) -> models.GetModelResponse: r"""Retrieve Model Retrieve information about a model. @@ -288,7 +286,7 @@ async def retrieve_async( else: base_url = self._get_url(base_url, url_variables) - request = models.RetrieveModelRequest( + request = models.RetrieveModelV1ModelsModelIDGetRequest( model_id=model_id, ) @@ -321,7 +319,7 @@ async def retrieve_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="RetrieveModel", + operation_id="retrieve_model_v1_models__model_id__get", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -334,9 +332,7 @@ async def retrieve_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return unmarshal_json_response( - models.ResponseRetrieveModelV1ModelsModelIDGet, http_res - ) + return unmarshal_json_response(models.GetModelResponse, http_res) if utils.match_response(http_res, "422", "application/json"): response_data = unmarshal_json_response( models.HTTPValidationErrorData, http_res @@ -380,7 +376,7 @@ def delete( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteModelRequest( + request = models.DeleteModelV1ModelsModelIDDeleteRequest( model_id=model_id, ) @@ -413,7 +409,7 @@ def delete( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteModel", + operation_id="delete_model_v1_models__model_id__delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -470,7 +466,7 @@ async def delete_async( else: base_url = self._get_url(base_url, url_variables) - request = models.DeleteModelRequest( + request = models.DeleteModelV1ModelsModelIDDeleteRequest( model_id=model_id, ) @@ -503,7 +499,7 @@ async def delete_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="DeleteModel", + operation_id="delete_model_v1_models__model_id__delete", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -564,7 +560,7 @@ def update( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateModelRequest( + request = models.JobsAPIRoutesFineTuningUpdateFineTunedModelRequest( model_id=model_id, update_ft_model_in=models.UpdateFTModelIn( name=name, @@ -604,7 +600,7 @@ def update( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateModel", + operation_id="jobs_api_routes_fine_tuning_update_fine_tuned_model", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -659,7 +655,7 @@ async def update_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UpdateModelRequest( + request = models.JobsAPIRoutesFineTuningUpdateFineTunedModelRequest( model_id=model_id, update_ft_model_in=models.UpdateFTModelIn( name=name, @@ -699,7 +695,7 @@ async def update_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UpdateModel", + operation_id="jobs_api_routes_fine_tuning_update_fine_tuned_model", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -750,7 +746,7 @@ def archive( else: base_url = self._get_url(base_url, url_variables) - request = models.ArchiveModelRequest( + request = models.JobsAPIRoutesFineTuningArchiveFineTunedModelRequest( model_id=model_id, ) @@ -783,7 +779,7 @@ def archive( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ArchiveModel", + operation_id="jobs_api_routes_fine_tuning_archive_fine_tuned_model", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -834,7 +830,7 @@ async def archive_async( else: base_url = self._get_url(base_url, url_variables) - request = models.ArchiveModelRequest( + request = models.JobsAPIRoutesFineTuningArchiveFineTunedModelRequest( model_id=model_id, ) @@ -867,7 +863,7 @@ async def archive_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="ArchiveModel", + operation_id="jobs_api_routes_fine_tuning_archive_fine_tuned_model", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -918,7 +914,7 @@ def unarchive( else: base_url = self._get_url(base_url, url_variables) - request = models.UnarchiveModelRequest( + request = models.JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest( model_id=model_id, ) @@ -951,7 +947,7 @@ def unarchive( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UnarchiveModel", + operation_id="jobs_api_routes_fine_tuning_unarchive_fine_tuned_model", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security @@ -1002,7 +998,7 @@ async def unarchive_async( else: base_url = self._get_url(base_url, url_variables) - request = models.UnarchiveModelRequest( + request = models.JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest( model_id=model_id, ) @@ -1035,7 +1031,7 @@ async def unarchive_async( hook_ctx=HookContext( config=self.sdk_configuration, base_url=base_url or "", - operation_id="UnarchiveModel", + operation_id="jobs_api_routes_fine_tuning_unarchive_fine_tuned_model", oauth2_scopes=None, security_source=get_security_from_env( self.sdk_configuration.security, models.Security diff --git a/src/mistralai/client/ocr.py b/src/mistralai/client/ocr.py index 2aa38229..ca77191b 100644 --- a/src/mistralai/client/ocr.py +++ b/src/mistralai/client/ocr.py @@ -22,7 +22,7 @@ def process( *, model: Nullable[str], document: Union[ - models_ocrrequest.Document, models_ocrrequest.DocumentTypedDict + models_ocrrequest.DocumentUnion, models_ocrrequest.DocumentUnionTypedDict ], id: Optional[str] = None, pages: OptionalNullable[List[int]] = UNSET, @@ -83,7 +83,7 @@ def process( request = models.OCRRequest( model=model, id=id, - document=utils.get_pydantic_model(document, models.Document), + document=utils.get_pydantic_model(document, models.DocumentUnion), pages=pages, include_image_base64=include_image_base64, image_limit=image_limit, @@ -165,7 +165,7 @@ async def process_async( *, model: Nullable[str], document: Union[ - models_ocrrequest.Document, models_ocrrequest.DocumentTypedDict + models_ocrrequest.DocumentUnion, models_ocrrequest.DocumentUnionTypedDict ], id: Optional[str] = None, pages: OptionalNullable[List[int]] = UNSET, @@ -226,7 +226,7 @@ async def process_async( request = models.OCRRequest( model=model, id=id, - document=utils.get_pydantic_model(document, models.Document), + document=utils.get_pydantic_model(document, models.DocumentUnion), pages=pages, include_image_base64=include_image_base64, image_limit=image_limit, diff --git a/uv.lock b/uv.lock index 1e667c77..fb0eea80 100644 --- a/uv.lock +++ b/uv.lock @@ -563,7 +563,7 @@ wheels = [ [[package]] name = "mistralai" -version = "2.0.0a2" +version = "2.0.0a3" source = { editable = "." } dependencies = [ { name = "eval-type-backport" },