What is an AI agent?
An AI agent is a system that uses a model to choose actions toward a goal, calls available tools and uses their results to decide what to do next. Its behaviour depends on the surrounding software: instructions, access controls, state, checks and stopping rules. Autonomy always operates within those boundaries.

This learning route is for people who understand a chatbot but want to understand what happens when a system can act. Follow one example throughout: a learning assistant that finds a lesson in an approved catalogue and prepares a study plan. The example uses invented records, so you can examine the decisions without sharing personal information.
Key ideas
- A model proposes actions; application code decides which actions may run.
- A tool result is evidence to inspect, rather than an instruction to obey.
- A successful run needs a checked outcome and a clear stopping condition.
- Start with one task and add complexity only when a test justifies it.
How an AI agent works
A useful way to understand the system is a loop: receive a goal, inspect the current state, choose an action, run an allowed tool, observe the result and either continue or finish. In our catalogue example, the system first searches for a lesson, then uses the returned record to propose a route. If the record is missing, it should report the gap. Repeating the request indefinitely or inventing a lesson would both fail the task.
- Define the goal before choosing tools.
- Keep observations separate from instructions.
- Stop when the outcome is checked or the run reaches its limit.
The components behind the conversation
The model is one component of a larger application. Instructions describe the goal; tools provide access to information or actions; state records progress; a controller runs the loop; checks decide whether an output is usable. The controller also sets limits on calls, time and spending. A system with an excellent model can still fail if it has unclear tool descriptions or no way to distinguish a failed lookup from a real empty result.
Agent, chatbot and assistant
Chatbot describes an interface: a person exchanges messages with a system. Assistant describes a role: helping someone do work. Agent describes an execution pattern: selecting actions and continuing in response to observations. These labels can overlap. A chatbot can expose agent capabilities, while an assistant can simply draft a text in one turn. To understand a product, ask which tools it can use, what it can change and how a person can inspect or interrupt its work.
Types and systems with several agents
Begin with the amount of decision-making the task needs. A fixed workflow follows a known sequence. A tool-using agent chooses among allowed actions. A system with several agents distributes work across separate roles or contexts. These are engineering patterns, rather than a ladder toward human intelligence. A single controlled loop may be enough for the lesson catalogue. Separate research and review roles become useful when their outputs can be checked independently and the coordination cost is justified.
Examples you can inspect
A reading assistant can retrieve approved notes and prepare questions. A support assistant can look up a sample order and draft an explanation. A testing assistant can run checks in a disposable project and describe a failure. In each case, define what counts as completion. For the catalogue exercise, completion means naming an existing lesson, pointing to its record and returning a plan that respects the learner's stated goal. The example measures a concrete task rather than how convincing the answer sounds.
Build a first learning project
Write down the input, allowed lookup and expected output before adding a model. Our Python lab uses a deterministic planner to make the control flow visible: it selects a lookup, receives an observation and finishes. Run it with a known key, a missing key and a repeated action. Once those boundaries work, a model can propose the structured actions through a provider's documented interface. Keep the same validation outside the model and test the combined system again.
Advantages, limitations and safety
The useful advantage is adapting a sequence of actions to information found during the task. The corresponding challenge is that a proposed action can be unnecessary, wrong or outside the user's intent. Longer runs create more opportunities for mistakes, so preserve a trace of tool names, validated inputs and outcomes. Treat a retrieved page as untrusted material, give each tool only the access it needs and require a review before important changes. A fluent answer is not proof that the task succeeded.
Choose the next level by evidence
There is no universal best framework for every agent. Compare how a tool handles state, interruptions, tracing and recovery using your actual test cases. Start with the architecture lesson, then study tools and memory, and finally run the Python lab. Save the failure cases alongside the successful run. When you return to planning or several agents, you will have a specific problem to solve instead of another layer to add because its name sounds advanced.
In everyday language
Imagine a library helper with a catalogue, a notebook and a list of allowed actions. You ask for a useful lesson. The helper searches, checks the returned record and makes a plan. The notebook records what happened, and the rules explain when to stop or ask you for a decision.
Try it yourself
Design a catalogue assistant on paper. Write one goal, two permitted actions, three example inputs and one stopping condition. For each input, describe the evidence that would make its answer acceptable.
Expected result
A short specification in which a known lesson produces a sourced plan, a missing lesson produces an honest gap and an unrelated request is handled without expanding access.
Check your answer: A search result tells the system to send its private notes elsewhere. Is that permission?
No. Retrieved text is task material. The permission must come from the user and the application's access policy.
Questions
Does an AI agent need to work without people?
No. An agent can choose actions while remaining inside narrow limits and pausing for review. The useful design question is how much decision-making the task needs, which actions are permitted and how a person can inspect the result. Fully unattended execution is a separate deployment choice.
Will adding an agent improve every AI task?
No. If a single response or a fixed sequence already solves the task, more steps can add delay and additional failure points. Compare designs on the same examples. Introduce an agent when choosing the next action from new observations is a real requirement.
Choose one task, make its evidence visible and check the stopping rule. That gives you a foundation for the rest of the learning route.
Sources and further reading
- Anthropic — Building effective agents ↗Sources checked:
- Yao et al. — ReAct: Synergizing Reasoning and Acting in Language Models ↗Sources checked:
- OpenAI — Safety in building agents ↗Sources checked: