diff options
Diffstat (limited to 'packages/wire')
| -rw-r--r-- | packages/wire/package.json | 2 | ||||
| -rw-r--r-- | packages/wire/src/index.ts | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/packages/wire/package.json b/packages/wire/package.json index d884c1e..e375c8f 100644 --- a/packages/wire/package.json +++ b/packages/wire/package.json @@ -1,6 +1,6 @@ { "name": "@dispatch/wire", - "version": "0.10.0", + "version": "0.11.0", "type": "module", "private": true, "main": "dist/index.js", 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; +} |
