Home / Function/ test_get_buffer_string_xml_audio_url_block() — langchain Function Reference

test_get_buffer_string_xml_audio_url_block() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0ded8878_e67a_fd9a_d61b_6d979b42e2f0["test_get_buffer_string_xml_audio_url_block()"]
  ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"]
  0ded8878_e67a_fd9a_d61b_6d979b42e2f0 -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4
  style 0ded8878_e67a_fd9a_d61b_6d979b42e2f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/messages/test_utils.py lines 2374–2386

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

Subdomains

Frequently Asked Questions

What does test_get_buffer_string_xml_audio_url_block() do?
test_get_buffer_string_xml_audio_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_audio_url_block() defined?
test_get_buffer_string_xml_audio_url_block() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2374.

Analyze Your Own Codebase

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

Try Supermodel Free