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. bool waitForInjectedAgentParticipant = true,
  8. ChatThreadController? controller,
  9. GlobalKey<State<StatefulWidget>>? composerKey,
  10. String toolkit = "chat",
  11. String tool = "new_thread",
  12. NewChatThreadToolsBuilder? toolsBuilder,
  13. String? selectedThreadPath,
  14. ValueChanged<String?>? onThreadPathChanged,
  15. void onThreadResolved(
    1. String? path,
    2. String? displayName
    )?,
  16. bool centerComposer = true,
  17. bool showCenteredComposerTitle = true,
  18. bool showUsageFooter = false,
  19. Widget? emptyState,
  20. Widget? inputPlaceholder,
  21. EditableTextContextMenuBuilder? inputContextMenuBuilder,
  22. TapRegionCallback? inputOnPressedOutside,
  23. ValueChanged<FileAttachment>? onAttachmentOpen,
  24. ValueChanged<FileAttachment>? onAttachmentRemoved,
  25. FileDropOverlayBuilder? fileDropOverlayBuilder,
  26. DatasetChatModelController? modelController,
  27. ChatThreadCustomInputBuilder? customInputBuilder,
  28. NewChatThreadWrapperBuilder? newThreadWrapperBuilder,
})

Implementation

const NewChatThread({
  super.key,
  required this.agentName,
  required this.builder,
  this.room,
  this.chatClient,
  this.disposeChatClient = false,
  this.waitForInjectedAgentParticipant = true,
  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,
});