feat(llm): mark compaction requests with x-deepseek-harness-compact header

This commit is contained in:
Jinhua Zhu
2026-07-22 18:35:32 +08:00
parent 6646ef04ac
commit 66e5f8eecd
7 changed files with 29 additions and 2 deletions

View File

@@ -138,6 +138,7 @@ export async function summarizeWithLlm(
...input.tools === undefined ? {} : { tools: [...input.tools] },
maxTokens: config.maxTokens,
sessionId: agent.session.id,
compact: true,
...signal === undefined ? {} : { signal },
}
for await (const chunk of ctx.llm.stream(options)) assembler.push(chunk)