Inter-Agent Communication
Message passing and protocols.
Messages Are the Interface
Agents do not share memory; they share messages. The structure, vocabulary, and discipline of those messages determine whether a multi-agent system coordinates or descends into noise. Communication design is the load-bearing wall of any agent network.
- Loose natural-language chatter -> misinterpretation and drift.
- Typed, schema-bound messages -> composable, verifiable exchange.
Structured Message Envelopes
Wrap every inter-agent message in an envelope: sender, recipient, intent (request/response/inform/error), a correlation id, and a typed payload. The envelope lets a router dispatch correctly and lets agents match responses to requests.
msg = {
'from': 'orchestrator', 'to': 'researcher',
'intent': 'request', 'corr_id': 'r-42',
'payload': {'goal': 'find sources for claim X'}
}All lessons in this course
- Roles and Specialization
- Orchestrator and Workers
- Inter-Agent Communication
- Debating and Voting Agents