AGAI-L06b: What Would Make a Chatbot an Agent

In short

A guest lecture by Giovanni Sileno (UvA) on one question: is a tool-using chatbot, marketed as “agentic AI”, an agent, and if not, what would make it one? Objects occupy space and events time; actors produce changes; agents are actors we ascribe intentions to (Dennett’s intentional stance). Behaviour splits into executing a script, selecting it from a repertoire, and modifying it over time.

Beliefs and desires are not enough: an agent also needs intentions, a settled commitment to a goal and a plan, reached by weighing choices and their side effects (Bratman, the BDI model). Sileno’s CAES model (commitments, abilities, expectations, susceptibilities) gives this a cleaner structure and maps onto the harness of a coding agent. Today’s “AI agent” is an LLM plus a harness; “agentic AI” orchestrates several agents.

The midterm lists Lecture 6 only under Deep MARL, which is part 1; whether this part is examined there is not stated. It feeds the final exam, whose format is not announced.

The question: is a tool-using chatbot an agent?

“Agent” means rather different things across disciplines, even inside computing; at the very least it works as a metaphor. It comes from Latin agere: acting towards, driving behaviour. The same word covers the rational agent of philosophy, political agency (people acting to change their society), the artificial “rational” agent of AI (the perceive-act loop of Russell and Norvig), and, for humans, acting on behalf of someone else (a secret agent).

Sileno’s guiding question:

Is a tool-using chatbot (commonly marketed as “Agentic AI”) an agent? If not, what would make it one?

He builds the notion of agent from the ground up to answer it.

Objects, events and actions

He starts from a common-sense ontology (an inventory of the basic kinds of things).

  • Objects are relatively persistent entities that occupy a position in space. Agents are objects too: an actor on a stage is also a body in a place.
  • Events are to time what objects are to space: objects : space = events : time (Zacks and Tversky, 2001). Events occupy time and involve objects, because they produce changes on objects, though a sequence of events can bring back the initial conditions (open a door, then close it).
  • Actions are events driven by agents; their completed forms are acts. Communication acts are speech acts (acts done by saying something, such as asking or promising).

Dennett’s stances

Daniel Dennett (The Intentional Stance, 1987) describes three ways of interpreting an entity, each built on the one below (see Intentional Stance):

  • Physical stance: interpret it using physical laws. Where a billiard ball goes follows from where and how hard the cue strikes it.
  • Design stance: interpret it by what it is supposed to do, what it has been designed to do. You read the time off a clock without knowing its mechanism. Sometimes the clock breaks; then design-stance predictions fail and only the physical stance explains what it does.
  • Intentional stance: interpret the entity as an agent.

Intentional stance (Dennett)

Interpreting entities as agents, ascribing them beliefs, desires, intentions and enough rationality to do what they ought to do given those beliefs and desires.

We take this stance constantly: towards a child, players at a poker table (what does she think I’m holding?), a cat whose posture says “I’m scared”, and whole countries (“the EU fears…”). It is a choice of description, the lesson of Russell and Norvig’s calculator caveat in Lecture 1: “agent” is a tool for analysing systems. (Outside the lecture: Dennett justifies the stance by its predictive success. A chess program’s next move is far easier to predict by assuming it wants to win than from its code.)

Objects, actors and agents

The stances give Sileno a three-way split:

  • Objects are passive entities: they undergo changes due to others’ actions. An apple.
  • Actors are active entities: they produce changes. A volcano; the services of a software system, each acting on requests.
  • Agents are actors ascribed with intentions. An erupting volcano is an actor; a fire spirit that erupts because it is angry is an agent.

The key word is ascribed: agency is attributed by an observer, as in the intentional stance.

What intentions are in an artificial agent

Allen Newell (“The Knowledge Level”, 1982) gives a minimal structure:

“An agent [..] has an extremely simple structure. [..] First, the agent has some physical body with which it can act in the environment (and be acted upon). [..] Second, the agent has a body of knowledge. This body is like a memory. Whatever the agent knows at some time, it continues to know. [..] Third, and finally, the agent has a set of goals. A goal is a body of knowledge of a state of affairs in the environment. Goals are structurally distinguished from the main body of knowledge. This permits them to enter into the behavior of the agent in a distinct way, namely, that which the organism strives to realize.”

