Class AiChatSupport

java.lang.Object
io.jmix.aichat.component.chat.AiChatSupport

public final class AiChatSupport extends Object
Framework-internal bridge that exposes protected AiChat members to add-on classes in other packages, using the same same-package public-static-over -protected shape as ViewControllerUtils. Not application API.
  • Method Details

    • getMessageInput

      public static AiMessageInput getMessageInput(AiChat<?> chat)
      Parameters:
      chat - the chat to read
      Returns:
      the chat's inner message input
    • addAttachmentsEnabledChangeListener

      public static com.vaadin.flow.shared.Registration addAttachmentsEnabledChangeListener(AiChat<?> chat, Consumer<Boolean> listener)
      Adds a listener notified when the chat's attachments-enabled state changes.
      Parameters:
      chat - the chat to observe
      listener - the listener to add
      Returns:
      a registration for removing the listener