PEAS

Also known as: Performance measure, environment, actuators, sensors · task environment description

On this page 7

PEAS stands for performance measure, environment, actuators, sensors, a framework for writing a task environment description that specifies what an intelligent agent must achieve, where it operates, how it acts and what it can perceive. In the study of AI agents, PEAS is the standard first step of agent design, popularized by the classic artificial intelligence textbook by Russell and Norvig.

The framework forces designers to state the problem before choosing an architecture. A precise PEAS description reveals whether a simple reflex agent is enough or whether the task calls for memory, planning, a utility function or learning, and it defines how the finished agent will be judged.

The four components of a PEAS description

A PEAS description consists of four complementary specifications that together define the task environment. Each answers a different design question, and leaving one vague usually produces an agent that optimizes the wrong thing or cannot observe what it needs.

ComponentDesign questionTypical content
Performance measureWhat counts as successObjective criteria, costs, constraints
EnvironmentWhere the agent operatesObjects, other agents, rules, dynamics
ActuatorsHow the agent actsMotors, displays, API calls, messages
SensorsWhat the agent perceivesCameras, inputs, logs, tool results
What each PEAS component specifies

The performance measure is defined externally, by the designer or user, and evaluates the sequence of environment states that the agent causes. It is not the agent’s own opinion of success. Russell and Norvig stress designing it according to what is wanted in the environment, not according to how the agent is expected to behave.

Actuators and sensors define the agent’s interface with the world. For a software agent, actuators are typically tool calls and outputs, and sensors are user messages, file contents, web pages or tool responses.

Classic PEAS examples

Textbook examples illustrate how the same framework scales from physical robots to pure software agents. The comparison below shows how each component changes with the domain.

AgentPerformance measureEnvironmentActuatorsSensors
Automated taxiSafe, fast, legal, comfortable tripsRoads, traffic, pedestrians, weatherSteering, brakes, accelerator, signalsCameras, lidar, GPS, speedometer
Medical diagnosis systemHealthy patients, reduced costsPatients, hospital, staffQuestions, tests, diagnoses, referralsSymptoms, findings, patient answers
Part-picking robotShare of parts in correct binsConveyor belt, parts, binsJointed arm and gripperCamera, joint angle sensors
Coding agentPassing tests, correct changes, low costRepository, terminal, CI pipelineFile edits, shell commands, commitsFile reads, test output, error logs
PEAS descriptions for representative agents

The coding agent row shows that PEAS remains useful for language-model-based agents. Its actuators and sensors correspond closely to the tool schema the agent is given.

From PEAS to environment properties and agent type

PEAS is usually followed by a classification of environment properties, which determines the agent architecture. The environment and sensor entries of the PEAS description provide the evidence for each property.

PropertyOptionsDesign consequence
ObservabilityFully or partially observablePartial observability needs internal state
AgentsSingle-agent or multi-agentMulti-agent needs coordination or game reasoning
DeterminismDeterministic or stochasticStochastic needs probabilistic reasoning
EpisodesEpisodic or sequentialSequential needs planning ahead
DynamicsStatic or dynamicDynamic needs timely decisions
State spaceDiscrete or continuousContinuous needs approximation methods
KnowledgeKnown or unknown rulesUnknown rules need learning
Environment properties derived from a PEAS analysis

A fully observable, episodic and static task can be handled by a simple reflex agent. A partially observable environment requires a model-based reflex agent, while conflicting goals and uncertainty point to a utility-based agent. Unknown dynamics call for a learning agent.

Applying PEAS to modern AI agents

For agents built on large language models, PEAS works as a structured requirements checklist. Teams write the description before selecting a framework, and the result guides tool design, permissions and evaluation.

  • Performance measure becomes the evaluation suite: task success rate, cost per task, latency and safety violations.
  • Environment defines the sandbox: which systems, data and users the agent can touch.
  • Actuators map to tools and agent permissions, which limits the damage of a wrong action.
  • Sensors determine context: what the agent can read, and what it can only infer.

Writing the performance measure first exposes hidden trade-offs early. A support agent rewarded only for closed tickets may close tickets prematurely, so the measure should also include customer satisfaction and reopened cases.

Common mistakes in PEAS analysis

Most errors in a PEAS description come from confusing the components with one another or from stating them too loosely to test. The table lists frequent problems and their corrections.

MistakeConsequenceFix
Vague performance measureNo way to evaluate the agentUse measurable criteria with priorities
Measure based on agent behaviorAgent games the metricMeasure outcomes in the environment
Sensors listed as data, not channelsMissing perception limitsName each input channel and its noise
Actuators without limitsUnsafe or costly actionsSpecify allowed actions and permissions
Ignoring other agentsWrong environment classList people and systems that react
Frequent PEAS errors and fixes

A frequent misconception treats PEAS as an architecture. It is a problem specification, not a design for how the agent computes its decisions; the architecture comes afterward.

Explained without jargon

PEAS is a short checklist for describing a job before building a machine to do it. It asks four questions. How will we judge success? Where does the work happen? What can the machine do? What can it notice?

Think of hiring a new delivery driver. You explain the goals, the routes, the van and its controls, and the mirrors and phone they will use. Without those four answers, nobody can do the job well. An AI agent needs the same clear brief.

A typical use case

A logistics company plans an AI agent that reschedules deliveries when customers report problems. Before writing any code, the team drafts a PEAS description. The performance measure is the share of requests resolved without human help, delivery cost and complaint rate. The environment includes customers, the order system and courier schedules.

The actuators are three tools: update delivery slot, send message and escalate to staff. The sensors are customer chat messages, order records and courier availability. The analysis shows a partially observable, multi-agent and dynamic environment, so the team adds agent memory and a human-in-the-loop step for refunds. In a pilot with 2,000 requests, the agent resolves about 70 percent on its own, and escalation rules keep refund errors near zero.