Agentic Development ยท Architecture
The repeated cycle an agent runs: observe the current state, think about what to do next, take an action, observe the result, repeat โ until the goal is met or a stopping condition is hit.
Example: A research agent loops: search โ read page โ decide if it has enough info โ if not, search again with a refined query.
In practice: Designing a good stopping condition is non-trivial. Without one, agents can loop indefinitely or rack up unexpected API costs.