feat: add toolDescription field across various schemas and update related functions (#5452)

This commit is contained in:
Ctrlz
2025-08-15 14:13:14 +08:00
committed by GitHub
parent 5cd1c2af14
commit d78a0e9e4b
12 changed files with 35 additions and 13 deletions

View File

@@ -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;

View File

@@ -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),

View File

@@ -37,6 +37,7 @@ export type WorkflowTemplateType = {
avatar: string;
name: I18nStringType | string;
intro?: I18nStringType | string;
toolDescription?: string;
author?: string;
courseUrl?: string;

View File

@@ -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;