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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03079d80f6e5ec1200662f9f19bdf51e63e34b9ba0fbe59ed8a43cb051ea4d45
|
|
| MD5 |
be230c5f6cf82f55708f1443d3b3786e
|
|
| BLAKE2b-256 |
5468b229e1648838b3fb04fd428f14eeda38935a4ec62b70e86f12b7217bc576
|
File details
Details for the file elizaos_plugin_xai-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_xai-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
044478d9586f57e45547650e81c8ffe7e57707404830126a24bcc07eacbcddfc
|
|
| MD5 |
28a1083e12dd95738d5ee86abae280a2
|
|
| BLAKE2b-256 |
60fd15401305d25df662dffe96c9f624da31b7ea1f01494e86a78b62c0596206
|