From 3e37940f39c40247534bb29f7463567dbde9c75f Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Mon, 25 Nov 2024 16:42:44 -0800 Subject: [PATCH] fix(google-common): Anthropic util using getType instead of _getType (#7263) --- libs/langchain-google-common/src/utils/anthropic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain-google-common/src/utils/anthropic.ts b/libs/langchain-google-common/src/utils/anthropic.ts index 72e1f9e57080..a5ee5004fbc5 100644 --- a/libs/langchain-google-common/src/utils/anthropic.ts +++ b/libs/langchain-google-common/src/utils/anthropic.ts @@ -518,7 +518,7 @@ export function getAnthropicAPI(config?: AnthropicAPIConfig): GoogleAIAPI { function baseToAnthropicMessage( base: BaseMessage ): AnthropicMessage | undefined { - const type = base.getType(); + const type = base._getType(); switch (type) { case "human": return baseRoleToAnthropicMessage(base, "user");