Function: runAssistantLoop()
runAssistantLoop(
request,providers,executor,budget,opts?):AsyncIterable<AssistantEvent>
Defined in: src/server/ai/chat/orchestrator.ts:134
Drive the full multi-round dialogue. request.messages is treated as immutable; a working copy
grows with each assistant + tool message so subsequent model turns see the tool results. opts.now
is injectable for deterministic wall-clock tests (defaults to Date.now).
Parameters
request
providers
readonly ChatProvider[]
executor
budget
opts?
now?
() => number
Returns
AsyncIterable<AssistantEvent>