test_get_buffer_string_prefix_custom_separator() — langchain Function Reference
Architecture documentation for the test_get_buffer_string_prefix_custom_separator() function in test_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fc4cd497_3be7_bef4_744a_84e4fd8791e7["test_get_buffer_string_prefix_custom_separator()"] ea3f8d89_f44b_6738_3cb9_a740a73cfca4["test_utils.py"] fc4cd497_3be7_bef4_744a_84e4fd8791e7 -->|defined in| ea3f8d89_f44b_6738_3cb9_a740a73cfca4 style fc4cd497_3be7_bef4_744a_84e4fd8791e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/messages/test_utils.py lines 1943–1951
def test_get_buffer_string_prefix_custom_separator() -> None:
"""Test prefix format with custom message separator."""
messages = [
HumanMessage(content="Hello"),
AIMessage(content="Hi there"),
]
result = get_buffer_string(messages, format="prefix", message_separator=" | ")
expected = "Human: Hello | AI: Hi there"
assert result == expected
Domain
Subdomains
Source
Frequently Asked Questions
What does test_get_buffer_string_prefix_custom_separator() do?
test_get_buffer_string_prefix_custom_separator() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/messages/test_utils.py.
Where is test_get_buffer_string_prefix_custom_separator() defined?
test_get_buffer_string_prefix_custom_separator() is defined in libs/core/tests/unit_tests/messages/test_utils.py at line 1943.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free