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[]>
intro: item.description,
author: item.author,
courseUrl: item.courseUrl,
instructions: dbPluginConfig?.customConfig?.userGuide,
weight: item.weight,
workflow: {
nodes: [],
......
......@@ -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) {
......
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