The Video Assistant · Lesson 10 — The Investigation Chain ← Course

The investigation chain — the agent loop.

One tool call answers a question. A chain of them, decided on the fly, settles a case.

In the last lesson the model reached for a single tool and answered. But a hard call is rarely one question — it is a chain. The VAR asks what it still needs, consults a tool, looks at what came back, and decides whether that settles it or whether to consult another.

That is the agent loop: think (what do I still need?) → act (consult a tool) → observe the result → decide (enough, or go again?) — and round again, until it renders the verdict. The model runs the loop itself, choosing each next step from what it has just seen.

What makes it an agent, not just a tool call, is the judgement: breaking a goal into steps, correcting course when a result is ambiguous, and — hardest of all — knowing when to stop.

Take one hard appeal and turn the loop, step by step, until the VAR has enough to rule.

An appeal comes in
THINK ACT OBSERVE DECIDE not enough — go again enough RULE

Not one call — a chain of them.

An agent does not answer in a single shot. It loops: works out what it still needs, calls a tool, reads the result, and decides whether to stop or go again — steering each step by what the last one showed. Three consultations here, each chosen because of the one before it, then a verdict that rests on all three.

The tools were Lesson 8. The loop is what turns them into an agent: planning, self-correction, and a stopping rule. Give it a goal and the means, and it runs the review — which is exactly why the next question is how far you let it run on its own.

Next: the plan →
Go deeper — planning, stopping, and staying in control optional

Think–act–observe, over and over

This loop has a name in the field: a reason-and-act pattern. The model writes a short thought, chooses an action (a tool call), reads the result back into its context, and repeats. Each turn's observation becomes part of what it reasons over next — that is how later steps depend on earlier ones.

Planning and self-correction

A good agent breaks a goal into sub-questions (handball? arm or chest? onside?) rather than lunging at an answer. And it revises: the first replay looked like handball, but the agent withheld judgement until the freeze-frame showed the ball met the chest, not the arm. Reacting to evidence, not its first hunch, is the whole point.

Stopping conditions

The hardest part is knowing when to quit. Agents stop on a condition — enough evidence, a step limit, a budget, or a confidence threshold — because a loop with no exit will keep calling tools forever, burning time and money. “I have enough” is a decision, not an accident.

Guardrails and a human in the loop

Running on its own is powerful and risky. Real systems fence the loop: limit which tools it may call, cap the number of turns, and require a person to approve high-stakes or irreversible actions. Knowing when not to let it run unattended is part of building one well.

Cost is the quiet catch

Every turn is another model call and another tool call. A three-step review is cheap; an agent that loops twenty times per question is not. Fewer, better-chosen steps usually beat a longer chain — the same lesson as few-shot and retrieval.