Align with JS changes made in https://github.com/langchain-ai/langchainjs/pull/8043
AttributeError
ModuleNotFoundError
__getattr__