# AgentState

> **Class** in `langchain`

📖 [View in docs](https://reference.langchain.com/python/langchain/agents/middleware/types/AgentState)

State schema for the agent.

## Signature

```python
AgentState()
```

## Extends

- `TypedDict`
- `Generic[ResponseT]`

## Constructors

```python
__init__(
    messages: Required[Annotated[list[AnyMessage], add_messages]],
    jump_to: NotRequired[Annotated[JumpTo | None, EphemeralValue, PrivateStateAttr]],
    structured_response: NotRequired[Annotated[ResponseT, OmitFromInput]],
)
```

| Name | Type |
|------|------|
| `messages` | `Required[Annotated[list[AnyMessage], add_messages]]` |
| `jump_to` | `NotRequired[Annotated[JumpTo \| None, EphemeralValue, PrivateStateAttr]]` |
| `structured_response` | `NotRequired[Annotated[ResponseT, OmitFromInput]]` |


## Properties

- `messages`
- `jump_to`
- `structured_response`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/langchain_v1/langchain/agents/middleware/types.py#L350)