AssistantMessage

open class AssistantMessage constructor(val content: String, val name: String? = null, val timestamp: Instant = Instant.now()) : Message

Message sent by the assistant.

Parameters

content

Content of the message

name

Name of the assistant, if available

Inheritors

Constructors

Link copied to clipboard
constructor(content: String, name: String? = null, timestamp: Instant = Instant.now())

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 override 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.