Sileno reads this as a body that senses and acts (providing percepts to the mind, realising actions in the environment) plus a mind that controls the body using knowledge and goals. Rationality (compare Rational Agent) is expressed by the interaction of knowledge, goals and situated action, and it hints at verbalisation: it refers to explicit reasons weighed when taking a decision. Intelligence, “executing the correct action in a situation”, generalises this and needs no verbalisation. So his minimal starting point for an artificial intelligent agent is:

  • a body, sensing and acting in an environment;
  • a mind controlling the body, depending on some form of memory and some form of purpose, possibly implicit.

Functionally, memory maps at least to beliefs and purpose to desires. Sileno then asks in what sense an LLM-centred chatbot is an intelligent agent, and leaves it open. On the minimal definition it arguably qualifies, with tools as body, context as memory and the prompt as implicit purpose (worked here, not given in the lecture). Whether beliefs and desires are enough comes up under intentions below.

Which things are agents?

Sileno puts a series of cases without verdicts: an ant, a bee in its hive, a clock, a pen, a heart, a forest, a community, a program, a robotic arm, a thermostat. He then gives Wooldridge and Jennings’ criteria:

Weak agency (Wooldridge and Jennings, 1995)

  • Reactivity: perceives and responds to changes in its environment.
  • Proactivity: takes initiative driven by goals or intentions rather than simple input-output mapping.
  • Autonomy: operates without continuous external intervention.
  • Social ability: interacts with other agents to coordinate, compete, or negotiate.

(Outside the lecture: Wooldridge and Jennings call this notion weak because it is the relatively uncontentious one; their strong notion also describes the agent in mental terms such as beliefs, desires and intentions, which is where BDI comes in.)

One way to apply the criteria (worked here, not given in the lecture):

EntityReactiveProactiveAutonomousSocial
Pennononono
Clocknonoyesno
Heartyesnoyesno
Thermostatyesdoubtfulyesno
Robotic armif it sensesif goal-drivenpartlyno
Ant, beeyesyesyesyes
Communityyesarguablyyesyes
Chatbot with toolsyesvia its harnesswithin a taskamong agents only

The thermostat is the borderline case. It reacts and runs alone, but its “goal” (the set temperature) is a fixed input-output mapping, which is what proactivity excludes; saying “it wants the room at 20 °C” adds as little as it does for the calculator. The chatbot’s initiative comes from a goal stated in the prompt and the loop around the model, so its proactivity belongs to the harness.

Agent-based modelling

Agent-based modelling (ABM) studies a system by simulating its interacting agents (see Agent-Based Modelling). There are two main ways to specify the agents’ behaviour.

Cellular automata, generally as if-then rules: each cell on a grid updates its state from its neighbours’. In Rule 22, a cell becomes 1 if there is exactly one 1 in its three-cell neighbourhood (left, centre, right). Simple local rules like this produce complex global patterns; Conway’s Game of Life and Schelling’s segregation model are other examples. Agent-oriented programming, for example of BDI agents, is a more expressive approach in the same arena: rules over beliefs, desires and intentions.

Equations, possibly differential (ODE or PDE: ordinary or partial differential equations), traditionally more associated with economics, such as a model of a price over time.

For spreading dynamics (how a disease, rumour or behaviour spreads), the topology enabling interactions, who can meet whom, becomes particularly relevant, which leads to network science.

Approaches to ABM in game theory

Game theory traditionally has two approaches too (see Lecture 2):

Classic game theoryEvolutionary game theory
Rationalityperfectly rationalbounded, possibly non-rational
Cognitionforward-looking: anticipate, decide, then actreplicative (mimesis?), possibly adaptive
Agentsdifferent, very fewsimilar, very many
Typical toolpayoff matrix (Prisoner’s Dilemma)Replicator Dynamics

