AgentChatView constructor

const AgentChatView({
  1. Key? key,
  2. required ChatSession session,
  3. MarkdownTapLinkCallback? onTapLink,
  4. VoidCallback? onNewSession,
  5. PromptAttachmentController? attachmentController,
  6. ChatComposerController? composerController,
  7. PromptAttachmentPicker? pickAttachments,
  8. PromptAttachmentKindPicker? pickAttachmentsForKind,
  9. PromptImageClipboardReader? readClipboardImage,
  10. PromptDroppedImageReader? readDroppedImage,
  11. ChatImageDecodeBudgetLedger? imageDecodeLedger,
  12. BoundedImageDecoder boundedImageDecoder = const DartUiBoundedImageDecoder(),
  13. ToolPresentationRegistry? toolPresentationRegistry,
  14. ChatPartBuilder? timelineBuilder,
  15. ChatPartBuilder? composerBuilder,
  16. bool showError = true,
})

Implementation

const AgentChatView({
  super.key,
  required this.session,
  this.onTapLink,
  this.onNewSession,
  this.attachmentController,
  this.composerController,
  this.pickAttachments,
  this.pickAttachmentsForKind,
  this.readClipboardImage,
  this.readDroppedImage,
  this.imageDecodeLedger,
  this.boundedImageDecoder = const DartUiBoundedImageDecoder(),
  this.toolPresentationRegistry,
  this.timelineBuilder,
  this.composerBuilder,
  this.showError = true,
});