SessionCompactionCompleteEvent constructor

const SessionCompactionCompleteEvent({
  1. required String id,
  2. required String timestamp,
  3. String? parentId,
  4. bool ephemeral = false,
  5. required bool success,
  6. String? error,
  7. int? preCompactionTokens,
  8. int? postCompactionTokens,
  9. int? preCompactionMessagesLength,
  10. int? messagesRemoved,
  11. int? tokensRemoved,
  12. String? summaryContent,
  13. int? checkpointNumber,
  14. String? checkpointPath,
  15. Map<String, dynamic>? compactionTokensUsed,
  16. String? requestId,
})

Implementation

const SessionCompactionCompleteEvent({
  required super.id,
  required super.timestamp,
  super.parentId,
  super.ephemeral,
  required this.success,
  this.error,
  this.preCompactionTokens,
  this.postCompactionTokens,
  this.preCompactionMessagesLength,
  this.messagesRemoved,
  this.tokensRemoved,
  this.summaryContent,
  this.checkpointNumber,
  this.checkpointPath,
  this.compactionTokensUsed,
  this.requestId,
}) : super(type: 'session.compaction_complete');