diff --git a/web/src/assets/svg/exesql.svg b/web/src/assets/svg/exesql.svg index e10498b49..7f43bd381 100644 --- a/web/src/assets/svg/exesql.svg +++ b/web/src/assets/svg/exesql.svg @@ -1,6 +1,6 @@ - + d="M510.118619 438.866285q135.419768 0 253.144089-24.575232t185.722196-72.573732l0 97.148964q0 39.422768-58.846161 73.149714t-159.995 53.43833-219.993125 19.711384-219.993125-19.711384-159.995-53.43833-58.846161-73.149714l0-97.148964q67.997875 47.9985 185.722196 72.573732t253.144089 24.575232zM510.118619 877.732571q135.419768 0 253.144089-24.575232t185.722196-72.573732l0 97.148964q0 39.422768-58.846161 73.149714t-159.995 53.43833-219.993125 19.711384-219.993125-19.711384-159.995-53.43833-58.846161-73.149714l0-97.148964q67.997875 47.9985 185.722196 72.573732t253.144089 24.575232zM510.118619 658.283429q135.419768 0 253.144089-24.575232t185.722196-72.573732l0 97.148964q0 39.422768-58.846161 73.149714t-159.995 53.43833-219.993125 19.711384-219.993125-19.711384-159.995-53.43833-58.846161-73.149714l0-97.148964q67.997875 47.9985 185.722196 72.573732t253.144089 24.575232zM510.118619 0.031999q118.844286 0 219.993125 19.711384t159.995 53.43833 58.846161 73.149714l0 73.149714q0 39.422768-58.846161 73.149714t-159.995 53.43833-219.993125 19.711384-219.993125-19.711384-159.995-53.43833-58.846161-73.149714l0-73.149714q0-39.422768 58.846161-73.149714t159.995-53.43833 219.993125-19.711384z" + p-id="8164" fill="#1296db"> \ No newline at end of file diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index 8860a2280..0bd4aa914 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -591,6 +591,8 @@ The above is the content you need to summarize.`, messageMsg: 'Please input message or delete this field.', addField: 'Add field', loop: 'Loop', + loopTip: + 'Loop is the upper limit of the number of loops of the current component, when the number of loops exceeds the value of loop, it means that the component can not complete the current task, please re-optimize agent', yes: 'Yes', no: 'No', key: 'key', diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts index 8346cc4aa..8df77f654 100644 --- a/web/src/locales/zh-traditional.ts +++ b/web/src/locales/zh-traditional.ts @@ -551,6 +551,8 @@ export default { messageMsg: '請輸入訊息或刪除此欄位。', addField: '新增字段', loop: '循環上限', + loopTip: + 'loop為目前元件循環次數上限,當循環次數超過loop的值時,表示元件無法完成目前任務,請重新最佳化agent', yes: '是', no: '否', key: 'key', diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts index d641fda4b..698ef1d8a 100644 --- a/web/src/locales/zh.ts +++ b/web/src/locales/zh.ts @@ -570,6 +570,8 @@ export default { messageMsg: '请输入消息或删除此字段。', addField: '新增字段', loop: '循环上限', + loopTip: + 'loop为当前组件循环次数上限,当循环次数超过loop的值时,说明组件不能完成当前任务,请重新优化agent', yes: '是', no: '否', key: 'key', diff --git a/web/src/pages/flow/constant.tsx b/web/src/pages/flow/constant.tsx index 275caa1ca..29bd0dc4c 100644 --- a/web/src/pages/flow/constant.tsx +++ b/web/src/pages/flow/constant.tsx @@ -163,13 +163,21 @@ export const operatorMap = { [Operator.Google]: { backgroundColor: 'pink', }, - [Operator.Bing]: {}, - [Operator.GoogleScholar]: {}, - [Operator.DeepL]: {}, - [Operator.GitHub]: {}, - [Operator.BaiduFanyi]: {}, - [Operator.QWeather]: {}, - [Operator.ExeSQL]: {}, + [Operator.Bing]: { + backgroundColor: '#c0dcc4', + }, + [Operator.GoogleScholar]: { + backgroundColor: '#b4e4f6', + }, + [Operator.DeepL]: { + backgroundColor: '#f5e8e6', + }, + [Operator.GitHub]: { + backgroundColor: '#c7c7f8', + }, + [Operator.BaiduFanyi]: { backgroundColor: '#e5f2d3' }, + [Operator.QWeather]: { backgroundColor: '#a4bbf3' }, + [Operator.ExeSQL]: { backgroundColor: '#b9efe8' }, }; export const componentMenuList = [ diff --git a/web/src/pages/flow/exesql-form/index.tsx b/web/src/pages/flow/exesql-form/index.tsx index 4a2465ed2..9aa80f402 100644 --- a/web/src/pages/flow/exesql-form/index.tsx +++ b/web/src/pages/flow/exesql-form/index.tsx @@ -50,7 +50,12 @@ const ExeSQLForm = ({ onValuesChange, form }: IOperatorForm) => { > - +