waken-openai
OpenAI Target adapter for Waken — "nginx
for AI agents." Routes a waken Event to the
OpenAI Responses API
and returns a Response.
Install
pip install waken-openai
OPENAI_API_KEY must be set in the environment — that's the openai SDK's
own convention, nothing waken-specific.
Usage
from waken import Runtime
from waken_openai import OpenAIAdapter
runtime = Runtime()
runtime.target("openai", OpenAIAdapter())
runtime.run()
waken send openai "Build tic tac toe." --wait
OpenAIAdapter keeps a waken session_id -> OpenAI response id map
internally, so a multi-turn conversation (same event.session_id across
calls) resumes via the Responses API's own previous_response_id — its
native server-side continuation mechanism — instead of starting over each
turn. Pass a model or extra client options at construction time:
runtime.target("openai", OpenAIAdapter(model="gpt-4o", organization="org-..."))
model defaults to "gpt-4.1". Any other keyword argument is forwarded
straight to AsyncOpenAI(...) (api_key, organization, base_url, ...).
Development
git clone https://github.com/WakenHQ/waken-openai
cd waken-openai
pip install -e ".[dev]"
pytest
Tests mock openai.AsyncOpenAI entirely — no API key or network access
needed to run the suite.
License
Metadata
Release files for waken-openai 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_openai-0.1.0.tar.gz | 5.5 kB | With provenance | Details for waken_openai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| waken_openai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for waken_openai-0.1.0-py3-none-any.whl |
Total release size: 9.9 kB
Release files / waken_openai-0.1.0.tar.gz
| Download URL | waken_openai-0.1.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ddc4318ea10b15813d5500aa02b0ebdfd68758b8725d2c94024189d17d6b19c
|
|
BLAKE2b-256 checksum How to use checksums |
0d32f1d998b6c4e56a24a4bd6b4c36ea70436f38c781b05f52fbb787981e7073
|
| 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_openai-0.1.0-py3-none-any.whl
| Download URL | waken_openai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad09c8e224dbc176ee5b70b378792a65db197b94216fd73adec4e034c90771a9
|
|
BLAKE2b-256 checksum How to use checksums |
0f093dc00a8192d52bcc971ce3864d750507142a73a464a78a831b94671bdb22
|
| 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-openai 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_openai-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.