test_multiple_msg() — langchain Function Reference
Architecture documentation for the test_multiple_msg() function in test_messages.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f52b2491_72b9_3745_5a40_023f53fe24b5["test_multiple_msg()"] 8f326e31_2ed9_ea66_1073_cde9d14958a4["TestGetBufferString"] f52b2491_72b9_3745_5a40_023f53fe24b5 -->|defined in| 8f326e31_2ed9_ea66_1073_cde9d14958a4 b57da34b_4f0d_202f_b005_855024e1675e["test_multiple_msg()"] b57da34b_4f0d_202f_b005_855024e1675e -->|calls| f52b2491_72b9_3745_5a40_023f53fe24b5 b57da34b_4f0d_202f_b005_855024e1675e["test_multiple_msg()"] f52b2491_72b9_3745_5a40_023f53fe24b5 -->|calls| b57da34b_4f0d_202f_b005_855024e1675e style f52b2491_72b9_3745_5a40_023f53fe24b5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_messages.py lines 351–371
def test_multiple_msg(self) -> None:
msgs = [
self._HUMAN_MSG,
self._AI_MSG,
SystemMessage(content="system"),
FunctionMessage(name="func", content="function"),
ToolMessage(tool_call_id="tool_id", content="tool"),
ChatMessage(role="Chat", content="chat"),
AIMessage(content="tool"),
]
expected_output = (
"Human: human\n"
"AI: ai\n"
"System: system\n"
"Function: function\n"
"Tool: tool\n"
"Chat: chat\n"
"AI: tool"
)
assert get_buffer_string(msgs) == expected_output
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does test_multiple_msg() do?
test_multiple_msg() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_messages.py.
Where is test_multiple_msg() defined?
test_multiple_msg() is defined in libs/core/tests/unit_tests/test_messages.py at line 351.
What does test_multiple_msg() call?
test_multiple_msg() calls 1 function(s): test_multiple_msg.
What calls test_multiple_msg()?
test_multiple_msg() is called by 1 function(s): test_multiple_msg.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free