ChatBotView constructor
const
ChatBotView({
- Key? key,
- required RoomClient room,
- BaseChatClient? chatClient,
- bool disposeChatClient = false,
- String? agentName,
- ChatThreadDisplayMode threadDisplayMode = ChatThreadDisplayMode.singleThread,
- String? threadDir,
- String? threadListPath,
- String? documentPath,
- ChatThreadController? controller,
- String? selectedThreadPath,
- String? selectedThreadDisplayName,
- ValueChanged<
String?> ? onSelectedThreadPathChanged, - void onSelectedThreadResolved()?,
- int newThreadResetVersion = 0,
- List<
Participant> ? participants, - List<
String> ? participantNames, - bool includeLocalParticipant = true,
- bool startChatCentered = false,
- ChatMessage? initialMessage,
- void onMessageSent(
- ChatMessage message
- Widget messageHeaderBuilder(
- BuildContext,
- MeshDocument,
- MeshElement
- Widget waitingForParticipantsBuilder()?,
- Widget attachmentBuilder(
- BuildContext context,
- FileAttachment upload
- ValueChanged<
FileAttachment> ? onAttachmentOpen, - ValueChanged<
FileAttachment> ? onAttachmentRemoved, - Widget fileInThreadBuilder(
- BuildContext context,
- String path
- Widget? pendingFileInThreadBuilder(
- BuildContext context,
- String path
- DatasetChatInlineAttachmentViewerPredicate? datasetInlineAttachmentViewerPredicate,
- Widget chatInputBoxBuilder(
- BuildContext context,
- Widget chatBox
- ChatThreadCustomInputBuilder? customInputBuilder,
- FutureOr<
void> openFile(- String path
- FileDropOverlayBuilder? fileDropOverlayBuilder,
- Widget toolsBuilder()?,
- Widget? inputPlaceholder,
- String? emptyStateTitle,
- String? emptyStateDescription,
- Widget? emptyState,
- EditableTextContextMenuBuilder? inputContextMenuBuilder,
- TapRegionCallback? inputOnPressedOutside,
- ThreadStorageSaveSurfacePresenter? mobileStorageSaveSurfacePresenter,
- double? mobileUnderHeaderContentPadding,
- bool centerComposer = false,
- bool showCenteredComposerTitle = true,
- bool hideChatInput = false,
- bool showThreadList = true,
- double threadListWidth = 280,
- double threadListCollapsedHeight = 220,
- bool initialShowCompletedToolCalls = false,
- bool shouldShowAuthorNames = true,
- ChatToolCallRendererRegistry? toolCallRenderers,
- ChatToolCallVisibilityPredicate? toolCallVisibilityPredicate,
- DatasetChatThreadWrapperBuilder? datasetThreadWrapperBuilder,
- DatasetChatNewThreadWrapperBuilder? datasetNewThreadWrapperBuilder,
Implementation
const ChatBotView({
super.key,
required this.room,
this.chatClient,
this.disposeChatClient = false,
this.agentName,
this.threadDisplayMode = ChatThreadDisplayMode.singleThread,
this.threadDir,
this.threadListPath,
this.documentPath,
this.controller,
this.selectedThreadPath,
this.selectedThreadDisplayName,
this.onSelectedThreadPathChanged,
this.onSelectedThreadResolved,
this.newThreadResetVersion = 0,
this.participants,
this.participantNames,
this.includeLocalParticipant = true,
this.startChatCentered = false,
this.initialMessage,
this.onMessageSent,
this.messageHeaderBuilder,
this.waitingForParticipantsBuilder,
this.attachmentBuilder,
this.onAttachmentOpen,
this.onAttachmentRemoved,
this.fileInThreadBuilder,
this.pendingFileInThreadBuilder,
this.datasetInlineAttachmentViewerPredicate,
this.chatInputBoxBuilder,
this.customInputBuilder,
this.openFile,
this.fileDropOverlayBuilder,
this.toolsBuilder,
this.inputPlaceholder,
this.emptyStateTitle,
this.emptyStateDescription,
this.emptyState,
this.inputContextMenuBuilder,
this.inputOnPressedOutside,
this.mobileStorageSaveSurfacePresenter,
this.mobileUnderHeaderContentPadding,
this.centerComposer = false,
this.showCenteredComposerTitle = true,
this.hideChatInput = false,
this.showThreadList = true,
this.threadListWidth = 280,
this.threadListCollapsedHeight = 220,
this.initialShowCompletedToolCalls = false,
this.shouldShowAuthorNames = true,
this.showUsageFooter = false,
this.toolCallRenderers,
this.toolCallVisibilityPredicate,
this.datasetThreadWrapperBuilder,
this.datasetNewThreadWrapperBuilder,
});