Skip to content

Commit c53dcfd

Browse files
maiengineeringspeakeasybotactions-user
authored
chore: šŸ Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy/mistralai-sdk-30634845471-2] 2.9.0 (#602)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.763.6 * chore: align package version files to version 2.9.0 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
1 parent 7749c84 commit c53dcfd

204 files changed

Lines changed: 3829 additions & 6830 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: 448 additions & 475 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.8.0
35+
version: 2.9.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:fd92984251174794ab0d1ec7c6017aefc443f6813027e8e1b1dbfaa320983e84
20-
sourceBlobDigest: sha256:962e580a9814038b9f41f068c4a5f8b4d422a7962d35db0df435409e4e11b15a
19+
sourceRevisionDigest: sha256:293d745b03e7c944b3ccfb5f6e1372ec824069bdc25592b4b45469728d6fc294
20+
sourceBlobDigest: sha256:b4f7beb29b3a6d96dc5ce15245afddd8274c66c6fa927d251f0e1702f34f8eec
2121
tags:
2222
- latest
23-
- speakeasy-mistralai-sdk-30366638574-1
23+
- speakeasy-mistralai-sdk-30634845471-2
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:fd92984251174794ab0d1ec7c6017aefc443f6813027e8e1b1dbfaa320983e84
43-
sourceBlobDigest: sha256:962e580a9814038b9f41f068c4a5f8b4d422a7962d35db0df435409e4e11b15a
42+
sourceRevisionDigest: sha256:293d745b03e7c944b3ccfb5f6e1372ec824069bdc25592b4b45469728d6fc294
43+
sourceBlobDigest: sha256:b4f7beb29b3a6d96dc5ce15245afddd8274c66c6fa927d251f0e1702f34f8eec
4444
codeSamplesNamespace: mistral-openapi-code-samples
45-
codeSamplesRevisionDigest: sha256:a3bf79f5a7244ad0b7fc3bb3b646f86ac1bd56a04c681c43e42c6818e905ae01
45+
codeSamplesRevisionDigest: sha256:ffc1a4dc8fe9420b468bc17027aec056715a280a97ecba0de928bd7aa8e2d426
4646
workflow:
4747
workflowVersion: 1.0.0
4848
speakeasyVersion: 1.763.6

ā€ŽREADME.mdā€Ž

Lines changed: 17 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ 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)
4039
* [Pagination](#pagination)
4140
* [File uploads](#file-uploads)
4241
* [Retries](#retries)
@@ -518,12 +517,8 @@ print(res.choices[0].message.content)
518517
* [get_auth_url](docs/sdks/connectors/README.md#get_auth_url) - Get the auth URL for a connector.
519518
* [share](docs/sdks/connectors/README.md#share) - Share a private connector to the current workspace.
520519
* [unshare](docs/sdks/connectors/README.md#unshare) - Unshare a connector from the current workspace.
521-
* [activate_for_organization](docs/sdks/connectors/README.md#activate_for_organization) - Activate a connector for an organization.
522-
* [deactivate_for_organization](docs/sdks/connectors/README.md#deactivate_for_organization) - Deactivate a connector for an organization.
523-
* [activate_for_workspace](docs/sdks/connectors/README.md#activate_for_workspace) - Activate a connector for a workspace.
524-
* [deactivate_for_workspace](docs/sdks/connectors/README.md#deactivate_for_workspace) - Deactivate a connector for a workspace.
525-
* [activate_for_user](docs/sdks/connectors/README.md#activate_for_user) - Activate a connector for the current user.
526-
* [deactivate_for_user](docs/sdks/connectors/README.md#deactivate_for_user) - Deactivate a connector for the current user.
520+
* [activate_for_consumer](docs/sdks/connectors/README.md#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user).
521+
* [deactivate_for_consumer](docs/sdks/connectors/README.md#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level).
527522
* [call_tool](docs/sdks/connectors/README.md#call_tool) - Call Connector Tool
528523
* [list_tools](docs/sdks/connectors/README.md#list_tools) - List tools for a connector.
529524
* [get_authentication_methods](docs/sdks/connectors/README.md#get_authentication_methods) - Get authentication methods for a connector.
@@ -615,24 +610,24 @@ print(res.choices[0].message.content)
615610
* [delete](docs/sdks/datasets/README.md#delete) - Delete a dataset
616611
* [update](docs/sdks/datasets/README.md#update) - Patch dataset
617612
* [list_records](docs/sdks/datasets/README.md#list_records) - List existing records in the dataset
618-
* [create_record](docs/sdks/datasets/README.md#create_record) - Add a conversation to the dataset
619-
* [import_from_campaign](docs/sdks/datasets/README.md#import_from_campaign) - Populate the dataset with a campaign
620-
* [import_from_explorer](docs/sdks/datasets/README.md#import_from_explorer) - Populate the dataset with samples from the explorer
621-
* [import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with samples from an uploaded file
622-
* [import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with samples from the playground
623-
* [import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with samples from another dataset
613+
* [create_record](docs/sdks/datasets/README.md#create_record) - Add a record to the dataset
614+
* [import_from_campaign](docs/sdks/datasets/README.md#import_from_campaign) - Populate the dataset with records from a campaign
615+
* [import_from_explorer](docs/sdks/datasets/README.md#import_from_explorer) - Populate the dataset with records from the explorer
616+
* [import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with records from an uploaded file
617+
* [import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with records from playground conversations
618+
* [import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with records from another dataset
624619
* [export_to_jsonl](docs/sdks/datasets/README.md#export_to_jsonl) - Export to the Files API and retrieve presigned URL to download the resulting JSONL file
625620
* [fetch_task](docs/sdks/datasets/README.md#fetch_task) - Get status of a dataset import task
626621
* [list_tasks](docs/sdks/datasets/README.md#list_tasks) - List import tasks for the given dataset
627622

628623
#### [Beta.Observability.Datasets.Records](docs/sdks/records/README.md)
629624

630-
* [fetch](docs/sdks/records/README.md#fetch) - Get the content of a given conversation from a dataset
625+
* [fetch](docs/sdks/records/README.md#fetch) - Get the content of a given dataset record
631626
* [delete](docs/sdks/records/README.md#delete) - Delete a record from a dataset
632627
* [bulk_delete](docs/sdks/records/README.md#bulk_delete) - Delete multiple records from datasets
633628
* [judge](docs/sdks/records/README.md#judge) - Run Judge on a dataset record based on the given options
634-
* [update_payload](docs/sdks/records/README.md#update_payload) - Update a dataset record conversation payload
635-
* [update_properties](docs/sdks/records/README.md#update_properties) - Update conversation properties
629+
* [update_payload](docs/sdks/records/README.md#update_payload) - Update a dataset record payload
630+
* [update_properties](docs/sdks/records/README.md#update_properties) - Update dataset record properties
636631

637632
### [Beta.Observability.Judges](docs/sdks/judges/README.md)
638633

@@ -652,6 +647,7 @@ print(res.choices[0].message.content)
652647
### [Beta.Observability.Spans](docs/sdks/spans/README.md)
653648

654649
* [search_spans](docs/sdks/spans/README.md#search_spans) - Search spans
650+
* [aggregate](docs/sdks/spans/README.md#aggregate) - Aggregate spans
655651
* [search_span_evaluations](docs/sdks/spans/README.md#search_span_evaluations) - Search span evaluations
656652
* [search_latest_span_evaluations](docs/sdks/spans/README.md#search_latest_span_evaluations) - Search latest span evaluations
657653
* [list_span_fields](docs/sdks/spans/README.md#list_span_fields) - Get span field definitions
@@ -662,6 +658,7 @@ print(res.choices[0].message.content)
662658
### [Beta.Observability.Traces](docs/sdks/traces/README.md)
663659

664660
* [search](docs/sdks/traces/README.md#search) - Search traces
661+
* [aggregate](docs/sdks/traces/README.md#aggregate) - Aggregate traces
665662
* [get_trace_fields](docs/sdks/traces/README.md#get_trace_fields) - Get trace field definitions
666663
* [get_trace_by_id](docs/sdks/traces/README.md#get_trace_by_id) - Get trace by id
667664
* [get_trace_spans](docs/sdks/traces/README.md#get_trace_spans) - Get trace spans
@@ -688,21 +685,10 @@ print(res.choices[0].message.content)
688685

689686
### [Beta.Rag.SearchIndexes](docs/sdks/searchindexes/README.md)
690687

688+
* [get_indexes](docs/sdks/searchindexes/README.md#get_indexes) - Get Index Summaries
691689
* [register](docs/sdks/searchindexes/README.md#register) - Register (or re-register) a search index
692-
* [get_index_summaries](docs/sdks/searchindexes/README.md#get_index_summaries) - Get Index Summaries
693690
* [unregister](docs/sdks/searchindexes/README.md#unregister) - Unregister Search Index
694691
* [update_index_metrics](docs/sdks/searchindexes/README.md#update_index_metrics) - Update Index Metrics
695-
* [get_index_detail](docs/sdks/searchindexes/README.md#get_index_detail) - Get Index Details
696-
* [get_index_summary](docs/sdks/searchindexes/README.md#get_index_summary) - Get Index Summary
697-
* [generate_index_summary](docs/sdks/searchindexes/README.md#generate_index_summary) - Generate a summary field for an index
698-
* [set_index_summary](docs/sdks/searchindexes/README.md#set_index_summary) - Set Index Summary
699-
* [get_schema_summary](docs/sdks/searchindexes/README.md#get_schema_summary) - Get Schema Summary
700-
* [generate_schema_summary](docs/sdks/searchindexes/README.md#generate_schema_summary) - Generate a summary field for a schema
701-
* [set_schema_summary](docs/sdks/searchindexes/README.md#set_schema_summary) - Set Schema Summary
702-
* [get_index_schema_detail](docs/sdks/searchindexes/README.md#get_index_schema_detail) - Get Index Schema Detail
703-
* [get_index_schema_file](docs/sdks/searchindexes/README.md#get_index_schema_file) - Get Index Schema File
704-
* [document_lookup](docs/sdks/searchindexes/README.md#document_lookup) - Document Lookup
705-
* [documents_fetch](docs/sdks/searchindexes/README.md#documents_fetch) - Document Fetch
706692

707693
### [Beta.Skills](docs/sdks/skills/README.md)
708694

@@ -792,6 +778,7 @@ print(res.choices[0].message.content)
792778
* [stop_deployment](docs/sdks/deployments/README.md#stop_deployment) - Stop Deployment
793779
* [start_deployment](docs/sdks/deployments/README.md#start_deployment) - Start Deployment
794780
* [restart_deployment](docs/sdks/deployments/README.md#restart_deployment) - Restart Deployment
781+
* [list_deployment_workers](docs/sdks/deployments/README.md#list_deployment_workers) - List Deployment Workers
795782
* [get_deployment_logs](docs/sdks/deployments/README.md#get_deployment_logs) - Get Deployment Logs
796783
* [stream_deployment_logs](docs/sdks/deployments/README.md#stream_deployment_logs) - Stream Deployment Logs
797784

@@ -890,41 +877,6 @@ with Mistral(
890877
[context-manager]: https://book.pythontips.com/en/latest/context_managers.html
891878
<!-- End Server-sent event streaming [eventstream] -->
892879

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

@@ -1094,8 +1046,8 @@ with Mistral(
10941046

10951047

10961048
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
1097-
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 159 of 256 methods.*
1098-
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 57 of 256 methods.*
1049+
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 145 of 244 methods.*
1050+
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 59 of 244 methods.*
10991051
* [`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.
11001052

11011053
</details>

ā€ŽRELEASES.mdā€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,4 +798,14 @@ Based on:
798798
### Generated
799799
- [python v2.8.0] .
800800
### Releases
801-
- [PyPI v2.8.0] https://pypi.org/project/mistralai/2.8.0 - .
801+
- [PyPI v2.8.0] https://pypi.org/project/mistralai/2.8.0 - .
802+
803+
## 2026-07-31 13:37:49
804+
### Changes
805+
Based on:
806+
- OpenAPI Doc
807+
- Speakeasy CLI 1.763.6 (2.884.13) https://github.com/speakeasy-api/speakeasy
808+
### Generated
809+
- [python v2.9.0] .
810+
### Releases
811+
- [PyPI v2.9.0] https://pypi.org/project/mistralai/2.9.0 - .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AggregateSpansV1ObservabilitySpansAggregatePostRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8+
| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
9+
| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
10+
| `aggregation_request` | [models.AggregationRequest](../models/aggregationrequest.md) | :heavy_check_mark: | N/A |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AggregateTracesV1ObservabilityTracesAggregatePostRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8+
| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
9+
| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
10+
| `aggregation_request` | [models.AggregationRequest](../models/aggregationrequest.md) | :heavy_check_mark: | N/A |

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Aggregation
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
8+
| `data` | List[[models.AggregationRow](../models/aggregationrow.md)] | :heavy_check_mark: | N/A |
9+
| `meta` | [models.AggregationMeta](../models/aggregationmeta.md) | :heavy_check_mark: | N/A |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AggregationMeta
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8+
| `from_timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
9+
| `to_timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
10+
| `granularity_seconds` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
Ā (0)