Home / Function/ test_get_buffer_string_xml_video_url_block() — langchain Function Reference

test_get_buffer_string_xml_video_url_block() — langchain Function Reference

Architecture documentation for the test_get_buffer_string_xml_video_url_block() function in test_utils.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  15f346cd_09aa_c385_687b_d9ae10e9e0c9["test_get_buffer_string_xml_video_url_block()"]
  03f6a5ae_d57a_eb66_626a_b9e082b763ea["test_utils.py"]
  15f346cd_09aa_c385_687b_d9ae10e9e0c9 -->|defined in| 03f6a5ae_d57a_eb66_626a_b9e082b763ea
  style 15f346cd_09aa_c385_687b_d9ae10e9e0c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/messages/test_utils.py lines 2404–2416

def test_get_buffer_string_xml_video_url_block() -> None:
    """Test XML format with video content block containing URL."""
    messages: list[BaseMessage] = [
        HumanMessage(
            content=[
                {"type": "text", "text": "Describe this video:"},
                {"type": "video", "url": "https://example.com/video.mp4"},
            ]
        ),
    ]
    result = get_buffer_string(messages, format="xml")
    assert "Describe this video:" in result
    assert '<video url="https://example.com/video.mp4" />' in result

Domain

Subdomains

Frequently Asked Questions

What does test_get_buffer_string_xml_video_url_block() do?
test_get_buffer_string_xml_video_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_video_url_block() defined?
test_get_buffer_string_xml_video_url_block() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2404.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free