The type of role for the message, defaults to BaseMessageRole. IBaseMessage
The content of the message, representing the primary data or text being communicated. Contains the raw text or data of the message, used in history storage or processing.
OptionalimagesOptional array of images associated with the message. Represented as binary data (Blob) or base64 strings. Used for messages involving visual content (e.g., user-uploaded images or tool-generated visuals).
The role of the message sender. Common roles include "assistant", "system", "tool", and "user". Specific message types may extend this with additional roles.
Optionaltool_Optional identifier of the tool call this message responds to. Links tool outputs to their originating requests. Used to correlate tool responses with their corresponding tool calls.
Optionaltool_Optional array of tool calls associated with the message. Present when the model requests tool execution. Each tool call contains function name, arguments, and a unique identifier.
Base interface representing common properties shared by all message types in the swarm system. Defines the core structure for messages exchanged between agents, tools, users, and the system. Extended by ISwarmMessage and IOutlineMessage to add specific properties for their respective contexts.