Skip to main content
Pre-release

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

Swarmauri

Downloads Hits Python License Release

Swarmauri Azure OpenAI LLM

swarmauri_llm_azureopenai provides provider-native Swarmauri adapters for Azure OpenAI and Microsoft Foundry chat-completions deployments.

Features

  • AzureOpenAIModel directly implements the Swarmauri LLM base contract.
  • AzureOpenAIToolModel directly implements the tool-LLM base contract.
  • API-key authentication with Azure's api-key header.
  • Refreshable Microsoft Entra bearer-token providers kept outside serialized state.
  • Sync, async, streaming, and batch workflows against the current /openai/v1 API.
  • Persistent, injectable Swarmauri HTTP clients with conservative rate-limit retries.

Installation

uv add swarmauri_llm_azureopenai
pip install swarmauri_llm_azureopenai

Usage

import os

from swarmauri_llm_azureopenai import AzureOpenAIModel
from swarmauri_standard.conversations.Conversation import Conversation
from swarmauri_standard.messages.HumanMessage import HumanMessage

conversation = Conversation(messages=[HumanMessage(content="Summarize this release.")])
model = AzureOpenAIModel(
    endpoint=os.environ["AZURE_OPENAI_ENDPOINT"],
    api_key=os.environ["AZURE_OPENAI_API_KEY"],
    name="my-gpt-deployment",
)
model.predict(conversation)
print(conversation.get_last().content)

For keyless authentication, omit api_key and pass a callable as token_provider; it is invoked for every request so refreshed Entra tokens are used. Use AzureOpenAIToolModel with a Swarmauri Toolkit for function calling.

Pass an IHttpClient as http_client to integrate a custom transport or to test without network access. Pass an IHttpRetryPolicy as retry_policy to replace the default policy, which retries safe reads and rate-limited chat submissions without replaying failed POST requests for generic server errors.

See the Azure OpenAI chat REST reference and Entra authentication guide.

Metadata

Release files for swarmauri_llm_azureopenai 0.11.0.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_llm_azureopenai 0.11.0.dev3
File Size Uploaded Provenance Actions
swarmauri_llm_azureopenai-0.11.0.dev3.tar.gz 4.5 kB Without provenance Details for swarmauri_llm_azureopenai-0.11.0.dev3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_llm_azureopenai 0.11.0.dev3
File Interpreter ABI Platform Actions
swarmauri_llm_azureopenai-0.11.0.dev3-py3-none-any.whl Python 3 none any Details for swarmauri_llm_azureopenai-0.11.0.dev3-py3-none-any.whl

Total release size: 12.0 kB

Release files / swarmauri_llm_azureopenai-0.11.0.dev3.tar.gz

Download URL swarmauri_llm_azureopenai-0.11.0.dev3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2c9ee4ce37429b4490f1133527ec9ed3b8a3a526f77ada8849846e8a3a5d13d5
BLAKE2b-256 checksum
How to use checksums
2b8c6094ff6f1a54bf3e7cd3467f64a3f57192269e87aa7be6604500c4e40f94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_llm_azureopenai-0.11.0.dev3-py3-none-any.whl

Download URL swarmauri_llm_azureopenai-0.11.0.dev3-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e06cd39db44141b94726d0207aa23280e1d042a20468229ce3ba2fed60b18868
BLAKE2b-256 checksum
How to use checksums
2f64040da2195202c9a31325a07209492c9018d1efe3766aad3a1ade23f17e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for swarmauri_llm_azureopenai 0.11.0.dev3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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