# AgentStatePydantic

> **Class** in `langgraph.prebuilt`

📖 [View in docs](https://reference.langchain.com/python/langgraph.prebuilt/chat_agent_executor/AgentStatePydantic)

The state of the agent.

## Signature

```python
AgentStatePydantic()
```

## Extends

- `BaseModel`

## Properties

- `messages`
- `remaining_steps`

## ⚠️ Deprecated

AgentStatePydantic has been deprecated in favor of AgentState in `langchain.agents`.

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/3614e88c58af63f597764218646e85c49952b2da/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py#L65)