Skip to main content

elizaOS xAI Plugin - Grok models and X (formerly Twitter) API integration

Project description

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 .

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

elizaos_plugin_xai-2.0.0a4.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.0a4-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for elizaos_plugin_xai-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 d3b087858b4ef75bd0052a9156657c83377434c4460e560f27541c7d0514679d
MD5 d960e9962016f61edbcfc9d6de1b8fee
BLAKE2b-256 7b72579cffff323934001b4bed58a27180c44d8c13ff29ff1b01d36a170c6558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for elizaos_plugin_xai-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 9fefc47b1cf2845ac52f61d57db3113fac1bf7aec2e975b7b05895b1c176270f
MD5 7f6111dc52f32a54655d7af790b8c553
BLAKE2b-256 9383640edf5ca50f1f5846db81f1d06aa20d81d0503880712ec79677147e6641

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