wujingjing
2024-12-13 d2da078b40578cf72901442c7a2b878dfc34cae5
src/components/vue-flow/vueFlowEnum.ts
@@ -5,9 +5,9 @@
}
export const parameterTypeMap = {
   [ParameterType.String]: 'string',
   [ParameterType.Number]: 'number',
   [ParameterType.Boolean]: 'boolean',
   [ParameterType.String]: '字符串',
   [ParameterType.Number]: '数字',
   [ParameterType.Boolean]: '布尔值',
};
export const enum NodeType {
@@ -17,7 +17,8 @@
   Condition = 'condition',
   Knowledge = 'knowledge',
   Output = 'output_msg',
   Agent='agent'
   Agent='agent',
   Func='func',
}
export const nodeTypeMap = {
@@ -26,8 +27,9 @@
   [NodeType.End]: '结束',
   [NodeType.Condition]: '条件判断',
   [NodeType.Knowledge]: '知识库',
   [NodeType.Output]: '输出',
   [NodeType.Output]: '对话',
   [NodeType.Agent]: '代理',
   [NodeType.Func]: '执行功能',
};
@@ -44,6 +46,11 @@
   startWith = 'startWith',
   /** @description 结束为 */
   endWith = 'endWith',
   /** @description 非开始为 */
   notStartWith = 'notStartWith',
   /** @description 非结束为 */
   notEndWith = 'notEndWith',
   /** @description 等于 */
   eq = 'eq',
@@ -67,10 +74,12 @@
   [CompareOperation.neq]: '不等于',
   [CompareOperation.include]: '包含',
   [CompareOperation.notInclude]: '不包含',
   // [CompareOperation.empty]: '为空',
   // [CompareOperation.notEmpty]: '不为空',
   [CompareOperation.empty]: '为空',
   [CompareOperation.notEmpty]: '不为空',
   [CompareOperation.startWith]: '开始为',
   [CompareOperation.endWith]: '结束为',
   [CompareOperation.notStartWith]: '非开始为',
   [CompareOperation.notEndWith]: '非结束为',
};
export const enum VarType {