NewChatThread constructor

const NewChatThread({
  1. Key? key,
  2. required String agentName,
  3. required NewChatThreadBuilder builder,
  4. RoomClient? room,
  5. BaseChatClient? chatClient,
  6. bool disposeChatClient = false,
  7. ChatThreadController? controller,
  8. GlobalKey<State<StatefulWidget>>? composerKey,
  9. String toolkit = "chat",
  10. String tool = "new_thread",
  11. NewChatThreadToolsBuilder? toolsBuilder,
  12. String? selectedThreadPath,
  13. ValueChanged<String?>? onThreadPathChanged,
  14. void onThreadResolved(
    1. String? path,
    2. String? displayName
    )?,
  15. bool centerComposer = true,
  16. bool showCenteredComposerTitle = true,
  17. bool showUsageFooter = false,
  18. Widget? emptyState,
  19. Widget? inputPlaceholder,
  20. EditableTextContextMenuBuilder? inputContextMenuBuilder,
  21. TapRegionCallback? inputOnPressedOutside,
  22. ValueChanged<FileAttachment>? onAttachmentOpen,
  23. ValueChanged<FileAttachment>? onAttachmentRemoved,
  24. FileDropOverlayBuilder? fileDropOverlayBuilder,
  25. DatasetChatModelController? modelController,
  26. ChatThreadCustomInputBuilder? customInputBuilder,
  27. 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,
});