NewChatThread constructor
const
NewChatThread({
- Key? key,
- required String agentName,
- required NewChatThreadBuilder builder,
- RoomClient? room,
- BaseChatClient? chatClient,
- bool disposeChatClient = false,
- ChatThreadController? controller,
- GlobalKey<
State< ? composerKey,StatefulWidget> > - String toolkit = "chat",
- String tool = "new_thread",
- NewChatThreadToolsBuilder? toolsBuilder,
- String? selectedThreadPath,
- ValueChanged<
String?> ? onThreadPathChanged, - void onThreadResolved()?,
- bool centerComposer = true,
- bool showCenteredComposerTitle = true,
- Widget? emptyState,
- Widget? inputPlaceholder,
- EditableTextContextMenuBuilder? inputContextMenuBuilder,
- TapRegionCallback? inputOnPressedOutside,
- ValueChanged<
FileAttachment> ? onAttachmentOpen, - ValueChanged<
FileAttachment> ? onAttachmentRemoved, - FileDropOverlayBuilder? fileDropOverlayBuilder,
- DatasetChatModelController? modelController,
- ChatThreadCustomInputBuilder? customInputBuilder,
- NewChatThreadWrapperBuilder? newThreadWrapperBuilder,
Implementation
const NewChatThread({
super.key,
required this.agentName,
required this.builder,
this.room,
this.chatClient,
this.disposeChatClient = false,
this.controller,
this.composerKey,
this.toolkit = "chat",
this.tool = "new_thread",
this.toolsBuilder,
this.selectedThreadPath,
this.onThreadPathChanged,
this.onThreadResolved,
this.centerComposer = true,
this.showCenteredComposerTitle = true,
this.showUsageFooter = false,
this.emptyState,
this.inputPlaceholder,
this.inputContextMenuBuilder,
this.inputOnPressedOutside,
this.onAttachmentOpen,
this.onAttachmentRemoved,
this.fileDropOverlayBuilder,
this.modelController,
this.customInputBuilder,
this.newThreadWrapperBuilder,
});