Skip to main content

Swarmauri Openai LLM adapters from swarmauri_standard.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_llm_openai


swarmauri_llm_openai

Provider-specific Openai LLM package for Swarmauri. This package offers direct imports for OpenAIAudio, OpenAIAudioTTS, OpenAIModel, OpenAIReasonModel, OpenAIToolModel while keeping implementation parity with swarmauri_standard.

Features

  • OpenAIAudio adapter exported from swarmauri_standard.llms.OpenAIAudio.
  • OpenAIAudioTTS adapter exported from swarmauri_standard.llms.OpenAIAudioTTS.
  • OpenAIModel adapter exported from swarmauri_standard.llms.OpenAIModel.
  • OpenAIReasonModel adapter exported from swarmauri_standard.llms.OpenAIReasonModel.
  • OpenAIToolModel adapter exported from swarmauri_standard.llms.OpenAIToolModel.
  • Compatible with Python 3.10 through 3.12.

Installation

# uv
uv add swarmauri_llm_openai

# pip
pip install swarmauri_llm_openai

Usage

from swarmauri_llm_openai import OpenAIAudio
from swarmauri_llm_openai import OpenAIAudioTTS
from swarmauri_llm_openai import OpenAIModel
from swarmauri_llm_openai import OpenAIReasonModel
from swarmauri_llm_openai import OpenAIToolModel
from swarmauri_standard.conversations.Conversation import Conversation
from swarmauri_standard.messages.HumanMessage import HumanMessage

conversation = Conversation()
conversation.add_message(HumanMessage(content="Hello from Swarmauri"))

model = OpenAIAudio()
# Configure provider credentials before making requests.
# result = model.predict(conversation=conversation)

Workflow Notes

  • These adapters intentionally mirror the corresponding classes in swarmauri_standard.
  • Use the provider package that matches your deployment and credential setup.
  • Install only the provider packages you need to keep dependencies minimal.

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

swarmauri_llm_openai-0.1.0.dev7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_llm_openai-0.1.0.dev7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_llm_openai-0.1.0.dev7.tar.gz.

File metadata

  • Download URL: swarmauri_llm_openai-0.1.0.dev7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for swarmauri_llm_openai-0.1.0.dev7.tar.gz
Algorithm Hash digest
SHA256 feb4ad724c72601118c3ca3ea9c74a29e2c09ed55d7f5d7bfc24c5ff2b7bb99b
MD5 12adba2cd0fdae6e5dbf9bed15ae58d6
BLAKE2b-256 b2c85c98ccb1aaa37e9ecf0ef128c298c33a9d8746cacfdd5a68973a0e654965

See more details on using hashes here.

File details

Details for the file swarmauri_llm_openai-0.1.0.dev7-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_llm_openai-0.1.0.dev7-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for swarmauri_llm_openai-0.1.0.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 a3ccd787751987cd0da6e79e5f74ebd91be23c163a83118daec68f8ce9f85aac
MD5 e05ecbc57ea31fb3052ec5a408bd4c71
BLAKE2b-256 892061e4e7e852444b7a54e0ecf993fb4cef8a9f270d8bb655612f4aace66b91

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