TestCase Class — langchain Architecture
Architecture documentation for the TestCase class in test_return_direct_spec.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5db8aa73_f4ef_a74e_c835_f1b39d1968d2["TestCase"] 7855a665_55db_b41b_157c_688e4616a002["BaseSchema"] 5db8aa73_f4ef_a74e_c835_f1b39d1968d2 -->|extends| 7855a665_55db_b41b_157c_688e4616a002 c8900b43_6b5d_2599_1ca3_7e1e2f55b668["test_return_direct_spec.py"] 5db8aa73_f4ef_a74e_c835_f1b39d1968d2 -->|defined in| c8900b43_6b5d_2599_1ca3_7e1e2f55b668
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/test_return_direct_spec.py lines 35–41
class TestCase(BaseSchema):
name: str
return_direct: bool
response_format: dict[str, Any] | None
expected_tool_calls: int
expected_last_message: str
expected_structured_response: dict[str, Any] | None
Extends
Source
Frequently Asked Questions
What is the TestCase class?
TestCase is a class in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/test_return_direct_spec.py.
Where is TestCase defined?
TestCase is defined in libs/langchain_v1/tests/unit_tests/agents/test_return_direct_spec.py at line 35.
What does TestCase extend?
TestCase extends BaseSchema.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free