Message

sealed class Message : HasContent

Message class for agent system

Parameters

role

Role of the message sender. AI system specific

content

Content of the message

name

of the sender, if available

Inheritors

Properties

Link copied to clipboard
open override val content: String
Link copied to clipboard
val name: String? = null
Link copied to clipboard
val role: Role
Link copied to clipboard
Link copied to clipboard
open val timestamp: Instant

Functions

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

Convert one of our messages to a Spring AI message.