Skip to main content

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.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mistralai-workflows 3.16.0
File Size Uploaded
mistralai_workflows-3.16.0.tar.gz 610.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mistralai-workflows 3.16.0
File Interpreter ABI Platform
mistralai_workflows-3.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / mistralai_workflows-3.16.0.tar.gz

Download URL mistralai_workflows-3.16.0.tar.gz
Size 610.6 kB
Tags Source
SHA-256 checksum
How to use checksums
af83dd79ae52a912ca630eb678c6b12887847bff21c78a66662ab84b3101dfdb
BLAKE2b-256 checksum
How to use checksums
26a78003f8164134dd514469d1c8bd49de521a10c99c3f266e718cf65679e5aa
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 Oct 15, 2026.

Transparency log

Release files / mistralai_workflows-3.16.0-py3-none-any.whl

Download URL mistralai_workflows-3.16.0-py3-none-any.whl
Size 474.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11b533649f8ad745085b2050709e24c33347d0c4f9861d4614a5492b201e709d
BLAKE2b-256 checksum
How to use checksums
fa9c9d3628bb2815dbd7d46883019fd30ee7f949708e0b171dcfa912dae0616b
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 Oct 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.16.0 This release

2 release files

3.15.0

2 release files

3.12.0

2 release files

3.11.0

2 release files

3.10.0

2 release files

3.9.0

2 release files

3.8.0

2 release files

3.7.0

2 release files

3.6.1

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page