# Agent state

See how state represents information and progress during execution, with scope and persistence determined by the application.

Canonical URL: https://thecompanybrain.com.br/en/glossary/agent-state
Authors: Luiz Gardelin
Updated: 2026-11-14T20:40:05.641Z

Agent state represents information relevant to tracking an interaction or execution and guiding its next steps. It may indicate the current stage, data already obtained, and open questions. In Google ADK, session state is a collection of key-value pairs that changes during a conversation, separately from the full event history. That particular structure belongs to the documented implementation. [Google ADK, session state](https://adk.dev/sessions/state/).

## Information at a particular moment

State answers questions such as: which request is being handled, what has been checked, and what remains unresolved? It does not need to reproduce the entire conversation. A completed-stage marker, a document identifier, and a list of pending items may be more useful for execution than the complete text of every message.

In a hypothetical supplier registration process, state could record that documents have arrived, the address still needs confirmation, and analysis is waiting for that information. On receiving another message, the application would consult that state to continue the relevant stage. Recording confirmation before checking the address would create an inaccurate representation of progress.

## Duration and scope are separate choices

Session state does not necessarily disappear when a screen closes. Nor does it necessarily become permanent memory. ADK documents several scopes and explains that survival across an application restart depends on the selected service. Its in-process implementation loses data on restart, while persistent services behave differently. These details cannot automatically be applied to other libraries. [Google ADK, persistence and scope](https://adk.dev/sessions/state/).

[Agent memory](/en/glossary/agent-memory) can make information from previous interactions available for later retrieval. State describes what the current execution is tracking, even when it remains stored for longer. A [checkpoint](/en/glossary/checkpoint) can record a version of that state to support continuity.

For the hypothetical registration, retaining state helps resume the request but does not establish that the supplier has been approved. The stored information needs to distinguish data received, checks performed, and decisions pending. That separation makes progress understandable both to the agent and to the people following the work. It also avoids treating an old status marker as evidence of a verification that never took place.

## Sources

- [State: The Session’s Scratchpad](https://adk.dev/sessions/state/): ADK state holds key-value pairs with distinct scopes; persistence depends on the selected service.

## Related reading

- [Agent memory](/en/glossary/agent-memory)
- [Checkpoint](/en/glossary/checkpoint)
- [Agent action](/en/glossary/agent-action)
- [Agent autonomy](/en/glossary/agent-autonomy)
- [Agent orchestration](/en/glossary/agent-orchestration)
- [Agent planning](/en/glossary/agent-planning)
