# Inputs, data, and configuration — Agent Loops, Stop Conditions & Token Budgets

Source: https://www.geekswithgeeks.com/en/agent-loops/agent-loops-06

> Apply foundations 2 in Agent Loops, Stop Conditions & Token Budgets.

## Understand Inputs, data, and configuration

In **Agent Loops, Stop Conditions & Token Budgets**, connect the goal, constraints, risks, and measurable outcome before selecting a workflow.

## See the workflow

Understand the context, make a focused decision, verify the result, then improve.

![A four-stage learning workflow.](assets/figures/agent-loops/section-2-map.svg) — Figure 2.1 — Understand, act, verify, improve.

## A useful comparison

Treat this as a route plan: every step should lead to a checked destination.

Check your reasoning.

**Quiz:** What should come before selecting a workflow?

- [x] A clear goal, constraints, and evidence.
- [ ] An unverified copy.
- [ ] No safety review.

*Answer:* A clear goal, constraints, and evidence.. Evidence and constraints make decisions reviewable and safer.
