Overview
An AI agent takes a goal and works toward it by calling tools, observing results and deciding the next step — unlike a fixed script.
Parts
- Model — reasons about what to do next.
- Tools — actions like search, send, query.
- Memory — what it knows from earlier steps.
The loop
loop
while (!done && steps < MAX) {
action = plan(state);
result = run(action);
state = observe(result);
done = evaluate(state);
}Guardrails
Cap steps and tokens, validate outputs, and require human approval for risky actions. See our AI Agent Architecture note.