Skip to main content

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

License

MIT

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

agent_comm_hub-2.5.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

agent_comm_hub-2.5.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_comm_hub-2.5.1.tar.gz.

File metadata

  • Download URL: agent_comm_hub-2.5.1.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

Hashes for agent_comm_hub-2.5.1.tar.gz
Algorithm Hash digest
SHA256 aa962de2d7514940768dc56f7200d86e41d282df3d3c4c20e57be837600768ff
MD5 d32a544b4cd579dbec95915659975877
BLAKE2b-256 922c6e4aad6147807150ce2c5dc6807038c79f744a31ab4567585c246e8b2d6b

See more details on using hashes here.

File details

Details for the file agent_comm_hub-2.5.1-py3-none-any.whl.

File metadata

  • Download URL: agent_comm_hub-2.5.1-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

Hashes for agent_comm_hub-2.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c21a6aae99ca372f5bed04db0af42734d0609d4970f2a3d932f357ebdf606794
MD5 b7ce4cea92dc9da483a612172e77123a
BLAKE2b-256 59cbc729b516a66d2d6d072f76cc0088b98ec7bd3bcb15f7939d8f85facfb524

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