CustomState Class — langchain Architecture
Architecture documentation for the CustomState class in test_decorators.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ddcc088e_0176_a219_8f92_3f1ffbbcf243["CustomState"] 85a104a3_11cf_6539_d0c0_ba69a17a41d4["test_decorators.py"] ddcc088e_0176_a219_8f92_3f1ffbbcf243 -->|defined in| 85a104a3_11cf_6539_d0c0_ba69a17a41d4
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py lines 38–41
class CustomState(AgentState[ResponseT], Generic[ResponseT]):
"""Custom state schema for testing."""
custom_field: NotRequired[str]
Source
Frequently Asked Questions
What is the CustomState class?
CustomState is a class in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py.
Where is CustomState defined?
CustomState is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_decorators.py at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free