Skip to main content

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 (or BACKCHANNEL_BASE_URL) set, the client talks to the shared public sandbox at backchannel.oakstack.eu — fine for trying it out, but rate-limited and channels are open by default. Set BACKCHANNEL_BASE_URL (or pass base_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


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.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backchannel_sdk-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

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

Hashes for backchannel_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f7165f56bf18efbba9b9b0aab502c0d3acb66b0e81d76703d48d7094b7ff126
MD5 30a6525d869281e39906a51813eb1d5a
BLAKE2b-256 8b692034ede4af0458514c23c6b954106357e7b26bb525f1ef44532d32be1c44

See more details on using hashes here.

File details

Details for the file backchannel_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for backchannel_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 886985a861be15bd795c37327c5892ffc48ba044f9f5b2b80bc42a9c374b3a04
MD5 73d17dcbb7915aeea75fbf334c920900
BLAKE2b-256 6da14ac40f8417c4a567f1f3165434cefffe3f1cf504bf35dbe653bd961cf1c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page