Catalog PyPI
PACKAGE EXPLORERView in registry

AgentToAgent

PyPI

A modern way to let AI-agents Communicate

Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 23:33 UTC

README

Version 0.1.0 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.017 Jun 20250

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:3b7c076a06a21fdbce37f663c4374038e050bb56f2c97acbc34f46fdba6c4587