Expand description
Message types for the A2A protocol.
A Message is the fundamental communication unit between a client and an
agent. Each message has a MessageRole ("ROLE_USER" or "ROLE_AGENT")
and carries one or more Part values.
§Part structure (v1.0)
Part uses JSON member name as discriminator per v1.0 spec:
{"text": "hello"}{"raw": "base64...", "filename": "f.png", "mediaType": "image/png"}{"url": "https://...", "filename": "f.png", "mediaType": "image/png"}{"data": {...}}
Structs§
- File
Content - Content of a file part.
- Message
Messageis one unit of communication between client and server.- Message
Id - Opaque unique identifier for a
Message. - Part
Partrepresents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
Enums§
- Message
Role - Defines the sender of a message in A2A protocol communication.
- Part
Content - The content of a
Part, discriminated by JSON member name per v1.0 spec.