File size: 4,350 Bytes
c9d0005 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | export default [
{
title: '开始',
type: 'Start',
hidden: true,
targetHandleHidden: true,
icon: {
type: 'icon-start',
bgColor: '#17B26A',
},
settingSchema: {
type: 'object',
properties: {
input: {
title: '变量一',
type: 'string',
widget: 'input',
},
select: {
title: '变量二',
type: 'string',
widget: 'select',
props: {
options: [
{ label: 'a', value: 'a' },
{ label: 'b', value: 'b' },
{ label: 'c', value: 'c' },
],
},
},
radio1: {
title: '点击单选',
type: 'string',
widget: 'radio',
props: {
options: [
{ label: '早', value: 'a' },
{ label: '中', value: 'b' },
{ label: '晚', value: 'c' }
]
}
},
textarea1: {
title: '长文本',
type: 'string',
widget: 'textArea'
},
date1: {
title: '日期选择',
type: 'string',
widget: 'datePicker'
},
dateRange1: {
title: '日期范围',
type: 'range',
widget: 'dateRange'
},
time1: {
title: '时间选择',
type: 'string',
widget: 'timePicker'
},
timeRange1: {
title: '时间范围',
type: 'range',
widget: 'timeRange'
},
},
},
},
{
title: '结束',
type: 'End',
hidden: true,
sourceHandleHidden: true,
icon: {
type: 'icon-end',
bgColor: '#F79009',
},
settingSchema: {
type: "object",
properties: {
input: {
title: '变量一',
type: 'string',
widget: 'input',
},
select: {
title: '变量二',
type: 'string',
widget: 'select',
props: {
options: [
{ label: 'a', value: 'a' },
{ label: 'b', value: 'b' },
{ label: 'c', value: 'c' },
],
},
},
}
}
},
{
title: 'LLM',
type: 'LLM',
description: '调用大语言模型回答问题或者对自然语言进行处理',
icon: {
type: 'icon-model',
bgColor: '#6172F3',
},
},
{
title: 'Prompt',
type: 'Prompt',
description: '通过精心设计提示词,提升大语言模型回答效果',
icon: {
type: 'icon-prompt',
bgColor: '#17B26A',
},
},
{
title: '知识库',
type: 'knowledge',
description: '允许你从知识库中查询与用户问题相关的文本内容',
icon: {
type: 'icon-knowledge',
bgColor: '#6172F3',
},
},
{
title: 'Switch',
type: 'Switch',
description: '允许你根据 if/else 条件将 workflow 拆分成两个分支',
icon: {
type: 'icon-fenzhi',
bgColor: '#06AED4',
},
},
{
title: 'HSF',
type: 'hsf',
description: '允许通过 HSF 协议发送服务器请求',
icon: {
type: 'icon-hsf',
bgColor: '#875BF7',
},
},
{
title: 'Http',
type: 'http',
description: '允许通过 HTTP 协议发送服务器请求',
icon: {
type: 'icon-http',
bgColor: '#875BF7',
},
},
{
title: '代码执行',
type: 'Code',
description: '执行一段 Groovy 或 Python 或 NodeJS 代码实现自定义逻辑',
icon: {
type: 'icon-code',
bgColor: '#2E90FA',
},
},
{
title: '工具',
type: 'tool',
description: '允许使用工具能力',
icon: {
type: 'icon-gongju',
bgColor: '#2E90FA',
},
},
{
title: '工具',
type: '_group',
items: [
{
title: '代码执行',
type: 'Code',
description: '执行一段 Groovy 或 Python 或 NodeJS 代码实现自定义逻辑',
icon: {
type: 'icon-code',
bgColor: '#2E90FA',
},
},
{
title: '工具',
type: 'tool',
description: '允许使用工具能力',
icon: {
type: 'icon-gongju',
bgColor: '#2E90FA',
},
},
],
},
];
|