readonly.py — langchain Source File
Architecture documentation for readonly.py, a python file in the langchain codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 8ce6c38b_2549_00d1_94c3_06f6a92f277b["readonly.py"] feec1ec4_6917_867b_d228_b134d0ff8099["typing"] 8ce6c38b_2549_00d1_94c3_06f6a92f277b --> feec1ec4_6917_867b_d228_b134d0ff8099 8d1ab66e_47c1_1140_c3a5_5112af3b1cac["langchain_classic.base_memory"] 8ce6c38b_2549_00d1_94c3_06f6a92f277b --> 8d1ab66e_47c1_1140_c3a5_5112af3b1cac style 8ce6c38b_2549_00d1_94c3_06f6a92f277b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import Any
from langchain_classic.base_memory import BaseMemory
class ReadOnlySharedMemory(BaseMemory):
"""Memory wrapper that is read-only and cannot be changed."""
memory: BaseMemory
@property
def memory_variables(self) -> list[str]:
"""Return memory variables."""
return self.memory.memory_variables
def load_memory_variables(self, inputs: dict[str, Any]) -> dict[str, str]:
"""Load memory variables from memory."""
return self.memory.load_memory_variables(inputs)
def save_context(self, inputs: dict[str, Any], outputs: dict[str, str]) -> None:
"""Nothing should be saved or changed."""
def clear(self) -> None:
"""Nothing to clear, got a memory like a vault."""
Domain
Subdomains
Classes
Dependencies
- langchain_classic.base_memory
- typing
Source
Frequently Asked Questions
What does readonly.py do?
readonly.py is a source file in the langchain codebase, written in python. It belongs to the LangChainCore domain, MessageInterface subdomain.
What does readonly.py depend on?
readonly.py imports 2 module(s): langchain_classic.base_memory, typing.
Where is readonly.py in the architecture?
readonly.py is located at libs/langchain/langchain_classic/memory/readonly.py (domain: LangChainCore, subdomain: MessageInterface, directory: libs/langchain/langchain_classic/memory).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free