[docs]classReadOnlySharedMemory(BaseMemory):"""Memory wrapper that is read-only and cannot be changed."""memory:BaseMemory@propertydefmemory_variables(self)->List[str]:"""Return memory variables."""returnself.memory.memory_variables
[docs]defload_memory_variables(self,inputs:Dict[str,Any])->Dict[str,str]:"""Load memory variables from memory."""returnself.memory.load_memory_variables(inputs)
[docs]defsave_context(self,inputs:Dict[str,Any],outputs:Dict[str,str])->None:"""Nothing should be saved or changed"""pass
[docs]defclear(self)->None:"""Nothing to clear, got a memory like a vault."""pass