The agent loop

An agent doesn't just answer — it runs a loop: plan → act (use a tool) → observe → decide, keeping state and a budget, until the goal is met. Watch it work a real task step by step.

Fundamentals of AIAgentic AI
Speed
0
STEP
0/8
TOOL CALLS
ready
STATUS
1Plan
2Act — use a tool
3Observe
4Decide
A

Goal → Plan → Act → Observe → Decide

The control loop wrapped around the model. It repeats until the goal is met or a budget runs out.

Press Play to run the loop, or Step to advance one stage.
MCP tool call — connect & act RAG retrieval — fetch knowledge think the model reasons (no external call)
B

State the agent carries

Goal, plan, results, budget — updated every step.

Goal:
    Budget — tool calls0 / 8
    C

    Agent trace

    Every reason, tool call and observation — the audit trail.