Skip to content

Commit 7e7c967

Browse files
chore: šŸ Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-sdk-29108619696-1] 2.7.0 (#591)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.763.6 * chore: align package version files to version 2.7.0
1 parent 525fc0b commit 7e7c967

85 files changed

Lines changed: 3706 additions & 418 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: 338 additions & 99 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
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: false
3333
skipResponseBodyAssertions: false
3434
python:
35-
version: 2.6.0
35+
version: 2.7.0
3636
additionalDependencies:
3737
dev:
3838
pytest: ^8.2.2

ā€Ž.speakeasy/workflow.lockā€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ sources:
1616
- speakeasy-mistralai-gcp-sdk-26292830187-1
1717
mistral-openapi:
1818
sourceNamespace: mistral-openapi
19-
sourceRevisionDigest: sha256:b590d544f976dba688dfda05229cee0be00c376a9c3c209d527c1508ff0cb9da
20-
sourceBlobDigest: sha256:293e895fc5dae852d73e3893db3843828c80fb136f03ce835d2c4cff122902ba
19+
sourceRevisionDigest: sha256:45f48569f77b2594726990a398bbfc067534087872b4b354909874aea2947eec
20+
sourceBlobDigest: sha256:79a21b93193e5d5b63b79a79c55aed6778c98b6dfebc96066c5db2fd9580476b
2121
tags:
2222
- latest
23-
- speakeasy-mistralai-sdk-28798837538-1
23+
- speakeasy-mistralai-sdk-29108619696-1
2424
targets:
2525
mistralai-azure-sdk:
2626
source: mistral-azure-source
@@ -39,10 +39,10 @@ targets:
3939
mistralai-sdk:
4040
source: mistral-openapi
4141
sourceNamespace: mistral-openapi
42-
sourceRevisionDigest: sha256:b590d544f976dba688dfda05229cee0be00c376a9c3c209d527c1508ff0cb9da
43-
sourceBlobDigest: sha256:293e895fc5dae852d73e3893db3843828c80fb136f03ce835d2c4cff122902ba
42+
sourceRevisionDigest: sha256:45f48569f77b2594726990a398bbfc067534087872b4b354909874aea2947eec
43+
sourceBlobDigest: sha256:79a21b93193e5d5b63b79a79c55aed6778c98b6dfebc96066c5db2fd9580476b
4444
codeSamplesNamespace: mistral-openapi-code-samples
45-
codeSamplesRevisionDigest: sha256:324af77a787d4b6910a5ee12332fd3095a5ff7fcefe4a2d5aebcfea5935e353e
45+
codeSamplesRevisionDigest: sha256:1287373c382da57b707e755a2eb775ead35bbe8e00b4ed7c8312cf52166a3617
4646
workflow:
4747
workflowVersion: 1.0.0
4848
speakeasyVersion: 1.763.6

ā€ŽREADME.mdā€Ž

Lines changed: 71 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo
3636
* [Providers' SDKs Example Usage](#providers-sdks-example-usage)
3737
* [Available Resources and Operations](#available-resources-and-operations)
3838
* [Server-sent event streaming](#server-sent-event-streaming)
39+
* [Json Streaming](#json-streaming)
3940
* [Pagination](#pagination)
4041
* [File uploads](#file-uploads)
4142
* [Retries](#retries)
@@ -498,7 +499,8 @@ print(res.choices[0].message.content)
498499
### [Beta.Agents](docs/sdks/betaagents/README.md)
499500

500501
* [create](docs/sdks/betaagents/README.md#create) - Create a agent that can be used within a conversation.
501-
* [list](docs/sdks/betaagents/README.md#list) - List agent entities.
502+
* [~~list~~](docs/sdks/betaagents/README.md#list) - List agent entities. :warning: **Deprecated** Use [list_pages](docs/sdks/betaagents/README.md#list_pages) instead.
503+
* [list_pages](docs/sdks/betaagents/README.md#list_pages) - List agent entities, cursor-paginated.
502504
* [get](docs/sdks/betaagents/README.md#get) - Retrieve an agent entity.
503505
* [update](docs/sdks/betaagents/README.md#update) - Update an agent entity.
504506
* [delete](docs/sdks/betaagents/README.md#delete) - Delete an agent entity.
@@ -530,6 +532,7 @@ print(res.choices[0].message.content)
530532
* [create_or_update_workspace_credentials](docs/sdks/connectors/README.md#create_or_update_workspace_credentials) - Create or update workspace credentials for a connector.
531533
* [list_user_credentials](docs/sdks/connectors/README.md#list_user_credentials) - List user credentials for a connector.
532534
* [create_or_update_user_credentials](docs/sdks/connectors/README.md#create_or_update_user_credentials) - Create or update user credentials for a connector.
535+
* [delete_all_user_credentials](docs/sdks/connectors/README.md#delete_all_user_credentials) - Delete all user credentials for a connector.
533536
* [delete_organization_credentials](docs/sdks/connectors/README.md#delete_organization_credentials) - Delete organization credentials for a connector.
534537
* [delete_workspace_credentials](docs/sdks/connectors/README.md#delete_workspace_credentials) - Delete workspace credentials for a connector.
535538
* [delete_user_credentials](docs/sdks/connectors/README.md#delete_user_credentials) - Delete user credentials for a connector.
@@ -689,9 +692,13 @@ print(res.choices[0].message.content)
689692
* [unregister](docs/sdks/searchindexes/README.md#unregister) - Unregister Search Index
690693
* [update_index_metrics](docs/sdks/searchindexes/README.md#update_index_metrics) - Update Index Metrics
691694
* [get_index_detail](docs/sdks/searchindexes/README.md#get_index_detail) - Get Index Details
695+
* [get_index_summary](docs/sdks/searchindexes/README.md#get_index_summary) - Get Index Summary
696+
* [generate_index_summary](docs/sdks/searchindexes/README.md#generate_index_summary) - Generate a summary field for an index
692697
* [set_index_summary](docs/sdks/searchindexes/README.md#set_index_summary) - Set Index Summary
693-
* [get_index_schema_detail](docs/sdks/searchindexes/README.md#get_index_schema_detail) - Get Index Schema Detail
698+
* [get_schema_summary](docs/sdks/searchindexes/README.md#get_schema_summary) - Get Schema Summary
699+
* [generate_schema_summary](docs/sdks/searchindexes/README.md#generate_schema_summary) - Generate a summary field for a schema
694700
* [set_schema_summary](docs/sdks/searchindexes/README.md#set_schema_summary) - Set Schema Summary
701+
* [get_index_schema_detail](docs/sdks/searchindexes/README.md#get_index_schema_detail) - Get Index Schema Detail
695702
* [get_index_schema_file](docs/sdks/searchindexes/README.md#get_index_schema_file) - Get Index Schema File
696703
* [document_lookup](docs/sdks/searchindexes/README.md#document_lookup) - Document Lookup
697704
* [documents_fetch](docs/sdks/searchindexes/README.md#documents_fetch) - Document Fetch
@@ -876,6 +883,41 @@ with Mistral(
876883
[context-manager]: https://book.pythontips.com/en/latest/context_managers.html
877884
<!-- End Server-sent event streaming [eventstream] -->
878885

886+
<!-- Start Json Streaming [jsonl] -->
887+
## Json Streaming
888+
889+
Json Streaming ([jsonl][jsonl-format] / [x-ndjson][x-ndjson]) content type can be used to stream content from certain operations. These operations will expose the stream as [Generator][generator] that
890+
can be consumed using a simple `for` loop. The loop will
891+
terminate when the server no longer has any events to send and closes the
892+
underlying connection.
893+
894+
The stream is also a [Context Manager][context-manager] and can be used with the `with` statement and will close the
895+
underlying connection when the context is exited.
896+
897+
```python
898+
from mistralai.client import Mistral
899+
import os
900+
901+
902+
with Mistral(
903+
api_key=os.getenv("MISTRAL_API_KEY", ""),
904+
) as mistral:
905+
906+
res = mistral.beta.rag.search_indexes.generate_index_summary(index_id="b0cfd77c-9cc3-46b6-ad70-1024386259b9", language="pl")
907+
908+
with res as jsonl_stream:
909+
for event in jsonl_stream:
910+
# handle event
911+
print(event, flush=True)
912+
913+
```
914+
915+
[jsonl-format]: https://jsonlines.org/
916+
[x-ndjson]: https://github.com/ndjson/ndjson-spec
917+
[generator]: https://book.pythontips.com/en/latest/generators.html
918+
[context-manager]: https://book.pythontips.com/en/latest/context_managers.html
919+
<!-- End Json Streaming [jsonl] -->
920+
879921
<!-- Start Pagination [pagination] -->
880922
## Pagination
881923

@@ -1045,8 +1087,8 @@ with Mistral(
10451087

10461088

10471089
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
1048-
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 146 of 243 methods.*
1049-
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 243 methods.*
1090+
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 152 of 249 methods.*
1091+
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 249 methods.*
10501092
* [`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.
10511093

10521094
</details>
@@ -1061,9 +1103,11 @@ with Mistral(
10611103

10621104
You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
10631105

1064-
| Name | Server | Description |
1065-
| ---- | ------------------------ | -------------------- |
1066-
| `eu` | `https://api.mistral.ai` | EU Production server |
1106+
| Name | Server | Description |
1107+
| -------- | --------------------------- | ------------------------ |
1108+
| `global` | `https://api.mistral.ai` | Global Production server |
1109+
| `eu` | `https://api.eu.mistral.ai` | EU Production server |
1110+
| `us` | `https://api.us.mistral.ai` | US Production server |
10671111

10681112
#### Example
10691113

@@ -1073,7 +1117,7 @@ import os
10731117

10741118

10751119
with Mistral(
1076-
server="eu",
1120+
server="global",
10771121
api_key=os.getenv("MISTRAL_API_KEY", ""),
10781122
) as mistral:
10791123

@@ -1218,6 +1262,25 @@ with Mistral(
12181262

12191263
res = res.next()
12201264

1265+
```
1266+
1267+
### Per-Operation Security Schemes
1268+
1269+
Some operations in this SDK require the security scheme to be specified at the request level. For example:
1270+
```python
1271+
from mistralai.client import Mistral, models
1272+
import os
1273+
1274+
1275+
with Mistral() as mistral:
1276+
1277+
res = mistral.beta.users.get_identity(security=models.UsersAPIGetIdentitySecurity(
1278+
dashboard_user_context_auth=os.getenv("MISTRAL_DASHBOARD_USER_CONTEXT_AUTH", ""),
1279+
))
1280+
1281+
# Handle response
1282+
print(res)
1283+
12211284
```
12221285
<!-- End Authentication [security] -->
12231286

ā€ŽRELEASES.mdā€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,4 +758,14 @@ Based on:
758758
### Generated
759759
- [python v2.6.0] .
760760
### Releases
761-
- [PyPI v2.6.0] https://pypi.org/project/mistralai/2.6.0 - .
761+
- [PyPI v2.6.0] https://pypi.org/project/mistralai/2.6.0 - .
762+
763+
## 2026-07-10 16:48:51
764+
### Changes
765+
Based on:
766+
- OpenAPI Doc
767+
- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy
768+
### Generated
769+
- [python v2.7.0] .
770+
### Releases
771+
- [PyPI v2.7.0] https://pypi.org/project/mistralai/2.7.0 - .

ā€Ždocs/models/agentlistpage.mdā€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AgentListPage
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
8+
| `object` | *Optional[Literal["list"]]* | :heavy_minus_sign: | N/A |
9+
| `data` | List[[models.Agent](../models/agent.md)] | :heavy_check_mark: | N/A |
10+
| `next_page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# AgentsAPIV1AgentsListPagesRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
8+
| `page_size` | *Optional[int]* | :heavy_minus_sign: | Number of agents per page |
9+
| `deployment_chat` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A |
10+
| `sources` | List[[models.RequestSource](../models/requestsource.md)] | :heavy_minus_sign: | N/A |
11+
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Filter by agent name |
12+
| `search` | *OptionalNullable[str]* | :heavy_minus_sign: | Search agents by name or ID |
13+
| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
14+
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | N/A |
15+
| `page_token` | *OptionalNullable[str]* | :heavy_minus_sign: | Opaque cursor from a previous response's next_page_token. When set, results page forward from the cursor. |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AgentsAPIV1AgentsListPagesResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
8+
| `result` | [models.AgentListPage](../models/agentlistpage.md) | :heavy_check_mark: | N/A |

ā€Ždocs/models/authenticationconfiguration.mdā€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| Field | Type | Required | Description |
77
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
88
| `name` | *str* | :heavy_check_mark: | N/A |
9+
| `title` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
910
| `authentication_type` | [models.OutboundAuthenticationType](../models/outboundauthenticationtype.md) | :heavy_check_mark: | N/A |
1011
| `scope` | [models.ConsumerType](../models/consumertype.md) | :heavy_check_mark: | N/A |
1112
| `status` | [OptionalNullable[models.CredentialsStatus]](../models/credentialsstatus.md) | :heavy_minus_sign: | N/A |

0 commit comments

Comments
Ā (0)