ReAct

You might say

Can the AI check the result after each step before deciding what to do next?

A task pattern where an agent decides, acts with a tool, observes the result, and decides againWhen a login button does nothing, an agent can inspect the button first. If the click handler already exists, that observation changes the next action to inspecting the network request and its 401 response.
Know first
Reason + Act
Further reading