Message

interface Message

Core message interface for the agent system. This is the minimal contract that all messages must implement, suitable for both in-memory usage and persistence.

Inheritors

Properties

Link copied to clipboard
abstract val content: String

Text content of the message.

Link copied to clipboard
abstract val role: MessageRole

Role of the message sender.

Functions

Link copied to clipboard
fun Message.toSpringAiMessage(): <Error class: unknown class>

Convert one of our messages to a Spring AI message with multimodal support.