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.

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.0a260709.tar.gz (5.1 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.0a260709.tar.gz.

File metadata

  • Download URL: agent_framework_mistral-1.0.0a260709.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":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.0a260709.tar.gz
Algorithm Hash digest
SHA256 652dabd1cccc9e1f72147fc62daf78134f0c71c0f04e0f6d2ee62b2f6143e509
MD5 486e039a51a50c9fb9c0a2e8eedd6563
BLAKE2b-256 2e6e1a532eaad5d6ca54ac13b807c478e43ec1d468e66e87049c04f7e98def10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agent_framework_mistral-1.0.0a260709-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":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.0a260709-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee6e8c86307408e2cf3bb6e4650dcdf953c833a89a82a71d906690444ca40e6
MD5 8fb4d82ff987b0353177cf0e153b3ccd
BLAKE2b-256 e9826a479e1f5258668ee0a4d5dfed274d13ac717e40c6961fb85b13c426d48f

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