# AgentStateWithStructuredResponse

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

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

The state of the agent with a structured response.

## Signature

```python
AgentStateWithStructuredResponse()
```

## Extends

- `AgentState`

## Properties

- `structured_response`

## ⚠️ Deprecated

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

---

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