Skip to main content

waken-groq

CI License: MIT

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

MIT

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)

Source distribution for waken-groq 0.1.0
File Size Uploaded
waken_groq-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for waken-groq 0.1.0
File Interpreter ABI Platform
waken_groq-0.1.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page