ChatAiComponentFactory
Factory that creates the components rendered inside the AI chat UI.
Every slot has a default implementation, so you only override the ones you want to change. Provide a custom factory through LocalChatAiComponentFactory, usually with CompoundChatAiComponentFactory, to customize the components within a part of the composition. When no factory is provided, components fall back to DefaultChatAiComponentFactory, so they work without any setup.
Functions
A reply from the agent, in AIConversation.
One of a message's attachments, in the default message views of AIConversation.
What the person can do with a finished reply, shown under it in AIConversation once its answer is written out.
A message the person sent, in AIConversation.
A chip rendered in AISuggestions.
What asks the person to sign in when a tool call waits for their account at a provider, shown under the call by AIToolAuthorizationPrompt, and so in AIConversation.
The animated indicator rendered in AITypingIndicator.
The label rendered before the indicator in AITypingIndicator.
The input field of ChatComposer, including the speech-to-text and send/stop controls.
The content rendered inside the input field of ChatComposer, after the text and before the send/stop button.
The content rendered to the left of the input field in ChatComposer.
The content rendered to the right of the input field in ChatComposer.
The idle content of SpeechToTextButton, shown when not recording.
The recording content of SpeechToTextButton, shown while recording.