“Mimesis” means imitation (the question mark is Sileno’s): strategies spread because agents copy what works, without anyone reasoning ahead.

A theatrical view of agency

Sileno separates the aspects of behaviour with a theatre metaphor:

  1. At a given time, the agent’s behaviour follows a definite script: EXEC (the actor performs).
  2. So at an earlier point this script was selected: SELECT (the director picks the play). SELECT presupposes a repertoire of scripts.
  3. So at an earlier point still, the script was either created or adapted from a previous one: MODIFY (the playwright writes). MODIFY may be due to external events, for example transcription errors acting as mutation.

SELECT and MODIFY behaviour are themselves scripts that are executed, and that at some point were selected and created or modified, and so on, recursively, down to some hard-coded ground.

A layered view of action, including learning

flowchart LR
  BS((base script)) --> MOD[MODIFY]
  MOD --> REP((repertoire))
  REP --> SEL[SELECT]
  SEL --> SC((script))
  SC --> EX[EXEC]
  EX --> EF[effects]
  EF -.->|which available script is most effective?| SEL
  EF -.->|how do I create or rewrite a script to be more effective?| MOD

Learning is feedback from effects, as in the learning agent of Russell and Norvig. At the SELECT level it asks which available script is most effective; at the MODIFY level, how to create or rewrite a script to be more effective.

Sileno’s exercise asks three questions of an agent. EXEC: what script is being executed right now? SELECT: how is a script chosen from a repertoire? MODIFY: how is a script rewritten or updated over time? He poses them for three cases without answers. Worked answers (not given in the lecture):

A Q-learning agent on a grid world, acting epsilon-greedily

EXEC: the move made in the current cell. SELECT: epsilon-greedy: with probability the move with the highest Q-value, otherwise a random one of the four moves. MODIFY: the Q-Learning update, which rewrote Q-values from rewards while the policy was learned; once the policy is only applied, MODIFY is off. With single moves as scripts, Q-learning is learning at the SELECT level; with the whole policy as the script, each update is a MODIFY. The update and epsilon-greedy rules are the hard-coded ground.

Tit-for-tat

EXEC: this round’s move, cooperate or defect. SELECT: copy the opponent’s previous move (cooperate on the first). MODIFY: none: tit-for-tat is a fixed rule, its own hard-coded ground. Change happens only at the population level, where replicator dynamics and mutation alter the mix of strategies.

Your train stops for a long time at the wrong station

EXEC: the commuting script (sit, wait for your stop), whose assumptions the stop breaks. SELECT: pick a disruption script: wait, switch train, take a bike, message that you’ll be late. MODIFY: if none fits, improvise; afterwards adapt the commute (leave earlier, check for disruptions).

What today’s “AI agents” are

The common definition: an AI agent is “an autonomous system where a LLM decides what to do next, which tools to use, and when the task is complete”. Sileno calls this the recent common sense of the term, “but strictly speaking wrong”. Such an agent takes user input, works with databases, local files, APIs and sensors, and produces output actions.

The most fundamental architectural component handles the interaction with the LLM: a query comes in, the component prompts the LLM, and the generated response goes back out. Intelligent behaviour, though, generally comes from an orchestration of several components, as in a simple coding agent harness:

flowchart LR
  Q[query] -->|1| O{orchestrator}
  O -->|3 reasoning prompt| RL[LLM: reasoning]
  RL -->|reasoning response| O
  O --> AL[LLM: action]
  IDE[IDE] -->|2 environment context| AL
  AL -->|4 action| IDE

In formula form:

This is the LLM Agent of Lecture 1, with everything around the model named the harness. It motivates the lecture: a rich research field on agents and multi-agent systems predates LLMs (for example programming BDI agents in AgentSpeak with Jason, by Bordini, Hübner and Wooldridge); the current “agentic AI” discourse overlooks it or is only slightly informed by it; and its architectural insights can show how to use the new technology best.

Intentions: what beliefs and desires miss

Bratman’s chocolate

Is a belief-desire architecture sufficient? Michael Bratman (Intention, Plans, and Practical Reason, 1987):

