Class AttachmentSubmitListener.AttachmentSubmitEvent
java.lang.Object
com.vaadin.flow.component.ai.orchestrator.AttachmentSubmitListener.AttachmentSubmitEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
AttachmentSubmitListener
public static class AttachmentSubmitListener.AttachmentSubmitEvent
extends Object
implements Serializable
Event fired when a message with attachments is submitted to the LLM
provider. Contains full attachment data and a unique message ID that can
be used to identify the message later, both when an attachment is clicked
(
AttachmentClickListener) and when restoring conversation history
(ChatMessage.messageId()).- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the attachments included with the message.Gets the unique identifier for the message that these attachments belong to.
-
Method Details
-
getMessageId
Gets the unique identifier for the message that these attachments belong to. This is the same ID available viaChatMessage.messageId()in the conversation history and viaAttachmentClickListener.AttachmentClickEvent.getMessageId()on attachment click.- Returns:
- the message ID
-
getAttachments
Gets the attachments included with the message.- Returns:
- unmodifiable list of attachments with full data
-