Skip to content

Python: Proposal: Agent-to-agent handoff and messaging protocols for multi-agent workflows #5675

@vystartasv

Description

@vystartasv

Problem

Microsoft Agent Framework is Microsoft's newest agent orchestration platform — but multi-agent workflows currently lack standardized communication primitives. When Agent A needs to hand off a task to Agent B, the handoff is bespoke per deployment. Same for agent-to-agent messaging — every team reinvents the wire format.

Proposed Solution

Two complementary protocols from Works With Agents (CC BY 4.0):

1. Handoff Protocol (L4)

Task transfer with complete context and verifiable acceptance:

from agent_framework import Agent
from works_with_agents import HandoffProtocol

agent_a = Agent("researcher")
agent_b = Agent("writer")
handoff = HandoffProtocol.transfer(
    from_agent=agent_a.id,
    to_agent=agent_b.id,
    task={"query": "...", "context": {...}},
    require_acceptance=True  # cryptographic ACK
)

2. IACP (L5) — Inter-Agent Communication Protocol

Full-duplex agent↔agent messaging. The companion to MCP (agent↔tool):

from works_with_agents import IACP

channel = IACP.open(agent_a.id, agent_b.id)
channel.send({"type": "handoff", "payload": task})
response = channel.receive()  # signed, verifiable

Why Agent Framework:

  • MS's newest agent platform — ideal place to standardize communication early
  • Multi-agent workflows need structured handoff, not ad-hoc state passing
  • IACP is the natural companion to MCP support already in the ecosystem

Resources:

Would a PR adding Handoff + IACP as optional protocols be welcome? Happy to follow the contribution process.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions