onIterationComplete in the options to agent.stream(...), whenever this function returns continue: false it early-stops the agent loop as-per the documentation. However, continue: true does not do anything, ever. If isFinal = false, then the agent would continue anyway, and if isFinal = true, then even with continue: true, the loop terminates.isTaskComplete(), but I feel like the continue: true return should really be able to override isFinal: true