mistralai-workflows
Mistral Workflows - Build reliable AI workflows with Python
What it is and what it does
Mistral Workflows is a Python framework for defining and executing reliable, distributed AI workflows using decorators and async/await syntax. It wraps Mistral AI LLM calls and custom activities (tasks) into workflows with automatic retry logic, timeouts, and exactly-once execution semantics. The SDK is built on temporalio for durability and state management, integrates the opentelemetry stack for observability, and uses Pydantic for type validation.
You define activities (individual tasks) and workflows (orchestrations of activities) using Python decorators, then execute them with built-in fault tolerance and distributed scaling. It's aimed at production AI applications that need reliability guarantees—retries on failure, timeout enforcement, and structured logging—without manually implementing those patterns.
Use it for:
- Build multi-step LLM pipelines (e.g., research → analysis → report generation) with automatic retries and timeout protection.
- Orchestrate long-running AI tasks across multiple workers with exactly-once semantics and durable state.
- Integrate Mistral AI calls with external APIs and custom Python logic in a single declarative workflow.
- Monitor and trace distributed AI workflows using built-in OpenTelemetry instrumentation.
- Deploy fault-tolerant AI agents that survive worker failures and resume from checkpoints.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Mistral Workflows is a Python SDK for building AI-powered workflows with built-in fault tolerance, distributed execution, and observability using decorators and Pydantic validation.
Yes, if you are building production AI workflows with Mistral AI and need built-in reliability, distributed execution, and observability. The low install friction and active maintenance are strong signals. However, the Beta status, Python 3.12+ requirement, and temporalio dependency complexity mean you should verify that the maturity level and backend setup align with your deployment model before committing to a large workflow system.
Install
mistralai-workflows on PyPI
pip
pip install mistralai-workflowsuv
uv add mistralai-workflowspoetry
poetry add mistralai-workflowsInstalling mistralai-workflows
Before you install
Low install friction with a pure-wheel distribution. Active maintenance (released 3 days ago). Requires Python 3.12–3.14 and pulls in 17 runtime dependencies including temporalio, httpx, and observability libraries (opentelemetry stack), which adds moderate complexity to your environment.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—standard for open-source infrastructure.
Quickstart
pip install mistralai-workflows
from mistralai.workflows import workflow, activity
from datetime import timedelta
@activity
async def get_weather(city: str) -> str:
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
Requires Python 3.12 or later; temporalio dependency may require additional system setup for workflow persistence and distributed coordination.
Verify before relying
- Whether temporalio backend requires external service deployment or can run in-process for development.
- Performance characteristics and scalability limits for concurrent workflows.
- Maturity and stability guarantees given Beta development status.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 17 — asynciolimiter, httpx, jsonpatch, mistralai, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, opentelemetry-instrumentation-httpx, opentelemetry-sdk, orjson, pydantic-settings, pydantic, pyjwt, starlette, structlog, temporalio, tenacity, urllib3 |
| Maintenance | actively maintained — 3 days since the last release |
| First released | |
| Downloads | 196,477/month — #9,785 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mistralai_workflows-3.11.0-py3-none-any.whl
Keywords: ai, llm, mistral, orchestration, temporal, workflows
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
mistralaiPython client SDK for the Mistral AI API,…
unclear · top 1,000 on PyPI
temporalioTemporal Python SDK provides a framework for…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-mistralaiAutomatically captures and traces calls to the…
permissive · top 5,000 on PyPI
vellum-aiVellum is an SDK for building and deploying…
permissive · top 15,000 on PyPI
mistral_commonProvides tokenizers, validation, and…
permissive · top 5,000 on PyPI
simpleflowSimpleflow provides a Python library for…
permissive · top 5,000 on PyPI
langchain-mistralaiConnects Mistral AI language models to…
permissive · top 5,000 on PyPI
langflow-baseLangflow-base is a Python package that provides…
permissive · top 15,000 on PyPI
hatchet-sdkHatchet SDK is the official Python client for…
permissive · top 5,000 on PyPI
mistral-vibeMistral Vibe is a command-line coding assistant…
permissive · top 5,000 on PyPI