Package com.vaadin.flow.component.ai.ui
Interface AIFileReceiver
- All Superinterfaces:
Serializable
Interface for file upload components that are used in an AI conversation.
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionReturns all accumulated attachments and clears the internal state.
-
Method Details
-
takeAttachments
List<AIAttachment> takeAttachments()Returns all accumulated attachments and clears the internal state.After this method returns, the receiver is ready to accept new files. The UI file list is also cleared.
- Returns:
- an unmodifiable list of attachments, or an empty list if none are pending
-