Interface AIFileReceiver

All Superinterfaces:
Serializable

public interface AIFileReceiver extends Serializable
Interface for file upload components that are used in an AI conversation.
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns 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