feat(core): Land AgentHistoryProvider. (#23978)

This commit is contained in:
joshualitt
2026-03-27 12:22:35 -07:00
committed by GitHub
parent e7dccabf14
commit 320c8aba4c
16 changed files with 593 additions and 17 deletions

View File

@@ -1151,8 +1151,11 @@ describe('loggers', () => {
getQuestion: () => 'test-question',
getToolRegistry: () =>
new ToolRegistry(cfg1, {} as unknown as MessageBus),
getUserMemory: () => 'user-memory',
isExperimentalAgentHistoryTruncationEnabled: () => false,
getExperimentalAgentHistoryTruncationThreshold: () => 30,
getExperimentalAgentHistoryRetainedMessages: () => 15,
isExperimentalAgentHistorySummarizationEnabled: () => false,
} as unknown as Config;
(cfg2 as unknown as { config: Config; promptId: string }).config = cfg2;