Skip to content
Eldan.ai
Glossary

Agent

An agent is a program that lets a model decide its own next steps: it calls tools, reads the results and repeats until it judges the task done or a limit stops it.

Autonomy is a spectrum, and the smallest design that works, often a fixed workflow with one model call, is usually the right starting point.

More autonomy brings more flexibility and more ways to fail: loops, wrong tool choices, runaway cost. A fixed workflow that calls a model at known points is easier to test and to explain.

Common mistake. Building an agent for a task a three-step workflow would solve, then spending weeks on guardrails.

In practice. Start with a workflow. Introduce a loop only where the number of steps genuinely varies, and bound it with step, time and cost budgets.

Where this is taught

  • Agent loop

    The agent loop is the cycle at the heart of every agent: send the conversation to the model, and if it asks for tools, run them, append the results and send again. It ends when the model answers in plain text or a limit is hit. The message list is the whole state of the run.

  • Tool calling

    Tool calling, also called function calling, lets a model request that your code run a named function with structured arguments. The model never executes anything itself. It returns a request, your code validates and runs it, and the result goes back into the conversation for the next step.

  • Human in the loop

    Human in the loop means a person reviews or approves the system's action at defined points before it takes effect. It is the main control for risky or irreversible actions. It only works when the review shows exactly what will happen and the person has the time and context to say no.

Cite this page

Eldan Abdrashim. "Agent." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/agent.

The date you read it is added when you copy.

BibTeX

@online{abdrashim2026agent,
  author = {Eldan Abdrashim},
  title = {Agent},
  organization = {Eldan.ai},
  date = {2026-11-23},
  year = {2026},
  month = nov,
  url = {https://eldan.ai/glossary/agent},
  langid = {english}
}

All terms

Section: Agents and tools. Last updated 23 Nov 2026.