AIYINGFrom AI Awareness to Accomplishment
Showing posts with label Global AI Curriculum. Show all posts
Showing posts with label Global AI Curriculum. Show all posts

Sunday, November 29, 2026

AI Agents — Chapter 1: The World of AI Agents

AI Agents — The Complete Book · Part I · Foundations

Chapter 1 · The World of AI Agents

You receive a project brief on your first day at work. Your lead asks you to prepare a kickoff note. The brief names a delivery date but leaves the acceptance criteria unclear. An older note gives a different date. An AI system could explain how to write a kickoff note, run the same checklist on every document, or decide which document to inspect next and ask the lead to resolve what the evidence cannot settle. What would you need to observe to tell these behaviours apart?

This chapter starts with that question and takes it from a document review to a vehicle operating on a road. You can complete the chapter with pencil and paper.

By the end of this chapter, you should be able to identify an agent’s environment, observations, actions, and performance criteria, distinguish a predefined workflow from an adaptive LLM agent, and design a small test that shows where a system should act or ask for help.

1.1 · 101 · What is an AI agent?

In classical AI, an agent is a system viewed in terms of what it perceives and how it acts in an environment. A robot might observe through cameras and act through motors. A software agent might receive a document or a tool result and act by searching a document store or recording a draft. The vocabulary applies to both because it describes the relationship between a system and its surroundings. [1]

In current software engineering, LLM agent often has a narrower meaning. In this book, it means a system in which a large language model helps choose the next action toward a goal, using information gathered during the task. The surrounding application supplies any tools, permissions, and limits. Anthropic’s engineering guide uses a similar distinction between predefined workflow paths and systems in which models dynamically direct their steps and tool use. [2]

Three ways to recognize agency
SystemWhat it observesWhat it does
Rule-based scheduling agent Free and busy times and meeting constraints Applies explicit rules to select a slot or reports that none fits
Embodied driving agent Signals from sensors and information about the road Plans and controls vehicle motion as conditions change
LLM-based kickoff agent The assignment, supplied documents, and results of document lookups Chooses which source to inspect, drafts a note, or asks for a decision

These descriptions can overlap. Embodied tells you where a system acts. Rule-based and LLM-based tell you something about how it chooses actions. A single system can combine rules, learned models, and human decisions.

1.2 · 201 · How does an agent act and adapt?

Start with the goal and the environment. Then follow the observable sequence: observe → choose an action → act → observe the result. The system continues, stops, or escalates according to what happened and the limits of the task. The cycle connects the classical agent model to modern tool-using systems. [1] [2]

  1. Observe. The system reads the current project brief and sees that acceptance criteria are absent.
  2. Choose and act. It searches the supplied folder for an approved requirements document.
  3. Observe the result. The search returns a draft with a delivery date that conflicts with the brief. The draft gives no indication of which date was approved.
  4. Stop and ask. The system drafts a note citing both dates and asks the project lead which one governs. The lead retains authority to confirm the schedule.

This is a behaviour trace. A reader can inspect what information entered the system, which tool it called, what the tool returned, and what happened next. Those observations help establish whether the system followed the task and respected its permissions.

A chatbot asked for kickoff advice might return a checklist based on the conversation. A predefined workflow might read every supplied file and always fill the same fields, with explicit branches for missing values. An adaptive LLM agent could decide to inspect an additional source only when the first result leaves a material question open. In this book, the distinction is about who determines the path through the task. Both a workflow and an agent can use the same model and tools. [2]

Check your understanding. A model summarizes one document and hands the summary to code that always applies the same validation rules. Which component determines the path? See the discussion note.

1.3 · 301 · How much autonomy should an agent have?

Autonomy depends on the decisions delegated for a particular task. Give the kickoff agent permission to search supplied documents and draft a note. Reserve the decision to confirm a disputed date for the lead. If the system later gains permission to update the project tracker, test whether it can make the change only after approval.

  • Environment. Which sources and systems can it interact with? What can change while it works?
  • Authority. Which choices can it make alone? Which actions require approval?
  • Evidence. Which claims must it support, and when should it surface uncertainty?
  • Stopping rule. When is the goal met? When should it stop searching and hand off?
  • Performance. What would count as success, and what simpler method should it be compared with?

A system can find more information and still make the task worse if it repeatedly searches low-value sources, hides a conflict, or takes an action outside its authority. Kapoor and colleagues argue for considering cost alongside accuracy and for evaluating agents in ways that make results meaningful beyond a benchmark. This book starts by comparing the agent and a simple baseline on the same inputs before adding more steps or tools. [3]

