Skip to main content

Mistral Workflows - Build reliable AI workflows with Python

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

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-3.8.0a2.tar.gz (570.3 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-3.8.0a2-py3-none-any.whl (355.1 kB view details)

Uploaded Python 3

File details

Details for the file mistralai_workflows-3.8.0a2.tar.gz.

File metadata

  • Download URL: mistralai_workflows-3.8.0a2.tar.gz
  • Upload date:
  • Size: 570.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mistralai_workflows-3.8.0a2.tar.gz
Algorithm Hash digest
SHA256 494ff2f0c876d471ebece5f6276a43b69ef1d9d538a7e6848ac3de089954b709
MD5 c5215ecf552dd7869705b5c30d574544
BLAKE2b-256 4172db3656d996e42a8882f02bd60f1a996488594cdf2c5ba40fc5d0d4907a83

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_workflows-3.8.0a2.tar.gz:

Publisher: workflow-sdk-release.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-3.8.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for mistralai_workflows-3.8.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c1a0dfa5a921e854ee0f2ebb8f20e45fef6c08e7066a6b4c19e011c6d40995b
MD5 6b19bacfaf0b0849b4b1139f8a420348
BLAKE2b-256 8e7fee58bfb195555b26c9843f10344f1255cef051dcd1d3c9facf77de07079f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mistralai_workflows-3.8.0a2-py3-none-any.whl:

Publisher: workflow-sdk-release.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