test_get_buffer_string_xml_multiline_content() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_xml_multiline_content() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bfaf1f72_ed12_452b_f1b8_26351301cbf1["test_get_buffer_string_xml_multiline_content()"] ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"] bfaf1f72_ed12_452b_f1b8_26351301cbf1 -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4 style bfaf1f72_ed12_452b_f1b8_26351301cbf1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 2137–2144
def test_get_buffer_string_xml_multiline_content() -> None:
"""Test XML format with multiline content."""
messages = [
HumanMessage(content="Line 1\nLine 2\nLine 3"),
]
result = get_buffer_string(messages, format="xml")
expected = '<message type="human">Line 1\nLine 2\nLine 3</message>'
assert result == expected
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_xml_multiline_content() do?
test_get_buffer_string_xml_multiline_content() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/messages/test_utils.py.
Where is test_get_buffer_string_xml_multiline_content() defined?
test_get_buffer_string_xml_multiline_content() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2137.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free