AI Agents, Evergreen

How AI Agents Perceive Their Environment: Channels, Observations, and Limits

Cartoon robot with a magnifying glass peering through a keyhole in a wall, unaware of a large dinosaur hidden behind the wall

AI agent perception is how an agent takes in information about the world it acts in before it decides what to do next. Google Cloud describes AI agents as software programs that can perceive their environment, make decisions, and take autonomous actions to achieve specific goals, often leveraging large language models for reasoning, planning, and natural language interactions. An agent does not decide in a vacuum: it reads a goal, reads the current state, acts, and then reads what changed. That loop — perceive, decide, act, observe, repeat — is the subject of this article.

Anthropic puts the point bluntly: “They are typically just LLMs using tools based on environmental feedback in a loop.” What makes a model an agent is everything around it: the inputs it is given, the tools it can call, and the results that change its next move. Perception is the input side of that arrangement.

How AI Agent Perception Works

The pattern is a repeating cycle: perceive, decide, act, observe the result, and repeat until the goal is reached or a stopping condition fires. Anthropic notes that stopping conditions such as a maximum number of iterations are common, because an agent that keeps looping without one may never finish.

Perception is not a single sense. It is everything the agent is given before it decides: the user’s request, the instructions defining its role, the results of tools already called, retrieved documents, and the record of what it has done. Google’s Agents whitepaper describes the mechanics: an agentic system plans which tool to use, executes it, and puts the tool results into the input context window of the next language-model call.

Raw input is not yet an observation. An observation is the processed, structured form of input that the reasoning step actually receives. The best-known named pattern for the loop is ReAct, introduced by Yao and colleagues in 2022: the model generates reasoning traces and task-specific actions in an interleaved manner, so reasoning tracks the plan while actions gather information from external sources. The paper reports that ReAct outperformed imitation and reinforcement learning methods by an absolute success rate of 34% on ALFWorld and 10% on WebShop, using only one or two in-context examples. The observation after each action is what lets the model correct its plan.

The Channels an Agent Perceives Through

The first channel is the user: the messages stating the goal, and the conversation history around them. The second is the system instructions: the role and constraints set before the conversation began. Anthropic’s building block for agentic systems is an LLM enhanced with retrieval, tools, and memory, and current models can generate their own search queries, select appropriate tools, and determine what information to retain.

The third channel is tools and data sources: API responses, database rows, file contents, search results, and code outputs. OpenAI’s function-calling flow makes the shape concrete: the application sends a request with the tools the model could call, receives a tool call back, executes the code, and makes a second request including the tool output. Tools are defined by a JSON schema, so the model’s request is structured, and the application executes the function and returns the result. The tool result is a perception in the literal sense: new information, delivered after an action, that the next decision can use.

Retrieval and memory are related channels: background material fetched because it may be relevant, and the record of earlier turns and stored facts. Where agents work together, each agent’s environment also includes the others, through the messages they exchange. Where an agent runs in the physical world, its observations arrive through sensors — in the general sense that the classical literature calls a sensor model. In every case the agent receives a representation of its environment through those channels — a tool result, a retrieved passage, a message — rather than the environment itself. Receiving a representation is not, by itself, proof that the relevant state is always hidden; it means the agent’s decisions rest on what those channels delivered.

From Raw Input to a Usable Observation

Cartoon robot sorting a messy pile of papers, photos and envelopes into one tidy observation card

Turning raw input into an observation takes several steps. First, the input must be collected and parsed: tool results, documents, and database rows arrive in different formats and must be normalised. Second, context must be assembled: the goal, instructions, conversation so far, retrieved material, chosen memory, and prior tool results are combined into the single input for the next decision. Anthropic’s augmented-LLM picture and Google’s description of tool results entering the next call’s context window describe the same assembly step.

Third, the assembled input must be filtered and prioritised. Which observations are kept, which are summarised, and which are dropped determines what the agent can notice next. Keep too much and the relevant signal is buried; keep too little and the agent forgets the fact that would have changed its decision.

Finally, an observation needs provenance: when it was made and where it came from. A tool result from five steps ago may describe a state that no longer exists; a retrieved document may be out of date. Recording source and time does not make an observation true, but it lets the agent — and anyone debugging it — judge how much weight it should carry.

Partial Observability: What the Agent Cannot See

Agents often perceive less than the full state of their environment, and many settings are partially observable. The classical framing is the partially observable Markov decision process: “A POMDP models an agent decision process in which it is assumed that the system dynamics are determined by an MDP, but the agent cannot directly observe the underlying state.” In that framing, the agent receives observations, maintains a belief about the state — a view of what might be true, given what it has seen — and updates that belief as it interacts and receives new observations. Unlike a fully observable process, its policy maps the history of observations, or belief states, to actions, because, in that framing, it never knows the underlying state with certainty.

