DYAP 01715–20 minute lesson

AI Agents and Tool Use

An AI agent combines a model with tools, instructions, memory or state, and a control loop that allows it to pursue a goal through multiple steps.

Editorial learning illustration for AI Agents and Tool Use
Visual guide · Use the flow from inputs and evidence to models, outputs and human decisions.

What you will be able to do

  • Explain ai agents and tool use accurately in your own words.
  • Recognise how the concept appears in real AI products and professional work.
  • Identify an important limitation, risk or evaluation requirement.
  • Apply the concept through a practical activity and knowledge check.

Build the right mental model

A basic chatbot produces a response. An agent can choose an action: search documents, call an API, calculate, write a file or ask for approval. The environment returns an observation, and the agent decides the next step.

Tool use increases usefulness and risk. A wrong answer is different from a wrong action that sends an email, changes a record or spends money. Permissions should be minimal, important actions should require approval, and every action should be logged.

Good agent design defines a narrow goal, trusted tools, stopping conditions, error handling and evaluation scenarios. More autonomy is not automatically better.

01

Tool

A controlled capability the model can request, such as search or calculation.

02

Agent loop

Plan or select action, observe result, then continue or stop.

03

State

Information retained across steps in a task.

04

Approval gate

A point where a person must confirm a consequential action.

Real-world example

Research agent

The agent searches approved sources, extracts findings and drafts a brief.

What this teaches: It may collect weak sources or misrepresent evidence. Require citations and human review before distribution.

Practical activity

  1. Design a three-step agent for a low-risk task.
  2. List its allowed tools.
  3. Add one approval gate, stopping rule and error recovery step.

Write your answers in a learning journal. The value comes from connecting the concept to your own profession.

Test your understanding

Q1What distinguishes an agent from a single model response?

Answer: An agent can select tools and perform multiple environment-connected steps toward a goal.

Q2Why use least privilege?

Answer: It limits the damage possible when the model or workflow makes a mistake or is manipulated.

Reflection

If you cannot explain the answer without reading it, revisit the core explanation and example before continuing.

Important industry resources

These links lead to official organisations, industry laboratories or established open-source learning projects.