Class ListAiChatItems<T extends AiChatMessage>

java.lang.Object
io.jmix.aichat.data.AbstractAiChatItems<T>
io.jmix.aichat.data.ListAiChatItems<T>
Type Parameters:
T - the application's message type
All Implemented Interfaces:
AiChatItems<T>, DataUnit, Serializable

public class ListAiChatItems<T extends AiChatMessage> extends AbstractAiChatItems<T>
In-memory AiChatItems implementation. This is the default source of an unbound AiChat, so a chat that was never given items can still generate into memory.
See Also:
  • Field Details

  • Constructor Details

    • ListAiChatItems

      public ListAiChatItems()
      Creates an empty in-memory unit.
    • ListAiChatItems

      public ListAiChatItems(Collection<T> items)
      Creates a unit over a copy of the given messages, so mutations work even when the argument is immutable.
      Parameters:
      items - the initial messages
  • Method Details