That framing comes from classical decision theory, not from any particular language-model framework. In plain terms, it is familiar in partially observable settings: a database query returns the rows that matched, not the state of the whole system; a tool result reports success, not why an action succeeded. In such a setting, the agent sees signals about the state, not the state itself, and two different situations can produce the same observation.

Where the state is only partially observable, an agent must infer, and inference can be wrong. It can gather more information by acting — calling another tool, asking the user, reading another document — or proceed with uncertainty. It cannot remove uncertainty by reasoning harder about an observation that never contained the missing fact. History is the partial remedy: the record of past observations and actions is what disambiguates a single observation.

Perception Across Modalities: Text, Images, Audio and Sensor Data

Most software agents perceive primarily in text. Prompts, documents, and structured tool output are already in the form a language model reads, so the work is selection and structuring: which passages to retrieve and which fields to include. Grounding means tying the model’s words to retrieved facts rather than letting it answer from its training data alone.

Images change the arrangement. A multimodal model can take an image as an input block alongside text and read both the text and the visual content — charts, tables, figures, and photographs — in the same request. A guide to Claude’s vision capabilities describes sending an image as an image content block, or a PDF as a document block, with the model reading the text and visual content together. That is direct perception: the model itself interprets the image, rather than reading someone else’s description of it.

The alternative, for any modality a model does not take in directly, is pre-processing: a separate step turns the signal into text or structured data first, and the model perceives the result. If a caption misses the detail that mattered, the model cannot recover it, because the detail never reached it. The same question applies to audio and sensor streams: either the model takes the signal in directly, or a prior step converts it, and the designer must know which is happening for each channel. A support agent asked about a chart may receive only the customer’s description, the screenshot itself, or an extracted table — and its decision may differ in each case, not because its reasoning changed, but because what it perceived changed.

When Perception Goes Wrong

Confused cartoon robot with a magnifying glass at a crossroads between two blank signposts, with a sealed envelope on the path

Perception fails in a small number of recognisable ways: the missed observation (it never looked, or looked in the wrong place), the stale observation (it looked once and the world changed), and the misread observation (a truncated result, an ambiguous field, a passage summarised away). Each is a perception failure first, because the reasoning step can only work with what it was given.

Conflicting observations are a fourth failure mode. A database, a document, and the user may each say something different, and without an explicit rule for resolving conflicts an agent risks acting on a less trustworthy observation, with no stated basis for preferring it. Provenance helps: an explicit source-and-freshness policy — preferring the freshest observation, and a system-of-record result over an unverified claim, where the design calls for it — gives the agent a stated basis for choosing, rather than leaving the choice to chance.

The fifth failure mode is the manipulated observation. Content from an external source can contain instructions not written by the user. OWASP’s definition of indirect prompt injection captures it: it occurs when a language model accepts input from external sources, such as websites or files, and that content alters its behaviour. The mechanism is the loop described throughout: the fetched page, file, or tool result becomes part of the next decision’s input, so hidden instructions can steer the next action. The checks are unglamorous: verify a consequential observation against a second source, log what was observed alongside the decision, fail visibly when an observation is missing, and keep trust tied to provenance.

Designing What Your Agent Should Perceive

Designing perception starts with four questions for each action: what must the agent observe before it acts, how fresh must that observation be, how often should it be refreshed, and what should it ignore? An agent that reads an entire ticket history before every reply will be slow and distracted; one that reads only the latest message will miss the context that explains it.

A support agent receives a ticket claiming a refund has not arrived. Before deciding, it should perceive the ticket, the order and payment records, and the refund policy. It calls the order and payment tools, retrieves the policy, and assembles those observations. After each call the result becomes a new observation: the order exists, the payment was taken, the refund was issued to the original payment method, and the policy states the expected timing. The decision — explain the timing, or escalate because the record contradicts the policy — follows from the observations, and the log of them lets a human check the decision.

An observation record for one step of that example might look like this:

{
  "source": "payment_tool",
  "observed_at": "2026-12-01T12:00:00Z",
  "content": "Refund issued to the original payment method.",
  "trust": "system_of_record"
}

This is an illustrative record, not a format any particular system requires: it shows the four pieces every observation should carry — source, time, content, and trust. Finally, know the limits of perception as a fix. Better perception does not repair a bad goal, a missing tool, or absent guardrails. Anthropic’s advice is that it is crucial for agents to gain ground truth from the environment at each step, such as tool call results or code execution, to assess progress — and that assumes the goal, tools, and stopping conditions are already sound.