semvec/pypi-packages huggingface dataset:
mistralai-workflows 2.0.0b5
Mistral Workflows - Build reliable AI workflows with Python
License: Apache-2.0
Requires Python: <3.13,>=3.12
Keywords: ai, llm, mistral, orchestration, temporal, workflows

# 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.
mistralai-workflows-plugins-mistralai 2.0.0b5
Mistral AI plugin for Mistral Workflows - Provides native Mistral AI integration
License: Apache-2.0
Requires Python: <3.13,>=3.12
Keywords: ai, llm, mistral, plugin, workflows

# 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

```bash
pip install mistralai-workflows[mistralai]
```

Or install directly:

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

## Quick Start

```python
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](https://docs-internal-frameworks.mistral.ai/workflows)

## Examples

Run examples with:

```bash
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](LICENSE) for details.