DatasetChatThread constructor

const DatasetChatThread({
  1. Key? key,
  2. required String path,
  3. BaseChatClient? chatClient,
  4. bool disposeChatClient = false,
  5. ChatThreadController? controller,
  6. GlobalKey<State<StatefulWidget>>? composerKey,
  7. String? agentName,
  8. String? emptyStateTitle,
  9. String? emptyStateDescription,
  10. FutureOr<void> openFile(
    1. String path
    )?,
  11. DatasetChatAttachmentRenderer? attachmentRenderer,
  12. DatasetChatInlineAttachmentViewerPredicate? inlineAttachmentViewerPredicate,
  13. Widget toolsBuilder(
    1. BuildContext,
    2. ChatThreadController,
    3. ChatThreadSnapshot
    )?,
  14. Widget? inputPlaceholder,
  15. Widget attachmentBuilder(
    1. BuildContext context,
    2. FileAttachment upload
    )?,
  16. ChatThreadCustomInputBuilder? customInputBuilder,
  17. EditableTextContextMenuBuilder? inputContextMenuBuilder,
  18. TapRegionCallback? inputOnPressedOutside,
  19. DatasetChatRowsLoader? rowsLoader,
  20. DatasetChatFileDropHandler? onFileDrop,
  21. FileDropOverlayBuilder? fileDropOverlayBuilder,
  22. Participant? localParticipant,
  23. String? localParticipantName,
  24. DatasetChatGeneratedImageAttachmentRenderer? generatedImageAttachmentRenderer,
  25. DatasetChatImageGalleryBuilder? imageGalleryBuilder,
  26. DatasetChatSecretRequestHandler? secretRequestHandler,
  27. DatasetChatDebugRowsChanged? onDebugRowsChanged,
  28. DatasetChatModelController? modelController,
  29. bool initialShowCompletedToolCalls = false,
  30. bool showUsageFooter = false,
})

Implementation

const DatasetChatThread({
  super.key,
  required this.path,
  this.chatClient,
  this.disposeChatClient = false,
  this.controller,
  this.composerKey,
  this.agentName,
  this.emptyStateTitle,
  this.emptyStateDescription,
  this.openFile,
  this.attachmentRenderer,
  this.inlineAttachmentViewerPredicate,
  this.toolsBuilder,
  this.inputPlaceholder,
  this.attachmentBuilder,
  this.customInputBuilder,
  this.inputContextMenuBuilder,
  this.inputOnPressedOutside,
  this.rowsLoader,
  this.onFileDrop,
  this.fileDropOverlayBuilder,
  this.localParticipant,
  this.localParticipantName,
  this.generatedImageAttachmentRenderer,
  this.imageGalleryBuilder,
  this.secretRequestHandler,
  this.onDebugRowsChanged,
  this.modelController,
  this.initialShowCompletedToolCalls = false,
  this.showUsageFooter = false,
});