test_model_response() — langchain Function Reference
Architecture documentation for the test_model_response() function in test_openai_functions_multi.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7f862751_3c88_9471_f358_c879faebfa25["test_model_response()"] 744eb6ed_e970_902c_3b2f_989585354200["TestParseAIMessage"] 7f862751_3c88_9471_f358_c879faebfa25 -->|defined in| 744eb6ed_e970_902c_3b2f_989585354200 style 7f862751_3c88_9471_f358_c879faebfa25 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/test_openai_functions_multi.py lines 23–29
def test_model_response(self) -> None:
msg = AIMessage(content="Model response.")
result = _parse_ai_message(msg)
assert isinstance(result, AgentFinish)
assert result.return_values == {"output": "Model response."}
assert result.log == "Model response."
Domain
Subdomains
Source
Frequently Asked Questions
What does test_model_response() do?
test_model_response() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/test_openai_functions_multi.py.
Where is test_model_response() defined?
test_model_response() is defined in libs/langchain/tests/unit_tests/agents/test_openai_functions_multi.py at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free