“Suppose I have a fleeting craving for a chocolate bar, one which induces a fleetingly predominant desire to eat one for dessert. And suppose that just as fleetingly I notice this desire and judge (in a spirit of resignation, perhaps) that it will lead me so to act. But then I stop and reflect, recall my dieting plans, and resolve to skip dessert. On the present desire-belief account I had a fleeting intention to have a chocolate dessert. But I am inclined to say I had no such intention, for I was never appropriately settled in favor of such a dessert.”

On a desire-belief account, an intention is a predominant desire plus a belief that it will lead to action, so the craving counts as one. Bratman denies it: he was never settled on the dessert. Intention is a distinct state, being settled on (committed to) a course of action, and his earlier dieting plans are what overrode the desire.

The BDI model

In symbolic AI, multi-agent systems and philosophy of action, beliefs, desires and intentions map onto three distinct mental states and practical levels of reasoning (see BDI Model):

Beliefs, desires, intentions (BDI)

  • Informational level: what the agent believes to be the case in the world.
  • Volitional level: what the agent desires to be the case in the world.
  • Deliberative level: what the agent is committed to in the world.

Toothache

Belief: “I have pain with my tooth. (I believe) my tooth has a cavity.” Desire: “I don’t want to have pain. I want my tooth to be cured.” Intention: “I am going to my dentist.”

Once I commit to a conduct, there are more consequences than the desired outcome: the dentist also brings the drill and the bill. Intention includes side effects besides the intent or goal. Hence Sileno’s architectural claim: if you architecturally miss the function of intention deliberation, you miss performing (offline or online) an evaluation and weighing of possible choices. He asks when this is critical and leaves it open. One answer (worked here, not given in the lecture): when side effects are costly or irreversible, as for an agent that can delete files or spend money.

Intent selection and plan selection

Following Georgeff and Rao (1991), deliberation involves two selections:

  • Intent selection. At a given moment I may form several, possibly conflicting desires, and must give a priority on which goal to advance. A donkey both hungry and thirsty, standing between hay and water, has to pick one first.
  • Plan selection. Given any intent, I may have several plans to advance it, and must give a priority on which plan to commit to. To get to the university: bike or tram?

Sileno flags a possible categorial leap between them: a goal may be about a situation (a state of the world), while a plan is always a conduct, a composite action. There are ways to correct this, such as reading the goal as achieving a situation.

The same structure shows up in practitioner guides, such as AWS’s “perceive-reason-act loop” for agentic AI, where a reasoning core works with goals, a plan library, beliefs and intentions:

flowchart LR
  P[perceive] --> R[reason]
  R <--> G[goals]
  PL[plan library] --> R
  R <--> B[beliefs]
  R <--> I[intentions]
  R --> A[actions]

Why it gets messy

Laid out in full, the BDI pieces form a tangle:

flowchart TB
  D["DESIRES: possibly conflicting"] -->|intent selection| IN["INTENT: not conflicting"]
  PL["PLANS: possible alternatives"] -->|plan selection| P["PLAN: selected choice"]
  D -.->|preferences about plans| P
  PC["PERCEPTS: possibly conflicting"] -->|belief revision| B["BELIEFS: not conflicting"]
  B -.->|how the intent translates concretely| IN
  B -.->|which alternatives are possible| PL
  subgraph INTENTION
    IN
    P
  end

Intent selection resolves conflicting desires into one non-conflicting intent; plan selection picks one of the alternative plans; intention = intent + selected plan. Desires set preferences about both the intent and the plans. Percepts can conflict too (one person says it’s sunny, another that it’s raining) and must be resolved into consistent beliefs, the subject of the belief revision and data fusion literature. Beliefs about the current state of the world then determine which alternatives are possible and how the intent translates concretely.

In Sileno’s words it “rapidly becomes very messy”, so he proposes a different template.

CAES: commitments, abilities, expectations, susceptibilities

Sileno’s CAES model (Boer and Sileno, “Anchoring Distributed Agency”) regroups the BDI pieces into columns: commitments (structural, contingent) take over desires and intent, abilities (skills, competences) take over plans and plan selection, and expectations (structural, contingent) take over percepts and beliefs. A fourth component, susceptibilities, has no BDI counterpart. See CAES Model.

