Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,595 changes: 851 additions & 744 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ sources:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:74d0de7750f6a1878b68c9da683eba7a447d7c367131d0cb8f5c3b1e05829624
sourceBlobDigest: sha256:41e8354c48993fc29be68959d835ea4f8e0cc1d4b4fbd527afcd970bc02c62a2
sourceRevisionDigest: sha256:e7d34d32a0628265f449daf831ddfd0be4c2b7b6a3e1bd007e09eeaf31463ad9
sourceBlobDigest: sha256:06d9ba9bb8e77f944708396f2eeb3d277386d208b04c19eff076f776a513a0b1
tags:
- latest
targets:
Expand All @@ -25,21 +25,21 @@ targets:
sourceRevisionDigest: sha256:d303e640ad565cc8a9801519b20dc7eab226efdfdab951c11256962d9e479f74
sourceBlobDigest: sha256:6e4c789de61b2c9c604bf581e0abbadae90e360491d95ec4247678f4f70cee87
codeSamplesNamespace: mistral-openapi-azure-code-samples
codeSamplesRevisionDigest: sha256:0109302b87fa17b0103ef1e372fae76356811b3c552103e659bd5373d537d759
codeSamplesRevisionDigest: sha256:5d4050f385362297b6cb8e3cd65b0e958276c7e47ab197f2dd369cf5781fb923
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:351c4d392b8b2220c337a207e98ed5665ed27fd85de854871a70c4bc2b9c0784
sourceBlobDigest: sha256:d79b21f70efb93b0cd261d2044939a288beaf8707a7caae86aca5c4d5de3821b
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
codeSamplesRevisionDigest: sha256:09bb7cbf291076170d228116db05d1c9606af541b301b6564609c4d76633258a
codeSamplesRevisionDigest: sha256:745c1232ee38ee058e4698aa5224bd6a05a420d1424bac7a5fdf4e636b435c69
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:74d0de7750f6a1878b68c9da683eba7a447d7c367131d0cb8f5c3b1e05829624
sourceBlobDigest: sha256:41e8354c48993fc29be68959d835ea4f8e0cc1d4b4fbd527afcd970bc02c62a2
sourceRevisionDigest: sha256:e7d34d32a0628265f449daf831ddfd0be4c2b7b6a3e1bd007e09eeaf31463ad9
sourceBlobDigest: sha256:06d9ba9bb8e77f944708396f2eeb3d277386d208b04c19eff076f776a513a0b1
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:f37fb6188ad25957bef4cadaa03f454a4f9ab0c045db633a46d9cc89af145ba2
codeSamplesRevisionDigest: sha256:3380eea536758d4d3d0029db826cdcc2df1648aa2e98f3d4edf1f9bf80a8ae46
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.685.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ help:
# For production, use GitHub Actions: .github/workflows/sdk_generation_mistralai_sdk.yaml
# This uses the Speakeasy CLI version defined in .speakeasy/workflow.yaml
test-generate:
speakeasy run --skip-versioning
speakeasy run --skip-versioning --target all

# Update the Speakeasy CLI version (the code generator tool).
# This modifies speakeasyVersion in .speakeasy/workflow.yaml and regenerates the SDK.
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,14 @@ with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

res = mistral.beta.conversations.start_stream(inputs="<value>", stream=True, completion_args={
res = mistral.beta.conversations.start_stream(inputs=[
{
"object": "entry",
"type": "function.result",
"tool_call_id": "<id>",
"result": "<value>",
},
], stream=True, completion_args={
"response_format": {
"type": "text",
},
Expand Down Expand Up @@ -642,7 +649,7 @@ with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

res = mistral.beta.libraries.documents.upload(library_id="f973c54e-979a-4464-9d36-8cc31beb21fe", file={
res = mistral.beta.libraries.documents.upload(library_id="a02150d9-5ee0-4877-b62c-28b1fcdf3b76", file={
"file_name": "example.file",
"content": open("example.file", "rb"),
})
Expand Down
16 changes: 16 additions & 0 deletions docs/models/agentconversationgetconversationresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# AgentConversationGetConversationResponse


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name given to the conversation. |
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description of the what the conversation is about. |
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Custom metadata for the conversation. |
| `object` | [Optional[models.AgentsAPIV1ConversationsGetAgentConversationObject]](../models/agentsapiv1conversationsgetagentconversationobject.md) | :heavy_minus_sign: | N/A |
| `id` | *str* | :heavy_check_mark: | N/A |
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
| `agent_id` | *str* | :heavy_check_mark: | N/A |
| `agent_version` | [OptionalNullable[models.AgentsAPIV1ConversationsGetAgentVersion]](../models/agentsapiv1conversationsgetagentversion.md) | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CreateOrUpdateAgentAliasRequest
# AgentsAPIV1AgentsCreateOrUpdateAliasRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DeleteAgentAliasRequest
# AgentsAPIV1AgentsDeleteAliasRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DeleteAgentRequest
# AgentsAPIV1AgentsDeleteRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetAgentAgentVersion
# AgentsAPIV1AgentsGetAgentVersion


## Supported Types
Expand Down
9 changes: 9 additions & 0 deletions docs/models/agentsapiv1agentsgetrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# AgentsAPIV1AgentsGetRequest


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `agent_id` | *str* | :heavy_check_mark: | N/A |
| `agent_version` | [OptionalNullable[models.AgentsAPIV1AgentsGetAgentVersion]](../models/agentsapiv1agentsgetagentversion.md) | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetAgentVersionRequest
# AgentsAPIV1AgentsGetVersionRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ListAgentsRequest
# AgentsAPIV1AgentsListRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ListAgentAliasesRequest
# AgentsAPIV1AgentsListVersionAliasesRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ListAgentVersionsRequest
# AgentsAPIV1AgentsListVersionsRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UpdateAgentRequest
# AgentsAPIV1AgentsUpdateRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UpdateAgentVersionRequest
# AgentsAPIV1AgentsUpdateVersionRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AppendConversationRequest
# AgentsAPIV1ConversationsAppendRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AppendConversationStreamRequest
# AgentsAPIV1ConversationsAppendStreamRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DeleteConversationRequest
# AgentsAPIV1ConversationsDeleteRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# AgentsAPIV1ConversationsGetAgentConversationObject


## Values

| Name | Value |
| -------------- | -------------- |
| `CONVERSATION` | conversation |
17 changes: 17 additions & 0 deletions docs/models/agentsapiv1conversationsgetagentversion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# AgentsAPIV1ConversationsGetAgentVersion


## Supported Types

### `str`

```python
value: str = /* values here */
```

### `int`

```python
value: int = /* values here */
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# AgentsAPIV1ConversationsGetModelConversationObject


## Values

| Name | Value |
| -------------- | -------------- |
| `CONVERSATION` | conversation |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetConversationRequest
# AgentsAPIV1ConversationsGetRequest


## Fields
Expand Down
41 changes: 41 additions & 0 deletions docs/models/agentsapiv1conversationsgettool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# AgentsAPIV1ConversationsGetTool


## Supported Types

### `models.CodeInterpreterTool`

```python
value: models.CodeInterpreterTool = /* values here */
```

### `models.DocumentLibraryTool`

```python
value: models.DocumentLibraryTool = /* values here */
```

### `models.FunctionTool`

```python
value: models.FunctionTool = /* values here */
```

### `models.ImageGenerationTool`

```python
value: models.ImageGenerationTool = /* values here */
```

### `models.WebSearchTool`

```python
value: models.WebSearchTool = /* values here */
```

### `models.WebSearchPremiumTool`

```python
value: models.WebSearchPremiumTool = /* values here */
```

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetConversationHistoryRequest
# AgentsAPIV1ConversationsHistoryRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ListConversationsRequest
# AgentsAPIV1ConversationsListRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ListConversationsResponse
# AgentsAPIV1ConversationsListResponse


## Supported Types
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetConversationMessagesRequest
# AgentsAPIV1ConversationsMessagesRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RestartConversationRequest
# AgentsAPIV1ConversationsRestartRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RestartConversationStreamRequest
# AgentsAPIV1ConversationsRestartStreamRequest


## Fields
Expand Down
20 changes: 20 additions & 0 deletions docs/models/basemodelcardgetmodelresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# BaseModelCardGetModelResponse


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `id` | *str* | :heavy_check_mark: | N/A |
| `object` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `created` | *Optional[int]* | :heavy_minus_sign: | N/A |
| `owned_by` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `capabilities` | [models.ModelCapabilities](../models/modelcapabilities.md) | :heavy_check_mark: | N/A |
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `max_context_length` | *Optional[int]* | :heavy_minus_sign: | N/A |
| `aliases` | List[*str*] | :heavy_minus_sign: | N/A |
| `deprecation` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
| `deprecation_replacement_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `default_model_temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
| `type` | *Literal["base"]* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/batchjobout.md → docs/models/batchjob.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BatchJobOut
# BatchJob


## Fields
Expand Down
Loading