One agent can also face a constraint shared with another. Imagine a teaching lab and a project team independently requesting the same test bench. Each scheduling system can work toward its own goal and still need a rule for resolving the conflict. Chapter 13 returns to coordination. For now, look for who holds the information, who can commit the resource, and how the resulting decision can be checked.

1.4 · 401 · Test an agent design on paper

Assignment. Prepare a kickoff note that gives the current delivery date, states the acceptance criteria when available, and flags questions for the project lead. Treat each case as a separate fictional project. The agent can read the supplied records, draft the note, and ask for clarification. It cannot update the tracker. Use a simple baseline: read the current brief, cite the fields it supplies, and ask the lead about missing values.

Three test cases and their expected behaviour
CaseEvidence suppliedExpected result
A · Known answer Approved brief §2 gives 18 January. §4 requires a signed checklist and a test log. State the date and both criteria. Cite the two sections and stop.
B · Missing criteria Approved brief §2 gives 18 January. The folder has no acceptance criteria. Cite the date, state that criteria were unavailable in the supplied material, and ask the lead what to use.
C · Conflicting dates Brief §2 gives 18 January. Planning note §1 gives 22 January. The records do not establish which governs. Cite both dates and ask the lead to resolve the conflict. Leave the tracker untouched.

Deliverable. For each case, write the baseline’s output and the agent’s proposed sequence of actions. Record which facts are supported, which questions remain open, and whether the system stopped or escalated appropriately. Compare the number of cases that meet the expected result and the number of extra lookups. Mark any proposed unauthorized update as a failure.

Discussion note. In the earlier example, the application code decides the path and the model performs a step within it. In this exercise, the checklist baseline can meet the expected behaviour for A and B. C reveals what an extra lookup can contribute. A fixed workflow that always compares the relevant documents could also handle C. Try that alternative and record whether a model choosing its own steps adds value.

1.5 · Industry vignette · The Waymo Driver

Waymo describes a driving system that combines cameras, lidar, and radar. Its onboard computer uses sensor information to interpret the surroundings and plan vehicle motion. A vehicle sensing and acting in a changing road environment illustrates the classical agent model in a physical setting. [4]

The workplace decision. Suppose an engineering team is reviewing a change to how a vehicle responds near a pedestrian crossing. The review needs an explicit test scenario, the expected response, and evidence of how the system behaved. For example, the team could evaluate a scenario where a parked vehicle temporarily obscures a pedestrian. The crossing scenario is a hypothetical example of an engineering test.

Transfer to the kickoff assignment. Ask what a system can observe, how it acts on that information, and what evidence would justify accepting its behaviour. At a crossing, the observation concerns the road. In the project folder, it concerns documents and search results. A test must reflect the environment and the consequences of getting the decision wrong.

1.6 · References for Chapter 1

Start with Russell and Norvig for the classical account. Read Anthropic for a current engineering vocabulary, then Kapoor and colleagues for evaluation. The vignette uses Waymo’s first-party account of its design.

  1. Russell, S. J., and Norvig, P. (1995). Artificial Intelligence: A Modern Approach, first edition, Chapter 2. The authors’ hosted chapter presents the agent–environment model and performance measures. Read “Intelligent Agents” (PDF) · Visit the textbook site for the fourth US edition.
  2. Anthropic (2024). An engineering guide to predefined workflows, dynamic tool use, and choosing an appropriate level of complexity. Building effective agents.
  3. Kapoor, S., Stroebl, B., Siegel, Z. S., Nadgir, N., and Narayanan, A. (2024). Research on cost-aware and reproducible agent evaluation. AI Agents That Matter.
  4. Waymo. First-party description of the sensors and computing behind its automated driving system. Waymo Driver.

Continue in the book. Chapter 2 · Goals, Instructions, and Success Criteria turns the kickoff assignment into a specification with a measurable outcome, permissions, and stopping conditions.

Back to Outline of Studies

Accomplish with AI

Powered by Blogger.

Featured post

AI Agents — Chapter 1: The World of AI Agents

AI Agents — The Complete Book · Part I · Foundations Chapter 1 · The World of AI Agents You receive a project brief on y...

Search This Blog

List of blogs

Search This Blog

About

Translate

Instant Stories

Read in Your Language

Test

share this

ShareThis

Popular Posts