You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

workflow.ts 34KB

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