Mistral AI plugin for Mistral Workflows - Provides native Mistral AI integration
Project description
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
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-internal-frameworks.mistral.ai/workflows
Examples
Run examples with:
python -m mistralai.workflows.examples.assist.workflow_multi_turn_chat
python -m mistralai.workflows.examples.assist.workflow_insurance_claims
python -m mistralai.workflows.examples.assist.workflow_local_session_streaming
python -m mistralai.workflows.examples.assist.workflow_travel_agent_streaming
python -m mistralai.workflows.examples.assist.workflow_with_agent
python -m mistralai.workflows.examples.assist.workflow_extract_markdown
python -m mistralai.workflows.examples.assist.workflow_embeddings
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mistralai_workflows_plugins_mistralai-3.0.0a2.tar.gz.
File metadata
- Download URL: mistralai_workflows_plugins_mistralai-3.0.0a2.tar.gz
- Upload date:
- Size: 82.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1cc03f53001a5069f5f15a2182e973102a01e0c87469ede05038587b163866
|
|
| MD5 |
76e96b67b8f0fe394523cbe109f9fa9a
|
|
| BLAKE2b-256 |
e85b1e2f249bcbd001a3e33cd9735b40bacbe05ec64cf527e47c49186f7f44b0
|
Provenance
The following attestation bundles were made for mistralai_workflows_plugins_mistralai-3.0.0a2.tar.gz:
Publisher:
workflow-sdk-plugins.yaml on mistralai/dashboard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mistralai_workflows_plugins_mistralai-3.0.0a2.tar.gz -
Subject digest:
bd1cc03f53001a5069f5f15a2182e973102a01e0c87469ede05038587b163866 - Sigstore transparency entry: 1157415039
- Sigstore integration time:
-
Permalink:
mistralai/dashboard@105a40bc4436961ae4f109d4649de011829d380d -
Branch / Tag:
refs/tags/workflows/v3.0.0a2 - Owner: https://github.com/mistralai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow-sdk-plugins.yaml@105a40bc4436961ae4f109d4649de011829d380d -
Trigger Event:
push
-
Statement type:
File details
Details for the file mistralai_workflows_plugins_mistralai-3.0.0a2-py3-none-any.whl.
File metadata
- Download URL: mistralai_workflows_plugins_mistralai-3.0.0a2-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3df0aa71744e022d60b23803f26085964063a9bac73fb73f883672e5a787bab
|
|
| MD5 |
f7d016af236228bfc0402d8ae82770b3
|
|
| BLAKE2b-256 |
f7d1c8a5a372b488f158976d121c437b53183e2a8a86901fe35291f8e12c29dc
|
Provenance
The following attestation bundles were made for mistralai_workflows_plugins_mistralai-3.0.0a2-py3-none-any.whl:
Publisher:
workflow-sdk-plugins.yaml on mistralai/dashboard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mistralai_workflows_plugins_mistralai-3.0.0a2-py3-none-any.whl -
Subject digest:
e3df0aa71744e022d60b23803f26085964063a9bac73fb73f883672e5a787bab - Sigstore transparency entry: 1157415208
- Sigstore integration time:
-
Permalink:
mistralai/dashboard@105a40bc4436961ae4f109d4649de011829d380d -
Branch / Tag:
refs/tags/workflows/v3.0.0a2 - Owner: https://github.com/mistralai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow-sdk-plugins.yaml@105a40bc4436961ae4f109d4649de011829d380d -
Trigger Event:
push
-
Statement type: