core[patch]: add google genai to serialization (#26154)

This commit is contained in:
ccurme
2024-09-06 12:54:16 -04:00
committed by GitHub
parent 8a3a9c8968
commit b74546a458
2 changed files with 6 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ DEFAULT_NAMESPACES = [
"langchain_community",
"langchain_anthropic",
"langchain_groq",
"langchain_google_genai",
]
ALL_SERIALIZABLE_MAPPINGS = {

View File

@@ -303,6 +303,11 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
"bedrock",
"ChatBedrock",
),
("langchain_google_genai", "chat_models", "ChatGoogleGenerativeAI"): (
"langchain_google_genai",
"chat_models",
"ChatGoogleGenerativeAI",
),
("langchain", "schema", "output", "ChatGenerationChunk"): (
"langchain_core",
"outputs",