mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-21 19:42:07 +00:00
feat: add toolDescription field across various schemas and update related functions (#5452)
This commit is contained in:
@@ -189,7 +189,7 @@ export const runToolWithFunctionCall = async (
|
||||
|
||||
return {
|
||||
name: item.nodeId,
|
||||
description: item.intro,
|
||||
description: item.toolDescription || item.intro,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties,
|
||||
|
@@ -193,7 +193,7 @@ export const runToolWithPromptCall = async (
|
||||
|
||||
return {
|
||||
toolId: item.nodeId,
|
||||
description: item.intro,
|
||||
description: item.toolDescription || item.intro,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties,
|
||||
|
@@ -246,7 +246,7 @@ export const runToolWithToolChoice = async (
|
||||
type: 'function',
|
||||
function: {
|
||||
name: item.nodeId,
|
||||
description: item.intro || item.name,
|
||||
description: item.toolDescription || item.intro || item.name,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties,
|
||||
|
Reference in New Issue
Block a user