Class BuilderAiChat

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
io.jmix.aichat.component.chat.AiChat<SimpleAiChatMessage>
io.jmix.dynmodelaiflowui.view.builder.BuilderAiChat
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<AiChatVariant>, HasActions, HasSubParts, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

@CssImport(value="./dmagent/builder-snapshot-links.css", themeFor="jmix-ai-markdown") @JsModule("./dmagent/builder-snapshot-links.js") public class BuilderAiChat extends AiChat<SimpleAiChatMessage>
Local presentation extension; no files, publication or Agent state are owned by AiChat.
See Also:
  • Constructor Details

    • BuilderAiChat

      public BuilderAiChat()
  • Method Details

    • initComponent

      protected void initComponent()
      Description copied from class: AiChat
      Wires the inner input/list and the message source. Runs from AiChat.afterPropertiesSet(), after the application context is injected — not from the constructor.
      Overrides:
      initComponent in class AiChat<SimpleAiChatMessage>
    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent event)
      Overrides:
      onAttach in class AiChat<SimpleAiChatMessage>
    • toListItem

      protected AiMessageListItem toListItem(SimpleAiChatMessage message)
      Description copied from class: AiChat
      Maps a data message to a rendered list item, rejecting a null role as a contract violation.

      Carries the source message onto the item, which is what lets a per-message action and an attachment click resolve back to the domain message. The streaming placeholder is built outside this method and deliberately carries none.

      Overrides:
      toListItem in class AiChat<SimpleAiChatMessage>
      Parameters:
      message - the data message
      Returns:
      the rendered item