Skip to content
Merged
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
748 changes: 300 additions & 448 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 1.12.3
version: 1.12.4
additionalDependencies:
dev:
pytest: ^8.2.2
Expand All @@ -39,7 +39,7 @@ python:
- Mistral
baseErrorName: MistralError
clientServerStatusCodesAsErrors: true
constFieldCasing: upper
constFieldCasing: normal
defaultErrorName: SDKError
description: Python Client SDK for the Mistral AI API.
enableCustomCodeRegions: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ sources:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:68e24d172497384492f80cf1ec23b4fc8ad59fa199d511ef160a0fbc64aa0647
sourceBlobDigest: sha256:de8480a3fb194b27118816d5960d922d9ee87d35c00768fa64086bf232c8cef7
sourceRevisionDigest: sha256:c29a0b26265277cc94c25291ddb42a83d5ce6dd3d1fb195ddfb142684200e5ba
sourceBlobDigest: sha256:088d68c900b858d8056dfbb9df4f6bc51dfebb62e947a2a5a47004c61b9fea39
tags:
- latest
- speakeasy-sdk-regen-v1-1771338985
- speakeasy-sdk-regen-fix-const-field-casing-normal-v1-1771609036
targets:
mistralai-azure-sdk:
source: mistral-azure-source
Expand All @@ -37,10 +37,10 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:68e24d172497384492f80cf1ec23b4fc8ad59fa199d511ef160a0fbc64aa0647
sourceBlobDigest: sha256:de8480a3fb194b27118816d5960d922d9ee87d35c00768fa64086bf232c8cef7
sourceRevisionDigest: sha256:c29a0b26265277cc94c25291ddb42a83d5ce6dd3d1fb195ddfb142684200e5ba
sourceBlobDigest: sha256:088d68c900b858d8056dfbb9df4f6bc51dfebb62e947a2a5a47004c61b9fea39
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:017e32d4895b127fb81874746a264c38fb6e7f9afb57f482416bbc9be1208501
codeSamplesRevisionDigest: sha256:544546b133aca1fea03d3874b8ebc68206115f16fb0047949d9ea64b162674ed
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.685.0
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ with Mistral(

res = mistral.chat.complete(model="mistral-large-latest", messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], stream=False, response_format={
"type": "text",
Expand Down Expand Up @@ -175,8 +175,8 @@ async def main():

res = await mistral.chat.complete_async(model="mistral-large-latest", messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], stream=False, response_format={
"type": "text",
Expand Down Expand Up @@ -254,8 +254,8 @@ with Mistral(

res = mistral.agents.complete(messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], agent_id="<id>", stream=False, response_format={
"type": "text",
Expand Down Expand Up @@ -283,8 +283,8 @@ async def main():

res = await mistral.agents.complete_async(messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], agent_id="<id>", stream=False, response_format={
"type": "text",
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,14 @@ Based on:
### Generated
- [python v1.12.3] .
### Releases
- [PyPI v1.12.3] https://pypi.org/project/mistralai/1.12.3 - .
- [PyPI v1.12.3] https://pypi.org/project/mistralai/1.12.3 - .

## 2026-02-20 17:36:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.12.4] .
### Releases
- [PyPI v1.12.4] https://pypi.org/project/mistralai/1.12.4 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ with Mistral(

res = mistral.chat.complete(model="mistral-large-latest", messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], stream=False, response_format={
"type": "text",
Expand Down Expand Up @@ -44,8 +44,8 @@ async def main():

res = await mistral.chat.complete_async(model="mistral-large-latest", messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], stream=False, response_format={
"type": "text",
Expand Down Expand Up @@ -123,8 +123,8 @@ with Mistral(

res = mistral.agents.complete(messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], agent_id="<id>", stream=False, response_format={
"type": "text",
Expand Down Expand Up @@ -152,8 +152,8 @@ async def main():

res = await mistral.agents.complete_async(messages=[
{
"content": "Who is the best French painter? Answer in one short sentence.",
"role": "user",
"content": "Who is the best French painter? Answer in one short sentence.",
},
], agent_id="<id>", stream=False, response_format={
"type": "text",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `handoffs` | List[*str*] | :heavy_minus_sign: | N/A |
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
| `object` | [Optional[models.AgentObject]](../models/agentobject.md) | :heavy_minus_sign: | N/A |
| `object` | *Optional[Literal["agent"]]* | :heavy_minus_sign: | N/A |
| `id` | *str* | :heavy_check_mark: | N/A |
| `version` | *int* | :heavy_check_mark: | N/A |
| `versions` | List[*int*] | :heavy_check_mark: | N/A |
Expand Down
2 changes: 1 addition & 1 deletion docs/models/agentconversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| `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.AgentConversationObject]](../models/agentconversationobject.md) | :heavy_minus_sign: | N/A |
| `object` | *Optional[Literal["conversation"]]* | :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 |
Expand Down
8 changes: 0 additions & 8 deletions docs/models/agentconversationobject.md

This file was deleted.

16 changes: 8 additions & 8 deletions docs/models/agenthandoffdoneevent.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `type` | [Optional[models.AgentHandoffDoneEventType]](../models/agenthandoffdoneeventtype.md) | :heavy_minus_sign: | N/A |
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
| `output_index` | *Optional[int]* | :heavy_minus_sign: | N/A |
| `id` | *str* | :heavy_check_mark: | N/A |
| `next_agent_id` | *str* | :heavy_check_mark: | N/A |
| `next_agent_name` | *str* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `type` | *Optional[Literal["agent.handoff.done"]]* | :heavy_minus_sign: | N/A |
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
| `output_index` | *Optional[int]* | :heavy_minus_sign: | N/A |
| `id` | *str* | :heavy_check_mark: | N/A |
| `next_agent_id` | *str* | :heavy_check_mark: | N/A |
| `next_agent_name` | *str* | :heavy_check_mark: | N/A |
8 changes: 0 additions & 8 deletions docs/models/agenthandoffdoneeventtype.md

This file was deleted.

Loading
Loading