CompactMessage constructor

const CompactMessage({
  1. required String uuid,
  2. required MessageRole type,
  3. String? messageId,
  4. List<ContentBlock> contentBlocks = const [],
  5. required DateTime timestamp,
  6. bool isMeta = false,
  7. bool isCompactSummary = false,
  8. bool isCompactBoundary = false,
  9. Map<String, dynamic>? compactMetadata,
  10. bool isVisibleInTranscriptOnly = false,
  11. String? toolUseResult,
  12. String? sourceToolAssistantUUID,
  13. Map<String, dynamic>? summarizeMetadata,
})

Implementation

const CompactMessage({
  required this.uuid,
  required this.type,
  this.messageId,
  this.contentBlocks = const [],
  required this.timestamp,
  this.isMeta = false,
  this.isCompactSummary = false,
  this.isCompactBoundary = false,
  this.compactMetadata,
  this.isVisibleInTranscriptOnly = false,
  this.toolUseResult,
  this.sourceToolAssistantUUID,
  this.summarizeMetadata,
});