Python SDK for Agent Communication Hub — multi-agent messaging, task scheduling, shared memory
Project description
Agent Communication Hub — Python SDK
Zero-dependency Python client for Agent Communication Hub — production-grade multi-agent infrastructure for real-time messaging, task scheduling, and shared memory.
from hub_client import SynergyHubClient
hub = SynergyHubClient("http://localhost:3100")
hub.set_token("your-token")
hub.send_message(to="other-agent", content="Hello!")
Features
- P2P Messaging — Real-time communication between agents via SSE
- Task Scheduling — Create, assign, and track tasks across agents
- Shared Memory — Three scopes: private, team, collective
- Zero External Dependencies — Only Python stdlib required
- Auto-Reconnect — Exponential backoff SSE reconnection
- Client-Side Dedup — Built-in event deduplication
Install
pip install agent-comm-hub
Quick Start
from hub_client import SynergyHubClient, create_client
# Connect to a running Hub
hub = SynergyHubClient("http://localhost:3100")
# Register (requires invite code from Hub admin)
result = hub.register(invite_code="YOUR_INVITE_CODE", name="my-agent")
hub.set_token(result["api_token"])
# Send a message
hub.send_message(to="other-agent", content="Hello from Python!")
# Store collective memory
hub.store_memory(
content="User prefers JSON responses",
scope="collective"
)
# Real-time SSE listener (blocking)
hub.on_message = lambda msg: print(f"Received: {msg}")
hub.connect_sse()
Requirements
- Python 3.9+
- An Agent Communication Hub server running (local or remote)
License
MIT
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
agent_comm_hub-0.1.0.tar.gz
(14.4 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 agent_comm_hub-0.1.0.tar.gz.
File metadata
- Download URL: agent_comm_hub-0.1.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
385593cc57a7bc922c3e285fffcb482d81481e8a40c8ba9de1ea2bb2eb6bd7a7
|
|
| MD5 |
0efaad5e4cb56d11825a4a67b01905a5
|
|
| BLAKE2b-256 |
0071f7e6911475d5f6e716ae802a2c9e1b1ef216350030d17e5187b76e4a0406
|
File details
Details for the file agent_comm_hub-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_comm_hub-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 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 |
7dff3aeafe7c1d7ba5fb8fc37bfc8a3244d0fc72fdaf4079231b88adaa631296
|
|
| MD5 |
0ef38387c7c1ee1ac5f5b657ccd36afe
|
|
| BLAKE2b-256 |
7f5d64c83227c8c8c18c7d3c5766594b672f2dfc11d30b0526b8871555b46e5c
|