test_single_intermediate_step_default_response() — langchain Function Reference
Architecture documentation for the test_single_intermediate_step_default_response() function in test_log_to_messages.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 7c9009d1_f849_fa89_06e2_056eafd78424["test_single_intermediate_step_default_response()"] 022a381a_891e_110d_baf6_ddec630c8081["test_log_to_messages.py"] 7c9009d1_f849_fa89_06e2_056eafd78424 -->|defined in| 022a381a_891e_110d_baf6_ddec630c8081 style 7c9009d1_f849_fa89_06e2_056eafd78424 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log_to_messages.py lines 9–14
def test_single_intermediate_step_default_response() -> None:
intermediate_steps = [
(AgentAction(tool="Tool1", tool_input="input1", log="Log1"), "Observation1"),
]
expected_result = [AIMessage(content="Log1"), HumanMessage(content="Observation1")]
assert format_log_to_messages(intermediate_steps) == expected_result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_single_intermediate_step_default_response() do?
test_single_intermediate_step_default_response() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log_to_messages.py.
Where is test_single_intermediate_step_default_response() defined?
test_single_intermediate_step_default_response() is defined in libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log_to_messages.py at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free