Skip to content
Closed
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
569 changes: 417 additions & 152 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 2.10.1
version: 2.10.2
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
24 changes: 11 additions & 13 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.796.4
speakeasyVersion: 1.796.1
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
Expand All @@ -16,11 +16,11 @@ sources:
- speakeasy-mistralai-gcp-sdk-26292830187-1
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:ad1adbc7f2f353506f09eca50c0b4e8b7fb67e957c5a10255fdc13d39326a8b7
sourceBlobDigest: sha256:48bb84a33d45aae9398fe68d784075714aee477a0db99cd13b064bab7957dd44
sourceRevisionDigest: sha256:24abc163d5a397c63ba6cc536015a61a845905c75deb15092b9caf1d2295c6a6
sourceBlobDigest: sha256:7b73bd00edf07ddeb98c3971be08b1772f0d8e5487c4fb73e52425951a2d4854
tags:
- latest
- 1.0.0
- speakeasy-mistralai-sdk-35738543562-1
targets:
mistralai-azure-sdk:
source: mistral-azure-source
Expand All @@ -39,25 +39,23 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:ad1adbc7f2f353506f09eca50c0b4e8b7fb67e957c5a10255fdc13d39326a8b7
sourceBlobDigest: sha256:48bb84a33d45aae9398fe68d784075714aee477a0db99cd13b064bab7957dd44
sourceRevisionDigest: sha256:24abc163d5a397c63ba6cc536015a61a845905c75deb15092b9caf1d2295c6a6
sourceBlobDigest: sha256:7b73bd00edf07ddeb98c3971be08b1772f0d8e5487c4fb73e52425951a2d4854
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:16a44c72d8d7bbecf2b558d34615ffb4a639ab0cd29ecfe94500fc7786d69438
codeSamplesRevisionDigest: sha256:1ae27577d25fcc0f81530120ed44241afac853260182c97584caee44602e8f8b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.796.4
speakeasyVersion: 1.796.1
sources:
mistral-azure-source:
inputs:
- location: ../openapi/specs/v2/azure-sdk.yaml
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-azure:v2
mistral-google-cloud-source:
inputs:
- location: ../openapi/specs/v2/google-cloud-sdk.yaml
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-google-cloud:v2
mistral-openapi:
inputs:
- location: ../openapi/specs/v2/main-sdk.yaml
registry:
location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi:v2
targets:
mistralai-azure-sdk:
target: python
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ print(res.choices[0].message.content)
* [unshare_from_organization](docs/sdks/connectors/README.md#unshare_from_organization) - Unshare a connector from the current organization.
* [activate_for_consumer](docs/sdks/connectors/README.md#activate_for_consumer) - Activate a connector for the given consumer (organization, workspace, user).
* [deactivate_for_consumer](docs/sdks/connectors/README.md#deactivate_for_consumer) - Deactivate a connector for the current consumer (at organization, workspace or user level).
* [call_tool](docs/sdks/connectors/README.md#call_tool) - Call Connector Tool
* [~~call_tool~~](docs/sdks/connectors/README.md#call_tool) - Call Connector Tool :warning: **Deprecated**
* [list_tools](docs/sdks/connectors/README.md#list_tools) - List tools for a connector.
* [get_authentication_methods](docs/sdks/connectors/README.md#get_authentication_methods) - Get authentication methods for a connector.
* [list_organization_credentials](docs/sdks/connectors/README.md#list_organization_credentials) - List organization credentials for a connector.
Expand All @@ -530,9 +530,7 @@ print(res.choices[0].message.content)
* [delete_all_user_credentials](docs/sdks/connectors/README.md#delete_all_user_credentials) - Delete all user credentials for a connector.
* [create_credentials](docs/sdks/connectors/README.md#create_credentials) - Create consumer credentials for a connector.
* [update_credentials](docs/sdks/connectors/README.md#update_credentials) - Create or update consumer credentials for a connector.
* [delete_organization_credentials](docs/sdks/connectors/README.md#delete_organization_credentials) - Delete organization credentials for a connector.
* [delete_workspace_credentials](docs/sdks/connectors/README.md#delete_workspace_credentials) - Delete workspace credentials for a connector.
* [delete_user_credentials](docs/sdks/connectors/README.md#delete_user_credentials) - Delete user credentials for a connector.
* [delete_credentials](docs/sdks/connectors/README.md#delete_credentials) - Delete credentials for a consumer.
* [get](docs/sdks/connectors/README.md#get) - Get a connector.
* [update](docs/sdks/connectors/README.md#update) - Update a connector.
* [delete](docs/sdks/connectors/README.md#delete) - Delete a connector.
Expand Down Expand Up @@ -591,6 +589,7 @@ print(res.choices[0].message.content)
* [create_record](docs/sdks/datasets/README.md#create_record) - Add a record to the dataset
* [import_from_file](docs/sdks/datasets/README.md#import_from_file) - Populate the dataset with records from an uploaded file
* [import_from_playground](docs/sdks/datasets/README.md#import_from_playground) - Populate the dataset with records from playground conversations
* [import_from_spans](docs/sdks/datasets/README.md#import_from_spans) - Populate the dataset with records mapped from telemetry spans
* [import_from_dataset_records](docs/sdks/datasets/README.md#import_from_dataset_records) - Populate the dataset with records from another dataset
* [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
* [fetch_task](docs/sdks/datasets/README.md#fetch_task) - Get status of a dataset import task
Expand Down Expand Up @@ -632,6 +631,7 @@ print(res.choices[0].message.content)

* [search_spans](docs/sdks/spans/README.md#search_spans) - Search spans
* [aggregate](docs/sdks/spans/README.md#aggregate) - Aggregate spans
* [aggregate_span_evaluations](docs/sdks/spans/README.md#aggregate_span_evaluations) - Aggregate span evaluations
* [search_span_evaluations](docs/sdks/spans/README.md#search_span_evaluations) - Search span evaluations
* [search_latest_span_evaluations](docs/sdks/spans/README.md#search_latest_span_evaluations) - Search latest span evaluations
* [list_span_fields](docs/sdks/spans/README.md#list_span_fields) - Get span field definitions
Expand Down Expand Up @@ -677,6 +677,10 @@ print(res.choices[0].message.content)
* [ingest_documents](docs/sdks/managedindexes/README.md#ingest_documents) - Ingest documents into a managed index
* [delete_documents](docs/sdks/managedindexes/README.md#delete_documents) - Delete documents from a managed index
* [search](docs/sdks/managedindexes/README.md#search) - Search a managed index
* [navigate](docs/sdks/managedindexes/README.md#navigate) - Navigate to adjacent chunks
* [read](docs/sdks/managedindexes/README.md#read) - Read chunks within a span
* [grep](docs/sdks/managedindexes/README.md#grep) - Grep for a pattern within a source
* [get_chunk](docs/sdks/managedindexes/README.md#get_chunk) - Get a single chunk by id

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

Expand Down Expand Up @@ -782,6 +786,7 @@ print(res.choices[0].message.content)

#### [Workflows.Deployments](docs/sdks/deployments/README.md)

* [unharden_deployment](docs/sdks/deployments/README.md#unharden_deployment) - Unharden Deployment
* [list_deployments](docs/sdks/deployments/README.md#list_deployments) - List Deployments
* [create_deployment](docs/sdks/deployments/README.md#create_deployment) - Create Deployment
* [update_deployment](docs/sdks/deployments/README.md#update_deployment) - Update Deployment
Expand Down Expand Up @@ -1054,8 +1059,8 @@ with Mistral(


**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 162 of 253 methods.*
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 48 of 253 methods.*
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 164 of 258 methods.*
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 50 of 258 methods.*
* [`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.

</details>
Expand Down Expand Up @@ -1250,13 +1255,12 @@ with Mistral(
Some operations in this SDK require the security scheme to be specified at the request level. For example:
```python
from mistralai.client import Mistral, models
import os


with Mistral() as mistral:

res = mistral.beta.users.get_identity(security=models.UsersAPIGetIdentitySecurity(
dashboard_user_context_auth=os.getenv("MISTRAL_DASHBOARD_USER_CONTEXT_AUTH", ""),

))

# Handle response
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,3 +967,14 @@ Based on:

**Relaxed (non-breaking)**
- `ListServiceAccountsV1ServiceAccountsGetRequest.workspace_id` is now optional.


## 2026-09-22 14:29:51
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.796.1 (2.933.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v2.10.2] .
### Releases
- [PyPI v2.10.2] https://pypi.org/project/mistralai/2.10.2 - .
18 changes: 0 additions & 18 deletions docs/models/agentscompletionrequesttool.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
value: models.Tool = /* values here */
```

### `models.WebSearchTool`

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

### `models.WebSearchPremiumTool`

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

### `models.CodeInterpreterTool`

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

### `models.ImageGenerationTool`

```python
Expand Down
18 changes: 0 additions & 18 deletions docs/models/agentscompletionstreamrequesttool.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
value: models.Tool = /* values here */
```

### `models.WebSearchTool`

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

### `models.WebSearchPremiumTool`

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

### `models.CodeInterpreterTool`

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

### `models.ImageGenerationTool`

```python
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AggregateSpanEvaluationsV1ObservabilitySpansEvaluationsAggregatePostRequest


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `from_` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
| `to` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
| `aggregation_request` | [models.AggregationRequest](../models/aggregationrequest.md) | :heavy_check_mark: | N/A |
1 change: 1 addition & 0 deletions docs/models/builtinconnectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ This is an open enum. Unrecognized values will not fail type checks.
- `"code_interpreter"`
- `"image_generation"`
- `"document_library"`
- `"mistral_mcp"`
18 changes: 0 additions & 18 deletions docs/models/chatcompletionrequesttool.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
value: models.Tool = /* values here */
```

### `models.WebSearchTool`

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

### `models.WebSearchPremiumTool`

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

### `models.CodeInterpreterTool`

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

### `models.ImageGenerationTool`

```python
Expand Down
18 changes: 0 additions & 18 deletions docs/models/chatcompletionstreamrequesttool.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@
value: models.Tool = /* values here */
```

### `models.WebSearchTool`

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

### `models.WebSearchPremiumTool`

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

### `models.CodeInterpreterTool`

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

### `models.ImageGenerationTool`

```python
Expand Down
15 changes: 15 additions & 0 deletions docs/models/connectordeletecredentialsconsumerscope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ConnectorDeleteCredentialsConsumerScope

## Example Usage

```python
from mistralai.client.models import ConnectorDeleteCredentialsConsumerScope
value: ConnectorDeleteCredentialsConsumerScope = "user"
```


## Values

- `"user"`
- `"workspace"`
- `"organization"`
10 changes: 10 additions & 0 deletions docs/models/connectordeletecredentialsrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ConnectorDeleteCredentialsRequest


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| `credentials_name` | *str* | :heavy_check_mark: | N/A |
| `connector_id_or_name` | *str* | :heavy_check_mark: | N/A |
| `consumer_scope` | [models.ConnectorDeleteCredentialsConsumerScope](../models/connectordeletecredentialsconsumerscope.md) | :heavy_check_mark: | N/A |

This file was deleted.

9 changes: 0 additions & 9 deletions docs/models/connectordeleteusercredentialsv1request.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/models/connectordeleteworkspacecredentialsv1request.md

This file was deleted.

Loading
Loading