test_get_buffer_string_xml_image_data_url_skipped() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_xml_image_data_url_skipped() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD f39c1589_44ff_eda8_dfe6_3b868cc5ed1b["test_get_buffer_string_xml_image_data_url_skipped()"] 03f6a5ae_d57a_eb66_626a_b9e082b763ea["test_utils.py"] f39c1589_44ff_eda8_dfe6_3b868cc5ed1b -->|defined in| 03f6a5ae_d57a_eb66_626a_b9e082b763ea style f39c1589_44ff_eda8_dfe6_3b868cc5ed1b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 2322–2334
def test_get_buffer_string_xml_image_data_url_skipped() -> None:
"""Test XML format skips image blocks with data: URLs."""
messages: list[BaseMessage] = [
HumanMessage(
content=[
{"type": "text", "text": "Check this:"},
{"type": "image", "url": "data:image/png;base64,iVBORw0KGgo..."},
]
),
]
result = get_buffer_string(messages, format="xml")
assert "Check this:" in result
assert "data:image" not in result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_xml_image_data_url_skipped() do?
test_get_buffer_string_xml_image_data_url_skipped() 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_image_data_url_skipped() defined?
test_get_buffer_string_xml_image_data_url_skipped() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2322.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free