Agent API
Control when a ToolLoopAgent stops its tool loop using built-in and custom stopWhen conditions.
Hard cap at 3 agent steps