Home / Function/ test_clearing_conversation_memory_async() — langchain Function Reference

test_clearing_conversation_memory_async() — langchain Function Reference

Architecture documentation for the test_clearing_conversation_memory_async() function in test_conversation.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  573bf0a3_4f2e_e3e8_45c2_3cb5e1e42278["test_clearing_conversation_memory_async()"]
  bad7138b_753c_8c4e_915e_8bf58ada3cec["test_conversation.py"]
  573bf0a3_4f2e_e3e8_45c2_3cb5e1e42278 -->|defined in| bad7138b_753c_8c4e_915e_8bf58ada3cec
  style 573bf0a3_4f2e_e3e8_45c2_3cb5e1e42278 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_conversation.py lines 162–171

async def test_clearing_conversation_memory_async(memory: BaseMemory) -> None:
    """Test clearing the conversation memory."""
    # This is a good input because the input is not the same as baz.
    good_inputs = {"foo": "bar", "baz": "foo"}
    # This is a good output because there is one variable.
    good_outputs = {"bar": "foo"}
    await memory.asave_context(good_inputs, good_outputs)

    await memory.aclear()
    assert await memory.aload_memory_variables({}) == {"baz": ""}

Domain

Subdomains

Frequently Asked Questions

What does test_clearing_conversation_memory_async() do?
test_clearing_conversation_memory_async() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_conversation.py.
Where is test_clearing_conversation_memory_async() defined?
test_clearing_conversation_memory_async() is defined in libs/langchain/tests/unit_tests/chains/test_conversation.py at line 162.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free