Metadata-Version: 2.4
Name: mistralai-workflows
Version: 2.0.0b2
Summary: Mistral Workflows - Build reliable AI workflows with Python
Project-URL: Homepage, https://mistral.ai
Project-URL: Documentation, https://docs-internal-frameworks.mistral.ai/workflows
Author-email: Mistral AI <support@mistral.ai>
License: Apache-2.0
License-File: LICENSE
Keywords: ai,llm,mistral,orchestration,temporal,workflows
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <3.13,>=3.12
Requires-Dist: aioboto3<13.0.0,>=12.4.0
Requires-Dist: aiocache>=0.12.3
Requires-Dist: asynciolimiter>=1.2.0
Requires-Dist: authlib>=1.6.5
Requires-Dist: azure-storage-blob[aio]<12.25.0,>=12.24.0
Requires-Dist: cryptography>=41.0.0
Requires-Dist: gcloud-aio-storage<10.0.0,>=9.3.0
Requires-Dist: griffe>=1.14.0
Requires-Dist: httpx>=0.27.0
Requires-Dist: jinja2>=3.1.6
Requires-Dist: jsonpatch>=1.33
Requires-Dist: mcp>=1.12.4
Requires-Dist: mistralai>=1.8.1
Requires-Dist: nats-py>=2.10.0
Requires-Dist: opentelemetry-api<2.0.0,>=1.30.0
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.30.0
Requires-Dist: opentelemetry-instrumentation-aiohttp-client<0.59,>=0.51b0
Requires-Dist: opentelemetry-instrumentation-asyncio<0.59,>=0.51b0
Requires-Dist: opentelemetry-instrumentation-fastapi<0.59,>=0.51b0
Requires-Dist: opentelemetry-instrumentation-httpx<0.59,>=0.51b0
Requires-Dist: opentelemetry-sdk<2.0.0,>=1.30.0
Requires-Dist: orjson<4.0.0,>=3.10.15
Requires-Dist: pydantic-settings>=2.7.1
Requires-Dist: pydantic>=2.12.0
Requires-Dist: structlog<26,>=24
Requires-Dist: temporalio==1.18.1
Requires-Dist: tenacity>=9.1.2
Requires-Dist: tqdm>=4.67.1
Requires-Dist: types-tqdm>=4.67.0.20250516
Provides-Extra: agents
Requires-Dist: mistralai-workflows-plugins-agents<2.1.0,>=2.0.0rc1; extra == 'agents'
Requires-Dist: mistralai-workflows-plugins-mistralai<2.1.0,>=2.0.0rc1; extra == 'agents'
Provides-Extra: all-plugins
Requires-Dist: mistralai-workflows-plugins-agents<2.1.0,>=2.0.0rc1; extra == 'all-plugins'
Requires-Dist: mistralai-workflows-plugins-mistralai<2.1.0,>=2.0.0rc1; extra == 'all-plugins'
Provides-Extra: mistralai
Requires-Dist: mistralai-workflows-plugins-mistralai<2.1.0,>=2.0.0rc1; extra == 'mistralai'
Description-Content-Type: text/markdown

# 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

```bash
pip install mistralai-workflows
```

## Quick Start

```python
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](https://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:

```bash
# Run all example workflows in a single worker
python -m mistralai_workflows.examples.all_workflows_worker
```

## License

Apache License 2.0 - see [LICENSE](LICENSE) for details.
