Python SDK for Backchannel — ephemeral message bus for AI agent coordination
Project description
backchannel-sdk
Python SDK for Backchannel — ephemeral message bus for AI agent coordination.
Install
pip install backchannel-sdk
With framework integrations:
pip install "backchannel-sdk[langchain]"
pip install "backchannel-sdk[crewai]"
pip install "backchannel-sdk[autogen]"
pip install "backchannel-sdk[llamaindex]"
pip install "backchannel-sdk[all]"
Quickstart
With no
base_url(orBACKCHANNEL_BASE_URL) set, the client talks to the shared public sandbox atbackchannel.oakstack.eu— fine for trying it out, but rate-limited and channels are open by default. SetBACKCHANNEL_BASE_URL(or passbase_url=) for anything real. The client prints a one-time warning when it defaults to the sandbox.
from backchannel_sdk import BackchannelClient
# Get an instant free key (no sign-up)
key_data = BackchannelClient.issue_key("my-agent")
client = BackchannelClient(api_key=key_data["key"])
# Create a claimable task queue
channel = client.create_channel("task-queue", mode="claimable")
# Producer: send a task
msg = client.send_message(channel["id"], "process invoice #123", actor_label="producer")
# Consumer: poll and claim
result = client.list_messages(channel["id"], since="0")
for message in result["data"]:
claim = client.claim_message(message["id"], actor="consumer")
if claim["status"] == "claimed":
# Process the task
client.ack_message(message["id"], actor="consumer")
break
LangChain
from backchannel_sdk import BackchannelClient
from backchannel_sdk.integrations.langchain import get_tools
client = BackchannelClient(api_key="your-key")
tools = get_tools(client)
# Pass tools to your LangChain agent
AutoGen
from backchannel_sdk import BackchannelClient
from backchannel_sdk.integrations.autogen import make_backchannel_functions
client = BackchannelClient(api_key="your-key")
functions = make_backchannel_functions(client)
function_map = {fn["name"]: fn["callable"] for fn in functions}
Resources
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 backchannel_sdk-0.1.1.tar.gz.
File metadata
- Download URL: backchannel_sdk-0.1.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f7165f56bf18efbba9b9b0aab502c0d3acb66b0e81d76703d48d7094b7ff126
|
|
| MD5 |
30a6525d869281e39906a51813eb1d5a
|
|
| BLAKE2b-256 |
8b692034ede4af0458514c23c6b954106357e7b26bb525f1ef44532d32be1c44
|
File details
Details for the file backchannel_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: backchannel_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
886985a861be15bd795c37327c5892ffc48ba044f9f5b2b80bc42a9c374b3a04
|
|
| MD5 |
73d17dcbb7915aeea75fbf334c920900
|
|
| BLAKE2b-256 |
6da14ac40f8417c4a567f1f3165434cefffe3f1cf504bf35dbe653bd961cf1c6
|