feat: enhance SystemPluginTemplateItemType to include user instructions (#5455)

This commit is contained in:
Ctrlz
2025-08-14 16:00:35 +08:00
committed by GitHub
parent d72929dcf8
commit 8f3424cea1
2 changed files with 3 additions and 1 deletions

View File

@@ -558,6 +558,7 @@ export const getSystemTools = async (): Promise<SystemPluginTemplateItemType[]>
intro: item.description,
author: item.author,
courseUrl: item.courseUrl,
instructions: dbPluginConfig?.customConfig?.userGuide,
weight: item.weight,
workflow: {
nodes: [],

View File

@@ -35,7 +35,8 @@ async function handler(
templateType: plugin.templateType ?? FlowNodeTemplateTypeEnum.other,
flowNodeType: plugin.isFolder ? FlowNodeTypeEnum.toolSet : FlowNodeTypeEnum.tool,
name: parseI18nString(plugin.name, lang),
intro: parseI18nString(plugin.intro ?? '', lang)
intro: parseI18nString(plugin.intro ?? '', lang),
instructions: parseI18nString(plugin.userGuide ?? '', lang)
}))
.filter((item) => {
if (searchKey) {