Home / Class/ _InputAgentState Class — langchain Architecture

_InputAgentState Class — langchain Architecture

Architecture documentation for the _InputAgentState class in types.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b2a1b627_3f11_7022_97c8_ea9911abe75b["_InputAgentState"]
  fb1284e2_76fc_661f_c16d_e084e8c2b175["types.py"]
  b2a1b627_3f11_7022_97c8_ea9911abe75b -->|defined in| fb1284e2_76fc_661f_c16d_e084e8c2b175

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/types.py lines 358–361

class _InputAgentState(TypedDict):  # noqa: PYI049
    """Input state schema for the agent."""

    messages: Required[Annotated[list[AnyMessage | dict[str, Any]], add_messages]]

Frequently Asked Questions

What is the _InputAgentState class?
_InputAgentState is a class in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/types.py.
Where is _InputAgentState defined?
_InputAgentState is defined in libs/langchain_v1/langchain/agents/middleware/types.py at line 358.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free