anthropic[patch]: serialization in partner package (#18828)

This commit is contained in:
Erick Friis
2024-04-16 16:05:58 -07:00
committed by GitHub
parent f74d5d642e
commit e7fe5f7d3f
5 changed files with 222 additions and 167 deletions

View File

@@ -12,7 +12,12 @@ from langchain_core.load.mapping import (
)
from langchain_core.load.serializable import Serializable
DEFAULT_NAMESPACES = ["langchain", "langchain_core", "langchain_community"]
DEFAULT_NAMESPACES = [
"langchain",
"langchain_core",
"langchain_community",
"langchain_anthropic",
]
ALL_SERIALIZABLE_MAPPINGS = {
**SERIALIZABLE_MAPPING,

View File

@@ -241,9 +241,8 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
"BedrockChat",
),
("langchain", "chat_models", "anthropic", "ChatAnthropic"): (
"langchain",
"langchain_anthropic",
"chat_models",
"anthropic",
"ChatAnthropic",
),
("langchain", "chat_models", "fireworks", "ChatFireworks"): (