Home / Function/ memory_variables() — langchain Function Reference

memory_variables() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9d0453e5_6847_04ba_73d8_0590b5e571f5["memory_variables()"]
  45d63404_b604_4c09_dcac_77e8840caf9b["AgentTokenBufferMemory"]
  9d0453e5_6847_04ba_73d8_0590b5e571f5 -->|defined in| 45d63404_b604_4c09_dcac_77e8840caf9b
  style 9d0453e5_6847_04ba_73d8_0590b5e571f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/openai_functions_agent/agent_token_buffer_memory.py lines 51–53

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

Subdomains

Frequently Asked Questions

What does memory_variables() do?
memory_variables() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/openai_functions_agent/agent_token_buffer_memory.py.
Where is memory_variables() defined?
memory_variables() is defined in libs/langchain/langchain_classic/agents/openai_functions_agent/agent_token_buffer_memory.py at line 51.

Analyze Your Own Codebase

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

Try Supermodel Free