You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

workflow.ts 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. const translation = {
  2. common: {
  3. undo: '撤销',
  4. redo: '重做',
  5. editing: '编辑中',
  6. autoSaved: '自动保存',
  7. unpublished: '未发布',
  8. published: '已发布',
  9. publish: '发布',
  10. update: '更新',
  11. publishUpdate: '发布更新',
  12. run: '运行',
  13. running: '运行中',
  14. inRunMode: '在运行模式中',
  15. inPreview: '预览中',
  16. inPreviewMode: '预览中',
  17. preview: '预览',
  18. viewRunHistory: '查看运行历史',
  19. runHistory: '运行历史',
  20. goBackToEdit: '返回编辑模式',
  21. conversationLog: '对话记录',
  22. features: '功能',
  23. featuresDescription: '增强 web app 用户体验',
  24. ImageUploadLegacyTip: '现在可以在 start 表单中创建文件类型变量。未来我们将不继续支持图片上传功能。',
  25. fileUploadTip: '图片上传功能已扩展为文件上传。',
  26. featuresDocLink: '了解更多',
  27. debugAndPreview: '预览',
  28. restart: '重新开始',
  29. currentDraft: '当前草稿',
  30. currentDraftUnpublished: '当前草稿未发布',
  31. latestPublished: '最新发布',
  32. publishedAt: '发布于',
  33. restore: '恢复',
  34. versionHistory: '版本历史',
  35. exitVersions: '退出版本历史',
  36. runApp: '运行',
  37. batchRunApp: '批量运行',
  38. accessAPIReference: '访问 API',
  39. embedIntoSite: '嵌入网站',
  40. addTitle: '添加标题...',
  41. addDescription: '添加描述...',
  42. noVar: '没有变量',
  43. variableNamePlaceholder: '变量名',
  44. searchVar: '搜索变量',
  45. setVarValuePlaceholder: '设置变量值',
  46. needConnectTip: '此节点尚未连接到其他节点',
  47. maxTreeDepth: '每个分支最大限制 {{depth}} 个节点',
  48. needEndNode: '必须添加结束节点',
  49. needAnswerNode: '必须添加直接回复节点',
  50. workflowProcess: '工作流',
  51. notRunning: '尚未运行',
  52. previewPlaceholder: '在下面的框中输入内容开始调试聊天机器人',
  53. effectVarConfirm: {
  54. title: '移除变量',
  55. content: '该变量在其他节点中使用。您是否仍要删除它?',
  56. },
  57. insertVarTip: '按 \'/\' 键快速插入',
  58. processData: '数据处理',
  59. input: '输入',
  60. output: '输出',
  61. jinjaEditorPlaceholder: '输入 “/” 或 “{” 插入变量',
  62. viewOnly: '只读',
  63. showRunHistory: '显示运行历史',
  64. enableJinja: '开启支持 Jinja 模板',
  65. learnMore: '了解更多',
  66. copy: '拷贝',
  67. duplicate: '复制',
  68. addBlock: '添加节点',
  69. pasteHere: '粘贴到这里',
  70. pointerMode: '指针模式',
  71. handMode: '手模式',
  72. exportImage: '导出图片',
  73. exportPNG: '导出为 PNG',
  74. exportJPEG: '导出为 JPEG',
  75. exportSVG: '导出为 SVG',
  76. model: '模型',
  77. workflowAsTool: '发布为工具',
  78. configureRequired: '需要进行配置',
  79. configure: '配置',
  80. manageInTools: '访问工具页',
  81. workflowAsToolTip: '工作流更新后需要重新配置工具参数',
  82. viewDetailInTracingPanel: '查看详细信息',
  83. syncingData: '同步数据中,只需几秒钟。',
  84. importDSL: '导入 DSL',
  85. importDSLTip: '当前草稿将被覆盖。在导入之前请导出工作流作为备份。',
  86. backupCurrentDraft: '备份当前草稿',
  87. chooseDSL: '选择 DSL(yml) 文件',
  88. overwriteAndImport: '覆盖并导入',
  89. importFailure: '导入失败',
  90. importWarning: '注意',
  91. importWarningDetails: 'DSL 版本差异可能影响部分功能表现',
  92. importSuccess: '导入成功',
  93. parallelRun: '并行运行',
  94. parallelTip: {
  95. click: {
  96. title: '点击',
  97. desc: '添加节点',
  98. },
  99. drag: {
  100. title: '拖拽',
  101. desc: '连接节点',
  102. },
  103. limit: '并行分支限制为 {{num}} 个',
  104. depthLimit: '并行嵌套层数限制 {{num}} 层',
  105. },
  106. disconnect: '断开连接',
  107. jumpToNode: '跳转到节点',
  108. addParallelNode: '添加并行节点',
  109. parallel: '并行',
  110. branch: '分支',
  111. onFailure: '异常时',
  112. addFailureBranch: '添加异常分支',
  113. openInExplore: '在“探索”中打开',
  114. loadMore: '加载更多',
  115. noHistory: '没有历史版本',
  116. },
  117. env: {
  118. envPanelTitle: '环境变量',
  119. envDescription: '环境变量是一种存储敏感信息的方法,如 API 密钥、数据库密码等。它们被存储在工作流程中,而不是代码中,以便在不同环境中共享。',
  120. envPanelButton: '添加环境变量',
  121. modal: {
  122. title: '添加环境变量',
  123. editTitle: '编辑环境变量',
  124. type: '类型',
  125. name: '名称',
  126. namePlaceholder: '变量名',
  127. value: '值',
  128. valuePlaceholder: '变量值',
  129. secretTip: '用于定义敏感信息或数据,导出 DSL 时设置了防泄露机制。',
  130. },
  131. export: {
  132. title: '导出 Secret 类型环境变量?',
  133. checkbox: '导出 secret 值',
  134. ignore: '导出 DSL',
  135. export: '导出包含 Secret 值的 DSL',
  136. },
  137. },
  138. chatVariable: {
  139. panelTitle: '会话变量',
  140. panelDescription: '会话变量用于存储 LLM 需要的上下文信息,如用户偏好、对话历史等。它是可读写的。',
  141. docLink: '查看文档了解更多。',
  142. button: '添加变量',
  143. modal: {
  144. title: '添加会话变量',
  145. editTitle: '编辑会话变量',
  146. name: '名称',
  147. namePlaceholder: '变量名',
  148. type: '类型',
  149. value: '默认值',
  150. valuePlaceholder: '默认值,可以为空',
  151. description: '描述',
  152. descriptionPlaceholder: '变量的描述',
  153. editInJSON: '在 JSON 中编辑',
  154. oneByOne: '逐个添加',
  155. editInForm: '在表单中编辑',
  156. arrayValue: '值',
  157. addArrayValue: '添加值',
  158. objectKey: '属性',
  159. objectType: '类型',
  160. objectValue: '默认值',
  161. },
  162. storedContent: '存储内容',
  163. updatedAt: '更新时间 ',
  164. },
  165. changeHistory: {
  166. title: '变更历史',
  167. placeholder: '尚未更改任何内容',
  168. clearHistory: '清除历史记录',
  169. hint: '提示',
  170. hintText: '您的编辑操作将被跟踪并存储在您的设备上,直到您离开编辑器。此历史记录将在您离开编辑器时被清除。',
  171. stepBackward_one: '{{count}} 步后退',
  172. stepBackward_other: '{{count}} 步后退',
  173. stepForward_one: '{{count}} 步前进',
  174. stepForward_other: '{{count}} 步前进',
  175. sessionStart: '会话开始',
  176. currentState: '当前状态',
  177. nodeTitleChange: '块标题已更改',
  178. nodeDescriptionChange: '块描述已更改',
  179. nodeDragStop: '块已移动',
  180. nodeChange: '块已更改',
  181. nodeConnect: '块已连接',
  182. nodePaste: '块已粘贴',
  183. nodeDelete: '块已删除',
  184. nodeAdd: '块已添加',
  185. nodeResize: '块已调整大小',
  186. noteAdd: '注释已添加',
  187. noteChange: '注释已更改',
  188. noteDelete: '注释已删除',
  189. edgeDelete: '块已断开连接',
  190. },
  191. errorMsg: {
  192. fieldRequired: '{{field}} 不能为空',
  193. rerankModelRequired: '未配置 Rerank 模型',
  194. authRequired: '请先授权',
  195. invalidJson: '{{field}} 是非法的 JSON',
  196. fields: {
  197. variable: '变量名',
  198. variableValue: '变量值',
  199. code: '代码',
  200. model: '模型',
  201. rerankModel: 'Rerank 模型',
  202. visionVariable: '视觉变量',
  203. },
  204. invalidVariable: '无效的变量',
  205. noValidTool: '{{field}} 无可用工具',
  206. toolParameterRequired: '{{field}}: 参数 [{{param}}] 不能为空',
  207. },
  208. singleRun: {
  209. testRun: '测试运行 ',
  210. startRun: '开始运行',
  211. running: '运行中',
  212. testRunIteration: '测试运行迭代',
  213. testRunLoop: '测试运行循环',
  214. back: '返回',
  215. iteration: '迭代',
  216. loop: '循环',
  217. },
  218. tabs: {
  219. 'searchBlock': '搜索节点',
  220. 'blocks': '节点',
  221. 'searchTool': '搜索工具',
  222. 'tools': '工具',
  223. 'allTool': '全部',
  224. 'plugin': '插件',
  225. 'customTool': '自定义',
  226. 'workflowTool': '工作流',
  227. 'question-understand': '问题理解',
  228. 'logic': '逻辑',
  229. 'transform': '转换',
  230. 'utilities': '工具',
  231. 'noResult': '未找到匹配项',
  232. 'agent': 'Agent 策略',
  233. },
  234. blocks: {
  235. 'start': '开始',
  236. 'end': '结束',
  237. 'answer': '直接回复',
  238. 'llm': 'LLM',
  239. 'knowledge-retrieval': '知识检索',
  240. 'question-classifier': '问题分类器',
  241. 'if-else': '条件分支',
  242. 'code': '代码执行',
  243. 'template-transform': '模板转换',
  244. 'http-request': 'HTTP 请求',
  245. 'variable-assigner': '变量赋值器',
  246. 'variable-aggregator': '变量聚合器',
  247. 'assigner': '变量赋值',
  248. 'iteration-start': '迭代开始',
  249. 'iteration': '迭代',
  250. 'parameter-extractor': '参数提取器',
  251. 'document-extractor': '文档提取器',
  252. 'list-operator': '列表操作',
  253. 'agent': 'Agent',
  254. 'loop-start': '循环开始',
  255. 'loop': '循环',
  256. 'loop-end': '退出循环',
  257. },
  258. blocksAbout: {
  259. 'start': '定义一个 workflow 流程启动的初始参数',
  260. 'end': '定义一个 workflow 流程的结束和结果类型',
  261. 'answer': '定义一个聊天对话的回复内容',
  262. 'llm': '调用大语言模型回答问题或者对自然语言进行处理',
  263. 'knowledge-retrieval': '允许你从知识库中查询与用户问题相关的文本内容',
  264. 'question-classifier': '定义用户问题的分类条件,LLM 能够根据分类描述定义对话的进展方式',
  265. 'if-else': '允许你根据 if/else 条件将 workflow 拆分成两个分支',
  266. 'code': '执行一段 Python 或 NodeJS 代码实现自定义逻辑',
  267. 'template-transform': '使用 Jinja 模板语法将数据转换为字符串',
  268. 'http-request': '允许通过 HTTP 协议发送服务器请求',
  269. 'variable-assigner': '将多路分支的变量聚合为一个变量,以实现下游节点统一配置。',
  270. 'assigner': '变量赋值节点用于向可写入变量(例如会话变量)进行变量赋值。',
  271. 'variable-aggregator': '将多路分支的变量聚合为一个变量,以实现下游节点统一配置。',
  272. 'iteration': '对列表对象执行多次步骤直至输出所有结果。',
  273. 'loop': '循环执行一段逻辑直到满足结束条件或者到达循环次数上限。',
  274. 'loop-end': '相当于“break” 此节点没有配置项,当循环体内运行到此节点后循环终止。',
  275. 'parameter-extractor': '利用 LLM 从自然语言内推理提取出结构化参数,用于后置的工具调用或 HTTP 请求。',
  276. 'document-extractor': '用于将用户上传的文档解析为 LLM 便于理解的文本内容。',
  277. 'list-operator': '用于过滤或排序数组内容。',
  278. 'agent': '调用大型语言模型回答问题或处理自然语言',
  279. },
  280. operator: {
  281. zoomIn: '放大',
  282. zoomOut: '缩小',
  283. zoomTo50: '缩放到 50%',
  284. zoomTo100: '放大到 100%',
  285. zoomToFit: '自适应视图',
  286. },
  287. variableReference: {
  288. noAvailableVars: '没有可用变量',
  289. noVarsForOperation: '当前选择的操作没有可用的变量进行赋值。',
  290. noAssignedVars: '没有可用的赋值变量',
  291. assignedVarsDescription: '赋值变量必须是可写入的变量,例如:',
  292. conversationVars: '会话变量',
  293. },
  294. panel: {
  295. userInputField: '用户输入字段',
  296. changeBlock: '更改节点',
  297. helpLink: '帮助链接',
  298. about: '关于',
  299. createdBy: '作者',
  300. nextStep: '下一步',
  301. addNextStep: '添加此工作流程中的下一个节点',
  302. selectNextStep: '选择下一个节点',
  303. runThisStep: '运行此步骤',
  304. checklist: '检查清单',
  305. checklistTip: '发布前确保所有问题均已解决',
  306. checklistResolved: '所有问题均已解决',
  307. organizeBlocks: '整理节点',
  308. change: '更改',
  309. optional: '(选填)',
  310. },
  311. nodes: {
  312. common: {
  313. outputVars: '输出变量',
  314. insertVarTip: '插入变量',
  315. memory: {
  316. memory: '记忆',
  317. memoryTip: '聊天记忆设置',
  318. windowSize: '记忆窗口',
  319. conversationRoleName: '对话角色名',
  320. user: '用户前缀',
  321. assistant: '助手前缀',
  322. },
  323. memories: {
  324. title: '记忆',
  325. tip: '聊天记忆',
  326. builtIn: '内置',
  327. },
  328. errorHandle: {
  329. title: '异常处理',
  330. tip: '配置异常处理策略,当节点发生异常时触发。',
  331. none: {
  332. title: '无',
  333. desc: '当发生异常且未处理时,节点将停止运行',
  334. },
  335. defaultValue: {
  336. title: '默认值',
  337. desc: '当发生异常时,指定默认输出内容。',
  338. tip: '当发生异常时,将返回以下值。',
  339. inLog: '节点异常,根据默认值输出。',
  340. output: '输出默认值',
  341. },
  342. failBranch: {
  343. title: '异常分支',
  344. desc: '当发生异常时,将执行异常分支',
  345. customize: '在画布自定义失败分支逻辑。',
  346. customizeTip: '当节点发生异常时,将自动执行失败分支。失败分支允许您灵活地提供错误消息、报告、修复或跳过操作。',
  347. inLog: '节点异常,将自动执行失败分支。节点输出将返回错误类型和错误信息,并传递给下游。',
  348. },
  349. partialSucceeded: {
  350. tip: '流程中有 {{num}} 个节点运行异常,请前往追踪查看日志。',
  351. },
  352. },
  353. retry: {
  354. retry: '重试',
  355. retryOnFailure: '失败时重试',
  356. maxRetries: '最大重试次数',
  357. retryInterval: '重试间隔',
  358. retryTimes: '失败时重试 {{times}} 次',
  359. retrying: '重试中...',
  360. retrySuccessful: '重试成功',
  361. retryFailed: '重试失败',
  362. retryFailedTimes: '{{times}} 次重试失败',
  363. times: '次',
  364. ms: '毫秒',
  365. retries: '{{num}} 重试次数',
  366. },
  367. },
  368. start: {
  369. required: '必填',
  370. inputField: '输入字段',
  371. builtInVar: '内置变量',
  372. outputVars: {
  373. query: '用户输入',
  374. memories: {
  375. des: '会话历史',
  376. type: '消息类型',
  377. content: '消息内容',
  378. },
  379. files: '文件列表',
  380. },
  381. noVarTip: '设置的输入可在工作流程中使用',
  382. },
  383. end: {
  384. outputs: '输出',
  385. output: {
  386. type: '输出类型',
  387. variable: '输出变量',
  388. },
  389. type: {
  390. 'none': '无',
  391. 'plain-text': '纯文本',
  392. 'structured': '结构化',
  393. },
  394. },
  395. answer: {
  396. answer: '回复',
  397. outputVars: '输出变量',
  398. },
  399. llm: {
  400. model: '模型',
  401. variables: '变量',
  402. context: '上下文',
  403. contextTooltip: '您可以导入知识库作为上下文',
  404. notSetContextInPromptTip: '要启用上下文功能,请在提示中填写上下文变量。',
  405. prompt: '提示词',
  406. addMessage: '添加消息',
  407. roleDescription: {
  408. system: '为对话提供高层指导',
  409. user: '向模型提供指令、查询或任何基于文本的输入',
  410. assistant: '基于用户消息的模型回复',
  411. },
  412. vision: '视觉',
  413. files: '文件',
  414. resolution: {
  415. name: '分辨率',
  416. high: '高',
  417. low: '低',
  418. },
  419. outputVars: {
  420. output: '生成内容',
  421. usage: '模型用量信息',
  422. },
  423. singleRun: {
  424. variable: '变量',
  425. },
  426. sysQueryInUser: 'user message 中必须包含 sys.query',
  427. },
  428. knowledgeRetrieval: {
  429. queryVariable: '查询变量',
  430. knowledge: '知识库',
  431. outputVars: {
  432. output: '召回的分段',
  433. content: '分段内容',
  434. title: '分段标题',
  435. icon: '分段图标',
  436. url: '分段链接',
  437. metadata: '其他元数据',
  438. },
  439. metadata: {
  440. title: '元数据过滤',
  441. tip: '元数据过滤是使用元数据属性(例如标签、类别或访问权限)来细化和控制系统内相关信息的检索过程。',
  442. options: {
  443. disabled: {
  444. title: '禁用',
  445. subTitle: '禁用元数据过滤',
  446. },
  447. automatic: {
  448. title: '自动',
  449. subTitle: '根据用户查询自动生成元数据过滤条件',
  450. desc: '根据 Query Variable 自动生成元数据过滤条件',
  451. },
  452. manual: {
  453. title: '手动',
  454. subTitle: '手动添加元数据过滤条件',
  455. },
  456. },
  457. panel: {
  458. title: '元数据过滤条件',
  459. conditions: '条件',
  460. add: '添加条件',
  461. search: '搜索元数据',
  462. placeholder: '输入值',
  463. datePlaceholder: '选择日期...',
  464. select: '选择变量...',
  465. },
  466. },
  467. },
  468. http: {
  469. inputVars: '输入变量',
  470. api: 'API',
  471. apiPlaceholder: '输入 URL,输入变量时请键入‘/’',
  472. extractListPlaceholder: '输入提取列表编号,输入变量时请键入‘/’',
  473. notStartWithHttp: 'API 应该以 http:// 或 https:// 开头',
  474. key: '键',
  475. type: '类型',
  476. value: '值',
  477. bulkEdit: '批量编辑',
  478. keyValueEdit: '键值编辑',
  479. headers: 'Headers',
  480. params: 'Params',
  481. body: 'Body',
  482. binaryFileVariable: 'Binary 文件变量',
  483. outputVars: {
  484. body: '响应内容',
  485. statusCode: '响应状态码',
  486. headers: '响应头列表 JSON',
  487. files: '文件列表',
  488. },
  489. authorization: {
  490. 'authorization': '鉴权',
  491. 'authorizationType': '鉴权类型',
  492. 'no-auth': '无',
  493. 'api-key': 'API-Key',
  494. 'auth-type': 'API 鉴权类型',
  495. 'basic': '基础',
  496. 'bearer': 'Bearer',
  497. 'custom': '自定义',
  498. 'api-key-title': 'API Key',
  499. 'header': 'Header',
  500. },
  501. insertVarPlaceholder: '键入 \'/\' 键快速插入变量',
  502. timeout: {
  503. title: '超时设置',
  504. connectLabel: '连接超时',
  505. connectPlaceholder: '输入连接超时(以秒为单位)',
  506. readLabel: '读取超时',
  507. readPlaceholder: '输入读取超时(以秒为单位)',
  508. writeLabel: '写入超时',
  509. writePlaceholder: '输入写入超时(以秒为单位)',
  510. },
  511. curl: {
  512. title: '导入cURL',
  513. placeholder: '粘贴 cURL 字符串',
  514. },
  515. },
  516. code: {
  517. inputVars: '输入变量',
  518. outputVars: '输出变量',
  519. advancedDependencies: '高级依赖',
  520. advancedDependenciesTip: '在这里添加一些预加载需要消耗较多时间或非默认内置的依赖包',
  521. searchDependencies: '搜索依赖',
  522. },
  523. templateTransform: {
  524. inputVars: '输入变量',
  525. code: '代码',
  526. codeSupportTip: '只支持 Jinja2',
  527. outputVars: {
  528. output: '转换后内容',
  529. },
  530. },
  531. ifElse: {
  532. if: 'If',
  533. else: 'Else',
  534. elseDescription: '用于定义当 if 条件不满足时应执行的逻辑。',
  535. and: 'and',
  536. or: 'or',
  537. operator: '操作符',
  538. notSetVariable: '请先设置变量',
  539. comparisonOperator: {
  540. 'contains': '包含',
  541. 'not contains': '不包含',
  542. 'start with': '开始是',
  543. 'end with': '结束是',
  544. 'is': '是',
  545. 'is not': '不是',
  546. 'empty': '为空',
  547. 'not empty': '不为空',
  548. 'null': '空',
  549. 'not null': '不为空',
  550. 'in': '是',
  551. 'not in': '不是',
  552. 'all of': '全部是',
  553. 'exists': '存在',
  554. 'not exists': '不存在',
  555. 'before': '早于',
  556. 'after': '晚于',
  557. },
  558. optionName: {
  559. image: '图片',
  560. doc: '文档',
  561. audio: '音频',
  562. video: '视频',
  563. localUpload: '本地上传',
  564. url: 'URL',
  565. },
  566. enterValue: '输入值',
  567. addCondition: '添加条件',
  568. conditionNotSetup: '条件未设置',
  569. selectVariable: '选择变量',
  570. addSubVariable: '添加子变量',
  571. select: '选择',
  572. },
  573. variableAssigner: {
  574. title: '变量赋值',
  575. outputType: '输出类型',
  576. varNotSet: '未设置变量',
  577. noVarTip: '添加需要赋值的变量',
  578. type: {
  579. string: 'String',
  580. number: 'Number',
  581. object: 'Object',
  582. array: 'Array',
  583. },
  584. aggregationGroup: '聚合分组',
  585. aggregationGroupTip: '开启该功能后,变量聚合器内可以同时聚合多组变量',
  586. addGroup: '添加分组',
  587. outputVars: {
  588. varDescribe: '{{groupName}}的输出变量',
  589. },
  590. setAssignVariable: '设置赋值变量',
  591. },
  592. assigner: {
  593. 'assignedVariable': '赋值的变量',
  594. 'varNotSet': '未设置变量',
  595. 'noVarTip': '点击 "+" 按钮添加变量',
  596. 'writeMode': '写入模式',
  597. 'writeModeTip': '使用追加模式时,赋值的变量必须是数组类型。',
  598. 'over-write': '覆盖',
  599. 'append': '追加',
  600. 'plus': '加',
  601. 'clear': '清空',
  602. 'setVariable': '设置变量',
  603. 'selectAssignedVariable': '选择要赋值的变量...',
  604. 'setParameter': '设置参数...',
  605. 'operations': {
  606. 'title': '操作',
  607. 'over-write': '覆盖',
  608. 'overwrite': '覆盖',
  609. 'set': '设置',
  610. 'clear': '清空',
  611. 'extend': '扩展',
  612. 'append': '追加',
  613. '+=': '+=',
  614. '-=': '-=',
  615. '*=': '*=',
  616. '/=': '/=',
  617. },
  618. 'variable': '变量',
  619. 'variables': '变量',
  620. 'noAssignedVars': '没有可用的赋值变量',
  621. 'assignedVarsDescription': '赋值变量必须是可写入的变量,例如会话变量。',
  622. },
  623. tool: {
  624. toAuthorize: '授权',
  625. inputVars: '输入变量',
  626. outputVars: {
  627. text: '工具生成的内容',
  628. files: {
  629. title: '工具生成的文件',
  630. type: '支持类型。现在只支持图片',
  631. transfer_method: '传输方式。值为 remote_url 或 local_file',
  632. url: '图片链接',
  633. upload_file_id: '上传文件ID',
  634. },
  635. json: '工具生成的json',
  636. },
  637. },
  638. questionClassifiers: {
  639. model: '模型',
  640. inputVars: '输入变量',
  641. outputVars: {
  642. className: '分类名称',
  643. },
  644. class: '分类',
  645. classNamePlaceholder: '输入你的分类名称',
  646. advancedSetting: '高级设置',
  647. topicName: '主题内容',
  648. topicPlaceholder: '在这里输入你的主题内容',
  649. addClass: '添加分类',
  650. instruction: '指令',
  651. instructionTip: '你可以输入额外的附加指令,帮助问题分类器更好的理解如何分类',
  652. instructionPlaceholder: '在这里输入你的指令',
  653. },
  654. parameterExtractor: {
  655. inputVar: '输入变量',
  656. extractParameters: '提取参数',
  657. importFromTool: '从工具导入',
  658. addExtractParameter: '添加提取参数',
  659. addExtractParameterContent: {
  660. name: '名称',
  661. namePlaceholder: '提取参数名称',
  662. type: '类型',
  663. typePlaceholder: '提取参数类型',
  664. description: '描述',
  665. descriptionPlaceholder: '提取参数描述',
  666. required: '必填',
  667. requiredContent: '必填仅作为模型推理的参考,不用于参数输出的强制验证。',
  668. },
  669. extractParametersNotSet: '提取参数未设置',
  670. instruction: '指令',
  671. instructionTip: '你可以输入额外的附加指令,帮助参数提取器理解如何提取参数',
  672. advancedSetting: '高级设置',
  673. reasoningMode: '推理模式',
  674. reasoningModeTip: '你可以根据模型对于 Function calling 或 Prompt 的指令响应能力选择合适的推理模式',
  675. isSuccess: '是否成功。成功时值为 1,失败时值为 0。',
  676. errorReason: '错误原因',
  677. },
  678. iteration: {
  679. deleteTitle: '删除迭代节点?',
  680. deleteDesc: '删除迭代节点将删除所有子节点',
  681. input: '输入',
  682. output: '输出变量',
  683. iteration_one: '{{count}}个迭代',
  684. iteration_other: '{{count}}个迭代',
  685. currentIteration: '当前迭代',
  686. comma: ',',
  687. error_one: '{{count}}个失败',
  688. error_other: '{{count}}个失败',
  689. parallelMode: '并行模式',
  690. parallelModeUpper: '并行模式',
  691. parallelModeEnableTitle: '并行模式启用',
  692. parallelModeEnableDesc: '启用并行模式时迭代内的任务支持并行执行。你可以在右侧的属性面板中进行配置。',
  693. parallelPanelDesc: '在并行模式下,迭代中的任务支持并行执行。',
  694. MaxParallelismTitle: '最大并行度',
  695. MaxParallelismDesc: '最大并行度用于控制单次迭代中同时执行的任务数量。',
  696. errorResponseMethod: '错误响应方法',
  697. ErrorMethod: {
  698. operationTerminated: '错误时终止',
  699. continueOnError: '忽略错误并继续',
  700. removeAbnormalOutput: '移除错误输出',
  701. },
  702. answerNodeWarningDesc: '并行模式警告:在迭代中,回答节点、会话变量赋值和工具持久读/写操作可能会导致异常。',
  703. },
  704. loop: {
  705. deleteTitle: '删除循环节点?',
  706. deleteDesc: '删除循环节点将删除所有子节点',
  707. input: '输入',
  708. output: '输出变量',
  709. loop_one: '{{count}} 个循环',
  710. loop_other: '{{count}} 个循环',
  711. currentLoop: '当前循环',
  712. breakCondition: '循环终止条件',
  713. breakConditionTip: '支持引用终止条件循环内的变量和会话变量。',
  714. loopMaxCount: '最大循环次数',
  715. loopMaxCountError: '请输入正确的 最大循环次数,范围为 1 到 {{maxCount}}',
  716. errorResponseMethod: '错误响应方法',
  717. ErrorMethod: {
  718. operationTerminated: '错误时终止',
  719. continueOnError: '忽略错误并继续',
  720. removeAbnormalOutput: '移除错误输出',
  721. },
  722. loopVariables: '循环变量',
  723. initialLoopVariables: '初始循环变量',
  724. finalLoopVariables: '最终循环变量',
  725. setLoopVariables: '在循环范围内设置变量',
  726. variableName: '变量名',
  727. inputMode: '输入模式',
  728. exitConditionTip: '循环节点至少需要一个退出条件',
  729. loopNode: '循环节点',
  730. currentLoopCount: '当前循环次数:{{count}}',
  731. totalLoopCount: '总循环次数:{{count}}',
  732. },
  733. note: {
  734. addNote: '添加注释',
  735. editor: {
  736. placeholder: '输入注释...',
  737. small: '小',
  738. medium: '中',
  739. large: '大',
  740. bold: '加粗',
  741. italic: '斜体',
  742. strikethrough: '删除线',
  743. link: '链接',
  744. openLink: '打开',
  745. unlink: '取消链接',
  746. enterUrl: '输入链接...',
  747. invalidUrl: '无效的链接',
  748. bulletList: '列表',
  749. showAuthor: '显示作者',
  750. },
  751. },
  752. docExtractor: {
  753. inputVar: '输入变量',
  754. outputVars: {
  755. text: '提取的文本',
  756. },
  757. supportFileTypes: '支持的文件类型: {{types}}。',
  758. learnMore: '了解更多',
  759. },
  760. listFilter: {
  761. inputVar: '输入变量',
  762. filterCondition: '过滤条件',
  763. filterConditionKey: '过滤条件的 Key',
  764. filterConditionComparisonOperator: '过滤条件比较操作符',
  765. filterConditionComparisonValue: '过滤条件比较值',
  766. selectVariableKeyPlaceholder: '选择子变量的 Key',
  767. extractsCondition: '取第 N 项',
  768. limit: '取前 N 项',
  769. orderBy: '排序',
  770. asc: '升序',
  771. desc: '降序',
  772. outputVars: {
  773. result: '过滤结果',
  774. first_record: '第一条记录',
  775. last_record: '最后一条记录',
  776. },
  777. },
  778. agent: {
  779. strategy: {
  780. label: 'Agent 策略',
  781. tooltip: '不同的 Agent 策略决定了系统如何规划和执行多步工具调用',
  782. shortLabel: '策略',
  783. configureTip: '请配置 Agent 策略。',
  784. configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。',
  785. selectTip: '选择 Agent 策略',
  786. searchPlaceholder: '搜索 Agent 策略',
  787. },
  788. learnMore: '了解更多',
  789. pluginNotInstalled: '插件未安装',
  790. pluginNotInstalledDesc: '此插件是从 GitHub 安装的。请转到插件重新安装',
  791. linkToPlugin: '转到插件',
  792. pluginInstaller: {
  793. install: '安装',
  794. installing: '安装中',
  795. },
  796. modelNotInMarketplace: {
  797. title: '模型未安装',
  798. desc: '此模型安装自本地或 GitHub 仓库。请安装后使用。',
  799. manageInPlugins: '在插件中管理',
  800. },
  801. modelNotSupport: {
  802. title: '不支持的模型',
  803. desc: '已安装的插件版本不提供此模型。',
  804. descForVersionSwitch: '已安装的插件版本不提供此模型。点击切换版本。',
  805. },
  806. model: '模型',
  807. toolbox: '工具箱',
  808. strategyNotSet: '代理策略未设置',
  809. configureModel: '配置模型',
  810. notAuthorized: '未授权',
  811. tools: '工具',
  812. maxIterations: '最大迭代次数',
  813. modelNotInstallTooltip: '此模型未安装',
  814. modelNotSelected: '未选择模型',
  815. toolNotInstallTooltip: '{{tool}} 未安装',
  816. toolNotAuthorizedTooltip: '{{tool}} 未授权',
  817. strategyNotInstallTooltip: '{{strategy}} 未安装',
  818. unsupportedStrategy: '不支持的策略',
  819. strategyNotFoundDesc: '安装的插件版本不提供此策略。',
  820. pluginNotFoundDesc: '此插件安装自 GitHub。请转到插件重新安装。',
  821. strategyNotFoundDescAndSwitchVersion: '安装的插件版本不提供此策略。点击切换版本。',
  822. modelSelectorTooltips: {
  823. deprecated: '此模型已弃用',
  824. },
  825. outputVars: {
  826. text: 'agent 生成的内容',
  827. files: {
  828. title: 'agent 生成的文件',
  829. type: '支持类型。现在只支持图片',
  830. transfer_method: '传输方式。值为 remote_url 或 local_file',
  831. url: '图片链接',
  832. upload_file_id: '上传文件ID',
  833. },
  834. json: 'agent 生成的json',
  835. },
  836. checkList: {
  837. strategyNotSelected: '未选择策略',
  838. },
  839. installPlugin: {
  840. title: '安装插件',
  841. desc: '即将安装以下插件',
  842. changelog: '更新日志',
  843. install: '安装',
  844. cancel: '取消',
  845. },
  846. },
  847. },
  848. tracing: {
  849. stopBy: '由{{user}}终止',
  850. },
  851. versionHistory: {
  852. title: '版本',
  853. currentDraft: '当前草稿',
  854. latest: '最新',
  855. filter: {
  856. all: '全部',
  857. onlyYours: '仅你的',
  858. onlyShowNamedVersions: '只显示已命名版本',
  859. reset: '重置',
  860. empty: '没有匹配的版本',
  861. },
  862. defaultName: '未命名',
  863. nameThisVersion: '命名',
  864. editVersionInfo: '编辑信息',
  865. editField: {
  866. title: '标题',
  867. releaseNotes: '发布说明',
  868. titleLengthLimit: '标题不能超过{{limit}}个字符',
  869. releaseNotesLengthLimit: '发布说明不能超过{{limit}}个字符',
  870. },
  871. releaseNotesPlaceholder: '请描述变更',
  872. restorationTip: '版本回滚后,当前草稿将被覆盖。',
  873. deletionTip: '删除不可逆,请确认。',
  874. action: {
  875. restoreSuccess: '回滚成功',
  876. restoreFailure: '回滚失败',
  877. deleteSuccess: '版本已删除',
  878. deleteFailure: '删除失败',
  879. updateSuccess: '版本信息已更新',
  880. updateFailure: '更新失败',
  881. },
  882. },
  883. }
  884. export default translation