mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 23:55:36 +00:00
feat: add toolDescription field across various schemas and update related functions (#5452)
This commit is contained in:
@@ -101,6 +101,7 @@ export type RuntimeNodeItemType = {
|
||||
name: StoreNodeItemType['name'];
|
||||
avatar: StoreNodeItemType['avatar'];
|
||||
intro?: StoreNodeItemType['intro'];
|
||||
toolDescription?: StoreNodeItemType['toolDescription'];
|
||||
flowNodeType: StoreNodeItemType['flowNodeType'];
|
||||
showStatus?: StoreNodeItemType['showStatus'];
|
||||
isEntry?: boolean;
|
||||
|
@@ -252,6 +252,7 @@ export const storeNodes2RuntimeNodes = (
|
||||
name: node.name,
|
||||
avatar: node.avatar,
|
||||
intro: node.intro,
|
||||
toolDescription: node.toolDescription,
|
||||
flowNodeType: node.flowNodeType,
|
||||
showStatus: node.showStatus,
|
||||
isEntry: entryNodeIds.includes(node.nodeId),
|
||||
|
@@ -37,6 +37,7 @@ export type WorkflowTemplateType = {
|
||||
avatar: string;
|
||||
name: I18nStringType | string;
|
||||
intro?: I18nStringType | string;
|
||||
toolDescription?: string;
|
||||
|
||||
author?: string;
|
||||
courseUrl?: string;
|
||||
|
1
packages/global/core/workflow/type/node.d.ts
vendored
1
packages/global/core/workflow/type/node.d.ts
vendored
@@ -56,6 +56,7 @@ export type FlowNodeCommonType = {
|
||||
avatar?: string;
|
||||
name: string;
|
||||
intro?: string; // template list intro
|
||||
toolDescription?: string;
|
||||
showStatus?: boolean; // chatting response step status
|
||||
|
||||
version?: string;
|
||||
|
Reference in New Issue
Block a user