Package io.jmix.aichat.component.chat
@NullMarked
package io.jmix.aichat.component.chat
The AiChat composite and its data views.
-
ClassDescriptionAiChat<T extends AiChatMessage>High-level, ready-to-use AI chat component.A live view of the current Vaadin session's HTTP session attributes, resolved on every read rather than copied — see
AiChat.runWithGenerationContext(com.vaadin.flow.server.VaadinRequest, java.lang.Runnable)for why that matters.AThemeListview over several element theme lists: reads reflect the first target (the chat's own root, which receives every write, so it always holds the full set), while writes fan out to all targets.Internationalization holder forAiChat: the screen-reader announcements the chat itself makes as a generation starts, completes, fails or is stopped, plus the localization of the two components it composes.Framework-internal bridge that exposes protectedAiChatmembers to add-on classes in other packages, using the same same-package public-static-over -protected shape asViewControllerUtils.Set of theme variants applicable for theAiChatcomponent.AttachmentClickEvent<T extends AiChatMessage>Fired when the user clicks an attachment of a message.AttachmentRejectedEvent<T extends AiChatMessage>Fired when theUploadManagerrejects an attached file (too many, too large, or wrong type).GenerationFailedEvent<T extends AiChatMessage>Fired when a generation ends with an error.GenerationStateChangeEvent<T extends AiChatMessage>Fired on everyGenerationStatetransition.MessageChangeEvent<T extends AiChatMessage>Fired when a message is committed to (MessageChangeEvent.ChangeType.ADDED) or removed from (MessageChangeEvent.ChangeType.REMOVED) the conversation.The kind of change.