test_get_buffer_string_xml_custom_system_prefix() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_xml_custom_system_prefix() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 88bef49a_1ec9_fca5_ed8a_bd8ff41dd6ed["test_get_buffer_string_xml_custom_system_prefix()"] ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"] 88bef49a_1ec9_fca5_ed8a_bd8ff41dd6ed -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4 style 88bef49a_1ec9_fca5_ed8a_bd8ff41dd6ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 2709–2717
def test_get_buffer_string_xml_custom_system_prefix() -> None:
"""Test `get_buffer_string` XML format with custom `system_prefix`."""
messages: list[BaseMessage] = [
SystemMessage(content="You are a helpful assistant."),
]
result = get_buffer_string(messages, system_prefix="Instructions", format="xml")
assert (
result == '<message type="instructions">You are a helpful assistant.</message>'
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_xml_custom_system_prefix() do?
test_get_buffer_string_xml_custom_system_prefix() 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_custom_system_prefix() defined?
test_get_buffer_string_xml_custom_system_prefix() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 2709.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free