Installation
This guide will walk you through setting up Workflows and verifying your installation.
Prerequisites
Prerequisites
Before installing the Workflows SDK, ensure you have:
- Python 3.12 or later installed
- uv package manager installed
Install Workflows
Install Workflows
Install the Workflows package from PyPI using uv:
uv add mistralai-workflowsThis will create a virtual environment (if one doesn't exist) and install Workflows along with its core dependencies.
Installing with Optional Dependencies
The Mistral plugin provides native integration with Mistral's AI models and services, including durable agents, tool calling, and multi-agent handoffs:
uv add "mistralai-workflows[mistralai]"Verify Installation
Verify Installation
To verify your installation was successful, run the following command:
uv run python -c "import mistralai.workflows; print('Workflows is installed successfully!')"If you encounter any errors during this step, please check that your Python environment is properly configured.