_check_repeated_memory_variable() — langchain Function Reference
Architecture documentation for the _check_repeated_memory_variable() function in combined.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3d7caaf7_1cc6_4d24_b1a0_6ce3018a5a74["_check_repeated_memory_variable()"] e7b5b56d_2836_1021_bdd4_75c127a0aa35["CombinedMemory"] 3d7caaf7_1cc6_4d24_b1a0_6ce3018a5a74 -->|defined in| e7b5b56d_2836_1021_bdd4_75c127a0aa35 style 3d7caaf7_1cc6_4d24_b1a0_6ce3018a5a74 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/memory/combined.py lines 18–33
def _check_repeated_memory_variable(
cls,
value: list[BaseMemory],
) -> list[BaseMemory]:
all_variables: set[str] = set()
for val in value:
overlap = all_variables.intersection(val.memory_variables)
if overlap:
msg = (
f"The same variables {overlap} are found in multiple"
"memory object, which is not allowed by CombinedMemory."
)
raise ValueError(msg)
all_variables |= set(val.memory_variables)
return value
Domain
Subdomains
Source
Frequently Asked Questions
What does _check_repeated_memory_variable() do?
_check_repeated_memory_variable() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/memory/combined.py.
Where is _check_repeated_memory_variable() defined?
_check_repeated_memory_variable() is defined in libs/langchain/langchain_classic/memory/combined.py at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free