Repeatedly invoke stepAgent until the agent stops or step budget is exhausted. Converted from recursion to a while loop to avoid call‑stack growth in long‑running sessions.
stepAgent
while
Repeatedly invoke
stepAgent
until the agent stops or step budget is exhausted. Converted from recursion to awhile
loop to avoid call‑stack growth in long‑running sessions.