refactor(llm): classify auxiliary request purpose

This commit is contained in:
Yichen Jiang
2026-07-22 18:59:49 +08:00
parent f432f25203
commit 5234a40f9c
10 changed files with 17 additions and 19 deletions

View File

@@ -236,12 +236,11 @@ interface GenerateOptions {
*/
sessionId?: Branded<'SessionId'>
/**
* Marks the auxiliary compaction (summarization) call. The DeepSeek adapter
* forwards it as the `x-deepseek-harness-compact: 1` request header so the
* host can separate compaction traffic from conversation requests; it never
* enters the model-visible request body. Loop-built requests leave it unset.
* Provider-neutral classification for an auxiliary model call. Adapters may
* map the purpose to model-hidden transport metadata. Ordinary conversation
* requests leave it unset.
*/
compact?: boolean
purpose?: 'compaction'
}
```