Skip to main content

Mistral Workflows - Build reliable AI workflows with Python

Reason this release was yanked:

Incorrectly tagged as RC instead of alpha

Project description

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

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_workflows.examples.all_workflows_worker

License

Apache License 2.0 - see LICENSE for details.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mistralai_workflows-2.0.0rc12.tar.gz (379.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mistralai_workflows-2.0.0rc12-py3-none-any.whl (176.5 kB view details)

Uploaded Python 3

File details

Details for the file mistralai_workflows-2.0.0rc12.tar.gz.

File metadata

  • Download URL: mistralai_workflows-2.0.0rc12.tar.gz
  • Upload date:
  • Size: 379.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mistralai_workflows-2.0.0rc12.tar.gz
Algorithm Hash digest
SHA256 67796d1dba27fef51f1e2bec7f53a94e77e9616b872fcf61e21d01936f15ae4a
MD5 09a95afb420baa33c74bfb1bc2047d93
BLAKE2b-256 b88dac6b46044c5a8f9dcbc72d2fdaa591d775303c7ce55bbd66fa8a4a7719eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_workflows-2.0.0rc12.tar.gz:

Publisher: workflow_sdk.yaml on mistralai/dashboard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mistralai_workflows-2.0.0rc12-py3-none-any.whl.

File metadata

File hashes

Hashes for mistralai_workflows-2.0.0rc12-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e7b5620d540572c6ff1ab4dce4a1715d086d6ef3ab2e6569ee9a888c5ad313
MD5 6a7a28d1e4dac690cd89de9ce27d319d
BLAKE2b-256 d302a965258a900c4bca6261f600c738c5e3188b98b552977dd4e7f84f4e5a75

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_workflows-2.0.0rc12-py3-none-any.whl:

Publisher: workflow_sdk.yaml on mistralai/dashboard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page