waken-cohere
A Cohere Target adapter for
Waken — routes waken Events to
Cohere's chat API (cohere.AsyncClientV2) and returns a Response.
Install
pip install waken-cohere
COHERE_API_KEY (or Cohere's own preferred CO_API_KEY) must be set in the
environment — the SDK reads it automatically, no wiring needed.
Usage
from waken import Runtime
from waken_cohere import CohereAdapter
runtime = Runtime()
runtime.target("cohere", CohereAdapter())
runtime.run()
Sessions
Cohere's chat API is stateless: there's no server-side conversation id to
resume, just a message list you resend in full every turn. This adapter
keeps that list itself, keyed by waken's session_id, entirely in
memory — it is lost on restart and never shared across processes. Two
Events sharing a session_id get a continued conversation; an Event
with no session_id is a one-off call that leaves no trace.
Development
git clone https://github.com/WakenHQ/waken-cohere
cd waken-cohere
pip install -e ".[dev]"
pytest
License
Metadata
Release files for waken-cohere 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 | |
|---|---|---|---|
| waken_cohere-0.1.0.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| waken_cohere-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / waken_cohere-0.1.0.tar.gz
| Download URL | waken_cohere-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e9b215cdeb55fde11cb37dc9b9e129f73b2a2f62a0bdc6eb91586eae85bc66a
|
|
BLAKE2b-256 checksum How to use checksums |
5f473bc559ce29f0cca61ecec9ad152f69b533aba6bab61a2b14caa155ecd415
|
| 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_cohere-0.1.0-py3-none-any.whl
| Download URL | waken_cohere-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91ef57f39886709f23df6ea0ebffe8cee7112e52d6824696b0f2eade2633b75b
|
|
BLAKE2b-256 checksum How to use checksums |
70bbbc0492de9e63cfafa9e089f2f2ae62d73318d9609ded6f334edcae87f67f
|
| 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