Skip to main content

A modern way to let AI-agents Communicate

Project description


AgentToAgent is a zero-dependency, production-ready message router for agent-to-agent communication in Python.
It lets you send and receive messages between named agents—perfect for coordinating tasks in multi-agent systems, toolchains, or even distributed apps.


Install

pip install AgentToAgent

Usage

from AgentToAgent import AgentToAgent

ata = AgentToAgent()

# Send a message from one agent to another
ata.send("Alpha", "Bravo", "Ping from Alpha!")

# Agent Bravo receives their messages
messages = ata.receive("Bravo")
print(messages)
# Output: [{'from': 'Alpha', 'to': 'Bravo', 'content': 'Ping from Alpha!'}]

# Support for filtering by sender
ata.send("Alpha", "Charlie", "Hello, Charlie!")
ata.send("Beta", "Charlie", "Hi, Charlie!")
msgs = ata.receive("Charlie", allowedFrom=["Beta"])
print(msgs)
# Output: [{'from': 'Beta', 'to': 'Charlie', 'content': 'Hi, Charlie!'}]

Features

  • Direct agent-to-agent messaging – Send and receive by agent name.
  • Broadcasting – Send to all by using toAgent=None.
  • Filtered receive – Optionally receive only from allowed senders.
  • In-memory queue – Each receive call pulls all available messages.
  • Zero dependencies – No third-party packages required.
  • Works with any agent framework – Simple plug-and-play for any system.

Code Examples

You can find code examples on my GitHub repository.


License

Apache License 2.0


Acknowledgements

Project by:

  • Tristan McBride Sr.
  • Sybil

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

agenttoagent-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

agenttoagent-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file agenttoagent-0.1.0.tar.gz.

File metadata

  • Download URL: agenttoagent-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for agenttoagent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec80bba0d685abfd524a429dcde8fb208d55dd7f5e714008f900a2eb5313033c
MD5 53769993cbe5e11888c4947b2c0e2b7a
BLAKE2b-256 61857836268de252ae6b0652b37974eb566d21b09bc26d7b9d238f7b8a408c78

See more details on using hashes here.

File details

Details for the file agenttoagent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agenttoagent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for agenttoagent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d507003706b790a9bede4e4fdf4575e41a2a67404cb5596032360f4ab24cabd5
MD5 b34acd696f031c7719e6a1c20f4e3723
BLAKE2b-256 b13de9f520ef6b276de51b6d2bbe5049094b79d800e50bd8d98a0e5ecaad4c62

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