| | |
| | | } |
| | | |
| | | export const parameterTypeMap = { |
| | | [ParameterType.String]: 'string', |
| | | [ParameterType.Number]: 'number', |
| | | [ParameterType.Boolean]: 'boolean', |
| | | [ParameterType.String]: '字符串', |
| | | [ParameterType.Number]: '数字', |
| | | [ParameterType.Boolean]: '布尔值', |
| | | }; |
| | | |
| | | export const enum NodeType { |
| | |
| | | Condition = 'condition', |
| | | Knowledge = 'knowledge', |
| | | Output = 'output_msg', |
| | | Agent='agent' |
| | | Agent='agent', |
| | | Func='func', |
| | | } |
| | | |
| | | export const nodeTypeMap = { |
| | |
| | | [NodeType.End]: '结束', |
| | | [NodeType.Condition]: '条件判断', |
| | | [NodeType.Knowledge]: '知识库', |
| | | [NodeType.Output]: '输出', |
| | | [NodeType.Output]: '对话', |
| | | [NodeType.Agent]: '代理', |
| | | [NodeType.Func]: '执行功能', |
| | | |
| | | }; |
| | | |
| | |
| | | startWith = 'startWith', |
| | | /** @description 结束为 */ |
| | | endWith = 'endWith', |
| | | |
| | | /** @description 非开始为 */ |
| | | notStartWith = 'notStartWith', |
| | | /** @description 非结束为 */ |
| | | notEndWith = 'notEndWith', |
| | | |
| | | /** @description 等于 */ |
| | | eq = 'eq', |
| | |
| | | [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 { |