add comment

This commit is contained in:
Mason Daugherty 2025-08-06 17:26:30 -04:00
parent 0e6f3ecad0
commit bc448c6cb6
No known key found for this signature in database

View File

@ -156,6 +156,9 @@ class Reviver:
cls = getattr(mod, name)
# Import MessageV1Types lazily to avoid circular import:
# load.load -> v1.messages -> messages.ai -> messages.base ->
# load.serializable -> load.__init__ -> load.load
from langchain_core.v1.messages import MessageV1Types
# The class must be a subclass of Serializable or a v1 message class.