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
stepAgentuntil the agent stops or step budget is exhausted. Converted from recursion to awhileloop to avoid call‑stack growth in long‑running sessions.