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

@@ -1094,7 +1094,7 @@ describe('default one-shot summarizer', () => {
maxTokens: 321,
signal: SIGNAL,
sessionId: session.id,
compact: true,
purpose: 'compaction',
})
const instruction = adapter.lastOptions?.messages.at(-1)?.content[0]
expect(instruction?.type === 'text' ? instruction.text : '').toContain('## Primary Request and Intent')