mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
82 lines
2.1 KiB
TypeScript
82 lines
2.1 KiB
TypeScript
import { FlowNodeTemplateTypeEnum } from '@fastgpt/global/core/workflow/constants';
|
|
import { i18nT } from '../../i18n/utils';
|
|
import type { PluginGroupSchemaType, TGroupType } from '../../../service/core/app/plugin/type';
|
|
|
|
export const workflowNodeTemplateList = [
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.systemInput,
|
|
label: i18nT('common:core.module.template.System input module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.ai,
|
|
label: i18nT('common:core.module.template.AI function'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.search,
|
|
label: i18nT('common:core.workflow.template.Search'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.interactive,
|
|
label: i18nT('common:core.workflow.template.Interactive'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.multimodal,
|
|
label: i18nT('common:core.workflow.template.Multimodal'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.tools,
|
|
label: i18nT('common:core.module.template.Tool module'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.communication,
|
|
label: i18nT('common:workflow.template.communication'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.other,
|
|
label: i18nT('common:common.Other'),
|
|
list: []
|
|
},
|
|
{
|
|
type: FlowNodeTemplateTypeEnum.teamApp,
|
|
label: '',
|
|
list: []
|
|
}
|
|
];
|
|
|
|
export const systemPluginTemplateList: TGroupType[] = [
|
|
{
|
|
typeId: FlowNodeTemplateTypeEnum.tools,
|
|
typeName: i18nT('common:navbar.Tools')
|
|
},
|
|
{
|
|
typeId: FlowNodeTemplateTypeEnum.search,
|
|
typeName: i18nT('common:common.Search')
|
|
},
|
|
{
|
|
typeId: FlowNodeTemplateTypeEnum.multimodal,
|
|
typeName: i18nT('common:core.workflow.template.Multimodal')
|
|
},
|
|
{
|
|
typeId: FlowNodeTemplateTypeEnum.communication,
|
|
typeName: i18nT('common:workflow.template.communication')
|
|
},
|
|
{
|
|
typeId: FlowNodeTemplateTypeEnum.other,
|
|
typeName: i18nT('common:common.Other')
|
|
}
|
|
];
|
|
export const defaultGroup: PluginGroupSchemaType = {
|
|
groupId: 'systemPlugin',
|
|
groupAvatar: 'core/app/type/pluginLight',
|
|
groupName: i18nT('common:core.module.template.System Plugin'),
|
|
groupOrder: 0,
|
|
groupTypes: systemPluginTemplateList
|
|
};
|