What is an AI agent?
An AI agent is a language model that works toward a goal in a loop: it plans, calls tools, reads the results and decides the next step.
- Name the goal: what should be true when the agent is done?
- List the tools it may call (search, files, email, APIs) and nothing more.
- Run the loop: plan → act with a tool → read the result → decide again.
- Stop on a clear condition: goal reached, step limit hit or a human must decide.