Agent loop
An agent operates through a repeating cycle. It senses input, decides on an action, executes that action, and updates its state. This loop defines autonomous behavior.
- The agent loop — The core sense–decide–act–update cycle.
- Implementing a classical agent — Combining state, rules, and tools in code.
- Limits of deterministic agents — Where rule-based logic falls short.