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 Summary

    Modifier and Type
    Method
    Description
    void
    Adds a message to the list.
    createMessage(String text, String userName)
    Creates a new message with the given parameters.
  • 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)
      Creates a new message with the given parameters.
      Parameters:
      text - the initial message text
      userName - the name of the message sender, not null
      Returns:
      the created message instance, not null