learn

Agent Loop

Agent Loop

  • Models are stateless. They process one request, produce a completion, and forget.
  • They can’t take action, access live data, or coordinate multi-step workflows alone.
  • Agents solve this by wrapping a model in a runtime system that gives it tools, memory, and a reasoning loop.
  • Definition: Software program that can interact with its environment, collect data, and use that data to perform self-directed tasks that meet predetermined goals. Humans set goals, but an AI agent independently chooses the best actions, it needs to perform, to achieve those goals.

Learning checkpoint

Mark this guide complete to include it in your local Engineering Journey.

Knowledge path

Connected concepts

Explore the knowledge graph →