test_custom_ai_prefix() — langchain Function Reference
Architecture documentation for the test_custom_ai_prefix() function in test_messages.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a7c71150_eef3_54af_b66e_bb381d3faa61["test_custom_ai_prefix()"] 8f326e31_2ed9_ea66_1073_cde9d14958a4["TestGetBufferString"] a7c71150_eef3_54af_b66e_bb381d3faa61 -->|defined in| 8f326e31_2ed9_ea66_1073_cde9d14958a4 style a7c71150_eef3_54af_b66e_bb381d3faa61 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_messages.py lines 347–349
def test_custom_ai_prefix(self) -> None:
expected_output = "A: ai"
assert get_buffer_string([self._AI_MSG], ai_prefix="A") == expected_output
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_custom_ai_prefix() do?
test_custom_ai_prefix() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_messages.py.
Where is test_custom_ai_prefix() defined?
test_custom_ai_prefix() is defined in libs/core/tests/unit_tests/test_messages.py at line 347.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free