Home / Function/ test_get_buffer_string_xml_video_base64_skipped() — langchain Function Reference

test_get_buffer_string_xml_video_base64_skipped() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/messages/test_utils.py lines 2419–2431

def test_get_buffer_string_xml_video_base64_skipped() -> None:
    """Test XML format skips video blocks with base64 data."""
    messages: list[BaseMessage] = [
        HumanMessage(
            content=[
                {"type": "text", "text": "Watch:"},
                {"type": "video", "base64": "AAAAFGZ0eXA...", "mime_type": "video/mp4"},
            ]
        ),
    ]
    result = get_buffer_string(messages, format="xml")
    assert "Watch:" in result
    assert "AAAAFGZ0eXA" not in result

Domain

Subdomains

Frequently Asked Questions

What does test_get_buffer_string_xml_video_base64_skipped() do?
test_get_buffer_string_xml_video_base64_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_video_base64_skipped() defined?
test_get_buffer_string_xml_video_base64_skipped() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2419.

Analyze Your Own Codebase

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

Try Supermodel Free