L4 - Agents and Environments

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/86

encourage image

There's no tags or description

Looks like no tags are added yet.

87 Terms

1
New cards

True or False. Agent = Architecture + Program

True

2
New cards

Fill in the gap. Agents should be….

Rational

3
New cards

What does the behaviour of the agent depend on?

Environment and the defined goals

4
New cards

What can agents include?

Humans, robots, softbots, thermostats, etc.

5
New cards

True or False. The agent function maps from percept histories to actions

True

<p>True</p>
6
New cards

True or False. The agent program runs on physical architecture to produce the agent function

True

7
New cards

What does an agent use to perceive it’s environment?

Sensors and actuators

8
New cards

Diagram of classical agent

knowt flashcard image
9
New cards

Diagram of a modern LLM agent

knowt flashcard image
10
New cards

What are the characteristics of an intelligent agent?

Autonomy

Reactivity

Proactivity

Social ability

11
New cards

What are some examples of an intelligent agent?

Robots, software agents, virtual assistants

12
New cards

What would be the percepts of a robot vacuum-cleaner?

Locations and contents


E.g., [A, Dirty, B, Clean]

13
New cards

What would be the actions of a vacuum-cleaner agent?

Left, Right, Inhale

14
New cards

Diagram of an example of percept sequences and actions for a vacuum-cleaner agent

knowt flashcard image
15
New cards

Diagram of an example of a function for a vacuum-cleaner agent

knowt flashcard image
16
New cards

What is the first dependent of rationality for an agent?

The performance measure defines the criteria of success

17
New cards

What is the second dependent of rationality for an agent?

The agent’s prior knowledge of the environment

18
New cards

What is the third dependent of rationality for an agent?

The actions the agent can perform

19
New cards

What is the fourth dependent of rationality for an agent?

The agent’s percept subsequence to date

20
New cards

True or False. A rational agent chooses whichever action maximises the expected value of the performance measure given the percept sequence to date.

True

21
New cards

Diagram of discussion of the attributes of rationality for an agent

knowt flashcard image
22
New cards

What four factors are used to specify the task environment to design a rational agent?

Performance measure

Environment

Actuators

Sensors

23
New cards

What is meant by performance measure?

How the agent’s success is measured

24
New cards

What is meant by environment?

The surroundings in which the agent operates

25
New cards

What is meant by actuators?

Tools agent uses to take action

26
New cards

What is meant by sensors?

Tools agent uses to perceive its environment

27
New cards

Diagram of a specified task environment for an automated taxi

knowt flashcard image
28
New cards

Diagram of a specified task environment for a internet shopping agent

knowt flashcard image
29
New cards

Diagram of a specified task environment for ChatGPT assistant agent

knowt flashcard image
30
New cards

Diagram of the profound shift from chatbots to copilots to agents

knowt flashcard image
31
New cards

True or False. The LLM is the agent.

False. The LLM is only the brain, it needs a harness to be useful

32
New cards

What is meant by a harness in modern AI agents?

A system that supports and controls an AI agent, so it can perform tasks

33
New cards

True or False. There are six factors included in a harness.

True.


Instructions

Tools & APIs

Memory & context

Execution runtime

Observations

Controls & approvals

34
New cards

What are instructions to an LLM?

The rules the AI operates by

35
New cards

What are tools & APIs to an LLM?

What the AI can call

36
New cards

What is memory & context to an LLM?

What the AI knows & remembers

37
New cards

What is execution runtime to an LLM?

Where the AI’s work is performed

38
New cards

What are observations to an LLM?

Feedback the AI receives about its actions

39
New cards

What are controls & approvals to an LLM?

Permissions determining what the AI is allowed to do

40
New cards

Which three factors make up an AI system?

Model, harness and environment

41
New cards

Diagram of all components in an AI system

knowt flashcard image
42
New cards

What does observability describe in an environment?

Whether the agent can see all relevant aspects

43
New cards

What is an example of a fully observable environment?

Chess. Whole board is visible

44
New cards

What is an example of a partially observable environment?

Poker

45
New cards

What is the difference between a deterministic and stochastic environment?

Deterministic - Current state and action determines next state

Stochastic - Next state is not completely predictable

46
New cards

