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
647 changes: 476 additions & 171 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: 3.6.0
version: 3.7.0
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
46 changes: 25 additions & 21 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,58 +1,62 @@
speakeasyVersion: 1.796.4
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:faccd49c0a52252b8dfcc666a6a1ba3fa5c7eb36f93c58c9b49547c98a254918
sourceBlobDigest: sha256:b6f756ef1d57d93defe29a9f6789c746bd0c3b09e3f9e5fa0344ddf9ca47e5d7
sourceNamespace: mistral-azure-source
sourceRevisionDigest: sha256:770ac07c9b06ef11f4d85ad9c7cc379e0d38d23fa2d9d6eb5651575e02d9026e
sourceBlobDigest: sha256:bfe5b11add50de471036f70a7a10994e81f96e2518daaec547e746a3e59b9524
tags:
- latest
- speakeasy-mistralai-azure-sdk-26292833044-1
- 1.0.0
mistral-google-cloud-source:
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:34edde5edcaf43acc036c9635cf4c60ce4e86f49b3fa2bed8960b995454e8d7c
sourceBlobDigest: sha256:4e9e44f332073700612c1311c0d844241cc4b206140b82d5951879e1efdb0f2d
sourceNamespace: mistral-google-cloud-source
sourceRevisionDigest: sha256:7a28488e88f783adfc2bd9d6c633103cdf76075afe92a11117eb679d170f590f
sourceBlobDigest: sha256:a7a4ba0f3c0dd2d9e85c6cdb04cf142af87d4cc369935db797755d35d52e3be0
tags:
- latest
- speakeasy-mistralai-gcp-sdk-26292830187-1
- 1.0.0
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:a4f1649fc6d293f9cf3652df5b6dea61d16c4824bbc429194f9ec20b9f798a8c
sourceBlobDigest: sha256:16df92d5f5fb961cb5677c2db17092202548f7d2aea908d800653d1b5596cd78
sourceRevisionDigest: sha256:36a8b6581aacc9133bd49339da1d2410a9fa8ee2d3c51a5ec91dc12550cb4221
sourceBlobDigest: sha256:123b96271beeb26e8318ce2f49bb29a3969f6709eeb44d59bd9d754d75825d6a
tags:
- latest
- 1.0.0
targets:
mistralai-azure-sdk:
source: mistral-azure-source
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:faccd49c0a52252b8dfcc666a6a1ba3fa5c7eb36f93c58c9b49547c98a254918
sourceBlobDigest: sha256:b6f756ef1d57d93defe29a9f6789c746bd0c3b09e3f9e5fa0344ddf9ca47e5d7
sourceNamespace: mistral-azure-source
sourceRevisionDigest: sha256:770ac07c9b06ef11f4d85ad9c7cc379e0d38d23fa2d9d6eb5651575e02d9026e
sourceBlobDigest: sha256:bfe5b11add50de471036f70a7a10994e81f96e2518daaec547e746a3e59b9524
codeSamplesNamespace: mistral-openapi-azure-code-samples
codeSamplesRevisionDigest: sha256:aecd1edc929a931b5f9ce9013142d15163e9f4b9f6e11d96e96123177edd0d62
codeSamplesRevisionDigest: sha256:431e4c0d580bb13706ee04dc2664aa732ad3c40c134a3f2cef813c0426a5995d
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:34edde5edcaf43acc036c9635cf4c60ce4e86f49b3fa2bed8960b995454e8d7c
sourceBlobDigest: sha256:4e9e44f332073700612c1311c0d844241cc4b206140b82d5951879e1efdb0f2d
sourceNamespace: mistral-google-cloud-source
sourceRevisionDigest: sha256:7a28488e88f783adfc2bd9d6c633103cdf76075afe92a11117eb679d170f590f
sourceBlobDigest: sha256:a7a4ba0f3c0dd2d9e85c6cdb04cf142af87d4cc369935db797755d35d52e3be0
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
codeSamplesRevisionDigest: sha256:5da37f5c1b536a390868432838e6bcb81db4a4701a44b28f19c6ebb64c3c499f
codeSamplesRevisionDigest: sha256:db64d8f29701a872fa964a12dd7acdedd332a1ddb40af209ad42c70ef19b0a00
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:a4f1649fc6d293f9cf3652df5b6dea61d16c4824bbc429194f9ec20b9f798a8c
sourceBlobDigest: sha256:16df92d5f5fb961cb5677c2db17092202548f7d2aea908d800653d1b5596cd78
sourceRevisionDigest: sha256:36a8b6581aacc9133bd49339da1d2410a9fa8ee2d3c51a5ec91dc12550cb4221
sourceBlobDigest: sha256:123b96271beeb26e8318ce2f49bb29a3969f6709eeb44d59bd9d754d75825d6a
codeSamplesNamespace: mistral-openapi-python-code-samples
codeSamplesRevisionDigest: sha256:0768cbd3d8153d3e6f7de9fc36f22055898671d601895f2f55b95c0fec812490
codeSamplesRevisionDigest: sha256:d2a3d80cb1096f0c10b28e7574fb2df4889d9477d7e6972260b1b1b9c6c8c121
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.796.4
sources:
mistral-azure-source:
inputs:
- location: ../openapi/specs/v2/azure-sdk.yaml
registry:
location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-azure-source
mistral-google-cloud-source:
inputs:
- location: ../openapi/specs/v2/google-cloud-sdk.yaml
registry:
location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-google-cloud-source
mistral-openapi:
inputs:
- location: ../openapi/specs/v2/main-sdk.yaml
Expand Down
72 changes: 45 additions & 27 deletions README-PYPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,24 @@ print(res.choices[0].message.content)
* [update](https://github.com/mistralai/client-python/blob/main/docs/sdks/connectors/README.md#update) - Update a connector.
* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/connectors/README.md#delete) - Delete a connector.

### [Beta.Context.SearchIndexes](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md)

* [create](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#create) - Create a managed index
* [list](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#list) - List managed indexes
* [get](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#get) - Get a managed index
* [update](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#update) - Update a managed index schema
* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#delete) - Delete a managed index
* [ingest_documents](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#ingest_documents) - Ingest documents into a managed index
* [delete_documents](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#delete_documents) - Delete documents from a managed index
* [search](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#search) - Search a managed index
* [navigate](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#navigate) - Navigate to adjacent chunks
* [read](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#read) - Read chunks within a span
* [grep](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#grep) - Grep for a pattern within a source
* [get_chunk](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#get_chunk) - Get a single chunk by id
* [get_index_summary](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#get_index_summary) - Get Managed Index Summary
* [generate_index_summary](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#generate_index_summary) - Generate a summary field for a managed index
* [set_index_summary](https://github.com/mistralai/client-python/blob/main/docs/sdks/contextsearchindexes/README.md#set_index_summary) - Set Managed Index Summary

### [Beta.Conversations](https://github.com/mistralai/client-python/blob/main/docs/sdks/conversations/README.md)

* [start](https://github.com/mistralai/client-python/blob/main/docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
Expand Down Expand Up @@ -730,30 +748,12 @@ print(res.choices[0].message.content)
* [register](https://github.com/mistralai/client-python/blob/main/docs/sdks/ingestionpipelineconfigurations/README.md#register) - Register Config
* [update_run_info](https://github.com/mistralai/client-python/blob/main/docs/sdks/ingestionpipelineconfigurations/README.md#update_run_info) - Update Run Info

### [Beta.Rag.ManagedIndexes](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md)

* [create](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#create) - Create a managed index
* [list](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#list) - List managed indexes
* [get](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#get) - Get a managed index
* [update](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#update) - Update a managed index schema
* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#delete) - Delete a managed index
* [ingest_documents](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#ingest_documents) - Ingest documents into a managed index
* [delete_documents](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#delete_documents) - Delete documents from a managed index
* [search](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#search) - Search a managed index
* [navigate](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#navigate) - Navigate to adjacent chunks
* [read](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#read) - Read chunks within a span
* [grep](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#grep) - Grep for a pattern within a source
* [get_chunk](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#get_chunk) - Get a single chunk by id
* [get_index_summary](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#get_index_summary) - Get Managed Index Summary
* [generate_index_summary](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#generate_index_summary) - Generate a summary field for a managed index
* [set_index_summary](https://github.com/mistralai/client-python/blob/main/docs/sdks/managedindexes/README.md#set_index_summary) - Set Managed Index Summary

### [Beta.Rag.SearchIndexes](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md)

* [get_deployment_summaries](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md#get_deployment_summaries) - Get Deployment Summaries
* [register_deployment](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md#register_deployment) - Register (or re-register) a search index
* [unregister_deployment](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md#unregister_deployment) - Unregister Deployment
* [update_index_metrics](https://github.com/mistralai/client-python/blob/main/docs/sdks/searchindexes/README.md#update_index_metrics) - Update Index Metrics
### [Beta.Rag.SearchIndexes](https://github.com/mistralai/client-python/blob/main/docs/sdks/ragsearchindexes/README.md)

* [get_deployment_summaries](https://github.com/mistralai/client-python/blob/main/docs/sdks/ragsearchindexes/README.md#get_deployment_summaries) - Get Deployment Summaries
* [register_deployment](https://github.com/mistralai/client-python/blob/main/docs/sdks/ragsearchindexes/README.md#register_deployment) - Register (or re-register) a search index
* [unregister_deployment](https://github.com/mistralai/client-python/blob/main/docs/sdks/ragsearchindexes/README.md#unregister_deployment) - Unregister Deployment
* [update_index_metrics](https://github.com/mistralai/client-python/blob/main/docs/sdks/ragsearchindexes/README.md#update_index_metrics) - Update Index Metrics

### [Beta.ServiceAccounts](https://github.com/mistralai/client-python/blob/main/docs/sdks/serviceaccounts/README.md)

Expand All @@ -778,13 +778,29 @@ print(res.choices[0].message.content)
* [get_version](https://github.com/mistralai/client-python/blob/main/docs/sdks/skills/README.md#get_version) - GetSkillVersion
* [update_version_metadata](https://github.com/mistralai/client-python/blob/main/docs/sdks/skills/README.md#update_version_metadata) - UpdateSkillVersionMetadata

### [Beta.Triggers](https://github.com/mistralai/client-python/blob/main/docs/sdks/triggers/README.md)

* [create](https://github.com/mistralai/client-python/blob/main/docs/sdks/triggers/README.md#create) - Create Trigger
* [list](https://github.com/mistralai/client-python/blob/main/docs/sdks/triggers/README.md#list) - List Triggers
* [get](https://github.com/mistralai/client-python/blob/main/docs/sdks/triggers/README.md#get) - Get Trigger
* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/triggers/README.md#delete) - Delete Trigger
* [list_events](https://github.com/mistralai/client-python/blob/main/docs/sdks/triggers/README.md#list_events) - List Trigger Events

### [Beta.Users](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md)

* [get_identity](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#get_identity) - Get Identity
* [list_organizations](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#list_organizations) - List Organizations
* [list_workspaces](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#list_workspaces) - List Workspaces
* [whoami](https://github.com/mistralai/client-python/blob/main/docs/sdks/users/README.md#whoami) - Whoami

### [Beta.Webhooks](https://github.com/mistralai/client-python/blob/main/docs/sdks/webhooks/README.md)

* [list](https://github.com/mistralai/client-python/blob/main/docs/sdks/webhooks/README.md#list) - List Webhooks
* [create](https://github.com/mistralai/client-python/blob/main/docs/sdks/webhooks/README.md#create) - Create Webhook
* [get](https://github.com/mistralai/client-python/blob/main/docs/sdks/webhooks/README.md#get) - Get Webhook
* [delete](https://github.com/mistralai/client-python/blob/main/docs/sdks/webhooks/README.md#delete) - Delete Webhook
* [get_signing_secret](https://github.com/mistralai/client-python/blob/main/docs/sdks/webhooks/README.md#get_signing_secret) - Get Webhook Signing Secret

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

* [complete](https://github.com/mistralai/client-python/blob/main/docs/sdks/chat/README.md#complete) - Chat Completion
Expand Down Expand Up @@ -853,6 +869,7 @@ print(res.choices[0].message.content)
* [get_workflow_registration](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflows/README.md#get_workflow_registration) - Get Workflow Registration
* [bulk_archive_workflows](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflows/README.md#bulk_archive_workflows) - Bulk Archive Workflows
* [bulk_unarchive_workflows](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflows/README.md#bulk_unarchive_workflows) - Bulk Unarchive Workflows
* [add_workflow_tags](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflows/README.md#add_workflow_tags) - Add Workflow Tags
* [archive_workflow](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflows/README.md#archive_workflow) - Archive Workflow
* [unarchive_workflow](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflows/README.md#unarchive_workflow) - Unarchive Workflow

Expand All @@ -868,6 +885,7 @@ print(res.choices[0].message.content)
* [start_deployment](https://github.com/mistralai/client-python/blob/main/docs/sdks/deployments/README.md#start_deployment) - Start Deployment
* [restart_deployment](https://github.com/mistralai/client-python/blob/main/docs/sdks/deployments/README.md#restart_deployment) - Restart Deployment
* [list_deployment_workers](https://github.com/mistralai/client-python/blob/main/docs/sdks/deployments/README.md#list_deployment_workers) - List Deployment Workers
* [get_deployment_archive](https://github.com/mistralai/client-python/blob/main/docs/sdks/deployments/README.md#get_deployment_archive) - Get Deployment Archive
* [get_deployment_logs](https://github.com/mistralai/client-python/blob/main/docs/sdks/deployments/README.md#get_deployment_logs) - Get Deployment Logs
* [stream_deployment_logs](https://github.com/mistralai/client-python/blob/main/docs/sdks/deployments/README.md#stream_deployment_logs) - Stream Deployment Logs

Expand Down Expand Up @@ -986,7 +1004,7 @@ with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

res = mistral.beta.rag.managed_indexes.generate_index_summary(language="en", index_name="<value>", force=False)
res = mistral.beta.context.search_indexes.generate_index_summary(language="en", index_name="<value>", force=False)

with res as jsonl_stream:
for event in jsonl_stream:
Expand Down Expand Up @@ -1166,8 +1184,8 @@ with Mistral(


**Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/mistralerror.py)**:
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 178 of 290 methods.*
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 65 of 290 methods.*
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 189 of 302 methods.*
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 65 of 302 methods.*
* [`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.

</details>
Expand Down
Loading
Loading