Skip to content

Commit 4c3b729

Browse files
authored
Chore/Google GenAI (#4742)
* update @langchain/core, custom google genai implementation * update @langchain/core, custom google genai implementation
1 parent e326bc8 commit 4c3b729

File tree

18 files changed

+2087
-876
lines changed

18 files changed

+2087
-876
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"resolutions": {
9090
"@google/generative-ai": "^0.24.0",
9191
"@grpc/grpc-js": "^1.10.10",
92-
"@langchain/core": "0.3.37",
92+
"@langchain/core": "0.3.61",
9393
"@qdrant/openapi-typescript-fetch": "1.2.6",
9494
"openai": "4.96.0",
9595
"protobufjs": "7.4.0"

packages/components/nodes/agentflow/Agent/Agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class Agent_Agentflow implements INode {
524524
}
525525
const componentNode = options.componentNodes[agentSelectedTool]
526526

527-
const jsonSchema = zodToJsonSchema(tool.schema)
527+
const jsonSchema = zodToJsonSchema(tool.schema as any)
528528
if (jsonSchema.$schema) {
529529
delete jsonSchema.$schema
530530
}

packages/components/nodes/agentflow/Tool/Tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Tool_Agentflow implements INode {
161161
toolInputArgs = { properties: allProperties }
162162
} else {
163163
// Handle single tool instance
164-
toolInputArgs = toolInstance.schema ? zodToJsonSchema(toolInstance.schema) : {}
164+
toolInputArgs = toolInstance.schema ? zodToJsonSchema(toolInstance.schema as any) : {}
165165
}
166166

167167
if (toolInputArgs && Object.keys(toolInputArgs).length > 0) {

packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { BaseCache } from '@langchain/core/caches'
44
import { ICommonObject, IMultiModalOption, INode, INodeData, INodeOptionsValue, INodeParams } from '../../../src/Interface'
55
import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
66
import { getModels, MODEL_TYPE } from '../../../src/modelLoader'
7-
import { ChatGoogleGenerativeAI } from './FlowiseChatGoogleGenerativeAI'
8-
import { GoogleGenerativeAIChatInput } from '@langchain/google-genai'
7+
import { ChatGoogleGenerativeAI, GoogleGenerativeAIChatInput } from './FlowiseChatGoogleGenerativeAI'
98

109
class GoogleGenerativeAI_ChatModels implements INode {
1110
label: string

0 commit comments

Comments
 (0)