feat(core): Introduce AgentLoopContext. (#21198)

This commit is contained in:
joshualitt
2026-03-09 09:02:20 -07:00
committed by GitHub
parent 7837194ab5
commit 96b939f63a
14 changed files with 196 additions and 66 deletions

View File

@@ -30,7 +30,7 @@ describe('agent-scheduler', () => {
} as unknown as Mocked<ToolRegistry>;
mockConfig = {
getMessageBus: vi.fn().mockReturnValue(mockMessageBus),
getToolRegistry: vi.fn().mockReturnValue(mockToolRegistry),
toolRegistry: mockToolRegistry,
} as unknown as Mocked<Config>;
});
@@ -69,6 +69,6 @@ describe('agent-scheduler', () => {
// Verify that the scheduler's config has the overridden tool registry
const schedulerConfig = vi.mocked(Scheduler).mock.calls[0][0].config;
expect(schedulerConfig.getToolRegistry()).toBe(mockToolRegistry);
expect(schedulerConfig.toolRegistry).toBe(mockToolRegistry);
});
});