workflow.ts 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  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. noValidTool: '{{field}} 无可用工具',
  199. toolParameterRequired: '{{field}}: 参数 [{{param}}] 不能为空',
  200. },
  201. singleRun: {
  202. testRun: '测试运行 ',
  203. startRun: '开始运行',
  204. running: '运行中',
  205. testRunIteration: '测试运行迭代',
  206. testRunLoop: '测试运行循环',
  207. back: '返回',
  208. iteration: '迭代',
  209. loop: '循环',
  210. },
  211. tabs: {
  212. 'searchBlock': '搜索节点',
  213. 'blocks': '节点',
  214. 'searchTool': '搜索工具',
  215. 'tools': '工具',
  216. 'allTool': '全部',
  217. 'plugin': '插件',
  218. 'customTool': '自定义',
  219. 'workflowTool': '工作流',
  220. 'question-understand': '问题理解',
  221. 'logic': '逻辑',
  222. 'transform': '转换',
  223. 'utilities': '工具',
  224. 'noResult': '未找到匹配项',
  225. 'agent': 'Agent 策略',
  226. },
  227. blocks: {
  228. 'start': '开始',
  229. 'end': '结束',
  230. 'answer': '直接回复',
  231. 'llm': 'LLM',
  232. 'knowledge-retrieval': '知识检索',
  233. 'question-classifier': '问题分类器',
  234. 'if-else': '条件分支',
  235. 'code': '代码执行',
  236. 'template-transform': '模板转换',
  237. 'http-request': 'HTTP 请求',
  238. 'variable-assigner': '变量赋值器',
  239. 'variable-aggregator': '变量聚合器',
  240. 'assigner': '变量赋值',
  241. 'iteration-start': '迭代开始',
  242. 'iteration': '迭代',
  243. 'parameter-extractor': '参数提取器',
  244. 'document-extractor': '文档提取器',
  245. 'list-operator': '列表操作',
  246. 'agent': 'Agent',
  247. 'loop-start': '循环开始',
  248. 'loop': '循环',
  249. },
  250. blocksAbout: {
  251. 'start': '定义一个 workflow 流程启动的初始参数',
  252. 'end': '定义一个 workflow 流程的结束和结果类型',
  253. 'answer': '定义一个聊天对话的回复内容',
  254. 'llm': '调用大语言模型回答问题或者对自然语言进行处理',
  255. 'knowledge-retrieval': '允许你从知识库中查询与用户问题相关的文本内容',
  256. 'question-classifier': '定义用户问题的分类条件,LLM 能够根据分类描述定义对话的进展方式',
  257. 'if-else': '允许你根据 if/else 条件将 workflow 拆分成两个分支',
  258. 'code': '执行一段 Python 或 NodeJS 代码实现自定义逻辑',
  259. 'template-transform': '使用 Jinja 模板语法将数据转换为字符串',
  260. 'http-request': '允许通过 HTTP 协议发送服务器请求',
  261. 'variable-assigner': '将多路分支的变量聚合为一个变量,以实现下游节点统一配置。',
  262. 'assigner': '变量赋值节点用于向可写入变量(例如会话变量)进行变量赋值。',
  263. 'variable-aggregator': '将多路分支的变量聚合为一个变量,以实现下游节点统一配置。',
  264. 'iteration': '对列表对象执行多次步骤直至输出所有结果。',
  265. 'loop': '循环执行一段逻辑直到满足结束条件或者到达循环次数上限。',
  266. 'parameter-extractor': '利用 LLM 从自然语言内推理提取出结构化参数,用于后置的工具调用或 HTTP 请求。',
  267. 'document-extractor': '用于将用户上传的文档解析为 LLM 便于理解的文本内容。',
  268. 'list-operator': '用于过滤或排序数组内容。',
  269. 'agent': '调用大型语言模型回答问题或处理自然语言',
  270. },
  271. operator: {
  272. zoomIn: '放大',
  273. zoomOut: '缩小',
  274. zoomTo50: '缩放到 50%',
  275. zoomTo100: '放大到 100%',
  276. zoomToFit: '自适应视图',
  277. },
  278. variableReference: {
  279. noAvailableVars: '没有可用变量',
  280. noVarsForOperation: '当前选择的操作没有可用的变量进行赋值。',
  281. noAssignedVars: '没有可用的赋值变量',
  282. assignedVarsDescription: '赋值变量必须是可写入的变量,例如:',
  283. conversationVars: '会话变量',
  284. },
  285. panel: {
  286. userInputField: '用户输入字段',
  287. changeBlock: '更改节点',
  288. helpLink: '帮助链接',
  289. about: '关于',
  290. createdBy: '作者',
  291. nextStep: '下一步',
  292. addNextStep: '添加此工作流程中的下一个节点',
  293. selectNextStep: '选择下一个节点',
  294. runThisStep: '运行此步骤',
  295. checklist: '检查清单',
  296. checklistTip: '发布前确保所有问题均已解决',
  297. checklistResolved: '所有问题均已解决',
  298. organizeBlocks: '整理节点',
  299. change: '更改',
  300. optional: '(选填)',
  301. },
  302. nodes: {
  303. common: {
  304. outputVars: '输出变量',
  305. insertVarTip: '插入变量',
  306. memory: {
  307. memory: '记忆',
  308. memoryTip: '聊天记忆设置',
  309. windowSize: '记忆窗口',
  310. conversationRoleName: '对话角色名',
  311. user: '用户前缀',
  312. assistant: '助手前缀',
  313. },
  314. memories: {
  315. title: '记忆',
  316. tip: '聊天记忆',
  317. builtIn: '内置',
  318. },
  319. errorHandle: {
  320. title: '异常处理',
  321. tip: '配置异常处理策略,当节点发生异常时触发。',
  322. none: {
  323. title: '无',
  324. desc: '当发生异常且未处理时,节点将停止运行',
  325. },
  326. defaultValue: {
  327. title: '默认值',
  328. desc: '当发生异常时,指定默认输出内容。',
  329. tip: '当发生异常时,将返回以下值。',
  330. inLog: '节点异常,根据默认值输出。',
  331. output: '输出默认值',
  332. },
  333. failBranch: {
  334. title: '异常分支',
  335. desc: '当发生异常时,将执行异常分支',
  336. customize: '在画布自定义失败分支逻辑。',
  337. customizeTip: '当节点发生异常时,将自动执行失败分支。失败分支允许您灵活地提供错误消息、报告、修复或跳过操作。',
  338. inLog: '节点异常,将自动执行失败分支。节点输出将返回错误类型和错误信息,并传递给下游。',
  339. },
  340. partialSucceeded: {
  341. tip: '流程中有 {{num}} 个节点运行异常,请前往追踪查看日志。',
  342. },
  343. },
  344. retry: {
  345. retry: '重试',
  346. retryOnFailure: '失败时重试',
  347. maxRetries: '最大重试次数',
  348. retryInterval: '重试间隔',
  349. retryTimes: '失败时重试 {{times}} 次',
  350. retrying: '重试中...',
  351. retrySuccessful: '重试成功',
  352. retryFailed: '重试失败',
  353. retryFailedTimes: '{{times}} 次重试失败',
  354. times: '次',
  355. ms: '毫秒',
  356. retries: '{{num}} 重试次数',
  357. },
  358. },
  359. start: {
  360. required: '必填',
  361. inputField: '输入字段',
  362. builtInVar: '内置变量',
  363. outputVars: {
  364. query: '用户输入',
  365. memories: {
  366. des: '会话历史',
  367. type: '消息类型',
  368. content: '消息内容',
  369. },
  370. files: '文件列表',
  371. },
  372. noVarTip: '设置的输入可在工作流程中使用',
  373. },
  374. end: {
  375. outputs: '输出',
  376. output: {
  377. type: '输出类型',
  378. variable: '输出变量',
  379. },
  380. type: {
  381. 'none': '无',
  382. 'plain-text': '纯文本',
  383. 'structured': '结构化',
  384. },
  385. },
  386. answer: {
  387. answer: '回复',
  388. outputVars: '输出变量',
  389. },
  390. llm: {
  391. model: '模型',
  392. variables: '变量',
  393. context: '上下文',
  394. contextTooltip: '您可以导入知识库作为上下文',
  395. notSetContextInPromptTip: '要启用上下文功能,请在提示中填写上下文变量。',
  396. prompt: '提示词',
  397. addMessage: '添加消息',
  398. roleDescription: {
  399. system: '为对话提供高层指导',
  400. user: '向模型提供指令、查询或任何基于文本的输入',
  401. assistant: '基于用户消息的模型回复',
  402. },
  403. vision: '视觉',
  404. files: '文件',
  405. resolution: {
  406. name: '分辨率',
  407. high: '高',
  408. low: '低',
  409. },
  410. outputVars: {
  411. output: '生成内容',
  412. usage: '模型用量信息',
  413. },
  414. singleRun: {
  415. variable: '变量',
  416. },
  417. sysQueryInUser: 'user message 中必须包含 sys.query',
  418. },
  419. knowledgeRetrieval: {
  420. queryVariable: '查询变量',
  421. knowledge: '知识库',
  422. outputVars: {
  423. output: '召回的分段',
  424. content: '分段内容',
  425. title: '分段标题',
  426. icon: '分段图标',
  427. url: '分段链接',
  428. metadata: '其他元数据',
  429. },
  430. },
  431. http: {
  432. inputVars: '输入变量',
  433. api: 'API',
  434. apiPlaceholder: '输入 URL,输入变量时请键入‘/’',
  435. extractListPlaceholder: '输入提取列表编号,输入变量时请键入‘/’',
  436. notStartWithHttp: 'API 应该以 http:// 或 https:// 开头',
  437. key: '键',
  438. type: '类型',
  439. value: '值',
  440. bulkEdit: '批量编辑',
  441. keyValueEdit: '键值编辑',
  442. headers: 'Headers',
  443. params: 'Params',
  444. body: 'Body',
  445. binaryFileVariable: 'Binary 文件变量',
  446. outputVars: {
  447. body: '响应内容',
  448. statusCode: '响应状态码',
  449. headers: '响应头列表 JSON',
  450. files: '文件列表',
  451. },
  452. authorization: {
  453. 'authorization': '鉴权',
  454. 'authorizationType': '鉴权类型',
  455. 'no-auth': '无',
  456. 'api-key': 'API-Key',
  457. 'auth-type': 'API 鉴权类型',
  458. 'basic': '基础',
  459. 'bearer': 'Bearer',
  460. 'custom': '自定义',
  461. 'api-key-title': 'API Key',
  462. 'header': 'Header',
  463. },
  464. insertVarPlaceholder: '键入 \'/\' 键快速插入变量',
  465. timeout: {
  466. title: '超时设置',
  467. connectLabel: '连接超时',
  468. connectPlaceholder: '输入连接超时(以秒为单位)',
  469. readLabel: '读取超时',
  470. readPlaceholder: '输入读取超时(以秒为单位)',
  471. writeLabel: '写入超时',
  472. writePlaceholder: '输入写入超时(以秒为单位)',
  473. },
  474. curl: {
  475. title: '导入cURL',
  476. placeholder: '粘贴 cURL 字符串',
  477. },
  478. },
  479. code: {
  480. inputVars: '输入变量',
  481. outputVars: '输出变量',
  482. advancedDependencies: '高级依赖',
  483. advancedDependenciesTip: '在这里添加一些预加载需要消耗较多时间或非默认内置的依赖包',
  484. searchDependencies: '搜索依赖',
  485. },
  486. templateTransform: {
  487. inputVars: '输入变量',
  488. code: '代码',
  489. codeSupportTip: '只支持 Jinja2',
  490. outputVars: {
  491. output: '转换后内容',
  492. },
  493. },
  494. ifElse: {
  495. if: 'If',
  496. else: 'Else',
  497. elseDescription: '用于定义当 if 条件不满足时应执行的逻辑。',
  498. and: 'and',
  499. or: 'or',
  500. operator: '操作符',
  501. notSetVariable: '请先设置变量',
  502. comparisonOperator: {
  503. 'contains': '包含',
  504. 'not contains': '不包含',
  505. 'start with': '开始是',
  506. 'end with': '结束是',
  507. 'is': '是',
  508. 'is not': '不是',
  509. 'empty': '为空',
  510. 'not empty': '不为空',
  511. 'null': '空',
  512. 'not null': '不为空',
  513. 'in': '是',
  514. 'not in': '不是',
  515. 'all of': '全部是',
  516. 'exists': '存在',
  517. 'not exists': '不存在',
  518. },
  519. optionName: {
  520. image: '图片',
  521. doc: '文档',
  522. audio: '音频',
  523. video: '视频',
  524. localUpload: '本地上传',
  525. url: 'URL',
  526. },
  527. enterValue: '输入值',
  528. addCondition: '添加条件',
  529. conditionNotSetup: '条件未设置',
  530. selectVariable: '选择变量',
  531. addSubVariable: '添加子变量',
  532. select: '选择',
  533. },
  534. variableAssigner: {
  535. title: '变量赋值',
  536. outputType: '输出类型',
  537. varNotSet: '未设置变量',
  538. noVarTip: '添加需要赋值的变量',
  539. type: {
  540. string: 'String',
  541. number: 'Number',
  542. object: 'Object',
  543. array: 'Array',
  544. },
  545. aggregationGroup: '聚合分组',
  546. aggregationGroupTip: '开启该功能后,变量聚合器内可以同时聚合多组变量',
  547. addGroup: '添加分组',
  548. outputVars: {
  549. varDescribe: '{{groupName}}的输出变量',
  550. },
  551. setAssignVariable: '设置赋值变量',
  552. },
  553. assigner: {
  554. 'assignedVariable': '赋值的变量',
  555. 'varNotSet': '未设置变量',
  556. 'noVarTip': '点击 "+" 按钮添加变量',
  557. 'writeMode': '写入模式',
  558. 'writeModeTip': '使用追加模式时,赋值的变量必须是数组类型。',
  559. 'over-write': '覆盖',
  560. 'append': '追加',
  561. 'plus': '加',
  562. 'clear': '清空',
  563. 'setVariable': '设置变量',
  564. 'selectAssignedVariable': '选择要赋值的变量...',
  565. 'setParameter': '设置参数...',
  566. 'operations': {
  567. 'title': '操作',
  568. 'over-write': '覆盖',
  569. 'overwrite': '覆盖',
  570. 'set': '设置',
  571. 'clear': '清空',
  572. 'extend': '扩展',
  573. 'append': '追加',
  574. '+=': '+=',
  575. '-=': '-=',
  576. '*=': '*=',
  577. '/=': '/=',
  578. },
  579. 'variable': '变量',
  580. 'variables': '变量',
  581. 'noAssignedVars': '没有可用的赋值变量',
  582. 'assignedVarsDescription': '赋值变量必须是可写入的变量,例如会话变量。',
  583. },
  584. tool: {
  585. toAuthorize: '授权',
  586. inputVars: '输入变量',
  587. outputVars: {
  588. text: '工具生成的内容',
  589. files: {
  590. title: '工具生成的文件',
  591. type: '支持类型。现在只支持图片',
  592. transfer_method: '传输方式。值为 remote_url 或 local_file',
  593. url: '图片链接',
  594. upload_file_id: '上传文件ID',
  595. },
  596. json: '工具生成的json',
  597. },
  598. },
  599. questionClassifiers: {
  600. model: '模型',
  601. inputVars: '输入变量',
  602. outputVars: {
  603. className: '分类名称',
  604. },
  605. class: '分类',
  606. classNamePlaceholder: '输入你的分类名称',
  607. advancedSetting: '高级设置',
  608. topicName: '主题内容',
  609. topicPlaceholder: '在这里输入你的主题内容',
  610. addClass: '添加分类',
  611. instruction: '指令',
  612. instructionTip: '你可以输入额外的附加指令,帮助问题分类器更好的理解如何分类',
  613. instructionPlaceholder: '在这里输入你的指令',
  614. },
  615. parameterExtractor: {
  616. inputVar: '输入变量',
  617. extractParameters: '提取参数',
  618. importFromTool: '从工具导入',
  619. addExtractParameter: '添加提取参数',
  620. addExtractParameterContent: {
  621. name: '名称',
  622. namePlaceholder: '提取参数名称',
  623. type: '类型',
  624. typePlaceholder: '提取参数类型',
  625. description: '描述',
  626. descriptionPlaceholder: '提取参数描述',
  627. required: '必填',
  628. requiredContent: '必填仅作为模型推理的参考,不用于参数输出的强制验证。',
  629. },
  630. extractParametersNotSet: '提取参数未设置',
  631. instruction: '指令',
  632. instructionTip: '你可以输入额外的附加指令,帮助参数提取器理解如何提取参数',
  633. advancedSetting: '高级设置',
  634. reasoningMode: '推理模式',
  635. reasoningModeTip: '你可以根据模型对于 Function calling 或 Prompt 的指令响应能力选择合适的推理模式',
  636. isSuccess: '是否成功。成功时值为 1,失败时值为 0。',
  637. errorReason: '错误原因',
  638. },
  639. iteration: {
  640. deleteTitle: '删除迭代节点?',
  641. deleteDesc: '删除迭代节点将删除所有子节点',
  642. input: '输入',
  643. output: '输出变量',
  644. iteration_one: '{{count}}个迭代',
  645. iteration_other: '{{count}}个迭代',
  646. currentIteration: '当前迭代',
  647. comma: ',',
  648. error_one: '{{count}}个失败',
  649. error_other: '{{count}}个失败',
  650. parallelMode: '并行模式',
  651. parallelModeUpper: '并行模式',
  652. parallelModeEnableTitle: '并行模式启用',
  653. parallelModeEnableDesc: '启用并行模式时迭代内的任务支持并行执行。你可以在右侧的属性面板中进行配置。',
  654. parallelPanelDesc: '在并行模式下,迭代中的任务支持并行执行。',
  655. MaxParallelismTitle: '最大并行度',
  656. MaxParallelismDesc: '最大并行度用于控制单次迭代中同时执行的任务数量。',
  657. errorResponseMethod: '错误响应方法',
  658. ErrorMethod: {
  659. operationTerminated: '错误时终止',
  660. continueOnError: '忽略错误并继续',
  661. removeAbnormalOutput: '移除错误输出',
  662. },
  663. answerNodeWarningDesc: '并行模式警告:在迭代中,回答节点、会话变量赋值和工具持久读/写操作可能会导致异常。',
  664. },
  665. loop: {
  666. deleteTitle: '删除循环节点?',
  667. deleteDesc: '删除循环节点将删除所有子节点',
  668. input: '输入',
  669. output: '输出变量',
  670. loop_one: '{{count}} 个循环',
  671. loop_other: '{{count}} 个循环',
  672. currentLoop: '当前循环',
  673. breakCondition: '循环终止条件',
  674. loopMaxCount: '最大循环次数',
  675. loopMaxCountError: '请输入正确的 最大循环次数,范围为 1 到 {{maxCount}}',
  676. errorResponseMethod: '错误响应方法',
  677. ErrorMethod: {
  678. operationTerminated: '错误时终止',
  679. continueOnError: '忽略错误并继续',
  680. removeAbnormalOutput: '移除错误输出',
  681. },
  682. },
  683. note: {
  684. addNote: '添加注释',
  685. editor: {
  686. placeholder: '输入注释...',
  687. small: '小',
  688. medium: '中',
  689. large: '大',
  690. bold: '加粗',
  691. italic: '斜体',
  692. strikethrough: '删除线',
  693. link: '链接',
  694. openLink: '打开',
  695. unlink: '取消链接',
  696. enterUrl: '输入链接...',
  697. invalidUrl: '无效的链接',
  698. bulletList: '列表',
  699. showAuthor: '显示作者',
  700. },
  701. },
  702. docExtractor: {
  703. inputVar: '输入变量',
  704. outputVars: {
  705. text: '提取的文本',
  706. },
  707. supportFileTypes: '支持的文件类型: {{types}}。',
  708. learnMore: '了解更多',
  709. },
  710. listFilter: {
  711. inputVar: '输入变量',
  712. filterCondition: '过滤条件',
  713. filterConditionKey: '过滤条件的 Key',
  714. filterConditionComparisonOperator: '过滤条件比较操作符',
  715. filterConditionComparisonValue: '过滤条件比较值',
  716. selectVariableKeyPlaceholder: '选择子变量的 Key',
  717. extractsCondition: '取第 N 项',
  718. limit: '取前 N 项',
  719. orderBy: '排序',
  720. asc: '升序',
  721. desc: '降序',
  722. outputVars: {
  723. result: '过滤结果',
  724. first_record: '第一条记录',
  725. last_record: '最后一条记录',
  726. },
  727. },
  728. agent: {
  729. strategy: {
  730. label: 'Agent 策略',
  731. tooltip: '不同的 Agent 策略决定了系统如何规划和执行多步工具调用',
  732. shortLabel: '策略',
  733. configureTip: '请配置 Agent 策略。',
  734. configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。',
  735. selectTip: '选择 Agent 策略',
  736. searchPlaceholder: '搜索 Agent 策略',
  737. },
  738. learnMore: '了解更多',
  739. pluginNotInstalled: '插件未安装',
  740. pluginNotInstalledDesc: '此插件是从 GitHub 安装的。请转到插件重新安装',
  741. linkToPlugin: '转到插件',
  742. pluginInstaller: {
  743. install: '安装',
  744. installing: '安装中',
  745. },
  746. modelNotInMarketplace: {
  747. title: '模型未安装',
  748. desc: '此模型安装自本地或 GitHub 仓库。请安装后使用。',
  749. manageInPlugins: '在插件中管理',
  750. },
  751. modelNotSupport: {
  752. title: '不支持的模型',
  753. desc: '已安装的插件版本不提供此模型。',
  754. descForVersionSwitch: '已安装的插件版本不提供此模型。点击切换版本。',
  755. },
  756. model: '模型',
  757. toolbox: '工具箱',
  758. strategyNotSet: '代理策略未设置',
  759. configureModel: '配置模型',
  760. notAuthorized: '未授权',
  761. tools: '工具',
  762. maxIterations: '最大迭代次数',
  763. modelNotInstallTooltip: '此模型未安装',
  764. modelNotSelected: '未选择模型',
  765. toolNotInstallTooltip: '{{tool}} 未安装',
  766. toolNotAuthorizedTooltip: '{{tool}} 未授权',
  767. strategyNotInstallTooltip: '{{strategy}} 未安装',
  768. unsupportedStrategy: '不支持的策略',
  769. strategyNotFoundDesc: '安装的插件版本不提供此策略。',
  770. pluginNotFoundDesc: '此插件安装自 GitHub。请转到插件重新安装。',
  771. strategyNotFoundDescAndSwitchVersion: '安装的插件版本不提供此策略。点击切换版本。',
  772. modelSelectorTooltips: {
  773. deprecated: '此模型已弃用',
  774. },
  775. outputVars: {
  776. text: 'agent 生成的内容',
  777. files: {
  778. title: 'agent 生成的文件',
  779. type: '支持类型。现在只支持图片',
  780. transfer_method: '传输方式。值为 remote_url 或 local_file',
  781. url: '图片链接',
  782. upload_file_id: '上传文件ID',
  783. },
  784. json: 'agent 生成的json',
  785. },
  786. checkList: {
  787. strategyNotSelected: '未选择策略',
  788. },
  789. installPlugin: {
  790. title: '安装插件',
  791. desc: '即将安装以下插件',
  792. changelog: '更新日志',
  793. install: '安装',
  794. cancel: '取消',
  795. },
  796. },
  797. },
  798. tracing: {
  799. stopBy: '由{{user}}终止',
  800. },
  801. }
  802. export default translation