Home / Class/ _OutputAgentState Class — langchain Architecture

_OutputAgentState Class — langchain Architecture

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

Entity Profile

Dependency Diagram

graph TD
  56466271_87bc_6867_0d88_537d43176e24["_OutputAgentState"]
  fb1284e2_76fc_661f_c16d_e084e8c2b175["types.py"]
  56466271_87bc_6867_0d88_537d43176e24 -->|defined in| fb1284e2_76fc_661f_c16d_e084e8c2b175

Relationship Graph

Source Code

libs/langchain_v1/langchain/agents/middleware/types.py lines 364–368

class _OutputAgentState(TypedDict, Generic[ResponseT]):  # noqa: PYI049
    """Output state schema for the agent."""

    messages: Required[Annotated[list[AnyMessage], add_messages]]
    structured_response: NotRequired[ResponseT]

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free