workflow.ts 24 KB

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