Home / Function/ memory_variables() — langchain Function Reference

memory_variables() — langchain Function Reference

Architecture documentation for the memory_variables() function in summary.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d29d0078_0b52_b72c_2fa6_716dc6730fc8["memory_variables()"]
  896d889a_d228_6c16_6cdd_5799f6e5f307["ConversationSummaryMemory"]
  d29d0078_0b52_b72c_2fa6_716dc6730fc8 -->|defined in| 896d889a_d228_6c16_6cdd_5799f6e5f307
  style d29d0078_0b52_b72c_2fa6_716dc6730fc8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/memory/summary.py lines 131–133

    def memory_variables(self) -> list[str]:
        """Will always return list of memory variables."""
        return [self.memory_key]

Domain

Subdomains

Frequently Asked Questions

What does memory_variables() do?
memory_variables() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/memory/summary.py.
Where is memory_variables() defined?
memory_variables() is defined in libs/langchain/langchain_classic/memory/summary.py at line 131.

Analyze Your Own Codebase

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

Try Supermodel Free