test_get_buffer_string_xml_image_file_id_block() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_xml_image_file_id_block() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0a30de8d_9ee0_5c5a_bcb6_b5238e93578d["test_get_buffer_string_xml_image_file_id_block()"] 03f6a5ae_d57a_eb66_626a_b9e082b763ea["test_utils.py"] 0a30de8d_9ee0_5c5a_bcb6_b5238e93578d -->|defined in| 03f6a5ae_d57a_eb66_626a_b9e082b763ea style 0a30de8d_9ee0_5c5a_bcb6_b5238e93578d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 2292–2303
def test_get_buffer_string_xml_image_file_id_block() -> None:
"""Test XML format with image content block containing `file_id`."""
messages: list[BaseMessage] = [
HumanMessage(
content=[
{"type": "text", "text": "Describe this:"},
{"type": "image", "file_id": "file-abc123"},
]
),
]
result = get_buffer_string(messages, format="xml")
assert '<image file_id="file-abc123" />' in result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_xml_image_file_id_block() do?
test_get_buffer_string_xml_image_file_id_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_file_id_block() defined?
test_get_buffer_string_xml_image_file_id_block() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2292.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free