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 .
Metadata
Release files for elizaos-plugin-xai 2.0.0a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elizaos_plugin_xai-2.0.0a5.tar.gz | 24.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elizaos_plugin_xai-2.0.0a5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.4 kB
Release files / elizaos_plugin_xai-2.0.0a5.tar.gz
| Download URL | elizaos_plugin_xai-2.0.0a5.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03079d80f6e5ec1200662f9f19bdf51e63e34b9ba0fbe59ed8a43cb051ea4d45
|
|
BLAKE2b-256 checksum How to use checksums |
5468b229e1648838b3fb04fd428f14eeda38935a4ec62b70e86f12b7217bc576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / elizaos_plugin_xai-2.0.0a5-py3-none-any.whl
| Download URL | elizaos_plugin_xai-2.0.0a5-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
044478d9586f57e45547650e81c8ffe7e57707404830126a24bcc07eacbcddfc
|
|
BLAKE2b-256 checksum How to use checksums |
60fd15401305d25df662dffe96c9f624da31b7ea1f01494e86a78b62c0596206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|