Skip to main content
Pre-release

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

elizaos-plugin-xai (Python)

Python package for elizaOS xAI integration.

Installation

pip install elizaos-plugin-xai

Usage

from elizaos_plugin_xai import GrokClient, GrokConfig, TwitterClient, TwitterConfig

# Grok text generation
grok = GrokClient(GrokConfig.from_env())
result = await grok.generate_text(TextGenerationParams(prompt="Hello world"))
print(result.text)

# X (formerly Twitter) integration
x = TwitterClient(TwitterConfig.from_env())
me = await x.me()
print(f"@{me.username}")

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Type checking
mypy elizaos_plugin_xai

# Linting
ruff check .
ruff format .

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elizaos_plugin_xai-2.0.0a5.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

elizaos_plugin_xai-2.0.0a5-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_xai-2.0.0a5.tar.gz.

File metadata

  • Download URL: elizaos_plugin_xai-2.0.0a5.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for elizaos_plugin_xai-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 03079d80f6e5ec1200662f9f19bdf51e63e34b9ba0fbe59ed8a43cb051ea4d45
MD5 be230c5f6cf82f55708f1443d3b3786e
BLAKE2b-256 5468b229e1648838b3fb04fd428f14eeda38935a4ec62b70e86f12b7217bc576

See more details on using hashes here.

File details

Details for the file elizaos_plugin_xai-2.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_xai-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 044478d9586f57e45547650e81c8ffe7e57707404830126a24bcc07eacbcddfc
MD5 28a1083e12dd95738d5ee86abae280a2
BLAKE2b-256 60fd15401305d25df662dffe96c9f624da31b7ea1f01494e86a78b62c0596206

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0a5 This release

2 files

Supported by

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