diff options
Diffstat (limited to 'packages/wire/src')
| -rw-r--r-- | packages/wire/src/index.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/wire/src/index.ts b/packages/wire/src/index.ts index 53f1f02..69f35f0 100644 --- a/packages/wire/src/index.ts +++ b/packages/wire/src/index.ts @@ -522,3 +522,16 @@ export interface ConversationMeta { readonly title: string; readonly status: ConversationStatus; } + +// ─── Compaction ────────────────────────────────────────────────────────────── + +/** + * Result of a compaction operation. `summary` is the text the model produced; + * `messagesKept` is how many recent messages were retained after the summary; + * `messagesSummarized` is how many old messages were replaced by the summary. + */ +export interface CompactionResult { + readonly summary: string; + readonly messagesSummarized: number; + readonly messagesKept: number; +} |
