RoomDatasetChatThread constructor

const RoomDatasetChatThread({
  1. Key? key,
  2. required RoomClient room,
  3. required String path,
  4. ChatThreadController? controller,
  5. GlobalKey<State<StatefulWidget>>? composerKey,
  6. String? agentName,
  7. String? emptyStateTitle,
  8. String? emptyStateDescription,
  9. FutureOr<void> openFile(
    1. String path
    )?,
  10. DatasetChatAttachmentRenderer? attachmentRenderer,
  11. DatasetChatInlineAttachmentViewerPredicate? inlineAttachmentViewerPredicate,
  12. Widget toolsBuilder(
    1. BuildContext,
    2. ChatThreadController,
    3. ChatThreadSnapshot
    )?,
  13. Widget? inputPlaceholder,
  14. Widget attachmentBuilder(
    1. BuildContext context,
    2. FileAttachment upload
    )?,
  15. ChatThreadCustomInputBuilder? customInputBuilder,
  16. EditableTextContextMenuBuilder? inputContextMenuBuilder,
  17. TapRegionCallback? inputOnPressedOutside,
  18. FileDropOverlayBuilder? fileDropOverlayBuilder,
  19. DatasetChatModelController? modelController,
  20. bool initialShowCompletedToolCalls = false,
  21. bool showUsageFooter = false,
})

Implementation

const RoomDatasetChatThread({
  super.key,
  required this.room,
  required this.path,
  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.fileDropOverlayBuilder,
  this.modelController,
  this.initialShowCompletedToolCalls = false,
  this.showUsageFooter = false,
});