# AgentState

interface AgentState

Interface for agent-specific state classes in ADK.

Implementing classes must provide a way to convert their state into a type-safe TypedData.MapValue for persistence.

#### Inheritors

LoopAgentState
SequentialAgentState

## Functions

toStateValue
Link copied to clipboard
abstract fun toStateValue(): TypedData.MapValue

Converts the state into an TypedData.MapValue.