Cohere Target adapter for Waken — routes waken Events to Cohere's chat API.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file waken_cohere-0.1.0.tar.gz.
File metadata
- Download URL: waken_cohere-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e9b215cdeb55fde11cb37dc9b9e129f73b2a2f62a0bdc6eb91586eae85bc66a
|
|
| MD5 |
220b3e2b37e9901621bf21ad4d36440a
|
|
| BLAKE2b-256 |
5f473bc559ce29f0cca61ecec9ad152f69b533aba6bab61a2b14caa155ecd415
|
Provenance
The following attestation bundles were made for waken_cohere-0.1.0.tar.gz:
Publisher:
publish.yml on WakenHQ/waken-cohere
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
waken_cohere-0.1.0.tar.gz -
Subject digest:
1e9b215cdeb55fde11cb37dc9b9e129f73b2a2f62a0bdc6eb91586eae85bc66a - Sigstore transparency entry: 2082018356
- Sigstore integration time:
-
Permalink:
WakenHQ/waken-cohere@f24ae8c67a6f85a08335e968f7b92aa6676cc739 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/WakenHQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f24ae8c67a6f85a08335e968f7b92aa6676cc739 -
Trigger Event:
push
-
Statement type:
File details
Details for the file waken_cohere-0.1.0-py3-none-any.whl.
File metadata
- Download URL: waken_cohere-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91ef57f39886709f23df6ea0ebffe8cee7112e52d6824696b0f2eade2633b75b
|
|
| MD5 |
c8f5b568842d1bba91d126d77b922673
|
|
| BLAKE2b-256 |
70bbbc0492de9e63cfafa9e089f2f2ae62d73318d9609ded6f334edcae87f67f
|
Provenance
The following attestation bundles were made for waken_cohere-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on WakenHQ/waken-cohere
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
waken_cohere-0.1.0-py3-none-any.whl -
Subject digest:
91ef57f39886709f23df6ea0ebffe8cee7112e52d6824696b0f2eade2633b75b - Sigstore transparency entry: 2082018406
- Sigstore integration time:
-
Permalink:
WakenHQ/waken-cohere@f24ae8c67a6f85a08335e968f7b92aa6676cc739 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/WakenHQ
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f24ae8c67a6f85a08335e968f7b92aa6676cc739 -
Trigger Event:
push
-
Statement type: