ctx, cancel := context.WithCancel(t.Context())
done := make(chan error)
go func() {
- done <- daemonServe(ctx, listener, bot, func(notify func(Event)) (*loop, error) {
- return newLoop(agent, memory, client, clock.Now, notify)
+ done <- daemonServe(ctx, listener, bot, func(notify func(Event)) (*TurnLoop, error) {
+ return newTurnLoop(agent, memory, client, clock.Now, notify)
})
}()