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