Agent loop

The repeating cycle of an AI agent: think, use a tool, check the result, choose the next step.