LightningWeb.AiAssistant.Component (Lightning v2.13.5)

View Source

Comprehensive LiveView component for AI-powered assistance in Lightning.

This component provides a rich, interactive chat interface that integrates multiple AI assistance modes, real-time message processing, session management, and user experience optimizations. It serves as the primary user interface for all AI Assistant functionality within Lightning.

Summary

Functions

formatted_content(assigns)

Attributes

  • id (:string) (required)
  • content (:string) (required)
  • attributes (:map) - Defaults to %{}.

handle_async(atom, arg, socket)

Callback implementation for Phoenix.LiveComponent.handle_async/3.

handle_event(binary, arg2, socket)

Callback implementation for Phoenix.LiveComponent.handle_event/3.

mount(socket)

Callback implementation for Phoenix.LiveComponent.mount/1.

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.