PlanningState Class — langchain Architecture
Architecture documentation for the PlanningState class in todo.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 009b2b36_100b_8fd2_96c8_a7fd83917eba["PlanningState"] 446b9f1c_796b_e509_22cc_36bc6d734792["todo.py"] 009b2b36_100b_8fd2_96c8_a7fd83917eba -->|defined in| 446b9f1c_796b_e509_22cc_36bc6d734792
Relationship Graph
Source Code
libs/langchain_v1/langchain/agents/middleware/todo.py lines 39–47
class PlanningState(AgentState[ResponseT]):
"""State schema for the todo middleware.
Type Parameters:
ResponseT: The type of the structured response. Defaults to `Any`.
"""
todos: Annotated[NotRequired[list[Todo]], OmitFromInput]
"""List of todo items for tracking task progress."""
Source
Frequently Asked Questions
What is the PlanningState class?
PlanningState is a class in the langchain codebase, defined in libs/langchain_v1/langchain/agents/middleware/todo.py.
Where is PlanningState defined?
PlanningState is defined in libs/langchain_v1/langchain/agents/middleware/todo.py at line 39.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free