Skip to content

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

FieldTypeDescription
versionstringProtocol version
idstringUnique message identifier
timestampstringISO 8601 timestamp
senderobjectSending agent details
recipientobjectReceiving agent details
typestringMessage type
payloadobjectMessage content