test_get_buffer_string_xml_server_tool_call_block() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_xml_server_tool_call_block() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 612ef5a0_c4a8_201b_7457_ddfbdd49de86["test_get_buffer_string_xml_server_tool_call_block()"] ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"] 612ef5a0_c4a8_201b_7457_ddfbdd49de86 -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4 style 612ef5a0_c4a8_201b_7457_ddfbdd49de86 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 2468–2487
def test_get_buffer_string_xml_server_tool_call_block() -> None:
"""Test XML format with server_tool_call content block."""
messages: list[BaseMessage] = [
AIMessage(
content=[
{"type": "text", "text": "Let me search for that."},
{
"type": "server_tool_call",
"id": "call_123",
"name": "web_search",
"args": {"query": "weather today"},
},
]
),
]
result = get_buffer_string(messages, format="xml")
assert "Let me search for that." in result
assert '<server_tool_call id="call_123" name="web_search">' in result
assert '{"query": "weather today"}' in result
assert "</server_tool_call>" in result
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_xml_server_tool_call_block() do?
test_get_buffer_string_xml_server_tool_call_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_server_tool_call_block() defined?
test_get_buffer_string_xml_server_tool_call_block() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2468.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free