Commit 8f3424ce by Ctrlz Committed by GitHub

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

parent d72929dc
...@@ -558,6 +558,7 @@ export const getSystemTools = async (): Promise<SystemPluginTemplateItemType[]> ...@@ -558,6 +558,7 @@ export const getSystemTools = async (): Promise<SystemPluginTemplateItemType[]>
intro: item.description, intro: item.description,
author: item.author, author: item.author,
courseUrl: item.courseUrl, courseUrl: item.courseUrl,
instructions: dbPluginConfig?.customConfig?.userGuide,
weight: item.weight, weight: item.weight,
workflow: { workflow: {
nodes: [], nodes: [],
......
...@@ -35,7 +35,8 @@ async function handler( ...@@ -35,7 +35,8 @@ async function handler(
templateType: plugin.templateType ?? FlowNodeTemplateTypeEnum.other, templateType: plugin.templateType ?? FlowNodeTemplateTypeEnum.other,
flowNodeType: plugin.isFolder ? FlowNodeTypeEnum.toolSet : FlowNodeTypeEnum.tool, flowNodeType: plugin.isFolder ? FlowNodeTypeEnum.toolSet : FlowNodeTypeEnum.tool,
name: parseI18nString(plugin.name, lang), name: parseI18nString(plugin.name, lang),
intro: parseI18nString(plugin.intro ?? '', lang) intro: parseI18nString(plugin.intro ?? '', lang),
instructions: parseI18nString(plugin.userGuide ?? '', lang)
})) }))
.filter((item) => { .filter((item) => {
if (searchKey) { if (searchKey) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment