Skip to content

Commit 1f25e81

Browse files
github-actions[bot]speakeasybotactions-user
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.4 (#426)
* ## Python SDK Changes: * `mistral.beta.observability.judges.judge_conversation()`: **Added** * `mistral.chat.complete()`: `request.guardrails` **Added** * `mistral.chat.stream()`: `request.guardrails` **Added** * `mistral.agents.complete()`: `request.guardrails` **Added** * `mistral.agents.stream()`: `request.guardrails` **Added** * chore: align pyproject.toml and uv.lock to version 2.0.4 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: GitHub Action <action@github.com>
1 parent 93b9b7a commit 1f25e81

302 files changed

Lines changed: 1874 additions & 1839 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 628 additions & 594 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ generation:
3131
generateNewTests: false
3232
skipResponseBodyAssertions: false
3333
python:
34-
version: 2.0.3
34+
version: 2.0.4
3535
additionalDependencies:
3636
dev:
3737
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.754.0
1+
speakeasyVersion: 1.729.0
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
@@ -16,10 +16,11 @@ sources:
1616
- speakeasy-sdk-regen-1773084660
1717
mistral-openapi:
1818
sourceNamespace: mistral-openapi
19-
sourceRevisionDigest: sha256:430c8c8196f530e54f438a623547c32d06017080aac046b240edbaeff28a2ebd
20-
sourceBlobDigest: sha256:3fb3b90d358c986a52bbf12154853ba827cd614548d494c95569bedda3e57fe4
19+
sourceRevisionDigest: sha256:912f3562f7fdf81bc106ff05fb66439fb268a54baad2fb92ca056236a6fe6754
20+
sourceBlobDigest: sha256:27e5876fdfe7a37c2a566a8ce1d87b9d0de66f8377060801dc2d2068c636225f
2121
tags:
2222
- latest
23+
- speakeasy-sdk-regen-1773674493
2324
targets:
2425
mistralai-azure-sdk:
2526
source: mistral-azure-source
@@ -38,10 +39,10 @@ targets:
3839
mistralai-sdk:
3940
source: mistral-openapi
4041
sourceNamespace: mistral-openapi
41-
sourceRevisionDigest: sha256:430c8c8196f530e54f438a623547c32d06017080aac046b240edbaeff28a2ebd
42-
sourceBlobDigest: sha256:3fb3b90d358c986a52bbf12154853ba827cd614548d494c95569bedda3e57fe4
42+
sourceRevisionDigest: sha256:912f3562f7fdf81bc106ff05fb66439fb268a54baad2fb92ca056236a6fe6754
43+
sourceBlobDigest: sha256:27e5876fdfe7a37c2a566a8ce1d87b9d0de66f8377060801dc2d2068c636225f
4344
codeSamplesNamespace: mistral-openapi-code-samples
44-
codeSamplesRevisionDigest: sha256:966edb4cf55689daff001456afa27a7370113efcc5c0ba0896782f65b1e6fba5
45+
codeSamplesRevisionDigest: sha256:bfa28ff34d53c5ef36ff7e7c90b4f170cc1f1a2e47b7afe453f42084e1db74ad
4546
workflow:
4647
workflowVersion: 1.0.0
4748
speakeasyVersion: 1.729.0

README-PYPI.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ print(res.choices[0].message.content)
600600
* [fetch](https://github.com/mistralai/client-python/blob/main/docs/sdks/judges/README.md#fetch) - Get judge by id
601601
* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/judges/README.md#delete) - Delete a judge
602602
* [update](https://github.com/mistralai/client-python/blob/main/docs/sdks/judges/README.md#update) - Update a judge
603+
* [judge_conversation](https://github.com/mistralai/client-python/blob/main/docs/sdks/judges/README.md#judge_conversation) - Run a saved judge on a conversation
603604

604605
### [Chat](https://github.com/mistralai/client-python/blob/main/docs/sdks/chat/README.md)
605606

@@ -683,7 +684,7 @@ with Mistral(
683684
"tool_call_id": "<id>",
684685
"result": "<value>",
685686
},
686-
], completion_args={
687+
], stream=True, completion_args={
687688
"response_format": {
688689
"type": "text",
689690
},
@@ -835,8 +836,8 @@ with Mistral(
835836

836837

837838
**Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/mistralerror.py)**:
838-
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 60 of 121 methods.*
839-
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 40 of 121 methods.*
839+
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 60 of 122 methods.*
840+
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 122 methods.*
840841
* [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
841842

842843
</details>

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ print(res.choices[0].message.content)
600600
* [fetch](docs/sdks/judges/README.md#fetch) - Get judge by id
601601
* [delete](docs/sdks/judges/README.md#delete) - Delete a judge
602602
* [update](docs/sdks/judges/README.md#update) - Update a judge
603+
* [judge_conversation](docs/sdks/judges/README.md#judge_conversation) - Run a saved judge on a conversation
603604

604605
### [Chat](docs/sdks/chat/README.md)
605606

@@ -683,7 +684,7 @@ with Mistral(
683684
"tool_call_id": "<id>",
684685
"result": "<value>",
685686
},
686-
], completion_args={
687+
], stream=True, completion_args={
687688
"response_format": {
688689
"type": "text",
689690
},
@@ -835,8 +836,8 @@ with Mistral(
835836

836837

837838
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
838-
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 60 of 121 methods.*
839-
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 40 of 121 methods.*
839+
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 60 of 122 methods.*
840+
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 122 methods.*
840841
* [`ResponseValidationError`](./src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
841842

842843
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,14 @@ Based on:
428428
### Generated
429429
- [python v2.0.3] .
430430
### Releases
431-
- [PyPI v2.0.3] https://pypi.org/project/mistralai/2.0.3 - .
431+
- [PyPI v2.0.3] https://pypi.org/project/mistralai/2.0.3 - .
432+
433+
## 2026-03-16 15:21:10
434+
### Changes
435+
Based on:
436+
- OpenAPI Doc
437+
- Speakeasy CLI 1.729.0 (2.841.0) https://github.com/speakeasy-api/speakeasy
438+
### Generated
439+
- [python v2.0.4] .
440+
### Releases
441+
- [PyPI v2.0.4] https://pypi.org/project/mistralai/2.0.4 - .

docs/models/agentscompletionrequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
| `prediction` | [Optional[models.Prediction]](../models/prediction.md) | :heavy_minus_sign: | Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content. | |
2121
| `parallel_tool_calls` | *Optional[bool]* | :heavy_minus_sign: | N/A | |
2222
| `prompt_mode` | [OptionalNullable[models.MistralPromptMode]](../models/mistralpromptmode.md) | :heavy_minus_sign: | Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used. | |
23+
| `guardrails` | List[[models.GuardrailConfig](../models/guardrailconfig.md)] | :heavy_minus_sign: | N/A | |
2324
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to use for this completion. | |

0 commit comments

Comments
 (0)