grok-loop-kit (Python)
Automatic Grok 4.5 context compaction for xAI Responses API agent loops.
from grok_loop_kit import GrokLoopClient
client = GrokLoopClient(api_key, compact_every=8, compact_at_tokens=8000, model="grok-4.5")
res = client.send_message("hello")
print(res["_grokLoopKit"].totalCompactions)
Zero runtime dependencies (stdlib urllib). See the repository root README for the
full API and the Node/LangGraph packages.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
grok_loop_kit-1.0.0.tar.gz
(7.6 kB
view details)
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 grok_loop_kit-1.0.0.tar.gz.
File metadata
- Download URL: grok_loop_kit-1.0.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dfe7983c1692e02297fccd6b5c347f52f52a85660c894e759840fc29c3c166c
|
|
| MD5 |
cea16a631cbec6331a2b47dd36338c42
|
|
| BLAKE2b-256 |
37c8e2246ff0c556f28e72010eb65467ef1bfc4cb2b3892358d28169dc1142b9
|
File details
Details for the file grok_loop_kit-1.0.0-py3-none-any.whl.
File metadata
- Download URL: grok_loop_kit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
326dad233eb0b8b0b15ae5fd08d5a18557e3670aebe341ba87fba91db718eb33
|
|
| MD5 |
cb328bc913df4ad8945f3baa00e2b6e7
|
|
| BLAKE2b-256 |
7cb8fa5402dc79aec3b5721b3728e26be81dadf13907d5912fc23d83e5229c32
|