AgentChatView constructor

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

Implementation

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