mistralai 1.7.1__py3-none-any.whl → 1.8.0__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/beta.py +20 -0
- mistralai/conversations.py +2657 -0
- mistralai/extra/__init__.py +10 -2
- mistralai/extra/exceptions.py +14 -0
- mistralai/extra/mcp/__init__.py +0 -0
- mistralai/extra/mcp/auth.py +166 -0
- mistralai/extra/mcp/base.py +155 -0
- mistralai/extra/mcp/sse.py +165 -0
- mistralai/extra/mcp/stdio.py +22 -0
- mistralai/extra/run/__init__.py +0 -0
- mistralai/extra/run/context.py +295 -0
- mistralai/extra/run/result.py +212 -0
- mistralai/extra/run/tools.py +225 -0
- mistralai/extra/run/utils.py +36 -0
- mistralai/extra/tests/test_struct_chat.py +1 -1
- mistralai/mistral_agents.py +1158 -0
- mistralai/models/__init__.py +470 -1
- mistralai/models/agent.py +129 -0
- mistralai/models/agentconversation.py +71 -0
- mistralai/models/agentcreationrequest.py +109 -0
- mistralai/models/agenthandoffdoneevent.py +33 -0
- mistralai/models/agenthandoffentry.py +75 -0
- mistralai/models/agenthandoffstartedevent.py +33 -0
- mistralai/models/agents_api_v1_agents_getop.py +16 -0
- mistralai/models/agents_api_v1_agents_listop.py +24 -0
- mistralai/models/agents_api_v1_agents_update_versionop.py +21 -0
- mistralai/models/agents_api_v1_agents_updateop.py +23 -0
- mistralai/models/agents_api_v1_conversations_append_streamop.py +28 -0
- mistralai/models/agents_api_v1_conversations_appendop.py +28 -0
- mistralai/models/agents_api_v1_conversations_getop.py +33 -0
- mistralai/models/agents_api_v1_conversations_historyop.py +16 -0
- mistralai/models/agents_api_v1_conversations_listop.py +37 -0
- mistralai/models/agents_api_v1_conversations_messagesop.py +16 -0
- mistralai/models/agents_api_v1_conversations_restart_streamop.py +26 -0
- mistralai/models/agents_api_v1_conversations_restartop.py +26 -0
- mistralai/models/agentupdaterequest.py +111 -0
- mistralai/models/builtinconnectors.py +13 -0
- mistralai/models/codeinterpretertool.py +17 -0
- mistralai/models/completionargs.py +100 -0
- mistralai/models/completionargsstop.py +13 -0
- mistralai/models/completionjobout.py +3 -3
- mistralai/models/conversationappendrequest.py +35 -0
- mistralai/models/conversationappendstreamrequest.py +37 -0
- mistralai/models/conversationevents.py +72 -0
- mistralai/models/conversationhistory.py +58 -0
- mistralai/models/conversationinputs.py +14 -0
- mistralai/models/conversationmessages.py +28 -0
- mistralai/models/conversationrequest.py +133 -0
- mistralai/models/conversationresponse.py +51 -0
- mistralai/models/conversationrestartrequest.py +42 -0
- mistralai/models/conversationrestartstreamrequest.py +44 -0
- mistralai/models/conversationstreamrequest.py +135 -0
- mistralai/models/conversationusageinfo.py +63 -0
- mistralai/models/documentlibrarytool.py +22 -0
- mistralai/models/functioncallentry.py +76 -0
- mistralai/models/functioncallentryarguments.py +15 -0
- mistralai/models/functioncallevent.py +36 -0
- mistralai/models/functionresultentry.py +69 -0
- mistralai/models/functiontool.py +21 -0
- mistralai/models/imagegenerationtool.py +17 -0
- mistralai/models/inputentries.py +18 -0
- mistralai/models/messageentries.py +18 -0
- mistralai/models/messageinputcontentchunks.py +26 -0
- mistralai/models/messageinputentry.py +89 -0
- mistralai/models/messageoutputcontentchunks.py +30 -0
- mistralai/models/messageoutputentry.py +100 -0
- mistralai/models/messageoutputevent.py +93 -0
- mistralai/models/modelconversation.py +127 -0
- mistralai/models/outputcontentchunks.py +30 -0
- mistralai/models/responsedoneevent.py +25 -0
- mistralai/models/responseerrorevent.py +27 -0
- mistralai/models/responsestartedevent.py +24 -0
- mistralai/models/ssetypes.py +18 -0
- mistralai/models/toolexecutiondoneevent.py +34 -0
- mistralai/models/toolexecutionentry.py +70 -0
- mistralai/models/toolexecutionstartedevent.py +31 -0
- mistralai/models/toolfilechunk.py +61 -0
- mistralai/models/toolreferencechunk.py +61 -0
- mistralai/models/websearchpremiumtool.py +17 -0
- mistralai/models/websearchtool.py +17 -0
- mistralai/sdk.py +3 -0
- {mistralai-1.7.1.dist-info → mistralai-1.8.0.dist-info}/METADATA +42 -7
- {mistralai-1.7.1.dist-info → mistralai-1.8.0.dist-info}/RECORD +86 -10
- {mistralai-1.7.1.dist-info → mistralai-1.8.0.dist-info}/LICENSE +0 -0
- {mistralai-1.7.1.dist-info → mistralai-1.8.0.dist-info}/WHEEL +0 -0
mistralai/models/__init__.py
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
|
+
from .agent import Agent, AgentObject, AgentTools, AgentToolsTypedDict, AgentTypedDict
|
|
4
|
+
from .agentconversation import (
|
|
5
|
+
AgentConversation,
|
|
6
|
+
AgentConversationObject,
|
|
7
|
+
AgentConversationTypedDict,
|
|
8
|
+
)
|
|
9
|
+
from .agentcreationrequest import (
|
|
10
|
+
AgentCreationRequest,
|
|
11
|
+
AgentCreationRequestTools,
|
|
12
|
+
AgentCreationRequestToolsTypedDict,
|
|
13
|
+
AgentCreationRequestTypedDict,
|
|
14
|
+
)
|
|
15
|
+
from .agenthandoffdoneevent import (
|
|
16
|
+
AgentHandoffDoneEvent,
|
|
17
|
+
AgentHandoffDoneEventType,
|
|
18
|
+
AgentHandoffDoneEventTypedDict,
|
|
19
|
+
)
|
|
20
|
+
from .agenthandoffentry import (
|
|
21
|
+
AgentHandoffEntry,
|
|
22
|
+
AgentHandoffEntryObject,
|
|
23
|
+
AgentHandoffEntryType,
|
|
24
|
+
AgentHandoffEntryTypedDict,
|
|
25
|
+
)
|
|
26
|
+
from .agenthandoffstartedevent import (
|
|
27
|
+
AgentHandoffStartedEvent,
|
|
28
|
+
AgentHandoffStartedEventType,
|
|
29
|
+
AgentHandoffStartedEventTypedDict,
|
|
30
|
+
)
|
|
31
|
+
from .agents_api_v1_agents_getop import (
|
|
32
|
+
AgentsAPIV1AgentsGetRequest,
|
|
33
|
+
AgentsAPIV1AgentsGetRequestTypedDict,
|
|
34
|
+
)
|
|
35
|
+
from .agents_api_v1_agents_listop import (
|
|
36
|
+
AgentsAPIV1AgentsListRequest,
|
|
37
|
+
AgentsAPIV1AgentsListRequestTypedDict,
|
|
38
|
+
)
|
|
39
|
+
from .agents_api_v1_agents_update_versionop import (
|
|
40
|
+
AgentsAPIV1AgentsUpdateVersionRequest,
|
|
41
|
+
AgentsAPIV1AgentsUpdateVersionRequestTypedDict,
|
|
42
|
+
)
|
|
43
|
+
from .agents_api_v1_agents_updateop import (
|
|
44
|
+
AgentsAPIV1AgentsUpdateRequest,
|
|
45
|
+
AgentsAPIV1AgentsUpdateRequestTypedDict,
|
|
46
|
+
)
|
|
47
|
+
from .agents_api_v1_conversations_append_streamop import (
|
|
48
|
+
AgentsAPIV1ConversationsAppendStreamRequest,
|
|
49
|
+
AgentsAPIV1ConversationsAppendStreamRequestTypedDict,
|
|
50
|
+
)
|
|
51
|
+
from .agents_api_v1_conversations_appendop import (
|
|
52
|
+
AgentsAPIV1ConversationsAppendRequest,
|
|
53
|
+
AgentsAPIV1ConversationsAppendRequestTypedDict,
|
|
54
|
+
)
|
|
55
|
+
from .agents_api_v1_conversations_getop import (
|
|
56
|
+
AgentsAPIV1ConversationsGetRequest,
|
|
57
|
+
AgentsAPIV1ConversationsGetRequestTypedDict,
|
|
58
|
+
AgentsAPIV1ConversationsGetResponseV1ConversationsGet,
|
|
59
|
+
AgentsAPIV1ConversationsGetResponseV1ConversationsGetTypedDict,
|
|
60
|
+
)
|
|
61
|
+
from .agents_api_v1_conversations_historyop import (
|
|
62
|
+
AgentsAPIV1ConversationsHistoryRequest,
|
|
63
|
+
AgentsAPIV1ConversationsHistoryRequestTypedDict,
|
|
64
|
+
)
|
|
65
|
+
from .agents_api_v1_conversations_listop import (
|
|
66
|
+
AgentsAPIV1ConversationsListRequest,
|
|
67
|
+
AgentsAPIV1ConversationsListRequestTypedDict,
|
|
68
|
+
ResponseBody,
|
|
69
|
+
ResponseBodyTypedDict,
|
|
70
|
+
)
|
|
71
|
+
from .agents_api_v1_conversations_messagesop import (
|
|
72
|
+
AgentsAPIV1ConversationsMessagesRequest,
|
|
73
|
+
AgentsAPIV1ConversationsMessagesRequestTypedDict,
|
|
74
|
+
)
|
|
75
|
+
from .agents_api_v1_conversations_restart_streamop import (
|
|
76
|
+
AgentsAPIV1ConversationsRestartStreamRequest,
|
|
77
|
+
AgentsAPIV1ConversationsRestartStreamRequestTypedDict,
|
|
78
|
+
)
|
|
79
|
+
from .agents_api_v1_conversations_restartop import (
|
|
80
|
+
AgentsAPIV1ConversationsRestartRequest,
|
|
81
|
+
AgentsAPIV1ConversationsRestartRequestTypedDict,
|
|
82
|
+
)
|
|
3
83
|
from .agentscompletionrequest import (
|
|
4
84
|
AgentsCompletionRequest,
|
|
5
85
|
AgentsCompletionRequestMessages,
|
|
@@ -20,6 +100,12 @@ from .agentscompletionstreamrequest import (
|
|
|
20
100
|
AgentsCompletionStreamRequestToolChoiceTypedDict,
|
|
21
101
|
AgentsCompletionStreamRequestTypedDict,
|
|
22
102
|
)
|
|
103
|
+
from .agentupdaterequest import (
|
|
104
|
+
AgentUpdateRequest,
|
|
105
|
+
AgentUpdateRequestTools,
|
|
106
|
+
AgentUpdateRequestToolsTypedDict,
|
|
107
|
+
AgentUpdateRequestTypedDict,
|
|
108
|
+
)
|
|
23
109
|
from .apiendpoint import APIEndpoint
|
|
24
110
|
from .archiveftmodelout import (
|
|
25
111
|
ArchiveFTModelOut,
|
|
@@ -39,6 +125,7 @@ from .batchjobin import BatchJobIn, BatchJobInTypedDict
|
|
|
39
125
|
from .batchjobout import BatchJobOut, BatchJobOutObject, BatchJobOutTypedDict
|
|
40
126
|
from .batchjobsout import BatchJobsOut, BatchJobsOutObject, BatchJobsOutTypedDict
|
|
41
127
|
from .batchjobstatus import BatchJobStatus
|
|
128
|
+
from .builtinconnectors import BuiltInConnectors
|
|
42
129
|
from .chatclassificationrequest import (
|
|
43
130
|
ChatClassificationRequest,
|
|
44
131
|
ChatClassificationRequestTypedDict,
|
|
@@ -131,6 +218,13 @@ from .classifiertrainingparametersin import (
|
|
|
131
218
|
ClassifierTrainingParametersIn,
|
|
132
219
|
ClassifierTrainingParametersInTypedDict,
|
|
133
220
|
)
|
|
221
|
+
from .codeinterpretertool import (
|
|
222
|
+
CodeInterpreterTool,
|
|
223
|
+
CodeInterpreterToolType,
|
|
224
|
+
CodeInterpreterToolTypedDict,
|
|
225
|
+
)
|
|
226
|
+
from .completionargs import CompletionArgs, CompletionArgsTypedDict
|
|
227
|
+
from .completionargsstop import CompletionArgsStop, CompletionArgsStopTypedDict
|
|
134
228
|
from .completionchunk import CompletionChunk, CompletionChunkTypedDict
|
|
135
229
|
from .completiondetailedjobout import (
|
|
136
230
|
CompletionDetailedJobOut,
|
|
@@ -152,11 +246,11 @@ from .completionftmodelout import (
|
|
|
152
246
|
)
|
|
153
247
|
from .completionjobout import (
|
|
154
248
|
CompletionJobOut,
|
|
249
|
+
CompletionJobOutObject,
|
|
155
250
|
CompletionJobOutTypedDict,
|
|
156
251
|
Integrations,
|
|
157
252
|
IntegrationsTypedDict,
|
|
158
253
|
JobType,
|
|
159
|
-
Object,
|
|
160
254
|
Repositories,
|
|
161
255
|
RepositoriesTypedDict,
|
|
162
256
|
Status,
|
|
@@ -175,6 +269,67 @@ from .completiontrainingparametersin import (
|
|
|
175
269
|
CompletionTrainingParametersInTypedDict,
|
|
176
270
|
)
|
|
177
271
|
from .contentchunk import ContentChunk, ContentChunkTypedDict
|
|
272
|
+
from .conversationappendrequest import (
|
|
273
|
+
ConversationAppendRequest,
|
|
274
|
+
ConversationAppendRequestHandoffExecution,
|
|
275
|
+
ConversationAppendRequestTypedDict,
|
|
276
|
+
)
|
|
277
|
+
from .conversationappendstreamrequest import (
|
|
278
|
+
ConversationAppendStreamRequest,
|
|
279
|
+
ConversationAppendStreamRequestHandoffExecution,
|
|
280
|
+
ConversationAppendStreamRequestTypedDict,
|
|
281
|
+
)
|
|
282
|
+
from .conversationevents import (
|
|
283
|
+
ConversationEvents,
|
|
284
|
+
ConversationEventsData,
|
|
285
|
+
ConversationEventsDataTypedDict,
|
|
286
|
+
ConversationEventsTypedDict,
|
|
287
|
+
)
|
|
288
|
+
from .conversationhistory import (
|
|
289
|
+
ConversationHistory,
|
|
290
|
+
ConversationHistoryObject,
|
|
291
|
+
ConversationHistoryTypedDict,
|
|
292
|
+
Entries,
|
|
293
|
+
EntriesTypedDict,
|
|
294
|
+
)
|
|
295
|
+
from .conversationinputs import ConversationInputs, ConversationInputsTypedDict
|
|
296
|
+
from .conversationmessages import (
|
|
297
|
+
ConversationMessages,
|
|
298
|
+
ConversationMessagesObject,
|
|
299
|
+
ConversationMessagesTypedDict,
|
|
300
|
+
)
|
|
301
|
+
from .conversationrequest import (
|
|
302
|
+
ConversationRequest,
|
|
303
|
+
ConversationRequestTypedDict,
|
|
304
|
+
HandoffExecution,
|
|
305
|
+
Tools,
|
|
306
|
+
ToolsTypedDict,
|
|
307
|
+
)
|
|
308
|
+
from .conversationresponse import (
|
|
309
|
+
ConversationResponse,
|
|
310
|
+
ConversationResponseObject,
|
|
311
|
+
ConversationResponseTypedDict,
|
|
312
|
+
Outputs,
|
|
313
|
+
OutputsTypedDict,
|
|
314
|
+
)
|
|
315
|
+
from .conversationrestartrequest import (
|
|
316
|
+
ConversationRestartRequest,
|
|
317
|
+
ConversationRestartRequestHandoffExecution,
|
|
318
|
+
ConversationRestartRequestTypedDict,
|
|
319
|
+
)
|
|
320
|
+
from .conversationrestartstreamrequest import (
|
|
321
|
+
ConversationRestartStreamRequest,
|
|
322
|
+
ConversationRestartStreamRequestHandoffExecution,
|
|
323
|
+
ConversationRestartStreamRequestTypedDict,
|
|
324
|
+
)
|
|
325
|
+
from .conversationstreamrequest import (
|
|
326
|
+
ConversationStreamRequest,
|
|
327
|
+
ConversationStreamRequestHandoffExecution,
|
|
328
|
+
ConversationStreamRequestTools,
|
|
329
|
+
ConversationStreamRequestToolsTypedDict,
|
|
330
|
+
ConversationStreamRequestTypedDict,
|
|
331
|
+
)
|
|
332
|
+
from .conversationusageinfo import ConversationUsageInfo, ConversationUsageInfoTypedDict
|
|
178
333
|
from .delete_model_v1_models_model_id_deleteop import (
|
|
179
334
|
DeleteModelV1ModelsModelIDDeleteRequest,
|
|
180
335
|
DeleteModelV1ModelsModelIDDeleteRequestTypedDict,
|
|
@@ -182,6 +337,11 @@ from .delete_model_v1_models_model_id_deleteop import (
|
|
|
182
337
|
from .deletefileout import DeleteFileOut, DeleteFileOutTypedDict
|
|
183
338
|
from .deletemodelout import DeleteModelOut, DeleteModelOutTypedDict
|
|
184
339
|
from .deltamessage import Content, ContentTypedDict, DeltaMessage, DeltaMessageTypedDict
|
|
340
|
+
from .documentlibrarytool import (
|
|
341
|
+
DocumentLibraryTool,
|
|
342
|
+
DocumentLibraryToolType,
|
|
343
|
+
DocumentLibraryToolTypedDict,
|
|
344
|
+
)
|
|
185
345
|
from .documenturlchunk import (
|
|
186
346
|
DocumentURLChunk,
|
|
187
347
|
DocumentURLChunkType,
|
|
@@ -252,7 +412,29 @@ from .functioncall import (
|
|
|
252
412
|
FunctionCall,
|
|
253
413
|
FunctionCallTypedDict,
|
|
254
414
|
)
|
|
415
|
+
from .functioncallentry import (
|
|
416
|
+
FunctionCallEntry,
|
|
417
|
+
FunctionCallEntryObject,
|
|
418
|
+
FunctionCallEntryType,
|
|
419
|
+
FunctionCallEntryTypedDict,
|
|
420
|
+
)
|
|
421
|
+
from .functioncallentryarguments import (
|
|
422
|
+
FunctionCallEntryArguments,
|
|
423
|
+
FunctionCallEntryArgumentsTypedDict,
|
|
424
|
+
)
|
|
425
|
+
from .functioncallevent import (
|
|
426
|
+
FunctionCallEvent,
|
|
427
|
+
FunctionCallEventType,
|
|
428
|
+
FunctionCallEventTypedDict,
|
|
429
|
+
)
|
|
255
430
|
from .functionname import FunctionName, FunctionNameTypedDict
|
|
431
|
+
from .functionresultentry import (
|
|
432
|
+
FunctionResultEntry,
|
|
433
|
+
FunctionResultEntryObject,
|
|
434
|
+
FunctionResultEntryType,
|
|
435
|
+
FunctionResultEntryTypedDict,
|
|
436
|
+
)
|
|
437
|
+
from .functiontool import FunctionTool, FunctionToolType, FunctionToolTypedDict
|
|
256
438
|
from .githubrepositoryin import (
|
|
257
439
|
GithubRepositoryIn,
|
|
258
440
|
GithubRepositoryInType,
|
|
@@ -264,6 +446,11 @@ from .githubrepositoryout import (
|
|
|
264
446
|
GithubRepositoryOutTypedDict,
|
|
265
447
|
)
|
|
266
448
|
from .httpvalidationerror import HTTPValidationError, HTTPValidationErrorData
|
|
449
|
+
from .imagegenerationtool import (
|
|
450
|
+
ImageGenerationTool,
|
|
451
|
+
ImageGenerationToolType,
|
|
452
|
+
ImageGenerationToolTypedDict,
|
|
453
|
+
)
|
|
267
454
|
from .imageurl import ImageURL, ImageURLTypedDict
|
|
268
455
|
from .imageurlchunk import (
|
|
269
456
|
ImageURLChunk,
|
|
@@ -272,6 +459,7 @@ from .imageurlchunk import (
|
|
|
272
459
|
ImageURLChunkType,
|
|
273
460
|
ImageURLChunkTypedDict,
|
|
274
461
|
)
|
|
462
|
+
from .inputentries import InputEntries, InputEntriesTypedDict
|
|
275
463
|
from .inputs import (
|
|
276
464
|
Inputs,
|
|
277
465
|
InputsTypedDict,
|
|
@@ -366,8 +554,50 @@ from .legacyjobmetadataout import (
|
|
|
366
554
|
LegacyJobMetadataOutTypedDict,
|
|
367
555
|
)
|
|
368
556
|
from .listfilesout import ListFilesOut, ListFilesOutTypedDict
|
|
557
|
+
from .messageentries import MessageEntries, MessageEntriesTypedDict
|
|
558
|
+
from .messageinputcontentchunks import (
|
|
559
|
+
MessageInputContentChunks,
|
|
560
|
+
MessageInputContentChunksTypedDict,
|
|
561
|
+
)
|
|
562
|
+
from .messageinputentry import (
|
|
563
|
+
MessageInputEntry,
|
|
564
|
+
MessageInputEntryContent,
|
|
565
|
+
MessageInputEntryContentTypedDict,
|
|
566
|
+
MessageInputEntryRole,
|
|
567
|
+
MessageInputEntryType,
|
|
568
|
+
MessageInputEntryTypedDict,
|
|
569
|
+
Object,
|
|
570
|
+
)
|
|
571
|
+
from .messageoutputcontentchunks import (
|
|
572
|
+
MessageOutputContentChunks,
|
|
573
|
+
MessageOutputContentChunksTypedDict,
|
|
574
|
+
)
|
|
575
|
+
from .messageoutputentry import (
|
|
576
|
+
MessageOutputEntry,
|
|
577
|
+
MessageOutputEntryContent,
|
|
578
|
+
MessageOutputEntryContentTypedDict,
|
|
579
|
+
MessageOutputEntryObject,
|
|
580
|
+
MessageOutputEntryRole,
|
|
581
|
+
MessageOutputEntryType,
|
|
582
|
+
MessageOutputEntryTypedDict,
|
|
583
|
+
)
|
|
584
|
+
from .messageoutputevent import (
|
|
585
|
+
MessageOutputEvent,
|
|
586
|
+
MessageOutputEventContent,
|
|
587
|
+
MessageOutputEventContentTypedDict,
|
|
588
|
+
MessageOutputEventRole,
|
|
589
|
+
MessageOutputEventType,
|
|
590
|
+
MessageOutputEventTypedDict,
|
|
591
|
+
)
|
|
369
592
|
from .metricout import MetricOut, MetricOutTypedDict
|
|
370
593
|
from .modelcapabilities import ModelCapabilities, ModelCapabilitiesTypedDict
|
|
594
|
+
from .modelconversation import (
|
|
595
|
+
ModelConversation,
|
|
596
|
+
ModelConversationObject,
|
|
597
|
+
ModelConversationTools,
|
|
598
|
+
ModelConversationToolsTypedDict,
|
|
599
|
+
ModelConversationTypedDict,
|
|
600
|
+
)
|
|
371
601
|
from .modellist import Data, DataTypedDict, ModelList, ModelListTypedDict
|
|
372
602
|
from .moderationobject import ModerationObject, ModerationObjectTypedDict
|
|
373
603
|
from .moderationresponse import ModerationResponse, ModerationResponseTypedDict
|
|
@@ -377,10 +607,26 @@ from .ocrpageobject import OCRPageObject, OCRPageObjectTypedDict
|
|
|
377
607
|
from .ocrrequest import Document, DocumentTypedDict, OCRRequest, OCRRequestTypedDict
|
|
378
608
|
from .ocrresponse import OCRResponse, OCRResponseTypedDict
|
|
379
609
|
from .ocrusageinfo import OCRUsageInfo, OCRUsageInfoTypedDict
|
|
610
|
+
from .outputcontentchunks import OutputContentChunks, OutputContentChunksTypedDict
|
|
380
611
|
from .prediction import Prediction, PredictionTypedDict
|
|
381
612
|
from .referencechunk import ReferenceChunk, ReferenceChunkType, ReferenceChunkTypedDict
|
|
613
|
+
from .responsedoneevent import (
|
|
614
|
+
ResponseDoneEvent,
|
|
615
|
+
ResponseDoneEventType,
|
|
616
|
+
ResponseDoneEventTypedDict,
|
|
617
|
+
)
|
|
618
|
+
from .responseerrorevent import (
|
|
619
|
+
ResponseErrorEvent,
|
|
620
|
+
ResponseErrorEventType,
|
|
621
|
+
ResponseErrorEventTypedDict,
|
|
622
|
+
)
|
|
382
623
|
from .responseformat import ResponseFormat, ResponseFormatTypedDict
|
|
383
624
|
from .responseformats import ResponseFormats
|
|
625
|
+
from .responsestartedevent import (
|
|
626
|
+
ResponseStartedEvent,
|
|
627
|
+
ResponseStartedEventType,
|
|
628
|
+
ResponseStartedEventTypedDict,
|
|
629
|
+
)
|
|
384
630
|
from .retrieve_model_v1_models_model_id_getop import (
|
|
385
631
|
RetrieveModelV1ModelsModelIDGetRequest,
|
|
386
632
|
RetrieveModelV1ModelsModelIDGetRequestTypedDict,
|
|
@@ -392,6 +638,7 @@ from .sampletype import SampleType
|
|
|
392
638
|
from .sdkerror import SDKError
|
|
393
639
|
from .security import Security, SecurityTypedDict
|
|
394
640
|
from .source import Source
|
|
641
|
+
from .ssetypes import SSETypes
|
|
395
642
|
from .systemmessage import (
|
|
396
643
|
Role,
|
|
397
644
|
SystemMessage,
|
|
@@ -404,6 +651,23 @@ from .tool import Tool, ToolTypedDict
|
|
|
404
651
|
from .toolcall import ToolCall, ToolCallTypedDict
|
|
405
652
|
from .toolchoice import ToolChoice, ToolChoiceTypedDict
|
|
406
653
|
from .toolchoiceenum import ToolChoiceEnum
|
|
654
|
+
from .toolexecutiondoneevent import (
|
|
655
|
+
ToolExecutionDoneEvent,
|
|
656
|
+
ToolExecutionDoneEventType,
|
|
657
|
+
ToolExecutionDoneEventTypedDict,
|
|
658
|
+
)
|
|
659
|
+
from .toolexecutionentry import (
|
|
660
|
+
ToolExecutionEntry,
|
|
661
|
+
ToolExecutionEntryObject,
|
|
662
|
+
ToolExecutionEntryType,
|
|
663
|
+
ToolExecutionEntryTypedDict,
|
|
664
|
+
)
|
|
665
|
+
from .toolexecutionstartedevent import (
|
|
666
|
+
ToolExecutionStartedEvent,
|
|
667
|
+
ToolExecutionStartedEventType,
|
|
668
|
+
ToolExecutionStartedEventTypedDict,
|
|
669
|
+
)
|
|
670
|
+
from .toolfilechunk import ToolFileChunk, ToolFileChunkType, ToolFileChunkTypedDict
|
|
407
671
|
from .toolmessage import (
|
|
408
672
|
ToolMessage,
|
|
409
673
|
ToolMessageContent,
|
|
@@ -411,6 +675,11 @@ from .toolmessage import (
|
|
|
411
675
|
ToolMessageRole,
|
|
412
676
|
ToolMessageTypedDict,
|
|
413
677
|
)
|
|
678
|
+
from .toolreferencechunk import (
|
|
679
|
+
ToolReferenceChunk,
|
|
680
|
+
ToolReferenceChunkType,
|
|
681
|
+
ToolReferenceChunkTypedDict,
|
|
682
|
+
)
|
|
414
683
|
from .tooltypes import ToolTypes
|
|
415
684
|
from .trainingfile import TrainingFile, TrainingFileTypedDict
|
|
416
685
|
from .unarchiveftmodelout import (
|
|
@@ -444,10 +713,68 @@ from .wandbintegrationout import (
|
|
|
444
713
|
WandbIntegrationOutType,
|
|
445
714
|
WandbIntegrationOutTypedDict,
|
|
446
715
|
)
|
|
716
|
+
from .websearchpremiumtool import (
|
|
717
|
+
WebSearchPremiumTool,
|
|
718
|
+
WebSearchPremiumToolType,
|
|
719
|
+
WebSearchPremiumToolTypedDict,
|
|
720
|
+
)
|
|
721
|
+
from .websearchtool import WebSearchTool, WebSearchToolType, WebSearchToolTypedDict
|
|
447
722
|
|
|
448
723
|
|
|
449
724
|
__all__ = [
|
|
450
725
|
"APIEndpoint",
|
|
726
|
+
"Agent",
|
|
727
|
+
"AgentConversation",
|
|
728
|
+
"AgentConversationObject",
|
|
729
|
+
"AgentConversationTypedDict",
|
|
730
|
+
"AgentCreationRequest",
|
|
731
|
+
"AgentCreationRequestTools",
|
|
732
|
+
"AgentCreationRequestToolsTypedDict",
|
|
733
|
+
"AgentCreationRequestTypedDict",
|
|
734
|
+
"AgentHandoffDoneEvent",
|
|
735
|
+
"AgentHandoffDoneEventType",
|
|
736
|
+
"AgentHandoffDoneEventTypedDict",
|
|
737
|
+
"AgentHandoffEntry",
|
|
738
|
+
"AgentHandoffEntryObject",
|
|
739
|
+
"AgentHandoffEntryType",
|
|
740
|
+
"AgentHandoffEntryTypedDict",
|
|
741
|
+
"AgentHandoffStartedEvent",
|
|
742
|
+
"AgentHandoffStartedEventType",
|
|
743
|
+
"AgentHandoffStartedEventTypedDict",
|
|
744
|
+
"AgentObject",
|
|
745
|
+
"AgentTools",
|
|
746
|
+
"AgentToolsTypedDict",
|
|
747
|
+
"AgentTypedDict",
|
|
748
|
+
"AgentUpdateRequest",
|
|
749
|
+
"AgentUpdateRequestTools",
|
|
750
|
+
"AgentUpdateRequestToolsTypedDict",
|
|
751
|
+
"AgentUpdateRequestTypedDict",
|
|
752
|
+
"AgentsAPIV1AgentsGetRequest",
|
|
753
|
+
"AgentsAPIV1AgentsGetRequestTypedDict",
|
|
754
|
+
"AgentsAPIV1AgentsListRequest",
|
|
755
|
+
"AgentsAPIV1AgentsListRequestTypedDict",
|
|
756
|
+
"AgentsAPIV1AgentsUpdateRequest",
|
|
757
|
+
"AgentsAPIV1AgentsUpdateRequestTypedDict",
|
|
758
|
+
"AgentsAPIV1AgentsUpdateVersionRequest",
|
|
759
|
+
"AgentsAPIV1AgentsUpdateVersionRequestTypedDict",
|
|
760
|
+
"AgentsAPIV1ConversationsAppendRequest",
|
|
761
|
+
"AgentsAPIV1ConversationsAppendRequestTypedDict",
|
|
762
|
+
"AgentsAPIV1ConversationsAppendStreamRequest",
|
|
763
|
+
"AgentsAPIV1ConversationsAppendStreamRequestTypedDict",
|
|
764
|
+
"AgentsAPIV1ConversationsGetRequest",
|
|
765
|
+
"AgentsAPIV1ConversationsGetRequestTypedDict",
|
|
766
|
+
"AgentsAPIV1ConversationsGetResponseV1ConversationsGet",
|
|
767
|
+
"AgentsAPIV1ConversationsGetResponseV1ConversationsGetTypedDict",
|
|
768
|
+
"AgentsAPIV1ConversationsHistoryRequest",
|
|
769
|
+
"AgentsAPIV1ConversationsHistoryRequestTypedDict",
|
|
770
|
+
"AgentsAPIV1ConversationsListRequest",
|
|
771
|
+
"AgentsAPIV1ConversationsListRequestTypedDict",
|
|
772
|
+
"AgentsAPIV1ConversationsMessagesRequest",
|
|
773
|
+
"AgentsAPIV1ConversationsMessagesRequestTypedDict",
|
|
774
|
+
"AgentsAPIV1ConversationsRestartRequest",
|
|
775
|
+
"AgentsAPIV1ConversationsRestartRequestTypedDict",
|
|
776
|
+
"AgentsAPIV1ConversationsRestartStreamRequest",
|
|
777
|
+
"AgentsAPIV1ConversationsRestartStreamRequestTypedDict",
|
|
451
778
|
"AgentsCompletionRequest",
|
|
452
779
|
"AgentsCompletionRequestMessages",
|
|
453
780
|
"AgentsCompletionRequestMessagesTypedDict",
|
|
@@ -487,6 +814,7 @@ __all__ = [
|
|
|
487
814
|
"BatchJobsOut",
|
|
488
815
|
"BatchJobsOutObject",
|
|
489
816
|
"BatchJobsOutTypedDict",
|
|
817
|
+
"BuiltInConnectors",
|
|
490
818
|
"ChatClassificationRequest",
|
|
491
819
|
"ChatClassificationRequestTypedDict",
|
|
492
820
|
"ChatCompletionChoice",
|
|
@@ -545,6 +873,13 @@ __all__ = [
|
|
|
545
873
|
"ClassifierTrainingParametersIn",
|
|
546
874
|
"ClassifierTrainingParametersInTypedDict",
|
|
547
875
|
"ClassifierTrainingParametersTypedDict",
|
|
876
|
+
"CodeInterpreterTool",
|
|
877
|
+
"CodeInterpreterToolType",
|
|
878
|
+
"CodeInterpreterToolTypedDict",
|
|
879
|
+
"CompletionArgs",
|
|
880
|
+
"CompletionArgsStop",
|
|
881
|
+
"CompletionArgsStopTypedDict",
|
|
882
|
+
"CompletionArgsTypedDict",
|
|
548
883
|
"CompletionChunk",
|
|
549
884
|
"CompletionChunkTypedDict",
|
|
550
885
|
"CompletionDetailedJobOut",
|
|
@@ -562,6 +897,7 @@ __all__ = [
|
|
|
562
897
|
"CompletionFTModelOutObject",
|
|
563
898
|
"CompletionFTModelOutTypedDict",
|
|
564
899
|
"CompletionJobOut",
|
|
900
|
+
"CompletionJobOutObject",
|
|
565
901
|
"CompletionJobOutTypedDict",
|
|
566
902
|
"CompletionResponseStreamChoice",
|
|
567
903
|
"CompletionResponseStreamChoiceFinishReason",
|
|
@@ -574,6 +910,42 @@ __all__ = [
|
|
|
574
910
|
"ContentChunk",
|
|
575
911
|
"ContentChunkTypedDict",
|
|
576
912
|
"ContentTypedDict",
|
|
913
|
+
"ConversationAppendRequest",
|
|
914
|
+
"ConversationAppendRequestHandoffExecution",
|
|
915
|
+
"ConversationAppendRequestTypedDict",
|
|
916
|
+
"ConversationAppendStreamRequest",
|
|
917
|
+
"ConversationAppendStreamRequestHandoffExecution",
|
|
918
|
+
"ConversationAppendStreamRequestTypedDict",
|
|
919
|
+
"ConversationEvents",
|
|
920
|
+
"ConversationEventsData",
|
|
921
|
+
"ConversationEventsDataTypedDict",
|
|
922
|
+
"ConversationEventsTypedDict",
|
|
923
|
+
"ConversationHistory",
|
|
924
|
+
"ConversationHistoryObject",
|
|
925
|
+
"ConversationHistoryTypedDict",
|
|
926
|
+
"ConversationInputs",
|
|
927
|
+
"ConversationInputsTypedDict",
|
|
928
|
+
"ConversationMessages",
|
|
929
|
+
"ConversationMessagesObject",
|
|
930
|
+
"ConversationMessagesTypedDict",
|
|
931
|
+
"ConversationRequest",
|
|
932
|
+
"ConversationRequestTypedDict",
|
|
933
|
+
"ConversationResponse",
|
|
934
|
+
"ConversationResponseObject",
|
|
935
|
+
"ConversationResponseTypedDict",
|
|
936
|
+
"ConversationRestartRequest",
|
|
937
|
+
"ConversationRestartRequestHandoffExecution",
|
|
938
|
+
"ConversationRestartRequestTypedDict",
|
|
939
|
+
"ConversationRestartStreamRequest",
|
|
940
|
+
"ConversationRestartStreamRequestHandoffExecution",
|
|
941
|
+
"ConversationRestartStreamRequestTypedDict",
|
|
942
|
+
"ConversationStreamRequest",
|
|
943
|
+
"ConversationStreamRequestHandoffExecution",
|
|
944
|
+
"ConversationStreamRequestTools",
|
|
945
|
+
"ConversationStreamRequestToolsTypedDict",
|
|
946
|
+
"ConversationStreamRequestTypedDict",
|
|
947
|
+
"ConversationUsageInfo",
|
|
948
|
+
"ConversationUsageInfoTypedDict",
|
|
577
949
|
"Data",
|
|
578
950
|
"DataTypedDict",
|
|
579
951
|
"DeleteFileOut",
|
|
@@ -585,6 +957,9 @@ __all__ = [
|
|
|
585
957
|
"DeltaMessage",
|
|
586
958
|
"DeltaMessageTypedDict",
|
|
587
959
|
"Document",
|
|
960
|
+
"DocumentLibraryTool",
|
|
961
|
+
"DocumentLibraryToolType",
|
|
962
|
+
"DocumentLibraryToolTypedDict",
|
|
588
963
|
"DocumentTypedDict",
|
|
589
964
|
"DocumentURLChunk",
|
|
590
965
|
"DocumentURLChunkType",
|
|
@@ -597,6 +972,8 @@ __all__ = [
|
|
|
597
972
|
"EmbeddingResponseData",
|
|
598
973
|
"EmbeddingResponseDataTypedDict",
|
|
599
974
|
"EmbeddingResponseTypedDict",
|
|
975
|
+
"Entries",
|
|
976
|
+
"EntriesTypedDict",
|
|
600
977
|
"EventOut",
|
|
601
978
|
"EventOutTypedDict",
|
|
602
979
|
"FIMCompletionRequest",
|
|
@@ -638,9 +1015,25 @@ __all__ = [
|
|
|
638
1015
|
"FinishReason",
|
|
639
1016
|
"Function",
|
|
640
1017
|
"FunctionCall",
|
|
1018
|
+
"FunctionCallEntry",
|
|
1019
|
+
"FunctionCallEntryArguments",
|
|
1020
|
+
"FunctionCallEntryArgumentsTypedDict",
|
|
1021
|
+
"FunctionCallEntryObject",
|
|
1022
|
+
"FunctionCallEntryType",
|
|
1023
|
+
"FunctionCallEntryTypedDict",
|
|
1024
|
+
"FunctionCallEvent",
|
|
1025
|
+
"FunctionCallEventType",
|
|
1026
|
+
"FunctionCallEventTypedDict",
|
|
641
1027
|
"FunctionCallTypedDict",
|
|
642
1028
|
"FunctionName",
|
|
643
1029
|
"FunctionNameTypedDict",
|
|
1030
|
+
"FunctionResultEntry",
|
|
1031
|
+
"FunctionResultEntryObject",
|
|
1032
|
+
"FunctionResultEntryType",
|
|
1033
|
+
"FunctionResultEntryTypedDict",
|
|
1034
|
+
"FunctionTool",
|
|
1035
|
+
"FunctionToolType",
|
|
1036
|
+
"FunctionToolTypedDict",
|
|
644
1037
|
"FunctionTypedDict",
|
|
645
1038
|
"GithubRepositoryIn",
|
|
646
1039
|
"GithubRepositoryInType",
|
|
@@ -650,8 +1043,12 @@ __all__ = [
|
|
|
650
1043
|
"GithubRepositoryOutTypedDict",
|
|
651
1044
|
"HTTPValidationError",
|
|
652
1045
|
"HTTPValidationErrorData",
|
|
1046
|
+
"HandoffExecution",
|
|
653
1047
|
"Hyperparameters",
|
|
654
1048
|
"HyperparametersTypedDict",
|
|
1049
|
+
"ImageGenerationTool",
|
|
1050
|
+
"ImageGenerationToolType",
|
|
1051
|
+
"ImageGenerationToolTypedDict",
|
|
655
1052
|
"ImageURL",
|
|
656
1053
|
"ImageURLChunk",
|
|
657
1054
|
"ImageURLChunkImageURL",
|
|
@@ -659,6 +1056,8 @@ __all__ = [
|
|
|
659
1056
|
"ImageURLChunkType",
|
|
660
1057
|
"ImageURLChunkTypedDict",
|
|
661
1058
|
"ImageURLTypedDict",
|
|
1059
|
+
"InputEntries",
|
|
1060
|
+
"InputEntriesTypedDict",
|
|
662
1061
|
"Inputs",
|
|
663
1062
|
"InputsTypedDict",
|
|
664
1063
|
"InstructRequest",
|
|
@@ -724,12 +1123,42 @@ __all__ = [
|
|
|
724
1123
|
"ListFilesOutTypedDict",
|
|
725
1124
|
"Loc",
|
|
726
1125
|
"LocTypedDict",
|
|
1126
|
+
"MessageEntries",
|
|
1127
|
+
"MessageEntriesTypedDict",
|
|
1128
|
+
"MessageInputContentChunks",
|
|
1129
|
+
"MessageInputContentChunksTypedDict",
|
|
1130
|
+
"MessageInputEntry",
|
|
1131
|
+
"MessageInputEntryContent",
|
|
1132
|
+
"MessageInputEntryContentTypedDict",
|
|
1133
|
+
"MessageInputEntryRole",
|
|
1134
|
+
"MessageInputEntryType",
|
|
1135
|
+
"MessageInputEntryTypedDict",
|
|
1136
|
+
"MessageOutputContentChunks",
|
|
1137
|
+
"MessageOutputContentChunksTypedDict",
|
|
1138
|
+
"MessageOutputEntry",
|
|
1139
|
+
"MessageOutputEntryContent",
|
|
1140
|
+
"MessageOutputEntryContentTypedDict",
|
|
1141
|
+
"MessageOutputEntryObject",
|
|
1142
|
+
"MessageOutputEntryRole",
|
|
1143
|
+
"MessageOutputEntryType",
|
|
1144
|
+
"MessageOutputEntryTypedDict",
|
|
1145
|
+
"MessageOutputEvent",
|
|
1146
|
+
"MessageOutputEventContent",
|
|
1147
|
+
"MessageOutputEventContentTypedDict",
|
|
1148
|
+
"MessageOutputEventRole",
|
|
1149
|
+
"MessageOutputEventType",
|
|
1150
|
+
"MessageOutputEventTypedDict",
|
|
727
1151
|
"Messages",
|
|
728
1152
|
"MessagesTypedDict",
|
|
729
1153
|
"MetricOut",
|
|
730
1154
|
"MetricOutTypedDict",
|
|
731
1155
|
"ModelCapabilities",
|
|
732
1156
|
"ModelCapabilitiesTypedDict",
|
|
1157
|
+
"ModelConversation",
|
|
1158
|
+
"ModelConversationObject",
|
|
1159
|
+
"ModelConversationTools",
|
|
1160
|
+
"ModelConversationToolsTypedDict",
|
|
1161
|
+
"ModelConversationTypedDict",
|
|
733
1162
|
"ModelList",
|
|
734
1163
|
"ModelListTypedDict",
|
|
735
1164
|
"ModelType",
|
|
@@ -752,6 +1181,10 @@ __all__ = [
|
|
|
752
1181
|
"Object",
|
|
753
1182
|
"One",
|
|
754
1183
|
"OneTypedDict",
|
|
1184
|
+
"OutputContentChunks",
|
|
1185
|
+
"OutputContentChunksTypedDict",
|
|
1186
|
+
"Outputs",
|
|
1187
|
+
"OutputsTypedDict",
|
|
755
1188
|
"Prediction",
|
|
756
1189
|
"PredictionTypedDict",
|
|
757
1190
|
"QueryParamStatus",
|
|
@@ -762,9 +1195,20 @@ __all__ = [
|
|
|
762
1195
|
"RepositoriesTypedDict",
|
|
763
1196
|
"Response1",
|
|
764
1197
|
"Response1TypedDict",
|
|
1198
|
+
"ResponseBody",
|
|
1199
|
+
"ResponseBodyTypedDict",
|
|
1200
|
+
"ResponseDoneEvent",
|
|
1201
|
+
"ResponseDoneEventType",
|
|
1202
|
+
"ResponseDoneEventTypedDict",
|
|
1203
|
+
"ResponseErrorEvent",
|
|
1204
|
+
"ResponseErrorEventType",
|
|
1205
|
+
"ResponseErrorEventTypedDict",
|
|
765
1206
|
"ResponseFormat",
|
|
766
1207
|
"ResponseFormatTypedDict",
|
|
767
1208
|
"ResponseFormats",
|
|
1209
|
+
"ResponseStartedEvent",
|
|
1210
|
+
"ResponseStartedEventType",
|
|
1211
|
+
"ResponseStartedEventTypedDict",
|
|
768
1212
|
"RetrieveFileOut",
|
|
769
1213
|
"RetrieveFileOutTypedDict",
|
|
770
1214
|
"RetrieveModelV1ModelsModelIDGetRequest",
|
|
@@ -773,6 +1217,7 @@ __all__ = [
|
|
|
773
1217
|
"RetrieveModelV1ModelsModelIDGetResponseRetrieveModelV1ModelsModelIDGetTypedDict",
|
|
774
1218
|
"Role",
|
|
775
1219
|
"SDKError",
|
|
1220
|
+
"SSETypes",
|
|
776
1221
|
"SampleType",
|
|
777
1222
|
"Security",
|
|
778
1223
|
"SecurityTypedDict",
|
|
@@ -793,13 +1238,31 @@ __all__ = [
|
|
|
793
1238
|
"ToolChoice",
|
|
794
1239
|
"ToolChoiceEnum",
|
|
795
1240
|
"ToolChoiceTypedDict",
|
|
1241
|
+
"ToolExecutionDoneEvent",
|
|
1242
|
+
"ToolExecutionDoneEventType",
|
|
1243
|
+
"ToolExecutionDoneEventTypedDict",
|
|
1244
|
+
"ToolExecutionEntry",
|
|
1245
|
+
"ToolExecutionEntryObject",
|
|
1246
|
+
"ToolExecutionEntryType",
|
|
1247
|
+
"ToolExecutionEntryTypedDict",
|
|
1248
|
+
"ToolExecutionStartedEvent",
|
|
1249
|
+
"ToolExecutionStartedEventType",
|
|
1250
|
+
"ToolExecutionStartedEventTypedDict",
|
|
1251
|
+
"ToolFileChunk",
|
|
1252
|
+
"ToolFileChunkType",
|
|
1253
|
+
"ToolFileChunkTypedDict",
|
|
796
1254
|
"ToolMessage",
|
|
797
1255
|
"ToolMessageContent",
|
|
798
1256
|
"ToolMessageContentTypedDict",
|
|
799
1257
|
"ToolMessageRole",
|
|
800
1258
|
"ToolMessageTypedDict",
|
|
1259
|
+
"ToolReferenceChunk",
|
|
1260
|
+
"ToolReferenceChunkType",
|
|
1261
|
+
"ToolReferenceChunkTypedDict",
|
|
801
1262
|
"ToolTypedDict",
|
|
802
1263
|
"ToolTypes",
|
|
1264
|
+
"Tools",
|
|
1265
|
+
"ToolsTypedDict",
|
|
803
1266
|
"TrainingFile",
|
|
804
1267
|
"TrainingFileTypedDict",
|
|
805
1268
|
"Two",
|
|
@@ -827,4 +1290,10 @@ __all__ = [
|
|
|
827
1290
|
"WandbIntegrationOutTypedDict",
|
|
828
1291
|
"WandbIntegrationType",
|
|
829
1292
|
"WandbIntegrationTypedDict",
|
|
1293
|
+
"WebSearchPremiumTool",
|
|
1294
|
+
"WebSearchPremiumToolType",
|
|
1295
|
+
"WebSearchPremiumToolTypedDict",
|
|
1296
|
+
"WebSearchTool",
|
|
1297
|
+
"WebSearchToolType",
|
|
1298
|
+
"WebSearchToolTypedDict",
|
|
830
1299
|
]
|