Metadata-Version: 2.4
Name: grok-loop-kit
Version: 1.0.0
Summary: Auto-apply Grok 4.5 context compaction to xAI Responses API agent loops.
License: MIT
Project-URL: Homepage, https://github.com/Booyaka101/grok-loop-kit
Project-URL: Repository, https://github.com/Booyaka101/grok-loop-kit
Project-URL: Issues, https://github.com/Booyaka101/grok-loop-kit/issues
Keywords: grok,grok-4.5,xai,context-compaction,agent,responses-api,llm
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: requests
Requires-Dist: requests>=2.28; extra == "requests"

# grok-loop-kit (Python)

Automatic Grok 4.5 context compaction for xAI Responses API agent loops.

```python
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.
