UserContext Class — langchain Architecture
Architecture documentation for the UserContext class in test_middleware_typing.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3f3e5dcd_1504_4e52_c296_2c5e3ec021f6["UserContext"] 689eac1f_5845_440c_f60b_988968e02ee6["test_middleware_typing.py"] 3f3e5dcd_1504_4e52_c296_2c5e3ec021f6 -->|defined in| 689eac1f_5845_440c_f60b_988968e02ee6
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py lines 46–50
class UserContext(TypedDict):
"""Context with user information."""
user_id: str
user_name: str
Source
Frequently Asked Questions
What is the UserContext class?
UserContext is a class in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py.
Where is UserContext defined?
UserContext is defined in libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_typing.py at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free