Message Format
Basic Structure
All AICP messages follow this JSON structure:
json
{
"version": "1.0",
"id": "msg_123456",
"timestamp": "2024-01-20T10:00:00Z",
"sender": {
"id": "agent_abc",
"type": "assistant"
},
"recipient": {
"id": "agent_xyz",
"type": "tool"
},
"type": "request",
"payload": {
// Message-specific content
}
}
Field Descriptions
Field | Type | Description |
---|---|---|
version | string | Protocol version |
id | string | Unique message identifier |
timestamp | string | ISO 8601 timestamp |
sender | object | Sending agent details |
recipient | object | Receiving agent details |
type | string | Message type |
payload | object | Message content |