Runs a single agent loop: generate -> append -> (if tool calls) execute in parallel, gated by approval -> append results -> repeat, until the model stops calling tools, stopWhen returns true, maxSteps is reached, or the loop is aborted.
stopWhen
maxSteps
Runs a single agent loop: generate -> append -> (if tool calls) execute in parallel, gated by approval -> append results -> repeat, until the model stops calling tools,
stopWhenreturns true,maxStepsis reached, or the loop is aborted.