Skip to main content

Swarmauri Ai21 LLM adapters from swarmauri_standard.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_llm_ai21


swarmauri_llm_ai21

Provider-specific Ai21 LLM package for Swarmauri. This package offers direct imports for AI21StudioModel while keeping implementation parity with swarmauri_standard.

Features

  • AI21StudioModel adapter exported from swarmauri_standard.llms.AI21StudioModel.
  • Compatible with Python 3.10 through 3.12.

Installation

# uv
uv add swarmauri_llm_ai21

# pip
pip install swarmauri_llm_ai21

Usage

from swarmauri_llm_ai21 import AI21StudioModel
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 = AI21StudioModel()
# 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_ai21-0.1.0.dev10.tar.gz (6.3 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_ai21-0.1.0.dev10-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_llm_ai21-0.1.0.dev10.tar.gz.

File metadata

  • Download URL: swarmauri_llm_ai21-0.1.0.dev10.tar.gz
  • Upload date:
  • Size: 6.3 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_ai21-0.1.0.dev10.tar.gz
Algorithm Hash digest
SHA256 31d948059d4208474a037651147202dcf2ba5d99e478b497022469e3791c995b
MD5 578f44bf355eed13caeef7edf37ef8f6
BLAKE2b-256 cc3993f2b5e807780a0cb3b540740bf0ab535bee58d48c5146c8ffa8832a858d

See more details on using hashes here.

File details

Details for the file swarmauri_llm_ai21-0.1.0.dev10-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_llm_ai21-0.1.0.dev10-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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_ai21-0.1.0.dev10-py3-none-any.whl
Algorithm Hash digest
SHA256 71afd5352c8541e8abc415bae0a6c86866d86b161b6838e339d1bc8597ab8db2
MD5 b19ef7e8d3f97d3d05d3d2afbc56e074
BLAKE2b-256 037e40bb917af47654de7bd865eb7996b6ba5fe210d73d6a304ed7cf11225935

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