Source code for langchain_elasticsearch.chat_history
fromtypingimportListfromlangchain_core.messagesimportBaseMessagefromlangchain_elasticsearch._async.chat_historyimport(AsyncElasticsearchChatMessageHistoryas_AsyncElasticsearchChatMessageHistory,)fromlangchain_elasticsearch._sync.chat_historyimport(ElasticsearchChatMessageHistoryas_ElasticsearchChatMessageHistory,)# add the messages property which is only in the sync version
# langchain defines some sync methods as abstract in its base class# so we have to add dummy methods for them, even though we only use the async versions