# AgentStateWithStructuredResponsePydantic

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

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

The state of the agent with a structured response.

## Signature

```python
AgentStateWithStructuredResponsePydantic()
```

## Extends

- `AgentStatePydantic`

## Properties

- `structured_response`

## ⚠️ Deprecated

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

---

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