HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/langchain/memory/__pycache__/__init__.cpython-310.pyc
o

���g��@s�dZddlmZmZddlmZddlmZmZddl	m
Z
ddlmZddl
mZmZmZmZmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlm Z er�ddl!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8idd�dd�dd�dd�dd�dd�dd�dd�dd�d d�d!d�d"d�d#d�d$d�d%d�d&d�d'd�dddd(��Z9ee:e9d)�Z;d*e<d+efd,d-�Z=gd.�Z>d/S)0aL**Memory** maintains Chain state, incorporating context from past runs.

**Class hierarchy for Memory:**

.. code-block::

    BaseMemory --> BaseChatMemory --> <name>Memory  # Examples: ZepMemory, MotorheadMemory

**Main helpers:**

.. code-block::

    BaseChatMessageHistory

**Chat Message History** stores the chat message history in different stores.

**Class hierarchy for ChatMessageHistory:**

.. code-block::

    BaseChatMessageHistory --> <name>ChatMessageHistory  # Example: ZepChatMessageHistory

**Main helpers:**

.. code-block::

    AIMessage, BaseMessage, HumanMessage
�)�
TYPE_CHECKING�Any)�create_importer)�ConversationBufferMemory�ConversationStringBufferMemory)�ConversationBufferWindowMemory)�CombinedMemory)�ConversationEntityMemory�InMemoryEntityStore�RedisEntityStore�SQLiteEntityStore�UpstashRedisEntityStore)�ReadOnlySharedMemory)�SimpleMemory)�ConversationSummaryMemory)�ConversationSummaryBufferMemory)�ConversationTokenBufferMemory)�VectorStoreRetrieverMemory)�(ConversationVectorStoreTokenBufferMemory)�AstraDBChatMessageHistory�CassandraChatMessageHistory�ChatMessageHistory�CosmosDBChatMessageHistory�DynamoDBChatMessageHistory�ElasticsearchChatMessageHistory�FileChatMessageHistory�MomentoChatMessageHistory�MongoDBChatMessageHistory�PostgresChatMessageHistory�RedisChatMessageHistory�SingleStoreDBChatMessageHistory�SQLChatMessageHistory�StreamlitChatMessageHistory�UpstashRedisChatMessageHistory�XataChatMessageHistory�ZepChatMessageHistory)�ConversationKGMemory)�MotorheadMemory)�	ZepMemoryr'z+langchain_community.memory.motorhead_memoryr&zlangchain_community.memory.kgr(z%langchain_community.memory.zep_memoryrz*langchain_community.chat_message_historiesrrrrrrrrrrr r!r")r#r$r%)�deprecated_lookups�name�returncCst|�S)zLook up attributes dynamically.)�_import_attribute)r*�r-�D/usr/local/lib/python3.10/dist-packages/langchain/memory/__init__.py�__getattr__osr/)$rrrrrrr	r&rrrrrrrrrr
rrr'rrrrr r!rrr"rr$r%r(r
r#N)?�__doc__�typingrr�langchain._apir�langchain.memory.bufferrr�langchain.memory.buffer_windowr�langchain.memory.combinedr�langchain.memory.entityr	r
rrr
�langchain.memory.readonlyr�langchain.memory.simpler�langchain.memory.summaryr�langchain.memory.summary_bufferr�langchain.memory.token_bufferr�langchain.memory.vectorstorer�0langchain.memory.vectorstore_token_buffer_memoryr�*langchain_community.chat_message_historiesrrrrrrrrrrrr r!r"r#r$r%�langchain_community.memory.kgr&�+langchain_community.memory.motorhead_memoryr'�%langchain_community.memory.zep_memoryr(�DEPRECATED_LOOKUP�__package__r,�strr/�__all__r-r-r-r.�<module>szL��������	�
���
������