Mistral Workflows
Build reliable, production-grade AI workflows with Python.
Overview
Mistral Workflows is a Python SDK for building AI-powered workflows with built-in reliability, observability, and scalability. It provides fault tolerance, durability, and exactly-once execution guarantees.
Features
- Simple Python API: Define workflows using Python decorators
- Built-in Reliability: Automatic retries, timeouts, and error handling
- Distributed Execution: Scale workflows across multiple workers
- LLM Integration: Native support for Mistral AI and other LLM providers
- Observability: Distributed tracing, structured logging, and event streaming
- Type Safety: Full type hints and Pydantic validation
Installation
pip install mistralai-workflows
Quick Start
from datetime import timedelta
from mistralai.workflows import workflow, activity
@activity
async def get_weather(city: str) -> str:
# Your activity implementation
return f"Weather in {city}: Sunny"
@workflow.define
class WeatherWorkflow:
@workflow.run
async def run(self, city: str) -> str:
weather = await workflow.execute_activity(
get_weather,
city,
start_to_close_timeout=timedelta(seconds=10),
)
return weather
Documentation
For full documentation, visit docs.mistral.ai/workflows/getting-started/introduction
Examples
The SDK includes comprehensive examples in the mistralai/workflows/examples directory. You can run all examples with a single command:
# Run all example workflows in a single worker
python -m mistralai_workflow_tests.examples.all_workflows_worker
License
Apache License 2.0 - see LICENSE for details.
Metadata
Release files for mistralai-workflows 3.17.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mistralai_workflows-3.17.1.tar.gz | 637.1 kB | With provenance | Details for mistralai_workflows-3.17.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mistralai_workflows-3.17.1-py3-none-any.whl | Python 3 | none | any | Details for mistralai_workflows-3.17.1-py3-none-any.whl |
Total release size: 1.1 MB
Release files / mistralai_workflows-3.17.1.tar.gz
| Download URL | mistralai_workflows-3.17.1.tar.gz |
|---|---|
| Size | 637.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
123359b1262cc3184427fa8d219790495129b6f720b43d6edb45e15b69f91488
|
|
BLAKE2b-256 checksum How to use checksums |
eec950654ef577a4bfc992ac382a3d089dc29c56603ace4f8c69a3499bdce961
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / mistralai_workflows-3.17.1-py3-none-any.whl
| Download URL | mistralai_workflows-3.17.1-py3-none-any.whl |
|---|---|
| Size | 483.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0f13fa18350e7c9e1bad78da27116f85537f049b1ab1527a1982cbfbfa7a255
|
|
BLAKE2b-256 checksum How to use checksums |
bf9b6b1f7c7c676ceaabef25a2e8d578fbfd5a6bcd37803113b1d31b8901683a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for mistralai-workflows 3.17.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for mistralai_workflows-3.17.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.