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 # NOTE: not yet published to PyPI — until then: pip install -e .
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
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
backchannel_sdk-0.1.0.tar.gz
(7.5 kB
view details)
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.0.tar.gz.
File metadata
- Download URL: backchannel_sdk-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6878b29473bf39d9ad68c8447ce9d16ccca7c3edbeca454a75ab21188e3120d7
|
|
| MD5 |
6980b5a46e8daa32f63f37964d78e2a3
|
|
| BLAKE2b-256 |
37f06c0d7af4c395d964d749270c1ad981cba286f6d88fe9520658cc90af6a1a
|
File details
Details for the file backchannel_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: backchannel_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d217faed9321123ce996837ecc93e7b6a5224f656f4428157339a2e2915538fa
|
|
| MD5 |
346607261e12212c8372af9c52cfc0c9
|
|
| BLAKE2b-256 |
54a2079b9a213bad72690e0842afa0e66ffb7c18a1baac11f08b9a8ae97cdb39
|