Skip to main content

Mistral Workflows - Mistral AI Plugin

Native Mistral AI integration for Mistral Workflows.

Overview

This plugin provides Mistral AI-specific activities and models for building AI workflows with the Mistral AI API.

Features

  • Mistral AI Activities: Pre-built activities for chat completions, embeddings, and more
  • Streaming Support: Native streaming for chat responses
  • Model Definitions: Type-safe model configurations
  • Agent Runtime: Build and run autonomous AI agents
  • Session Management: Stateful agent sessions with context persistence
  • MCP Support: Model Context Protocol integration for tool use
  • Tool Execution: Built-in tool calling and execution framework
  • Le Chat UI: Conversational UI components for Le Chat (canvas, assistant messages, UI components)

Installation

pip install mistralai-workflows[mistralai]

Or install directly:

pip install mistralai-workflows-plugins-mistralai

Quick Start

import mistralai.workflows as workflows
import mistralai.workflows.plugins.mistralai as workflows_mistralai


@workflows.workflow.define(name="chat-workflow")
class ChatWorkflow:
    @workflows.workflow.entrypoint
    async def run(self, prompt: str) -> str:
        response = await workflows_mistralai.mistralai_chat_stream(
            workflows_mistralai.ChatCompletionRequest(
                model="mistral-medium-latest",
                messages=[workflows_mistralai.UserMessage(content=prompt)],
            )
        )
        return response.content

Documentation

For full documentation, visit docs.mistral.ai/workflows/getting-started/introduction

Examples

Run examples with:

python -m mistralai_workflow_tests.examples.assist.workflow_multi_turn_chat
python -m mistralai_workflow_tests.examples.assist.workflow_insurance_claims
python -m mistralai_workflow_tests.examples.assist.workflow_local_session_streaming
python -m mistralai_workflow_tests.examples.assist.workflow_travel_agent_streaming
python -m mistralai_workflow_tests.examples.assist.workflow_with_agent
python -m mistralai_workflow_tests.examples.assist.workflow_extract_markdown
python -m mistralai_workflow_tests.examples.assist.workflow_embeddings

License

Apache License 2.0 - see LICENSE for details.

Metadata

Release files for mistralai-workflows-plugins-mistralai 3.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mistralai-workflows-plugins-mistralai 3.15.0
File Size Uploaded
mistralai_workflows_plugins_mistralai-3.15.0.tar.gz 117.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mistralai-workflows-plugins-mistralai 3.15.0
File Interpreter ABI Platform
mistralai_workflows_plugins_mistralai-3.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 184.3 kB

Release files / mistralai_workflows_plugins_mistralai-3.15.0.tar.gz

Download URL mistralai_workflows_plugins_mistralai-3.15.0.tar.gz
Size 117.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6e3c883bf69f501b75c63c85fb07b23663ad439ec613331ff57a63a2be820649
BLAKE2b-256 checksum
How to use checksums
af342a3588c88e2decda545974269602f368c45d2baf7c65490b0dc19b8d8e22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / mistralai_workflows_plugins_mistralai-3.15.0-py3-none-any.whl

Download URL mistralai_workflows_plugins_mistralai-3.15.0-py3-none-any.whl
Size 67.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d9dc7780b9c57f0bf067033280422d16a74552fb81797bd46df2cb134203847
BLAKE2b-256 checksum
How to use checksums
6ba806f3b890e8448d4770ce2f5cd356e491efc4b4c3d3e52465c0294f755fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.15.0 This release

2 release files

3.12.0

2 release files

3.11.0

2 release files

3.10.0

2 release files

3.9.0

2 release files

3.8.0

2 release files

3.7.0

2 release files

3.6.1

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page