mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-17 15:19:15 +03:00
12 lines
295 B
Python
12 lines
295 B
Python
from langchain.memory.simple import SimpleMemory
|
|
|
|
|
|
def test_simple_memory() -> None:
|
|
"""Test SimpleMemory."""
|
|
memory = SimpleMemory(memories={"baz": "foo"})
|
|
|
|
output = memory.load_memory_variables({})
|
|
|
|
assert output == {"baz": "foo"}
|
|
assert ["baz"] == memory.memory_variables
|