workflow.ts 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  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. metadata: {
  434. title: '元数据过滤',
  435. tip: '元数据过滤是使用元数据属性(例如标签、类别或访问权限)来细化和控制系统内相关信息的检索过程。',
  436. options: {
  437. disabled: {
  438. title: '禁用',
  439. subTitle: '禁用元数据过滤',
  440. },
  441. automatic: {
  442. title: '自动',
  443. subTitle: '根据用户查询自动生成元数据过滤条件',
  444. desc: '根据 Query Variable 自动生成元数据过滤条件',
  445. },
  446. manual: {
  447. title: '手动',
  448. subTitle: '手动添加元数据过滤条件',
  449. },
  450. },
  451. panel: {
  452. title: '元数据过滤条件',
  453. conditions: '条件',
  454. add: '添加条件',
  455. search: '搜索元数据',
  456. placeholder: '输入值',
  457. datePlaceholder: '选择日期...',
  458. select: '选择变量...',
  459. },
  460. },
  461. },
  462. http: {
  463. inputVars: '输入变量',
  464. api: 'API',
  465. apiPlaceholder: '输入 URL,输入变量时请键入‘/’',
  466. extractListPlaceholder: '输入提取列表编号,输入变量时请键入‘/’',
  467. notStartWithHttp: 'API 应该以 http:// 或 https:// 开头',
  468. key: '键',
  469. type: '类型',
  470. value: '值',
  471. bulkEdit: '批量编辑',
  472. keyValueEdit: '键值编辑',
  473. headers: 'Headers',
  474. params: 'Params',
  475. body: 'Body',
  476. binaryFileVariable: 'Binary 文件变量',
  477. outputVars: {
  478. body: '响应内容',
  479. statusCode: '响应状态码',
  480. headers: '响应头列表 JSON',
  481. files: '文件列表',
  482. },
  483. authorization: {
  484. 'authorization': '鉴权',
  485. 'authorizationType': '鉴权类型',
  486. 'no-auth': '无',
  487. 'api-key': 'API-Key',
  488. 'auth-type': 'API 鉴权类型',
  489. 'basic': '基础',
  490. 'bearer': 'Bearer',
  491. 'custom': '自定义',
  492. 'api-key-title': 'API Key',
  493. 'header': 'Header',
  494. },
  495. insertVarPlaceholder: '键入 \'/\' 键快速插入变量',
  496. timeout: {
  497. title: '超时设置',
  498. connectLabel: '连接超时',
  499. connectPlaceholder: '输入连接超时(以秒为单位)',
  500. readLabel: '读取超时',
  501. readPlaceholder: '输入读取超时(以秒为单位)',
  502. writeLabel: '写入超时',
  503. writePlaceholder: '输入写入超时(以秒为单位)',
  504. },
  505. curl: {
  506. title: '导入cURL',
  507. placeholder: '粘贴 cURL 字符串',
  508. },
  509. },
  510. code: {
  511. inputVars: '输入变量',
  512. outputVars: '输出变量',
  513. advancedDependencies: '高级依赖',
  514. advancedDependenciesTip: '在这里添加一些预加载需要消耗较多时间或非默认内置的依赖包',
  515. searchDependencies: '搜索依赖',
  516. },
  517. templateTransform: {
  518. inputVars: '输入变量',
  519. code: '代码',
  520. codeSupportTip: '只支持 Jinja2',
  521. outputVars: {
  522. output: '转换后内容',
  523. },
  524. },
  525. ifElse: {
  526. if: 'If',
  527. else: 'Else',
  528. elseDescription: '用于定义当 if 条件不满足时应执行的逻辑。',
  529. and: 'and',
  530. or: 'or',
  531. operator: '操作符',
  532. notSetVariable: '请先设置变量',
  533. comparisonOperator: {
  534. 'contains': '包含',
  535. 'not contains': '不包含',
  536. 'start with': '开始是',
  537. 'end with': '结束是',
  538. 'is': '是',
  539. 'is not': '不是',
  540. 'empty': '为空',
  541. 'not empty': '不为空',
  542. 'null': '空',
  543. 'not null': '不为空',
  544. 'in': '是',
  545. 'not in': '不是',
  546. 'all of': '全部是',
  547. 'exists': '存在',
  548. 'not exists': '不存在',
  549. 'before': '早于',
  550. 'after': '晚于',
  551. },
  552. optionName: {
  553. image: '图片',
  554. doc: '文档',
  555. audio: '音频',
  556. video: '视频',
  557. localUpload: '本地上传',
  558. url: 'URL',
  559. },
  560. enterValue: '输入值',
  561. addCondition: '添加条件',
  562. conditionNotSetup: '条件未设置',
  563. selectVariable: '选择变量',
  564. addSubVariable: '添加子变量',
  565. select: '选择',
  566. },
  567. variableAssigner: {
  568. title: '变量赋值',
  569. outputType: '输出类型',
  570. varNotSet: '未设置变量',
  571. noVarTip: '添加需要赋值的变量',
  572. type: {
  573. string: 'String',
  574. number: 'Number',
  575. object: 'Object',
  576. array: 'Array',
  577. },
  578. aggregationGroup: '聚合分组',
  579. aggregationGroupTip: '开启该功能后,变量聚合器内可以同时聚合多组变量',
  580. addGroup: '添加分组',
  581. outputVars: {
  582. varDescribe: '{{groupName}}的输出变量',
  583. },
  584. setAssignVariable: '设置赋值变量',
  585. },
  586. assigner: {
  587. 'assignedVariable': '赋值的变量',
  588. 'varNotSet': '未设置变量',
  589. 'noVarTip': '点击 "+" 按钮添加变量',
  590. 'writeMode': '写入模式',
  591. 'writeModeTip': '使用追加模式时,赋值的变量必须是数组类型。',
  592. 'over-write': '覆盖',
  593. 'append': '追加',
  594. 'plus': '加',
  595. 'clear': '清空',
  596. 'setVariable': '设置变量',
  597. 'selectAssignedVariable': '选择要赋值的变量...',
  598. 'setParameter': '设置参数...',
  599. 'operations': {
  600. 'title': '操作',
  601. 'over-write': '覆盖',
  602. 'overwrite': '覆盖',
  603. 'set': '设置',
  604. 'clear': '清空',
  605. 'extend': '扩展',
  606. 'append': '追加',
  607. '+=': '+=',
  608. '-=': '-=',
  609. '*=': '*=',
  610. '/=': '/=',
  611. },
  612. 'variable': '变量',
  613. 'variables': '变量',
  614. 'noAssignedVars': '没有可用的赋值变量',
  615. 'assignedVarsDescription': '赋值变量必须是可写入的变量,例如会话变量。',
  616. },
  617. tool: {
  618. toAuthorize: '授权',
  619. inputVars: '输入变量',
  620. outputVars: {
  621. text: '工具生成的内容',
  622. files: {
  623. title: '工具生成的文件',
  624. type: '支持类型。现在只支持图片',
  625. transfer_method: '传输方式。值为 remote_url 或 local_file',
  626. url: '图片链接',
  627. upload_file_id: '上传文件ID',
  628. },
  629. json: '工具生成的json',
  630. },
  631. },
  632. questionClassifiers: {
  633. model: '模型',
  634. inputVars: '输入变量',
  635. outputVars: {
  636. className: '分类名称',
  637. },
  638. class: '分类',
  639. classNamePlaceholder: '输入你的分类名称',
  640. advancedSetting: '高级设置',
  641. topicName: '主题内容',
  642. topicPlaceholder: '在这里输入你的主题内容',
  643. addClass: '添加分类',
  644. instruction: '指令',
  645. instructionTip: '你可以输入额外的附加指令,帮助问题分类器更好的理解如何分类',
  646. instructionPlaceholder: '在这里输入你的指令',
  647. },
  648. parameterExtractor: {
  649. inputVar: '输入变量',
  650. extractParameters: '提取参数',
  651. importFromTool: '从工具导入',
  652. addExtractParameter: '添加提取参数',
  653. addExtractParameterContent: {
  654. name: '名称',
  655. namePlaceholder: '提取参数名称',
  656. type: '类型',
  657. typePlaceholder: '提取参数类型',
  658. description: '描述',
  659. descriptionPlaceholder: '提取参数描述',
  660. required: '必填',
  661. requiredContent: '必填仅作为模型推理的参考,不用于参数输出的强制验证。',
  662. },
  663. extractParametersNotSet: '提取参数未设置',
  664. instruction: '指令',
  665. instructionTip: '你可以输入额外的附加指令,帮助参数提取器理解如何提取参数',
  666. advancedSetting: '高级设置',
  667. reasoningMode: '推理模式',
  668. reasoningModeTip: '你可以根据模型对于 Function calling 或 Prompt 的指令响应能力选择合适的推理模式',
  669. isSuccess: '是否成功。成功时值为 1,失败时值为 0。',
  670. errorReason: '错误原因',
  671. },
  672. iteration: {
  673. deleteTitle: '删除迭代节点?',
  674. deleteDesc: '删除迭代节点将删除所有子节点',
  675. input: '输入',
  676. output: '输出变量',
  677. iteration_one: '{{count}}个迭代',
  678. iteration_other: '{{count}}个迭代',
  679. currentIteration: '当前迭代',
  680. comma: ',',
  681. error_one: '{{count}}个失败',
  682. error_other: '{{count}}个失败',
  683. parallelMode: '并行模式',
  684. parallelModeUpper: '并行模式',
  685. parallelModeEnableTitle: '并行模式启用',
  686. parallelModeEnableDesc: '启用并行模式时迭代内的任务支持并行执行。你可以在右侧的属性面板中进行配置。',
  687. parallelPanelDesc: '在并行模式下,迭代中的任务支持并行执行。',
  688. MaxParallelismTitle: '最大并行度',
  689. MaxParallelismDesc: '最大并行度用于控制单次迭代中同时执行的任务数量。',
  690. errorResponseMethod: '错误响应方法',
  691. ErrorMethod: {
  692. operationTerminated: '错误时终止',
  693. continueOnError: '忽略错误并继续',
  694. removeAbnormalOutput: '移除错误输出',
  695. },
  696. answerNodeWarningDesc: '并行模式警告:在迭代中,回答节点、会话变量赋值和工具持久读/写操作可能会导致异常。',
  697. },
  698. loop: {
  699. deleteTitle: '删除循环节点?',
  700. deleteDesc: '删除循环节点将删除所有子节点',
  701. input: '输入',
  702. output: '输出变量',
  703. loop_one: '{{count}} 个循环',
  704. loop_other: '{{count}} 个循环',
  705. currentLoop: '当前循环',
  706. breakCondition: '循环终止条件',
  707. breakConditionTip: '支持引用终止条件循环内的变量和会话变量。',
  708. loopMaxCount: '最大循环次数',
  709. loopMaxCountError: '请输入正确的 最大循环次数,范围为 1 到 {{maxCount}}',
  710. errorResponseMethod: '错误响应方法',
  711. ErrorMethod: {
  712. operationTerminated: '错误时终止',
  713. continueOnError: '忽略错误并继续',
  714. removeAbnormalOutput: '移除错误输出',
  715. },
  716. },
  717. note: {
  718. addNote: '添加注释',
  719. editor: {
  720. placeholder: '输入注释...',
  721. small: '小',
  722. medium: '中',
  723. large: '大',
  724. bold: '加粗',
  725. italic: '斜体',
  726. strikethrough: '删除线',
  727. link: '链接',
  728. openLink: '打开',
  729. unlink: '取消链接',
  730. enterUrl: '输入链接...',
  731. invalidUrl: '无效的链接',
  732. bulletList: '列表',
  733. showAuthor: '显示作者',
  734. },
  735. },
  736. docExtractor: {
  737. inputVar: '输入变量',
  738. outputVars: {
  739. text: '提取的文本',
  740. },
  741. supportFileTypes: '支持的文件类型: {{types}}。',
  742. learnMore: '了解更多',
  743. },
  744. listFilter: {
  745. inputVar: '输入变量',
  746. filterCondition: '过滤条件',
  747. filterConditionKey: '过滤条件的 Key',
  748. filterConditionComparisonOperator: '过滤条件比较操作符',
  749. filterConditionComparisonValue: '过滤条件比较值',
  750. selectVariableKeyPlaceholder: '选择子变量的 Key',
  751. extractsCondition: '取第 N 项',
  752. limit: '取前 N 项',
  753. orderBy: '排序',
  754. asc: '升序',
  755. desc: '降序',
  756. outputVars: {
  757. result: '过滤结果',
  758. first_record: '第一条记录',
  759. last_record: '最后一条记录',
  760. },
  761. },
  762. agent: {
  763. strategy: {
  764. label: 'Agent 策略',
  765. tooltip: '不同的 Agent 策略决定了系统如何规划和执行多步工具调用',
  766. shortLabel: '策略',
  767. configureTip: '请配置 Agent 策略。',
  768. configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。',
  769. selectTip: '选择 Agent 策略',
  770. searchPlaceholder: '搜索 Agent 策略',
  771. },
  772. learnMore: '了解更多',
  773. pluginNotInstalled: '插件未安装',
  774. pluginNotInstalledDesc: '此插件是从 GitHub 安装的。请转到插件重新安装',
  775. linkToPlugin: '转到插件',
  776. pluginInstaller: {
  777. install: '安装',
  778. installing: '安装中',
  779. },
  780. modelNotInMarketplace: {
  781. title: '模型未安装',
  782. desc: '此模型安装自本地或 GitHub 仓库。请安装后使用。',
  783. manageInPlugins: '在插件中管理',
  784. },
  785. modelNotSupport: {
  786. title: '不支持的模型',
  787. desc: '已安装的插件版本不提供此模型。',
  788. descForVersionSwitch: '已安装的插件版本不提供此模型。点击切换版本。',
  789. },
  790. model: '模型',
  791. toolbox: '工具箱',
  792. strategyNotSet: '代理策略未设置',
  793. configureModel: '配置模型',
  794. notAuthorized: '未授权',
  795. tools: '工具',
  796. maxIterations: '最大迭代次数',
  797. modelNotInstallTooltip: '此模型未安装',
  798. modelNotSelected: '未选择模型',
  799. toolNotInstallTooltip: '{{tool}} 未安装',
  800. toolNotAuthorizedTooltip: '{{tool}} 未授权',
  801. strategyNotInstallTooltip: '{{strategy}} 未安装',
  802. unsupportedStrategy: '不支持的策略',
  803. strategyNotFoundDesc: '安装的插件版本不提供此策略。',
  804. pluginNotFoundDesc: '此插件安装自 GitHub。请转到插件重新安装。',
  805. strategyNotFoundDescAndSwitchVersion: '安装的插件版本不提供此策略。点击切换版本。',
  806. modelSelectorTooltips: {
  807. deprecated: '此模型已弃用',
  808. },
  809. outputVars: {
  810. text: 'agent 生成的内容',
  811. files: {
  812. title: 'agent 生成的文件',
  813. type: '支持类型。现在只支持图片',
  814. transfer_method: '传输方式。值为 remote_url 或 local_file',
  815. url: '图片链接',
  816. upload_file_id: '上传文件ID',
  817. },
  818. json: 'agent 生成的json',
  819. },
  820. checkList: {
  821. strategyNotSelected: '未选择策略',
  822. },
  823. installPlugin: {
  824. title: '安装插件',
  825. desc: '即将安装以下插件',
  826. changelog: '更新日志',
  827. install: '安装',
  828. cancel: '取消',
  829. },
  830. },
  831. },
  832. tracing: {
  833. stopBy: '由{{user}}终止',
  834. },
  835. versionHistory: {
  836. title: '版本',
  837. currentDraft: '当前草稿',
  838. latest: '最新',
  839. filter: {
  840. all: '全部',
  841. onlyYours: '仅你的',
  842. onlyShowNamedVersions: '只显示已命名版本',
  843. reset: '重置',
  844. empty: '没有匹配的版本',
  845. },
  846. defaultName: '未命名',
  847. nameThisVersion: '命名',
  848. editVersionInfo: '编辑信息',
  849. editField: {
  850. title: '标题',
  851. releaseNotes: '发布说明',
  852. titleLengthLimit: '标题不能超过{{limit}}个字符',
  853. releaseNotesLengthLimit: '发布说明不能超过{{limit}}个字符',
  854. },
  855. releaseNotesPlaceholder: '请描述变更',
  856. restorationTip: '版本回滚后,当前草稿将被覆盖。',
  857. deletionTip: '删除不可逆,请确认。',
  858. action: {
  859. restoreSuccess: '回滚成功',
  860. restoreFailure: '回滚失败',
  861. deleteSuccess: '版本已删除',
  862. deleteFailure: '删除失败',
  863. updateSuccess: '版本信息已更新',
  864. updateFailure: '更新失败',
  865. },
  866. },
  867. }
  868. export default translation