Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Get Started with Microsoft Agent Framework Mistral AI

Please install this package:

pip install agent-framework-mistral --pre

and see the README for more information.

See the Mistral embedding sample for a runnable example.

Embedding Client

The MistralEmbeddingClient provides embedding generation using Mistral AI models.

Quick Start

from agent_framework.mistral import MistralEmbeddingClient

# Using environment variables (MISTRAL_API_KEY, MISTRAL_EMBEDDING_MODEL)
client = MistralEmbeddingClient()

# Or passing parameters directly
client = MistralEmbeddingClient(
    model="mistral-embed",
    api_key="your-api-key",
)

# Generate embeddings
result = await client.get_embeddings(["Hello, world!", "How are you?"])
for embedding in result:
    print(f"Dimensions: {embedding.dimensions}")
    print(f"Vector: {embedding.vector[:5]}...")

Configuration

Environment Variable Description
MISTRAL_API_KEY Your Mistral AI API key
MISTRAL_EMBEDDING_MODEL Embedding model name (e.g., mistral-embed)
MISTRAL_SERVER_URL Optional server URL override

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_framework_mistral-1.0.0b260730.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file agent_framework_mistral-1.0.0b260730.tar.gz.

File metadata

  • Download URL: agent_framework_mistral-1.0.0b260730.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agent_framework_mistral-1.0.0b260730.tar.gz
Algorithm Hash digest
SHA256 279c9d359b3a4e93b1324e2328e3e05e9f8de7b216aeaa3c5efe245b263580fa
MD5 63a6d922f8406e56e664f4fd7f6bc114
BLAKE2b-256 023cd4c1bc043ba1283987c993290d3bf70bb4dd26bb5d9670a76d286494973a

See more details on using hashes here.

File details

Details for the file agent_framework_mistral-1.0.0b260730-py3-none-any.whl.

File metadata

  • Download URL: agent_framework_mistral-1.0.0b260730-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agent_framework_mistral-1.0.0b260730-py3-none-any.whl
Algorithm Hash digest
SHA256 33f028b139616d68c00ea0b6d69a79e8a9823e9898cd903c3dfaa22302eaf186
MD5 7a42f47cfaea6703054d31a8f9554f84
BLAKE2b-256 78bfe6213568af782498505c2c5cca9d5fe1d9dacf15c3047c9153f661fb1b9f

See more details on using hashes here.

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