Agent Loop InternalsDetailed walkthrough of AIAgent execution, API modes, tools, callbacks, and fallback behavior