waken-groq
A Groq Target adapter for
Waken — "nginx for AI agents." Routes
waken Events to Groq's chat completions API and returns the result as a
waken Response.
Groq's API is shaped like OpenAI's Chat Completions API — its differentiator is inference speed (custom LPU hardware), not a different way of talking to it.
Install
pip install waken-groq
Usage
from waken import Runtime
from waken_groq import GroqAdapter
runtime = Runtime()
runtime.target("groq", GroqAdapter())
runtime.run()
GroqAdapter reads GROQ_API_KEY from the environment — that's the groq
SDK's own convention (see AsyncGroq()), nothing waken-specific. Pass
api_key=... (or any other AsyncGroq keyword) to override:
runtime.target("groq", GroqAdapter(model="llama-3.1-8b-instant", api_key="..."))
Sessions
Groq's chat completions API is stateless per call — there is no
server-side session or thread, the caller resends the full conversation
every time. So GroqAdapter maps a waken session_id to a plain list of
chat messages that it grows and resends on every turn. This history lives
only in the adapter's process memory — it is never persisted, and does not
survive a process restart. An Event with no session_id sends a single
one-off message and is never stored.
Development
git clone https://github.com/WakenHQ/waken-groq
cd waken-groq
pip install -e ".[dev]"
pytest
Tests mock groq.AsyncGroq entirely — no API key or network access needed
to run the suite.
License
Metadata
Release files for waken-groq 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| waken_groq-0.1.0.tar.gz | 6.3 kB | With provenance | Details for waken_groq-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| waken_groq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for waken_groq-0.1.0-py3-none-any.whl |
Total release size: 11.4 kB
Release files / waken_groq-0.1.0.tar.gz
| Download URL | waken_groq-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9702729838d637b730d5f4be0d83b7cb261c2e174b9f45fb8187a331c82f9ab
|
|
BLAKE2b-256 checksum How to use checksums |
64b1cd1a884b6f5cf4a162ed4d0a73e046d5124ca12c821b38b65fd5870b53ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logRelease files / waken_groq-0.1.0-py3-none-any.whl
| Download URL | waken_groq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
faa4becffdcbecc7fa500211a27637758faccf7ddbc940dee32827581e4ef3fa
|
|
BLAKE2b-256 checksum How to use checksums |
58ee3855e9ce1c3f6c54bee9ded46035d561df4520bb93d88a340831ba201cf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logSecurity for waken-groq 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for waken_groq-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.