Interface AIMessageList

All Superinterfaces:
Serializable

public interface AIMessageList extends Serializable
Interface for message list components that can display AI conversation messages.
Author:
Vaadin Ltd
See Also:
  • Method Details

    • addMessage

      void addMessage(AIMessage message)
      Adds a message to the list.
      Parameters:
      message - the message to add, not null
    • createMessage

      AIMessage createMessage(String text, String userName, List<AIAttachment> attachments)
      Creates a new message with the given parameters and attachments.
      Parameters:
      text - the initial message text
      userName - the name of the message sender, not null
      attachments - the list of attachments to include with the message
      Returns:
      the created message instance, not null