mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Chore/Google GenAI (#4742)
* update @langchain/core, custom google genai implementation * update @langchain/core, custom google genai implementation
This commit is contained in:
@@ -524,7 +524,7 @@ class Agent_Agentflow implements INode {
|
||||
}
|
||||
const componentNode = options.componentNodes[agentSelectedTool]
|
||||
|
||||
const jsonSchema = zodToJsonSchema(tool.schema)
|
||||
const jsonSchema = zodToJsonSchema(tool.schema as any)
|
||||
if (jsonSchema.$schema) {
|
||||
delete jsonSchema.$schema
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ class Tool_Agentflow implements INode {
|
||||
toolInputArgs = { properties: allProperties }
|
||||
} else {
|
||||
// Handle single tool instance
|
||||
toolInputArgs = toolInstance.schema ? zodToJsonSchema(toolInstance.schema) : {}
|
||||
toolInputArgs = toolInstance.schema ? zodToJsonSchema(toolInstance.schema as any) : {}
|
||||
}
|
||||
|
||||
if (toolInputArgs && Object.keys(toolInputArgs).length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user