Class RequestListener.RequestEvent
java.lang.Object
com.vaadin.flow.component.ai.orchestrator.RequestListener.RequestEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
RequestListener
Event fired just before the LLM stream opens for a prompt. Carries the
user message, the assigned
messageId that will be stored on the
resulting ChatMessage, and
the attachments included with the message (empty list when none).- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the attachments included with the request.Gets the unique identifier assigned to this message.Gets the user message being submitted to the LLM.
-
Method Details
-
getUserMessage
Gets the user message being submitted to the LLM.- Returns:
- the user message, never
null
-
getMessageId
Gets the unique identifier assigned to this message. The same id is available viaChatMessage.messageId()in the conversation history and viaAttachmentClickListener.AttachmentClickEvent.getMessageId()on attachment click.- Returns:
- the message id, never
null
-
getAttachments
Gets the attachments included with the request.- Returns:
- unmodifiable list of attachments with full data; empty when
the message has no attachments, never
null
-