Skip to main content

Mistral AI integration for Microsoft Agent Framework.

Project description

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

Project details


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.0b260721.tar.gz (5.4 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.0b260721.tar.gz.

File metadata

  • Download URL: agent_framework_mistral-1.0.0b260721.tar.gz
  • Upload date:
  • Size: 5.4 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.0b260721.tar.gz
Algorithm Hash digest
SHA256 dc6d20932b0076ce7ef56961b31b0dfedce319650a4d71ae8db66245d5325551
MD5 bbc0e12ba35ec0a98f351e2642c59905
BLAKE2b-256 6c46271ab7aa66f25bfdde25537ad34c7c8ad7b7130d19a51a057457de70580a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_framework_mistral-1.0.0b260721-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.0b260721-py3-none-any.whl
Algorithm Hash digest
SHA256 c64179b1923d9cc8b5d540ee51483f71bfd662b4549281c3a10f1061e5117bbc
MD5 3138fa58d63a7c8b622cf0117e368dbc
BLAKE2b-256 128dd6d3a3b917281ed16f5dfdf3bd98ff4a362dbe366463247166a3e09d740e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page