CAES model (Boer and Sileno)

  • Commitments: what the agent wants to achieve in the world (intent selection).
  • Abilities: what the agent can achieve in the world, and how (plan selection).
  • Expectations: what the agent knows about the world (belief revision).
  • Susceptibilities: what the agent is looking at in the world, and how it responds to it (attention allocation).
      C                    E
      | intent             | belief
      | selection          | revision
 A ---*                    *--- S
 plan |                    ^  attention
 selection                 |  allocation
------v-------WORLD--------|------
    acts               perceives

Commitments (what) and abilities (how) meet in the action going out to the world. What comes in passes through susceptibilities (what the agent attends and reacts to) and is integrated into expectations. The lecture does not define “structural” and “contingent”; a plausible reading (not given in the lecture) is standing commitments or expectations against ones that arise from the situation.

Applying CAES to a coding agent

Sileno maps the components onto the simple coding agent harness above.

Commitments: the task input (“fix the bug”), constraint input (“preserve the API”), guardrail checks (“don’t edit unrelated files”), and completion criteria (“the bug is fixed and relevant tests pass”).

Abilities: a SKILL.md file exposing how to use the tools, the tools themselves, and the system running them.

Expectations: the working state or context, memory, the code repository, retrieved evidence, or better, models of these.

Susceptibilities: watchers and triggers, tool-result handlers, interrupts and escalation routing, including their functional connection to the other components.

Running example: a test fails

  1. The failure is received and routed (S).
  2. The context is updated (E).
  3. What is the problem? Repair the bug (C).
  4. Choose an available debugging skill (A).
  5. And so on: a problem-solving cycle.

Some of this mapping can be done already. However, it refers either to low-level constructs, for which there is not yet a sufficiently interoperable declarative language, or to higher-level directives, where we don’t know how the LLM is going to interpret them. (An illustration not from the lecture: a guardrail coded as a file-permission check is precise but system-specific; written in the prompt as “don’t edit unrelated files”, it is left to the model’s reading.)

Agentic AI

Agentic AI (common definition)

An autonomous system that performs complex, multi-step tasks by orchestrating multiple computational tools, including language models (LLMs), to make decisions and execute a series of actions to reach a desired outcome.

Sileno: “again bad name”. An AI agent is one agent with its tools; agentic AI coordinates several agents around an orchestrator, much like a multi-agent system. There are two opposite approaches:

  • Agentic workflow: the workflow governs the agents. A fixed pipeline decides who does what and when.
  • Autonomous agent: the workflow is governed by the agents, for example agents autonomously improving their own harness.

He leaves two questions open: is agentic AI an agent, and is it an AI agent? His closing claim: “If we are seeking to create ‘rational’ agents, we cannot but expect to proceed towards CAES-like frameworks.”

Back to the question

Sileno gives no verdict. Putting his pieces together (worked here, not given in the lecture): a tool-using chatbot meets the minimal bar for an intelligent agent (a body of sorts, memory, an implicit purpose), and we can take the intentional stance towards it. As an intentional, rational agent it lacks an architectural place for deliberation: explicit commitments, intent and plan selection that weigh choices and side effects, and susceptibilities that decide what it attends to. A harness built along CAES lines would supply them, which is where his closing claim points.

What to be able to write

  • Dennett’s three stances with examples; objects, actors and agents; why agency is ascribed.
  • Weak agency applied to a thermostat and a chatbot.
  • EXEC, SELECT, MODIFY and learning, applied to a Q-learning agent.
  • Why Bratman’s chocolate shows intentions are needed; the BDI levels; side effects; intent and plan selection.
  • CAES applied to a coding agent and a failing test, and the limits of the mapping.
  • AI agent against agentic AI, workflow against autonomous agent, and whether a chatbot is an agent.
  • The two approaches to ABM; classic against evolutionary game theory.

Full model answers are in the exam questions below.

Exam questions

Flashcards