workflow.ts 29 KB

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