What is the difference between a episodic and sequential environment?

Episodic - Agent experience divided into independent episodes

Sequential - Decisions depend on each other

47
New cards

What is an example of a episodic environment?

A quiz game

48
New cards

What is an example of a sequential environment?

Football

49
New cards

What is the difference between a static and dynamic environment?

Static - Environment doesn’t change, while agent deliberates

Dynamic - Environment can change even, if agent does nothing

50
New cards

What is an example of a static environment?

Chess

51
New cards

What is an example of a dynamic environment?

Self-driving cars

52
New cards

What is the difference between a discrete and continuous environment?

Discrete - Finite number of actions and states

Continuous - Range of possible states and actions is infinite

53
New cards

What is an example of a discrete environment?

Tic-tac-toe

54
New cards

What is an example of a continuous environment?

Steering a car

55
New cards

What is the difference between a single-agent and multi-agent environment?

Single-agent - Only one agent acts in the environment

Multi-agent - Multiple agents interact

56
New cards

What is an example of a single-agent environment?

A sudoku solver

57
New cards

What is an example of a multi-agent environment?

A stock trading system

58
New cards

Diagram of games and their environment types

knowt flashcard image
59
New cards

True or False. The real world is fully observable, deterministic, episodic, static, discrete and single-agent.

False. The real world is the complete opposite of all those types.

60
New cards

Table of a modern agentic coding assistant’s environment types

knowt flashcard image
61
New cards

How does a simple-reflex agent work?

Uses sensors to observe the current environment


Follows condition-action rules to choose an action

62
New cards

True or False. A simple-reflex agent remembers past situations

False. Its actions are based off sensing the current environment

63
New cards

Diagram of a simple reflex agent

knowt flashcard image
64
New cards

True or False. A goal-based agent uses only its initial environment to decide which action to take, not considering its goals.

False. Uses the current environment and its goals to decide which action will help achieve the desired result

65
New cards

Diagram of a goal-based agent

knowt flashcard image
66
New cards

Which four factors is a problem defined by?

Initial state

Successor function

Goal test

Path cost

67
New cards

True or False. A solution is a sequence of actions from the initial to a goal state

True

68
New cards

Example of a goal-based agent travelling to Romania

knowt flashcard image
69
New cards

Example problem formulation for travelling to Romania


<p></p>
70
New cards

What is the first step a utility-based agent follows?

Perceives the environment

71
New cards

What is the second step a utility-based agent follows?

Predicts outcomes of possible actions

72
New cards

What is the third step a utility-based agent follows?

Evaluates outcomes using a utility function

73
New cards

What is the fourth step a utility-based agent follows?

Chooses best outcome

74
New cards

Diagram of a utility-based agent

knowt flashcard image
75
New cards

What are some examples of utility-based agents?

Autonomous vehicles

Financial trading systems

Recommendation systems

Healthcare management

76
New cards

What is the first step a learning agent follows?

Takes feedback from a critic to learn from its performance

77
New cards

What is the second step a learning agent follows?

Updates its knowledge to improve its performance

78
New cards

What is the third step a learning agent follows?

Uses a problem generator to explore new actions and improve future decisions

79
New cards

What are some examples of learning agents?

Game Playing AI (AlphaGo, Chess AI)


Recommendation Systems (Amazon)

80
New cards

How does a deterministic, fully observable (single-state) problem work?

Agent knows which state it will be in


Solution is a sequence

81
New cards

How does a non-observable (sensor-less) problem work?

Agent may have no idea where it is


If solution, it’s a sequence

82
New cards

How does a non-deterministic and/or partially observable (contingency) problem work?

Percepts provide new info about current state


Solution is contingent plan or policy

83
New cards

How does a unknown state space (exploration) problem work?

Agent must explore environment to discover the states and how they connect

84
New cards

Current research and future directions

knowt flashcard image
85
New cards

What are some examples of multi-agent systems?

Traffic management

Smart grids

Robotics

Gaming

86
New cards

What are some challenges in developing multi-agent systems?

Communication and coordination

Decision-making

Learning

87
New cards

What are some ethical and social implications?

Algorithm bias and fairness

Transpareny

Privacy and security

Legal and accountability

Workplace displacement