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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .builtinconnectors import BuiltInConnectors
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
from mistralai.types import BaseModel
|
|
7
|
+
from typing import Any, Dict, Literal, Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
ToolExecutionDoneEventType = Literal["tool.execution.done"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ToolExecutionDoneEventTypedDict(TypedDict):
|
|
15
|
+
id: str
|
|
16
|
+
name: BuiltInConnectors
|
|
17
|
+
type: NotRequired[ToolExecutionDoneEventType]
|
|
18
|
+
created_at: NotRequired[datetime]
|
|
19
|
+
output_index: NotRequired[int]
|
|
20
|
+
info: NotRequired[Dict[str, Any]]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ToolExecutionDoneEvent(BaseModel):
|
|
24
|
+
id: str
|
|
25
|
+
|
|
26
|
+
name: BuiltInConnectors
|
|
27
|
+
|
|
28
|
+
type: Optional[ToolExecutionDoneEventType] = "tool.execution.done"
|
|
29
|
+
|
|
30
|
+
created_at: Optional[datetime] = None
|
|
31
|
+
|
|
32
|
+
output_index: Optional[int] = 0
|
|
33
|
+
|
|
34
|
+
info: Optional[Dict[str, Any]] = None
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .builtinconnectors import BuiltInConnectors
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
from mistralai.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
7
|
+
from pydantic import model_serializer
|
|
8
|
+
from typing import Any, Dict, Literal, Optional
|
|
9
|
+
from typing_extensions import NotRequired, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
ToolExecutionEntryObject = Literal["entry"]
|
|
13
|
+
|
|
14
|
+
ToolExecutionEntryType = Literal["tool.execution"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ToolExecutionEntryTypedDict(TypedDict):
|
|
18
|
+
name: BuiltInConnectors
|
|
19
|
+
object: NotRequired[ToolExecutionEntryObject]
|
|
20
|
+
type: NotRequired[ToolExecutionEntryType]
|
|
21
|
+
created_at: NotRequired[datetime]
|
|
22
|
+
completed_at: NotRequired[Nullable[datetime]]
|
|
23
|
+
id: NotRequired[str]
|
|
24
|
+
info: NotRequired[Dict[str, Any]]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ToolExecutionEntry(BaseModel):
|
|
28
|
+
name: BuiltInConnectors
|
|
29
|
+
|
|
30
|
+
object: Optional[ToolExecutionEntryObject] = "entry"
|
|
31
|
+
|
|
32
|
+
type: Optional[ToolExecutionEntryType] = "tool.execution"
|
|
33
|
+
|
|
34
|
+
created_at: Optional[datetime] = None
|
|
35
|
+
|
|
36
|
+
completed_at: OptionalNullable[datetime] = UNSET
|
|
37
|
+
|
|
38
|
+
id: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
info: Optional[Dict[str, Any]] = None
|
|
41
|
+
|
|
42
|
+
@model_serializer(mode="wrap")
|
|
43
|
+
def serialize_model(self, handler):
|
|
44
|
+
optional_fields = ["object", "type", "created_at", "completed_at", "id", "info"]
|
|
45
|
+
nullable_fields = ["completed_at"]
|
|
46
|
+
null_default_fields = []
|
|
47
|
+
|
|
48
|
+
serialized = handler(self)
|
|
49
|
+
|
|
50
|
+
m = {}
|
|
51
|
+
|
|
52
|
+
for n, f in self.model_fields.items():
|
|
53
|
+
k = f.alias or n
|
|
54
|
+
val = serialized.get(k)
|
|
55
|
+
serialized.pop(k, None)
|
|
56
|
+
|
|
57
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
58
|
+
is_set = (
|
|
59
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
60
|
+
or k in null_default_fields
|
|
61
|
+
) # pylint: disable=no-member
|
|
62
|
+
|
|
63
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
64
|
+
m[k] = val
|
|
65
|
+
elif val != UNSET_SENTINEL and (
|
|
66
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
67
|
+
):
|
|
68
|
+
m[k] = val
|
|
69
|
+
|
|
70
|
+
return m
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .builtinconnectors import BuiltInConnectors
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
from mistralai.types import BaseModel
|
|
7
|
+
from typing import Literal, Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
ToolExecutionStartedEventType = Literal["tool.execution.started"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ToolExecutionStartedEventTypedDict(TypedDict):
|
|
15
|
+
id: str
|
|
16
|
+
name: BuiltInConnectors
|
|
17
|
+
type: NotRequired[ToolExecutionStartedEventType]
|
|
18
|
+
created_at: NotRequired[datetime]
|
|
19
|
+
output_index: NotRequired[int]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ToolExecutionStartedEvent(BaseModel):
|
|
23
|
+
id: str
|
|
24
|
+
|
|
25
|
+
name: BuiltInConnectors
|
|
26
|
+
|
|
27
|
+
type: Optional[ToolExecutionStartedEventType] = "tool.execution.started"
|
|
28
|
+
|
|
29
|
+
created_at: Optional[datetime] = None
|
|
30
|
+
|
|
31
|
+
output_index: Optional[int] = 0
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .builtinconnectors import BuiltInConnectors
|
|
5
|
+
from mistralai.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
6
|
+
from pydantic import model_serializer
|
|
7
|
+
from typing import Literal, Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
ToolFileChunkType = Literal["tool_file"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ToolFileChunkTypedDict(TypedDict):
|
|
15
|
+
tool: BuiltInConnectors
|
|
16
|
+
file_id: str
|
|
17
|
+
type: NotRequired[ToolFileChunkType]
|
|
18
|
+
file_name: NotRequired[Nullable[str]]
|
|
19
|
+
file_type: NotRequired[Nullable[str]]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ToolFileChunk(BaseModel):
|
|
23
|
+
tool: BuiltInConnectors
|
|
24
|
+
|
|
25
|
+
file_id: str
|
|
26
|
+
|
|
27
|
+
type: Optional[ToolFileChunkType] = "tool_file"
|
|
28
|
+
|
|
29
|
+
file_name: OptionalNullable[str] = UNSET
|
|
30
|
+
|
|
31
|
+
file_type: OptionalNullable[str] = UNSET
|
|
32
|
+
|
|
33
|
+
@model_serializer(mode="wrap")
|
|
34
|
+
def serialize_model(self, handler):
|
|
35
|
+
optional_fields = ["type", "file_name", "file_type"]
|
|
36
|
+
nullable_fields = ["file_name", "file_type"]
|
|
37
|
+
null_default_fields = []
|
|
38
|
+
|
|
39
|
+
serialized = handler(self)
|
|
40
|
+
|
|
41
|
+
m = {}
|
|
42
|
+
|
|
43
|
+
for n, f in self.model_fields.items():
|
|
44
|
+
k = f.alias or n
|
|
45
|
+
val = serialized.get(k)
|
|
46
|
+
serialized.pop(k, None)
|
|
47
|
+
|
|
48
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
49
|
+
is_set = (
|
|
50
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
51
|
+
or k in null_default_fields
|
|
52
|
+
) # pylint: disable=no-member
|
|
53
|
+
|
|
54
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
55
|
+
m[k] = val
|
|
56
|
+
elif val != UNSET_SENTINEL and (
|
|
57
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
58
|
+
):
|
|
59
|
+
m[k] = val
|
|
60
|
+
|
|
61
|
+
return m
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .builtinconnectors import BuiltInConnectors
|
|
5
|
+
from mistralai.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
6
|
+
from pydantic import model_serializer
|
|
7
|
+
from typing import Literal, Optional
|
|
8
|
+
from typing_extensions import NotRequired, TypedDict
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
ToolReferenceChunkType = Literal["tool_reference"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ToolReferenceChunkTypedDict(TypedDict):
|
|
15
|
+
tool: BuiltInConnectors
|
|
16
|
+
title: str
|
|
17
|
+
type: NotRequired[ToolReferenceChunkType]
|
|
18
|
+
url: NotRequired[Nullable[str]]
|
|
19
|
+
source: NotRequired[Nullable[str]]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ToolReferenceChunk(BaseModel):
|
|
23
|
+
tool: BuiltInConnectors
|
|
24
|
+
|
|
25
|
+
title: str
|
|
26
|
+
|
|
27
|
+
type: Optional[ToolReferenceChunkType] = "tool_reference"
|
|
28
|
+
|
|
29
|
+
url: OptionalNullable[str] = UNSET
|
|
30
|
+
|
|
31
|
+
source: OptionalNullable[str] = UNSET
|
|
32
|
+
|
|
33
|
+
@model_serializer(mode="wrap")
|
|
34
|
+
def serialize_model(self, handler):
|
|
35
|
+
optional_fields = ["type", "url", "source"]
|
|
36
|
+
nullable_fields = ["url", "source"]
|
|
37
|
+
null_default_fields = []
|
|
38
|
+
|
|
39
|
+
serialized = handler(self)
|
|
40
|
+
|
|
41
|
+
m = {}
|
|
42
|
+
|
|
43
|
+
for n, f in self.model_fields.items():
|
|
44
|
+
k = f.alias or n
|
|
45
|
+
val = serialized.get(k)
|
|
46
|
+
serialized.pop(k, None)
|
|
47
|
+
|
|
48
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
49
|
+
is_set = (
|
|
50
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
51
|
+
or k in null_default_fields
|
|
52
|
+
) # pylint: disable=no-member
|
|
53
|
+
|
|
54
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
55
|
+
m[k] = val
|
|
56
|
+
elif val != UNSET_SENTINEL and (
|
|
57
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
58
|
+
):
|
|
59
|
+
m[k] = val
|
|
60
|
+
|
|
61
|
+
return m
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from mistralai.types import BaseModel
|
|
5
|
+
from typing import Literal, Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
WebSearchPremiumToolType = Literal["web_search_premium"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class WebSearchPremiumToolTypedDict(TypedDict):
|
|
13
|
+
type: NotRequired[WebSearchPremiumToolType]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class WebSearchPremiumTool(BaseModel):
|
|
17
|
+
type: Optional[WebSearchPremiumToolType] = "web_search_premium"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from mistralai.types import BaseModel
|
|
5
|
+
from typing import Literal, Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
WebSearchToolType = Literal["web_search"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class WebSearchToolTypedDict(TypedDict):
|
|
13
|
+
type: NotRequired[WebSearchToolType]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class WebSearchTool(BaseModel):
|
|
17
|
+
type: Optional[WebSearchToolType] = "web_search"
|
mistralai/sdk.py
CHANGED
|
@@ -10,6 +10,7 @@ from mistralai import models, utils
|
|
|
10
10
|
from mistralai._hooks import SDKHooks
|
|
11
11
|
from mistralai.agents import Agents
|
|
12
12
|
from mistralai.batch import Batch
|
|
13
|
+
from mistralai.beta import Beta
|
|
13
14
|
from mistralai.chat import Chat
|
|
14
15
|
from mistralai.classifiers import Classifiers
|
|
15
16
|
from mistralai.embeddings import Embeddings
|
|
@@ -28,6 +29,7 @@ class Mistral(BaseSDK):
|
|
|
28
29
|
|
|
29
30
|
models: Models
|
|
30
31
|
r"""Model Management API"""
|
|
32
|
+
beta: Beta
|
|
31
33
|
files: Files
|
|
32
34
|
r"""Files API"""
|
|
33
35
|
fine_tuning: FineTuning
|
|
@@ -142,6 +144,7 @@ class Mistral(BaseSDK):
|
|
|
142
144
|
|
|
143
145
|
def _init_sdks(self):
|
|
144
146
|
self.models = Models(self.sdk_configuration)
|
|
147
|
+
self.beta = Beta(self.sdk_configuration)
|
|
145
148
|
self.files = Files(self.sdk_configuration)
|
|
146
149
|
self.fine_tuning = FineTuning(self.sdk_configuration)
|
|
147
150
|
self.batch = Batch(self.sdk_configuration)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: mistralai
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.8.0
|
|
4
4
|
Summary: Python Client SDK for the Mistral AI API.
|
|
5
5
|
Author: Mistral
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -10,10 +10,14 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Provides-Extra: agents
|
|
13
14
|
Provides-Extra: gcp
|
|
15
|
+
Requires-Dist: authlib (>=1.5.2,<2.0) ; extra == "agents"
|
|
14
16
|
Requires-Dist: eval-type-backport (>=0.2.0)
|
|
15
17
|
Requires-Dist: google-auth (>=2.27.0) ; extra == "gcp"
|
|
18
|
+
Requires-Dist: griffe (>=1.7.3,<2.0) ; extra == "agents"
|
|
16
19
|
Requires-Dist: httpx (>=0.28.1)
|
|
20
|
+
Requires-Dist: mcp (>=1.0,<2.0) ; (python_version >= "3.10") and (extra == "agents")
|
|
17
21
|
Requires-Dist: pydantic (>=2.10.3)
|
|
18
22
|
Requires-Dist: python-dateutil (>=2.8.2)
|
|
19
23
|
Requires-Dist: requests (>=2.32.3) ; extra == "gcp"
|
|
@@ -131,6 +135,18 @@ Once that is saved to a file, you can run it with `uv run script.py` where
|
|
|
131
135
|
`script.py` can be replaced with the actual file name.
|
|
132
136
|
<!-- End SDK Installation [installation] -->
|
|
133
137
|
|
|
138
|
+
### Agents extra dependencies
|
|
139
|
+
|
|
140
|
+
When using the agents related feature it is required to add the `agents` extra dependencies. This can be added when
|
|
141
|
+
installing the package:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
pip install "mistralai[agents]"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
> Note: Because of some of our dependencies, these features are only available for python version higher or equal to
|
|
148
|
+
> 3.10.
|
|
149
|
+
|
|
134
150
|
<!-- Start SDK Example Usage [usage] -->
|
|
135
151
|
## SDK Example Usage
|
|
136
152
|
|
|
@@ -455,6 +471,30 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
455
471
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md#get) - Get Batch Job
|
|
456
472
|
* [cancel](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md#cancel) - Cancel Batch Job
|
|
457
473
|
|
|
474
|
+
### [beta](https://github.com/mistralai/client-python/blob/master/docs/sdks/beta/README.md)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
#### [beta.agents](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md)
|
|
478
|
+
|
|
479
|
+
* [create](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#create) - Create a agent that can be used within a conversation.
|
|
480
|
+
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#list) - List agent entities.
|
|
481
|
+
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#get) - Retrieve an agent entity.
|
|
482
|
+
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update) - Update an agent entity.
|
|
483
|
+
* [update_version](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
|
|
484
|
+
|
|
485
|
+
#### [beta.conversations](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md)
|
|
486
|
+
|
|
487
|
+
* [start](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
|
|
488
|
+
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#list) - List all created conversations.
|
|
489
|
+
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get) - Retrieve a conversation information.
|
|
490
|
+
* [append](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
|
|
491
|
+
* [get_history](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_history) - Retrieve all entries in a conversation.
|
|
492
|
+
* [get_messages](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_messages) - Retrieve all messages in a conversation.
|
|
493
|
+
* [restart](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#restart) - Restart a conversation starting from a given entry.
|
|
494
|
+
* [start_stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#start_stream) - Create a conversation and append entries to it.
|
|
495
|
+
* [append_stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
|
|
496
|
+
* [restart_stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
|
|
497
|
+
|
|
458
498
|
### [chat](https://github.com/mistralai/client-python/blob/master/docs/sdks/chat/README.md)
|
|
459
499
|
|
|
460
500
|
* [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/chat/README.md#complete) - Chat Completion
|
|
@@ -534,12 +574,7 @@ with Mistral(
|
|
|
534
574
|
api_key=os.getenv("MISTRAL_API_KEY", ""),
|
|
535
575
|
) as mistral:
|
|
536
576
|
|
|
537
|
-
res = mistral.
|
|
538
|
-
{
|
|
539
|
-
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
540
|
-
"role": "user",
|
|
541
|
-
},
|
|
542
|
-
])
|
|
577
|
+
res = mistral.beta.conversations.start_stream(inputs="<value>")
|
|
543
578
|
|
|
544
579
|
with res as event_stream:
|
|
545
580
|
for event in event_stream:
|
|
@@ -139,20 +139,33 @@ mistralai/_hooks/deprecation_warning.py,sha256=eyEOf7-o9uqqNWJnufD2RXp3dYrGV4in9
|
|
|
139
139
|
mistralai/_hooks/registration.py,sha256=ML0W-XbE4WYdJ4eGks_XxF2aLCJTaIWjQATFGzFwvyU,861
|
|
140
140
|
mistralai/_hooks/sdkhooks.py,sha256=s-orhdvnV89TmI3QiPC2LWQtYeM9RrsG1CTll-fYZmQ,2559
|
|
141
141
|
mistralai/_hooks/types.py,sha256=z3AUFDpRJHj2m3h5PklvUeEcGohY0cfph4jL6-nGIzs,2812
|
|
142
|
-
mistralai/_version.py,sha256=
|
|
142
|
+
mistralai/_version.py,sha256=2h0W-7sYb3UbVvUO0AVfyy7sRfFO6mJfM7TomiOVI9I,460
|
|
143
143
|
mistralai/agents.py,sha256=o_apyuwiDzxv-U252T84ynAHCb5fn1q7MMXqrZ4oHLo,32652
|
|
144
144
|
mistralai/async_client.py,sha256=KUdYxIIqoD6L7vB0EGwUR6lQ0NK5iCTHjnLVR9CVcJY,355
|
|
145
145
|
mistralai/basesdk.py,sha256=GsU5bp8O5fBCl34tKxaYmeYSIIM971eAPeFBBC_BpFo,12191
|
|
146
146
|
mistralai/batch.py,sha256=YN4D0Duwrap9Ysmp_lRpADYp1Znay7THE_z8ERGvDds,501
|
|
147
|
+
mistralai/beta.py,sha256=ZoBpHRinJu_LlNM7q91HC7huXmzKVpgGLL_bRdXjqBg,662
|
|
147
148
|
mistralai/chat.py,sha256=1XVVVvDi726bq6HXCur6-dsmFfzQAEpEWbKT_3sTZ4A,40549
|
|
148
149
|
mistralai/classifiers.py,sha256=Cbrb6X_eq3-Yz5ZhWkOsFDTGbo3hkgh-vtIEQmU_UdI,33776
|
|
149
150
|
mistralai/client.py,sha256=hrPg-LciKMKiascF0WbRRmqQyCv1lb2yDh6j-aaKVNo,509
|
|
151
|
+
mistralai/conversations.py,sha256=2RTDBKRHPXGtTobMonJUnVWy9zP3i3aVRWE4pcKdF-Y,109256
|
|
150
152
|
mistralai/embeddings.py,sha256=Tq5ZEo6CR0ktQCdxX7mhLy5CfzI5c8mtkuadIVtsWgM,8644
|
|
151
153
|
mistralai/extra/README.md,sha256=BTS9fy0ijkiUP7ZVoFQ7FVBxHtXIXqucYZyy_ucFjo4,1739
|
|
152
|
-
mistralai/extra/__init__.py,sha256=
|
|
154
|
+
mistralai/extra/__init__.py,sha256=8DsU_omYYadqcwlmBOoakBwkWKcSohwLmtB8v-jkn2M,392
|
|
155
|
+
mistralai/extra/exceptions.py,sha256=4EEygCfdsniYiroHEFVSVDqerQZkpRG027mlJXvMqns,428
|
|
156
|
+
mistralai/extra/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
157
|
+
mistralai/extra/mcp/auth.py,sha256=n9TVU4US9yr2yk4wMeqiP4QCsajuf5vf6j3OnHW089s,6136
|
|
158
|
+
mistralai/extra/mcp/base.py,sha256=OyvpekpR_SMYLWSzNW5HyVqTpBKBlikhw54B5-Oj1DU,5069
|
|
159
|
+
mistralai/extra/mcp/sse.py,sha256=ikAw5YDVPY_nYT9zzB3-RYrZg9tVmt4WaY9Rki-fMsM,6385
|
|
160
|
+
mistralai/extra/mcp/stdio.py,sha256=n_70r_MhD46lVZIMmsa8wfZ0czxFdPb_k3axoimV0fc,647
|
|
161
|
+
mistralai/extra/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
162
|
+
mistralai/extra/run/context.py,sha256=VEFqiN771VO7aK9vp6o9-okHUOeaP-Zr04rSlR1zarA,11146
|
|
163
|
+
mistralai/extra/run/result.py,sha256=SN9yGovPD4eMkDbz6qqn4uYzkkrKNeTb2GQ87b-lJCQ,7149
|
|
164
|
+
mistralai/extra/run/tools.py,sha256=XhghR3qn0H91Kn1Ld3qNgpoD3Wj73ZP1V7zOXnuBw8k,7698
|
|
165
|
+
mistralai/extra/run/utils.py,sha256=lmqxqCuwLwYsjua460-I6q4OK2om8BxgvWm4NPiV7fs,1169
|
|
153
166
|
mistralai/extra/struct_chat.py,sha256=ZkpdExC5rgC-nBZ44hQIVhQmK6lYMk36RBSFPZMFaIg,2157
|
|
154
167
|
mistralai/extra/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
155
|
-
mistralai/extra/tests/test_struct_chat.py,sha256=
|
|
168
|
+
mistralai/extra/tests/test_struct_chat.py,sha256=QKG3L_S1MOmS_7Dmkxky8ciJya9KhF3KQpm_XrSIWQg,4373
|
|
156
169
|
mistralai/extra/tests/test_utils.py,sha256=VesGDR_IiE6u0iY7yOi1iERd7esdJgi2aL4xZp0vKVI,5113
|
|
157
170
|
mistralai/extra/utils/__init__.py,sha256=SExo5t_hx0ybiQhVJIG3r3hOA-Pfny3lIO_WsqNXlN8,116
|
|
158
171
|
mistralai/extra/utils/_pydantic_helper.py,sha256=_mzrbZGU07M96CzcxgjcV25NtIGu5EUfotaN8NDUoFc,883
|
|
@@ -162,10 +175,30 @@ mistralai/fim.py,sha256=UMx-bFYbaSyANZug8VrCabHsqePdiHoYQO1YMKB2MvY,27935
|
|
|
162
175
|
mistralai/fine_tuning.py,sha256=UENQqfE054VEsAYxdruV-TBLFIFfO-joXNznH08GUvE,477
|
|
163
176
|
mistralai/httpclient.py,sha256=lC-YQ7q4yiJGKElxBeb3aZnr-4aYxjgEpZ6roeXYlyg,4318
|
|
164
177
|
mistralai/jobs.py,sha256=1DZE14ad348Vg82VHhLRyXhu7SIh8_KgWXc_jP2oFIA,46767
|
|
178
|
+
mistralai/mistral_agents.py,sha256=txjs5YVDV4u5sEHI6WFPcE3KGXb0I2Il3aJS6Eq9iCc,45543
|
|
165
179
|
mistralai/mistral_jobs.py,sha256=EQHFFxFkkx6XvPX-9S8TRZvVSOLUL7z91cg56J8pskQ,31114
|
|
166
|
-
mistralai/models/__init__.py,sha256=
|
|
180
|
+
mistralai/models/__init__.py,sha256=3ZtDRtA2WtDv6pOqLkBFkI2M1WmJV7hc4A6ihqudzrw,43330
|
|
181
|
+
mistralai/models/agent.py,sha256=dx_uXYDNWoENtgK4InGqs1A9eCw1xDphMPCF_Pv43VQ,4185
|
|
182
|
+
mistralai/models/agentconversation.py,sha256=WaPQn3pGiD2c6bNaP7Ya1akVQt54aK7qDtAEnHAjwrk,2086
|
|
183
|
+
mistralai/models/agentcreationrequest.py,sha256=u9WM95ywRmDqnwx0yfEOT1FnJbiPY8lNtju71d3ix4A,3952
|
|
184
|
+
mistralai/models/agenthandoffdoneevent.py,sha256=HDGDAni5U_NXuUSZEvcqjIjDVjAjZrYZfxzN0D_YLBM,813
|
|
185
|
+
mistralai/models/agenthandoffentry.py,sha256=Sdw0ToQ3Goe5cLCWRC1cYyecMo_wAVrWedILen1FbjU,2150
|
|
186
|
+
mistralai/models/agenthandoffstartedevent.py,sha256=8J07a6u6EnuBjtGtMcCqUzWJxfnaVy8N6PNoFeyqU4Q,850
|
|
187
|
+
mistralai/models/agents_api_v1_agents_getop.py,sha256=BdrUpxf-rVGvxFlLEnBLj8MGHE82jHSpWWb5xqvzwDA,494
|
|
188
|
+
mistralai/models/agents_api_v1_agents_listop.py,sha256=1NJOQ9vTXDYiT7nvATN1KxnXsl1S5FMjmwnpJZQulD4,735
|
|
189
|
+
mistralai/models/agents_api_v1_agents_update_versionop.py,sha256=-ANBszFQ1Ig5sIBcSMo9Z9xcb2-RKbu7jE6GW0Zj7vE,663
|
|
190
|
+
mistralai/models/agents_api_v1_agents_updateop.py,sha256=BFslxxeejm4kyLbWGTFaWNQ2ilFLavfbEUfi0SwjELE,802
|
|
191
|
+
mistralai/models/agents_api_v1_conversations_append_streamop.py,sha256=ZnhYubtb4wwxfbFqV19LyMvMW9V22F-fEsr1RmBZVRA,1072
|
|
192
|
+
mistralai/models/agents_api_v1_conversations_appendop.py,sha256=uKPtHvaJEZTc-N6SPmKk_wEuPDTDLXeuCYyx2l0zKTk,1016
|
|
193
|
+
mistralai/models/agents_api_v1_conversations_getop.py,sha256=LZCWCtU6XT9DpOuX2A64o9cbsi2qMAahCV2YNfnql2Y,1176
|
|
194
|
+
mistralai/models/agents_api_v1_conversations_historyop.py,sha256=dHPJVbxPNDkgOQq4auAEiBX2NUuy5ZjKE6kIHWeuYow,530
|
|
195
|
+
mistralai/models/agents_api_v1_conversations_listop.py,sha256=N7bwRL4VtP3-a9Q-15ck37TvWux3br1O4flNp97-D0g,1163
|
|
196
|
+
mistralai/models/agents_api_v1_conversations_messagesop.py,sha256=4V1voPx6mGB4Go5uAsYbkOKgHR0HSUYfadDUoFS0sj0,532
|
|
197
|
+
mistralai/models/agents_api_v1_conversations_restart_streamop.py,sha256=7QZ8fEnDPcIRiTqgg68siLZCSPO13_r2-qdQ7bVsxwY,957
|
|
198
|
+
mistralai/models/agents_api_v1_conversations_restartop.py,sha256=QNA8A3ewD3AwxtayUvrCQpqUfqr13-e7-Y9UgrSbp-A,901
|
|
167
199
|
mistralai/models/agentscompletionrequest.py,sha256=gyGoh1KsCGbOpfmaqk9d_hf1CYhWIriH4vaeQoEDfzU,7920
|
|
168
200
|
mistralai/models/agentscompletionstreamrequest.py,sha256=ZI4iFtl6qDJZ5QTIZ7vDIyFQ9n9rqVqN6tJQAdjpQjA,7365
|
|
201
|
+
mistralai/models/agentupdaterequest.py,sha256=w3K74yFRqilUDc64bS6ulmnvgY8WMJ0evSbzwu3ukLc,4094
|
|
169
202
|
mistralai/models/apiendpoint.py,sha256=Hvar5leWsJR_FYb0UzRlSw3vRdBZhk_6BR5r2pIb214,400
|
|
170
203
|
mistralai/models/archiveftmodelout.py,sha256=VdppiqIB9JGNB2B0-Y6XQfQgDmB-hOa1Bta3v_StbLs,565
|
|
171
204
|
mistralai/models/assistantmessage.py,sha256=pmOhSINRB8sJ11lNtfKEL0k6-JnTEJ7cjlWW9D0pIMM,2624
|
|
@@ -175,6 +208,7 @@ mistralai/models/batchjobin.py,sha256=1GDaaHJeGVo71F4HVZkTdX92bmr3DieNB0ZuHFzBIe
|
|
|
175
208
|
mistralai/models/batchjobout.py,sha256=LYtHa6WTsDGWUdQfdWll7W6JZ0b1F7osF9ic6ljJpVI,2834
|
|
176
209
|
mistralai/models/batchjobsout.py,sha256=8ZpO0Lxuygz_4p5cemhJo7ks9YsTmio0EaHvrjyr0Jc,636
|
|
177
210
|
mistralai/models/batchjobstatus.py,sha256=WlrIl5vWQGfLmgQA91_9CnCMKhWN6Lli458fT-4Asj4,294
|
|
211
|
+
mistralai/models/builtinconnectors.py,sha256=cX1M7Q_2tsWeuH-lKWomXED7xN7Du6BJKvYpep1vD30,284
|
|
178
212
|
mistralai/models/chatclassificationrequest.py,sha256=PmU036oOlGqfd75hNESDUJiN4uJNYguACoCt6CzBC2M,534
|
|
179
213
|
mistralai/models/chatcompletionchoice.py,sha256=6iIFLZj2KYx0HFfzS3-E3sNXG6mPEAlDyXxIA5iZI_U,849
|
|
180
214
|
mistralai/models/chatcompletionrequest.py,sha256=6Innwpi7UnKmyauATOJForAVvW0tkSnbjsiQOOp5OKg,9777
|
|
@@ -192,19 +226,35 @@ mistralai/models/classifiertargetin.py,sha256=gmJdDRojg5um4SAzfTlzRe-X6Aliq084cf
|
|
|
192
226
|
mistralai/models/classifiertargetout.py,sha256=WK94y6c1EsxcC7bCnUFus0ljxHQ4Q-b4eudswKpOrmU,561
|
|
193
227
|
mistralai/models/classifiertrainingparameters.py,sha256=_UmhfQAALRjhUJIMrKlz2kRmOEVhui_tjzCy_R50qHo,2176
|
|
194
228
|
mistralai/models/classifiertrainingparametersin.py,sha256=k1SSzy6S3BdY7oX2JqhY9nc9aX7vI8QXEpMFw63b218,4456
|
|
229
|
+
mistralai/models/codeinterpretertool.py,sha256=aSM8mi2sRft1o04aGlB24sFl3s49xM1zEnWP50MBMLU,493
|
|
230
|
+
mistralai/models/completionargs.py,sha256=ST8O_6y6R01o6svlD9J5nLLVfY0K4DdLBSZ8C8a52Fo,3161
|
|
231
|
+
mistralai/models/completionargsstop.py,sha256=3TB3uIYxTPWXzMNnQb9bkYlLD5u92G0xBdzP_dIZNjQ,371
|
|
195
232
|
mistralai/models/completionchunk.py,sha256=Cdq-FBWa1oBhrxapoOAj8qr6xmkeIPsfPQSbjeK6NLY,871
|
|
196
233
|
mistralai/models/completiondetailedjobout.py,sha256=qbUrYfpgNXt7g5s91aB5k07gcUlo8J7OPHivBvWeUVw,5021
|
|
197
234
|
mistralai/models/completionevent.py,sha256=rFc5dJBRnNOzspI95Jhkjd9WyM476u48cN0T1Vh-Cxw,399
|
|
198
235
|
mistralai/models/completionftmodelout.py,sha256=vosnNC1lqatAMBxCSnu6Xmuku0dfIcP487G_XvLFGdk,2499
|
|
199
|
-
mistralai/models/completionjobout.py,sha256=
|
|
236
|
+
mistralai/models/completionjobout.py,sha256=U9sxERBs0MGUWV_bmhAZoerNSqicFTweq9mSTNIuyz0,6153
|
|
200
237
|
mistralai/models/completionresponsestreamchoice.py,sha256=gw5-_iOyznuimumDtBV65E3zwUW0KH1OHP55dGCAsAA,1927
|
|
201
238
|
mistralai/models/completiontrainingparameters.py,sha256=psrP9mBbjc0JeaYJV53FqIAmoFu6h-tw5Wa3_8a5RPc,2318
|
|
202
239
|
mistralai/models/completiontrainingparametersin.py,sha256=OlQ95h2ZBlQbtwbZlWrnrNFMYDfbdEcTPvZHB1eQvf4,4576
|
|
203
240
|
mistralai/models/contentchunk.py,sha256=V8-d2u9ReICA6uXZwJTUXu88VfKRIAsLRO6o113Mcw8,1073
|
|
241
|
+
mistralai/models/conversationappendrequest.py,sha256=wYOL4zWCLat6M8bakwtq9_JiUm_DBRR5cnu7DM-dTk4,1282
|
|
242
|
+
mistralai/models/conversationappendstreamrequest.py,sha256=Pa3YahEch0aG1h7sVC-V1rVCpwrCRpWf-2cuJqBu7ig,1327
|
|
243
|
+
mistralai/models/conversationevents.py,sha256=PvH27_rHVVO_XMIqjbaIauguO8eMC3_o649wENUdw94,2767
|
|
244
|
+
mistralai/models/conversationhistory.py,sha256=dSCA9sM2jeqMKbTqTxCUiC_6FIO23zsfind6qpY2MRI,1759
|
|
245
|
+
mistralai/models/conversationinputs.py,sha256=S0jyBRBx2WKxwGQx2QdbXCEWqmLZ1obocxquvCXk9Po,460
|
|
246
|
+
mistralai/models/conversationmessages.py,sha256=kUvWLKuyPyZLQbBd2lJAZ8FQoM0RIGw_PlJc4Cwltwk,873
|
|
247
|
+
mistralai/models/conversationrequest.py,sha256=d8yCjDYB4H8yp_eY2Gsd5Tu63gvVskmRdrMZgj2INNY,4336
|
|
248
|
+
mistralai/models/conversationresponse.py,sha256=Md9E4q-jDVHlHuYe27vHT9Gv6i4AnzNjLSrA9jtcBn8,1646
|
|
249
|
+
mistralai/models/conversationrestartrequest.py,sha256=CYM0lb286pGgZKhHCCKAH1ODysVNo0MOvHabQALQtaQ,1514
|
|
250
|
+
mistralai/models/conversationrestartstreamrequest.py,sha256=ZvMewcQgHlt7oDz6HxvViL8UAcd_4LUEF99MxXDc7r4,1559
|
|
251
|
+
mistralai/models/conversationstreamrequest.py,sha256=S5aqRIL3ZQIFMG1Pul-ZBIkJ1xFulKnPYDfgs66rJ0M,4563
|
|
252
|
+
mistralai/models/conversationusageinfo.py,sha256=XIguPFz_ToZF1xVCr1G96KueW3NtT2977QuuQdVH76w,1931
|
|
204
253
|
mistralai/models/delete_model_v1_models_model_id_deleteop.py,sha256=lnVRFX-G0jkn1dCFC89sXY2Pj_w4QfMDeF1tPjS4hWE,602
|
|
205
254
|
mistralai/models/deletefileout.py,sha256=s3a-H2RgFQ9HX0kYSmP6GwmwE1jghz7dBj-3G0NBVSY,587
|
|
206
255
|
mistralai/models/deletemodelout.py,sha256=W_crO0WtksoKUgq5s9Yh8zS8RxSuyKYQCBt1i8vB1sE,693
|
|
207
256
|
mistralai/models/deltamessage.py,sha256=7NtvEjdmBOl86rwOx7x2fcCCJSzIF8K6-eu-G9Wr9PI,1939
|
|
257
|
+
mistralai/models/documentlibrarytool.py,sha256=EN50sX8wgfAw7mF6W8BkOwKyqRvEzGvHgINn-evuCcg,654
|
|
208
258
|
mistralai/models/documenturlchunk.py,sha256=j3JB_Cy1eIRY7fTJe8AvQrdrLEA6xsJcM1l9_a1Sh68,1704
|
|
209
259
|
mistralai/models/embeddingrequest.py,sha256=5GUp8OUrIAcoSdhJLO8Ue45_kGuzVaCqz85g0ZQx3gM,864
|
|
210
260
|
mistralai/models/embeddingresponse.py,sha256=te6E_LYEzRjHJ9QREmsFp5PeNP2J_8ALVjyb1T20pNA,663
|
|
@@ -228,12 +278,19 @@ mistralai/models/ftmodelcapabilitiesout.py,sha256=Cg2ETH8o3eYm79-BEWweWS53wDqa1D
|
|
|
228
278
|
mistralai/models/ftmodelcard.py,sha256=G3dioHDMOhbI5HIw5gCaxZDb1sCthBzkXIAYMNHwya8,3300
|
|
229
279
|
mistralai/models/function.py,sha256=QaQriwBCCIS65IHO5Ge2OnMW6L1dS-o8JS8zlGYKSRU,534
|
|
230
280
|
mistralai/models/functioncall.py,sha256=VvvBe4bVq1Irqo5t4_n1iq60UF7hLf8tE_GjkbyM8iE,556
|
|
281
|
+
mistralai/models/functioncallentry.py,sha256=LjfvQ1eJC2Hv5jfUNwk3ZPODHyL8nPA2rcBk-cWU_X0,2223
|
|
282
|
+
mistralai/models/functioncallentryarguments.py,sha256=9ouc9p97SGUKrBh_fyPLqP5JYFVdqTVVwzMXoTu-WjA,424
|
|
283
|
+
mistralai/models/functioncallevent.py,sha256=XRCC2yTEurXHRRdgfqz44HcLX0VYDOfxUwojUgnigYc,810
|
|
231
284
|
mistralai/models/functionname.py,sha256=jgd0moI9eORQtEAQI4ROiMSKpWSbCLmK6IhDn7uppKY,467
|
|
285
|
+
mistralai/models/functionresultentry.py,sha256=0vP9JdoQ16zgJuE1pBigu41KJspczm2ZU80vYAJmlEA,2036
|
|
286
|
+
mistralai/models/functiontool.py,sha256=dtVRauH6JGbvOeaFnWjxjDS0h2jbZbnmIQEGx3CczvU,548
|
|
232
287
|
mistralai/models/githubrepositoryin.py,sha256=lor7fCIHPPIo0k1mHwO00RhgMdvxq-VHEFPtSWbGCN0,1702
|
|
233
288
|
mistralai/models/githubrepositoryout.py,sha256=BsngXozaA5MDMtWsZmYpHYisiaAUd8t5Qy70Szqmkbs,1715
|
|
234
289
|
mistralai/models/httpvalidationerror.py,sha256=l47dL2BTqauhRn4_GdSl3TC-QWsdL98HoloMvp6vtRQ,604
|
|
290
|
+
mistralai/models/imagegenerationtool.py,sha256=VCN82DgLJm9ZwvxYsOfRW8WzBAcSoEy2hB823BsPFqg,493
|
|
235
291
|
mistralai/models/imageurl.py,sha256=6Fpt-8V3XYK-3u_Lw85gbMnyFWUdbNhOxjldqCvSpKs,1365
|
|
236
292
|
mistralai/models/imageurlchunk.py,sha256=yHgdAi_jOw-e5aXd4Dlr7YCtJcyw-W3QYol8-MAAT1Y,994
|
|
293
|
+
mistralai/models/inputentries.py,sha256=uT1ZenU1waDOYZkd4iGNBelMWF-G9tdifJZJ6NsUEig,578
|
|
237
294
|
mistralai/models/inputs.py,sha256=KqOi7I6tCs51puGHIcTMXIYhJ6tbGONOLcqUBTNV_MM,1707
|
|
238
295
|
mistralai/models/instructrequest.py,sha256=8Y63pPlhD6l8OhfHgoEykUvruRFCmghP7_w354J9ovY,1323
|
|
239
296
|
mistralai/models/jobin.py,sha256=0mHw2FUWNw5YJ1TROHe7rakL785ziOGeIudUwSQ4mJs,5516
|
|
@@ -253,8 +310,15 @@ mistralai/models/jobsout.py,sha256=WD9_RHk39ftEEgVJ5Pd6d6WQz0QudeNf0mXf1b30xAM,1
|
|
|
253
310
|
mistralai/models/jsonschema.py,sha256=Itbk3BS9M9nnEPwShGyyOCVmqfbP6y44XsIUn6d7cDY,1652
|
|
254
311
|
mistralai/models/legacyjobmetadataout.py,sha256=KrKrOG58lmUiISX886l-6eKV1a3-GvERdMYjCFRMMSg,4487
|
|
255
312
|
mistralai/models/listfilesout.py,sha256=tW2fNabLKcftc5kytkjwVaChlOzWRL4FKtNzDak9MNs,468
|
|
313
|
+
mistralai/models/messageentries.py,sha256=vExZZIyOTkmEi-3Bvw2UG1GwGbGr59U_bX-biwIl0Tk,581
|
|
314
|
+
mistralai/models/messageinputcontentchunks.py,sha256=3F8GoSMWv4_JIGUavlyn8aFnHC7KuPiDDbS0U3sW0y0,827
|
|
315
|
+
mistralai/models/messageinputentry.py,sha256=Hb3R0pT8UIiZ69LJ2lxtZ1yHOwBAq4UTvdeuS6HhHJc,2653
|
|
316
|
+
mistralai/models/messageoutputcontentchunks.py,sha256=LRvAb-Hn0XSKBBRrBdwW7CtMC_X29hzcyPKQ39WlWyo,982
|
|
317
|
+
mistralai/models/messageoutputentry.py,sha256=Ow-V0HXFMEowBed_T09281m_ysK4Q8jvWYqAHYxVGqI,2936
|
|
318
|
+
mistralai/models/messageoutputevent.py,sha256=64MdFYY92WOWofmRm6amp2yO6W7q-dv3uKZ1npr8ONo,2709
|
|
256
319
|
mistralai/models/metricout.py,sha256=dXQMMU4Nk6-Zr06Jx1TWilFi6cOwiVLjSanCFn0cPxo,2034
|
|
257
320
|
mistralai/models/modelcapabilities.py,sha256=No-Dl09zT1sG4MxsWnx4s8Yo1tUeMQ7k-HR_iQFIMFc,703
|
|
321
|
+
mistralai/models/modelconversation.py,sha256=j8bO1HyDRHp4Dp_Bo68jA11z90CIhdt3L8DjfCscuDo,4437
|
|
258
322
|
mistralai/models/modellist.py,sha256=D4Y784kQkx0ARhofFrpEqGLfxa-jTY8ev0TQMrD_n8I,995
|
|
259
323
|
mistralai/models/moderationobject.py,sha256=mmzFEcccsT7G9PjmQrsYMijmICbfBtUpVN_ZisuhYbY,655
|
|
260
324
|
mistralai/models/moderationresponse.py,sha256=kxIRI3UJdddj2Hz-E9q21gKQAbacxZoG4hdoZjrae5M,508
|
|
@@ -264,23 +328,33 @@ mistralai/models/ocrpageobject.py,sha256=s0OzcCA0cLTFYahNOr0-r4ds7WOsXYhEx-QcNLn
|
|
|
264
328
|
mistralai/models/ocrrequest.py,sha256=leCP781cr_ruG_QFtvgn84iDa_CIGEQh-N5xpB0hld0,4242
|
|
265
329
|
mistralai/models/ocrresponse.py,sha256=yFjiKSEtdyYkswhEW3lA51Fg2yAWk0s_tJV_QsYMxR0,2042
|
|
266
330
|
mistralai/models/ocrusageinfo.py,sha256=cWtxHxXyJn3U1qJgG-XU-1xfC7poGHvhVtPqdrFrfII,1571
|
|
331
|
+
mistralai/models/outputcontentchunks.py,sha256=x8Wn5NtHWHjbf_XGTvTOu7kCGZsx-jcrTuifXBkiLbM,954
|
|
267
332
|
mistralai/models/prediction.py,sha256=BgWbbeSi1eD9Rh1xk8srXlRgD7Xooj8nLsbSQ21pNRo,718
|
|
268
333
|
mistralai/models/referencechunk.py,sha256=A9vV5pZv-tUqGlswdu0HOyCYy0Q-UIJY0Oc9ZfM6XJA,519
|
|
334
|
+
mistralai/models/responsedoneevent.py,sha256=NRyPmBrTsYvlblAJaXOPx1l6vA2JLN6_aoNhcBUMdCM,779
|
|
335
|
+
mistralai/models/responseerrorevent.py,sha256=JUlo0JopINhAjKeWDjTBR_ZyxE4IgvZ2uD-UJovqOIk,685
|
|
269
336
|
mistralai/models/responseformat.py,sha256=-TAPGth3_FAiNl-kuE4COI5cSP5fxQ7xewFSV989i58,2225
|
|
270
337
|
mistralai/models/responseformats.py,sha256=O9lwS2M9m53DsRxTC4uRP12SvRhgaQoMjIYsDys5A7s,503
|
|
338
|
+
mistralai/models/responsestartedevent.py,sha256=1VJl_4F5yIpbrX8GwVq6vYxjDFeTf4OdYhqKpQy1r4M,686
|
|
271
339
|
mistralai/models/retrieve_model_v1_models_model_id_getop.py,sha256=N9_JFwiz9tz4zRXJ9c1V0c_anFEVxVzPDoFt2Wrer4M,1388
|
|
272
340
|
mistralai/models/retrievefileout.py,sha256=nAjSITJCHj0daChhpwOZTmps-74mmYZO4IckGA0yIvQ,2644
|
|
273
341
|
mistralai/models/sampletype.py,sha256=zowUiTFxum8fltBs6j__BrFPio-dQdG0CIyLj-5icG8,316
|
|
274
342
|
mistralai/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
|
|
275
343
|
mistralai/models/security.py,sha256=RQn-xHLq3q4OEzrx9BcJMuT49UaCvwABXrqBEcqyKmA,686
|
|
276
344
|
mistralai/models/source.py,sha256=_MSV-LRL2fL7wCUTXEvvsOUIWlOKqPvdZS4rm2Xhs0o,264
|
|
345
|
+
mistralai/models/ssetypes.py,sha256=JyOPkmtiNDqtnCdwaCSGrzP0FgJGYIDwCON-GL8se8s,503
|
|
277
346
|
mistralai/models/systemmessage.py,sha256=ZTDim1ZLHLiCe2zd70PuxcGyUrNhB_aFSMOpOzl5eCI,786
|
|
278
347
|
mistralai/models/textchunk.py,sha256=2VD-TR3NOOWJ9Jzcw_E3ryq0GWz6b5XSP3k5o7oVlnc,448
|
|
279
348
|
mistralai/models/tool.py,sha256=qLY0XE3uk79v3RsJqVpA81A0K9OWtmX6rwVeKal5ARk,681
|
|
280
349
|
mistralai/models/toolcall.py,sha256=T5-3XQ-CKduBKTWwOeSBuaF90yk4yBgqmyLuXVB5uXQ,824
|
|
281
350
|
mistralai/models/toolchoice.py,sha256=dGeb5koPp9eqHQuG1u-kP7T5Od6-cPL2rEe06-dqzcs,1021
|
|
282
351
|
mistralai/models/toolchoiceenum.py,sha256=Ca4ileCwuOjfPzIXLRIxT3RkE5zR7oqV6nXU-UjW0w0,197
|
|
352
|
+
mistralai/models/toolexecutiondoneevent.py,sha256=lZorvXo4lyaPXY_hLPZ5hstDu-BIjYLz2CSf_YGhbM0,920
|
|
353
|
+
mistralai/models/toolexecutionentry.py,sha256=nRkecGyktn0o4lenznKWMQciMlY9Oacb6dYhvRF2WtE,2154
|
|
354
|
+
mistralai/models/toolexecutionstartedevent.py,sha256=I38g-96moe25vHbj86l9SRq_XMgY2iVdr6f0_EHb-lA,849
|
|
355
|
+
mistralai/models/toolfilechunk.py,sha256=E3G98E1IVrxFaf9g2pantigYFw2OYSJbZLcVoSBD_EE,1797
|
|
283
356
|
mistralai/models/toolmessage.py,sha256=zcu054y_vBaGbsCWmq58DsY8aiRrSNwzC4LJz_5kUVg,2038
|
|
357
|
+
mistralai/models/toolreferencechunk.py,sha256=CsZ4gSAYhXDl2Eg66maRvflOAOfgy8ckU8vABClzmNw,1792
|
|
284
358
|
mistralai/models/tooltypes.py,sha256=NcvRsZA_ORf4WY_gn6WjgX6eEXmR2faVG3Q1sLlzdG8,244
|
|
285
359
|
mistralai/models/trainingfile.py,sha256=IlwKP2GL8gL0VHVJ_zUDV-Q0F7obdLzMMRDDJatSjwo,400
|
|
286
360
|
mistralai/models/unarchiveftmodelout.py,sha256=IY0oHKupATBYjAn7Xz1AVqyoSeap1l4nnWeMsLTK7yI,576
|
|
@@ -291,10 +365,12 @@ mistralai/models/usermessage.py,sha256=kjS5HudMsaRNfeUhFFBCyY8l-umlHvGk8wvTIq6-q
|
|
|
291
365
|
mistralai/models/validationerror.py,sha256=DouDBJmBhbW4KPsF5rZEyBdnB_adC-l32kuHC0bvO2I,526
|
|
292
366
|
mistralai/models/wandbintegration.py,sha256=X8V86L3EwheoI-0LI7zwmTtn_4SKz5s62SJN3x5BTxE,2153
|
|
293
367
|
mistralai/models/wandbintegrationout.py,sha256=wohSfHGF8Y9OfIhM1qr9mssLRg63b3CMLDpi4TQKYEk,2111
|
|
368
|
+
mistralai/models/websearchpremiumtool.py,sha256=wU3_oOKRWFLOXrZ-SrqAnGC7kb5uaSjLaTfUthuFoLY,502
|
|
369
|
+
mistralai/models/websearchtool.py,sha256=qpzzCo_nJunxRHlkwJE3vuEd-qPA_cW1X55qEXw3_KY,451
|
|
294
370
|
mistralai/models_.py,sha256=2tiJEMwjixY0Rz5dDt4gDQNEu9peecly2zWmi7YeQhQ,46398
|
|
295
371
|
mistralai/ocr.py,sha256=GvG5SMy85s3xUTGLSnQ3h9GkNYw9KBy8umBnkC9Ciho,11991
|
|
296
372
|
mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
297
|
-
mistralai/sdk.py,sha256=
|
|
373
|
+
mistralai/sdk.py,sha256=MjwSZrvLovNWA2-RUQkD4ughBkrTMzlG7qR0vCDV8Ac,6549
|
|
298
374
|
mistralai/sdkconfiguration.py,sha256=88GOgda6cRq40OSFI5FIarLvGNrMaHTzinPI_GyqTvk,1873
|
|
299
375
|
mistralai/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
300
376
|
mistralai/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
|
@@ -314,7 +390,7 @@ mistralai/utils/serializers.py,sha256=EGH40Pgp3sSK9uM4PxL7_SYzSHtmo-Uy6QIE5xLVg6
|
|
|
314
390
|
mistralai/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
315
391
|
mistralai/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
316
392
|
mistralai/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
|
|
317
|
-
mistralai-1.
|
|
318
|
-
mistralai-1.
|
|
319
|
-
mistralai-1.
|
|
320
|
-
mistralai-1.
|
|
393
|
+
mistralai-1.8.0.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
|
|
394
|
+
mistralai-1.8.0.dist-info/METADATA,sha256=dL-LRZiJrDkGgzpt53FZDtT7zka1PQIEIWGX4sD_Ezo,33379
|
|
395
|
+
mistralai-1.8.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
396
|
+
mistralai-1.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|