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

Link copied to clipboard

One of a message's attachments, in the default message views of AIConversation.

Link copied to clipboard

What the person can do with a finished reply, shown under it in AIConversation once its answer is written out.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard

The label rendered before the indicator in AITypingIndicator.

Link copied to clipboard

The input field of ChatComposer, including the speech-to-text and send/stop controls.

Link copied to clipboard

The content rendered inside the input field of ChatComposer, after the text and before the send/stop button.

Link copied to clipboard

The content rendered to the left of the input field in ChatComposer.

Link copied to clipboard

The content rendered to the right of the input field in ChatComposer.

Link copied to clipboard

The idle content of SpeechToTextButton, shown when not recording.

Link copied to clipboard

The recording content of SpeechToTextButton, shown while recording.