The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
langchain: import InMemoryChatMessageHistory from core (#21198)
ccurmebd5d2c2674a9
diff --git a/libs/langchain/langchain/memory/chat_message_histories/in_memory.py b/libs/langchain/langchain/memory/chat_message_histories/in_memory.pyindex 78bc4cc0bb..679c9ce665 100644--- a/libs/langchain/langchain/memory/chat_message_histories/in_memory.py+++ b/libs/langchain/langchain/memory/chat_message_histories/in_memory.py@@ -1,21 +1,5 @@-from typing import TYPE_CHECKING, Any+from langchain_core.chat_history import InMemoryChatMessageHistory as ChatMessageHistory-from langchain._api import create_importer--if TYPE_CHECKING:- from langchain_community.chat_message_histories.in_memory import ChatMessageHistory--# Create a way to dynamically look up deprecated imports.-# Used to consolidate logic for raising deprecation warnings and-# handling optional imports.-DEPRECATED_LOOKUP = {"ChatMessageHistory": "langchain_community.chat_message_histories"}--_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)---def __getattr__(name: str) -> Any:- """Look up attributes dynamically."""- return _import_attribute(name)---__all__ = ["ChatMessageHistory"]+__all__ = [+ "ChatMessageHistory",+]