workflow.ts 30 KB

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