mistralai 1.9.1__py3-none-any.whl → 1.9.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. mistralai/_version.py +2 -2
  2. mistralai/accesses.py +672 -0
  3. mistralai/audio.py +18 -0
  4. mistralai/beta.py +4 -0
  5. mistralai/documents.py +2136 -0
  6. mistralai/files.py +2 -2
  7. mistralai/libraries.py +1041 -0
  8. mistralai/mistral_jobs.py +14 -2
  9. mistralai/models/__init__.py +360 -9
  10. mistralai/models/audiochunk.py +20 -0
  11. mistralai/models/audiotranscriptionrequest.py +97 -0
  12. mistralai/models/audiotranscriptionrequeststream.py +97 -0
  13. mistralai/models/basemodelcard.py +5 -2
  14. mistralai/models/batchjobin.py +7 -4
  15. mistralai/models/batchjobout.py +10 -3
  16. mistralai/models/classifierftmodelout.py +6 -0
  17. mistralai/models/completionargs.py +3 -2
  18. mistralai/models/completionftmodelout.py +6 -0
  19. mistralai/models/contentchunk.py +6 -0
  20. mistralai/models/conversationevents.py +6 -0
  21. mistralai/models/conversationhistory.py +4 -4
  22. mistralai/models/documentout.py +105 -0
  23. mistralai/models/documenttextcontent.py +13 -0
  24. mistralai/models/documentupdatein.py +44 -0
  25. mistralai/models/entitytype.py +9 -0
  26. mistralai/models/file.py +33 -0
  27. mistralai/models/files_api_routes_upload_fileop.py +2 -27
  28. mistralai/models/fileschema.py +8 -2
  29. mistralai/models/ftmodelcard.py +5 -3
  30. mistralai/models/inputentries.py +4 -4
  31. mistralai/models/jobs_api_routes_batch_get_batch_jobsop.py +8 -1
  32. mistralai/models/libraries_delete_v1op.py +16 -0
  33. mistralai/models/libraries_documents_delete_v1op.py +21 -0
  34. mistralai/models/libraries_documents_get_extracted_text_signed_url_v1op.py +21 -0
  35. mistralai/models/libraries_documents_get_signed_url_v1op.py +21 -0
  36. mistralai/models/libraries_documents_get_status_v1op.py +21 -0
  37. mistralai/models/libraries_documents_get_text_content_v1op.py +21 -0
  38. mistralai/models/libraries_documents_get_v1op.py +21 -0
  39. mistralai/models/libraries_documents_list_v1op.py +78 -0
  40. mistralai/models/libraries_documents_reprocess_v1op.py +21 -0
  41. mistralai/models/libraries_documents_update_v1op.py +28 -0
  42. mistralai/models/libraries_documents_upload_v1op.py +56 -0
  43. mistralai/models/libraries_get_v1op.py +16 -0
  44. mistralai/models/libraries_share_create_v1op.py +22 -0
  45. mistralai/models/libraries_share_delete_v1op.py +23 -0
  46. mistralai/models/libraries_share_list_v1op.py +16 -0
  47. mistralai/models/libraries_update_v1op.py +23 -0
  48. mistralai/models/libraryin.py +50 -0
  49. mistralai/models/libraryinupdate.py +47 -0
  50. mistralai/models/libraryout.py +107 -0
  51. mistralai/models/listdocumentout.py +19 -0
  52. mistralai/models/listlibraryout.py +15 -0
  53. mistralai/models/listsharingout.py +15 -0
  54. mistralai/models/messageinputentry.py +14 -4
  55. mistralai/models/paginationinfo.py +25 -0
  56. mistralai/models/processingstatusout.py +16 -0
  57. mistralai/models/retrievefileout.py +8 -2
  58. mistralai/models/shareenum.py +8 -0
  59. mistralai/models/sharingdelete.py +26 -0
  60. mistralai/models/sharingin.py +30 -0
  61. mistralai/models/sharingout.py +59 -0
  62. mistralai/models/ssetypes.py +1 -0
  63. mistralai/models/thinkchunk.py +35 -0
  64. mistralai/models/timestampgranularity.py +7 -0
  65. mistralai/models/toolcall.py +43 -1
  66. mistralai/models/toolexecutiondeltaevent.py +34 -0
  67. mistralai/models/toolexecutionentry.py +3 -0
  68. mistralai/models/toolexecutionstartedevent.py +3 -0
  69. mistralai/models/toolreferencechunk.py +7 -4
  70. mistralai/models/transcriptionresponse.py +79 -0
  71. mistralai/models/transcriptionsegmentchunk.py +41 -0
  72. mistralai/models/transcriptionstreamdone.py +85 -0
  73. mistralai/models/transcriptionstreamevents.py +58 -0
  74. mistralai/models/transcriptionstreameventtypes.py +12 -0
  75. mistralai/models/transcriptionstreamlanguage.py +35 -0
  76. mistralai/models/transcriptionstreamsegmentdelta.py +41 -0
  77. mistralai/models/transcriptionstreamtextdelta.py +35 -0
  78. mistralai/models/uploadfileout.py +8 -2
  79. mistralai/models/usageinfo.py +65 -8
  80. mistralai/sdk.py +3 -0
  81. mistralai/transcriptions.py +480 -0
  82. {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/METADATA +37 -2
  83. {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/RECORD +85 -33
  84. {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/LICENSE +0 -0
  85. {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/WHEEL +0 -0
mistralai/mistral_jobs.py CHANGED
@@ -16,6 +16,7 @@ class MistralJobs(BaseSDK):
16
16
  page: Optional[int] = 0,
17
17
  page_size: Optional[int] = 100,
18
18
  model: OptionalNullable[str] = UNSET,
19
+ agent_id: OptionalNullable[str] = UNSET,
19
20
  metadata: OptionalNullable[Dict[str, Any]] = UNSET,
20
21
  created_after: OptionalNullable[datetime] = UNSET,
21
22
  created_by_me: Optional[bool] = False,
@@ -32,6 +33,7 @@ class MistralJobs(BaseSDK):
32
33
  :param page:
33
34
  :param page_size:
34
35
  :param model:
36
+ :param agent_id:
35
37
  :param metadata:
36
38
  :param created_after:
37
39
  :param created_by_me:
@@ -55,6 +57,7 @@ class MistralJobs(BaseSDK):
55
57
  page=page,
56
58
  page_size=page_size,
57
59
  model=model,
60
+ agent_id=agent_id,
58
61
  metadata=metadata,
59
62
  created_after=created_after,
60
63
  created_by_me=created_by_me,
@@ -128,6 +131,7 @@ class MistralJobs(BaseSDK):
128
131
  page: Optional[int] = 0,
129
132
  page_size: Optional[int] = 100,
130
133
  model: OptionalNullable[str] = UNSET,
134
+ agent_id: OptionalNullable[str] = UNSET,
131
135
  metadata: OptionalNullable[Dict[str, Any]] = UNSET,
132
136
  created_after: OptionalNullable[datetime] = UNSET,
133
137
  created_by_me: Optional[bool] = False,
@@ -144,6 +148,7 @@ class MistralJobs(BaseSDK):
144
148
  :param page:
145
149
  :param page_size:
146
150
  :param model:
151
+ :param agent_id:
147
152
  :param metadata:
148
153
  :param created_after:
149
154
  :param created_by_me:
@@ -167,6 +172,7 @@ class MistralJobs(BaseSDK):
167
172
  page=page,
168
173
  page_size=page_size,
169
174
  model=model,
175
+ agent_id=agent_id,
170
176
  metadata=metadata,
171
177
  created_after=created_after,
172
178
  created_by_me=created_by_me,
@@ -239,7 +245,8 @@ class MistralJobs(BaseSDK):
239
245
  *,
240
246
  input_files: List[str],
241
247
  endpoint: models.APIEndpoint,
242
- model: str,
248
+ model: OptionalNullable[str] = UNSET,
249
+ agent_id: OptionalNullable[str] = UNSET,
243
250
  metadata: OptionalNullable[Dict[str, str]] = UNSET,
244
251
  timeout_hours: Optional[int] = 24,
245
252
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -254,6 +261,7 @@ class MistralJobs(BaseSDK):
254
261
  :param input_files:
255
262
  :param endpoint:
256
263
  :param model:
264
+ :param agent_id:
257
265
  :param metadata:
258
266
  :param timeout_hours:
259
267
  :param retries: Override the default retry configuration for this method
@@ -275,6 +283,7 @@ class MistralJobs(BaseSDK):
275
283
  input_files=input_files,
276
284
  endpoint=endpoint,
277
285
  model=model,
286
+ agent_id=agent_id,
278
287
  metadata=metadata,
279
288
  timeout_hours=timeout_hours,
280
289
  )
@@ -348,7 +357,8 @@ class MistralJobs(BaseSDK):
348
357
  *,
349
358
  input_files: List[str],
350
359
  endpoint: models.APIEndpoint,
351
- model: str,
360
+ model: OptionalNullable[str] = UNSET,
361
+ agent_id: OptionalNullable[str] = UNSET,
352
362
  metadata: OptionalNullable[Dict[str, str]] = UNSET,
353
363
  timeout_hours: Optional[int] = 24,
354
364
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -363,6 +373,7 @@ class MistralJobs(BaseSDK):
363
373
  :param input_files:
364
374
  :param endpoint:
365
375
  :param model:
376
+ :param agent_id:
366
377
  :param metadata:
367
378
  :param timeout_hours:
368
379
  :param retries: Override the default retry configuration for this method
@@ -384,6 +395,7 @@ class MistralJobs(BaseSDK):
384
395
  input_files=input_files,
385
396
  endpoint=endpoint,
386
397
  model=model,
398
+ agent_id=agent_id,
387
399
  metadata=metadata,
388
400
  timeout_hours=timeout_hours,
389
401
  )