test_memory_human_prefix() — langchain Function Reference
Architecture documentation for the test_memory_human_prefix() function in test_conversation.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 2f1ef505_9a10_1296_000a_8bae51c8a941["test_memory_human_prefix()"] bad7138b_753c_8c4e_915e_8bf58ada3cec["test_conversation.py"] 2f1ef505_9a10_1296_000a_8bae51c8a941 -->|defined in| bad7138b_753c_8c4e_915e_8bf58ada3cec style 2f1ef505_9a10_1296_000a_8bae51c8a941 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_conversation.py lines 49–53
def test_memory_human_prefix() -> None:
"""Test that human_prefix in the memory component works."""
memory = ConversationBufferMemory(memory_key="foo", human_prefix="Friend")
memory.save_context({"input": "bar"}, {"output": "foo"})
assert memory.load_memory_variables({}) == {"foo": "Friend: bar\nAI: foo"}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_memory_human_prefix() do?
test_memory_human_prefix() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_conversation.py.
Where is test_memory_human_prefix() defined?
test_memory_human_prefix() is defined in libs/langchain/tests/unit_tests/chains/test_conversation.py at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free