Package com.vaadin.flow.component.ai
Interface AiMessageList
- All Superinterfaces:
Serializable
Interface for message list components that can display AI conversation
messages.
- Author:
- Vaadin Ltd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(AiMessage message) Adds a message to the list.createMessage(String text, String userName) Creates a new message with the given parameters.
-
Method Details
-
addMessage
Adds a message to the list.- Parameters:
message- the message to add, notnull
-
createMessage
Creates a new message with the given parameters.- Parameters:
text- the initial message textuserName- the name of the message sender, notnull- Returns:
- the created message instance, not
null
-