feat(models): add background task model override config and runtime wiring

This commit is contained in:
William Valentin
2026-02-19 09:52:45 -08:00
parent 4df1291e64
commit 027f7ad283
6 changed files with 367 additions and 4 deletions
+2
View File
@@ -117,6 +117,7 @@ export async function compactHistory(opts: {
const tier = orchestrator.getDelegationTier('compaction');
const result = await orchestrator.delegate({
task: 'compaction',
tier,
systemPrompt: COMPACTION_SYSTEM_PROMPT,
message: formattedConversation,
@@ -133,6 +134,7 @@ export async function compactHistory(opts: {
try {
const extractionTier = orchestrator.getDelegationTier('memory_extraction');
const extraction = await orchestrator.delegate({
task: 'memory_extraction',
tier: extractionTier,
systemPrompt: MEMORY_EXTRACTION_PROMPT,
message: `Extract persistent facts from this conversation:\n\n${formattedConversation}`,