test_mismatched_response_format() — langchain Function Reference
Architecture documentation for the test_mismatched_response_format() function in test_middleware_type_errors.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 36459e4b_65ec_8350_8699_c1e566ef0047["test_mismatched_response_format()"] 47e0e3d7_cac1_0ec3_228a_0fd46437bc22["test_middleware_type_errors.py"] 36459e4b_65ec_8350_8699_c1e566ef0047 -->|defined in| 47e0e3d7_cac1_0ec3_228a_0fd46437bc22 style 36459e4b_65ec_8350_8699_c1e566ef0047 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_type_errors.py lines 179–187
def test_mismatched_response_format() -> None:
# TODO: TYPE ERROR not yet detected by mypy - AnalysisMiddleware expects AnalysisResult,
# but response_format is SummaryResult. This requires more sophisticated typing.
fake_model = FakeToolCallingModel()
_agent = create_agent(
model=fake_model,
middleware=[AnalysisMiddleware()],
response_format=SummaryResult,
)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_mismatched_response_format() do?
test_mismatched_response_format() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_type_errors.py.
Where is test_mismatched_response_format() defined?
test_mismatched_response_format() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware_typing/test_middleware_type_errors.py at line 179.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free