Agent loop

The repeated model, tool execution, and state-update cycle that continues until an agent stops.