test_get_buffer_string_xml_image_url_block() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_xml_image_url_block() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2635854e_ded1_0d9f_563b_7b6d5a57360b["test_get_buffer_string_xml_image_url_block()"] ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"] 2635854e_ded1_0d9f_563b_7b6d5a57360b -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4 style 2635854e_ded1_0d9f_563b_7b6d5a57360b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 2276–2289
def test_get_buffer_string_xml_image_url_block() -> None:
"""Test XML format with image content block containing URL."""
messages: list[BaseMessage] = [
HumanMessage(
content=[
{"type": "text", "text": "What is in this image?"},
{"type": "image", "url": "https://example.com/image.png"},
]
),
]
result = get_buffer_string(messages, format="xml")
assert '<message type="human">' in result
assert "What is in this image?" in result
assert '<image url="https://example.com/image.png" />' in result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_xml_image_url_block() do?
test_get_buffer_string_xml_image_url_block() 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_url_block() defined?
test_get_buffer_string_xml_image_url_block() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2276.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free