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.
- mistralai/_version.py +2 -2
- mistralai/accesses.py +672 -0
- mistralai/audio.py +18 -0
- mistralai/beta.py +4 -0
- mistralai/documents.py +2136 -0
- mistralai/files.py +2 -2
- mistralai/libraries.py +1041 -0
- mistralai/mistral_jobs.py +14 -2
- mistralai/models/__init__.py +360 -9
- mistralai/models/audiochunk.py +20 -0
- mistralai/models/audiotranscriptionrequest.py +97 -0
- mistralai/models/audiotranscriptionrequeststream.py +97 -0
- mistralai/models/basemodelcard.py +5 -2
- mistralai/models/batchjobin.py +7 -4
- mistralai/models/batchjobout.py +10 -3
- mistralai/models/classifierftmodelout.py +6 -0
- mistralai/models/completionargs.py +3 -2
- mistralai/models/completionftmodelout.py +6 -0
- mistralai/models/contentchunk.py +6 -0
- mistralai/models/conversationevents.py +6 -0
- mistralai/models/conversationhistory.py +4 -4
- mistralai/models/documentout.py +105 -0
- mistralai/models/documenttextcontent.py +13 -0
- mistralai/models/documentupdatein.py +44 -0
- mistralai/models/entitytype.py +9 -0
- mistralai/models/file.py +33 -0
- mistralai/models/files_api_routes_upload_fileop.py +2 -27
- mistralai/models/fileschema.py +8 -2
- mistralai/models/ftmodelcard.py +5 -3
- mistralai/models/inputentries.py +4 -4
- mistralai/models/jobs_api_routes_batch_get_batch_jobsop.py +8 -1
- mistralai/models/libraries_delete_v1op.py +16 -0
- mistralai/models/libraries_documents_delete_v1op.py +21 -0
- mistralai/models/libraries_documents_get_extracted_text_signed_url_v1op.py +21 -0
- mistralai/models/libraries_documents_get_signed_url_v1op.py +21 -0
- mistralai/models/libraries_documents_get_status_v1op.py +21 -0
- mistralai/models/libraries_documents_get_text_content_v1op.py +21 -0
- mistralai/models/libraries_documents_get_v1op.py +21 -0
- mistralai/models/libraries_documents_list_v1op.py +78 -0
- mistralai/models/libraries_documents_reprocess_v1op.py +21 -0
- mistralai/models/libraries_documents_update_v1op.py +28 -0
- mistralai/models/libraries_documents_upload_v1op.py +56 -0
- mistralai/models/libraries_get_v1op.py +16 -0
- mistralai/models/libraries_share_create_v1op.py +22 -0
- mistralai/models/libraries_share_delete_v1op.py +23 -0
- mistralai/models/libraries_share_list_v1op.py +16 -0
- mistralai/models/libraries_update_v1op.py +23 -0
- mistralai/models/libraryin.py +50 -0
- mistralai/models/libraryinupdate.py +47 -0
- mistralai/models/libraryout.py +107 -0
- mistralai/models/listdocumentout.py +19 -0
- mistralai/models/listlibraryout.py +15 -0
- mistralai/models/listsharingout.py +15 -0
- mistralai/models/messageinputentry.py +14 -4
- mistralai/models/paginationinfo.py +25 -0
- mistralai/models/processingstatusout.py +16 -0
- mistralai/models/retrievefileout.py +8 -2
- mistralai/models/shareenum.py +8 -0
- mistralai/models/sharingdelete.py +26 -0
- mistralai/models/sharingin.py +30 -0
- mistralai/models/sharingout.py +59 -0
- mistralai/models/ssetypes.py +1 -0
- mistralai/models/thinkchunk.py +35 -0
- mistralai/models/timestampgranularity.py +7 -0
- mistralai/models/toolcall.py +43 -1
- mistralai/models/toolexecutiondeltaevent.py +34 -0
- mistralai/models/toolexecutionentry.py +3 -0
- mistralai/models/toolexecutionstartedevent.py +3 -0
- mistralai/models/toolreferencechunk.py +7 -4
- mistralai/models/transcriptionresponse.py +79 -0
- mistralai/models/transcriptionsegmentchunk.py +41 -0
- mistralai/models/transcriptionstreamdone.py +85 -0
- mistralai/models/transcriptionstreamevents.py +58 -0
- mistralai/models/transcriptionstreameventtypes.py +12 -0
- mistralai/models/transcriptionstreamlanguage.py +35 -0
- mistralai/models/transcriptionstreamsegmentdelta.py +41 -0
- mistralai/models/transcriptionstreamtextdelta.py +35 -0
- mistralai/models/uploadfileout.py +8 -2
- mistralai/models/usageinfo.py +65 -8
- mistralai/sdk.py +3 -0
- mistralai/transcriptions.py +480 -0
- {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/METADATA +37 -2
- {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/RECORD +85 -33
- {mistralai-1.9.1.dist-info → mistralai-1.9.3.dist-info}/LICENSE +0 -0
- {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
|
)
|