SessionCompactionCompleteEvent constructor
const
SessionCompactionCompleteEvent({
- required String id,
- required String timestamp,
- String? parentId,
- bool ephemeral = false,
- required bool success,
- String? error,
- int? preCompactionTokens,
- int? postCompactionTokens,
- int? preCompactionMessagesLength,
- int? messagesRemoved,
- int? tokensRemoved,
- String? summaryContent,
- int? checkpointNumber,
- String? checkpointPath,
- Map<
String, dynamic> ? compactionTokensUsed, - 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');