require.NoError(t, err)
agent.config.Workdir = t.TempDir()
- memory, err := openMemory(t.Context(), agent.dir, clock, newFakeSummarizer())
+ memory, err := openMemory(t.Context(), agent.dir, clock, newFakeSummarizer(), discardLog())
require.NoError(t, err)
socket := filepath.Join(dir, socketFileName)
client := newModelClient(server.URL, ModelAPIKey(modelTestKey), agent.CacheKey(), filepath.Join(agent.dir, "usage.jsonl"))
ctx, cancel := context.WithCancel(t.Context())
done := make(chan error)
+ subagents := newTestSubagents(t)
go func() {
done <- daemonServe(ctx, listener, bot, whatsapp, schedules, func(notify func(Event)) (*TurnLoop, error) {
- return newTurnLoop(agent, memory, newTestSubagents(t), whatsapp, schedules, client, clock, notify)
+ return newTurnLoop(agent, memory, subagents, whatsapp, schedules, client, clock, discardLog(), notify)
})
}()