10. AI Agents#
AI agents go beyond answering questions: they plan steps, call tools, and take actions such as updating records or sending messages. This chapter explains how agents work, what tools they need, and how much autonomy a business should grant them.
Agent Design: An agent combines a model, instructions, tools, and a loop that decides the next step.
Tools: Tools let agents read data and act in business systems, which raises both value and risk.
Oversight: Autonomy should match the stakes: approvals, limits, and logs keep people accountable.
Chapter Video
This explainer contrasts AI agents with standalone models and shows how agents reason, act, and use tools.
What are AI Agents? (12:28) by IBM Technology
Hosted on YouTube; property of its original creator, embedded here for educational reference only.
Learning Objectives
By the end of this chapter, you will be able to:
Distinguish a model-driven agent from a fixed workflow.
Specify a bounded goal, step budget, and memory conditions.
Validate tool arguments and enforce data-access permissions.
Bind approval to a specific action and specify audit evidence.
Trace a scripted agent loop and diagnose why it stops, repeats a step, or rejects a tool call.
Separate preparation, approval, and financial action, with permissions enforced outside model-generated text.
Chapter Flow
Concept Map
- Goals
- Agent loop
- Step budget
- Tool calls
- Argument checks
- Permissions
- Approval
- Execution
- Audit trace
Glossary
# |
Term |
Explanation |
|---|---|---|
1 |
AI agent |
A system using a model to choose steps and tools toward a goal. |
2 |
Workflow |
A process whose steps may be fixed in advance. |
3 |
Goal |
A desired result with explicit completion conditions. |
4 |
Constraint |
A limit on acceptable actions or results. |
5 |
Memory |
Information retained for later use, subject to source and freshness checks. |
6 |
Tool |
A controlled software operation available to a system. |
7 |
Authorization |
Permission for an identity to perform an operation on specified resources. |
8 |
Side effect |
A change outside a calculation, such as a record update. |
9 |
Idempotency key |
An identifier used to prevent duplicate effects from one intended operation. |
10 |
Autonomy |
Discretion to choose or execute steps without additional intervention. |
11 |
Approval |
Authorization bound to a particular proposed action and conditions. |
12 |
Audit log |
Event evidence supporting reconstruction of requests, decisions, and effects. |
13 |
Tool call |
A structured request, produced by a model, naming a tool and its arguments; the application decides whether to run it. |
14 |
Scripted stub |
A teaching stand-in for a model that replays recorded decisions; it shows the surrounding controls, not model behavior. |
15 |
Step budget |
An application-set limit on how many tool steps one task may use. |
16 |
Loop detector |
A check that stops a run when the same call repeats. |
17 |
Trace |
The ordered record of the steps an agent took and their results, used to evaluate the process as well as the final answer. |
18 |
Human in the loop |
A person who reviews or approves a consequential step before it runs. |
19 |
Escalation |
Passing a decision to someone with more authority or context when a situation exceeds an agent’s limits. |
20 |
Least privilege |
The rule that a tool, account, or agent holds only the permissions its task needs. |
21 |
Default denial |
Blocking a tool or action unless the current permissions explicitly allow it. |
22 |
Approval binding |
Linking approval to a specific action, its parameters, and the version reviewed. |