o
    {qiò  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚAny)Ú
BaseMemoryc                   @   s‚   e Zd ZU dZeed< edee fdd„ƒZ	de
eef de
eef fdd„Zde
eef d	e
eef dd
fdd„Zddd„Zd
S )ÚReadOnlySharedMemoryz7Memory wrapper that is read-only and cannot be changed.ÚmemoryÚreturnc                 C   s   | j jS )zReturn memory variables.)r   Úmemory_variables©Úself© r
   ú`/home/app/PaddleOCR-VL/.venv_paddleocr/lib/python3.10/site-packages/langchain/memory/readonly.pyr      s   z%ReadOnlySharedMemory.memory_variablesÚinputsc                 C   s   | j  |¡S )z"Load memory variables from memory.)r   Úload_memory_variables)r	   r   r
   r
   r   r      s   z*ReadOnlySharedMemory.load_memory_variablesÚoutputsNc                 C   ó   dS )z"Nothing should be saved or changedNr
   )r	   r   r   r
   r
   r   Úsave_context   ó    z!ReadOnlySharedMemory.save_contextc                 C   r   )z,Nothing to clear, got a memory like a vault.Nr
   r   r
   r
   r   Úclear   r   zReadOnlySharedMemory.clear)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__annotations__ÚpropertyÚlistÚstrr   Údictr   r   r   r   r
   r
   r
   r   r      s   
 "&r   N)Útypingr   Zlangchain_core.memoryr   r   r
   r
   r
   r   Ú<module>   s    