Agentic Loop Implementation: stop_reason, tool_use, and end_turn Explained | explainx.ai Blog | explainx.ai