workflow.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. const translation = {
  2. common: {
  3. editing: 'Editing',
  4. autoSaved: 'Auto-Saved',
  5. unpublished: 'Unpublished',
  6. published: 'Published',
  7. publish: 'Publish',
  8. update: 'Update',
  9. run: 'Run',
  10. running: 'Running',
  11. inRunMode: 'In Run Mode',
  12. inPreview: 'In Preview',
  13. inPreviewMode: 'In Preview Mode',
  14. preview: 'Preview',
  15. viewRunHistory: 'View run history',
  16. runHistory: 'Run History',
  17. goBackToEdit: 'Go back to editor',
  18. conversationLog: 'Conversation Log',
  19. features: 'Features',
  20. debugAndPreview: 'Debug and Preview',
  21. restart: 'Restart',
  22. currentDraft: 'Current Draft',
  23. currentDraftUnpublished: 'Current Draft Unpublished',
  24. latestPublished: 'Latest Published',
  25. publishedAt: 'Published',
  26. restore: 'Restore',
  27. runApp: 'Run App',
  28. batchRunApp: 'Batch Run App',
  29. accessAPIReference: 'Access API Reference',
  30. embedIntoSite: 'Embed Into Site',
  31. addTitle: 'Add title...',
  32. addDescription: 'Add description...',
  33. noVar: 'No variable',
  34. searchVar: 'Search variable',
  35. variableNamePlaceholder: 'Variable name',
  36. setVarValuePlaceholder: 'Set variable',
  37. needConnecttip: 'This step is not connected to anything',
  38. maxTreeDepth: 'Maximum limit of {{depth}} nodes per branch',
  39. needEndNode: 'The End block must be added',
  40. needAnswerNode: 'The Answer block must be added',
  41. workflowProcess: 'Workflow Process',
  42. notRunning: 'Not running yet',
  43. previewPlaceholder: 'Enter content in the box below to start debugging the Chatbot',
  44. effectVarConfirm: {
  45. title: 'Remove Variable',
  46. content: 'The variable is used in other nodes. Do you still want to remove it?',
  47. },
  48. insertVarTip: 'Press the \'/\' key to insert quickly',
  49. processData: 'Process Data',
  50. input: 'Input',
  51. output: 'Output',
  52. jinjaEditorPlaceholder: 'Type \'/\' or \'{\' to insert variable',
  53. viewOnly: 'View Only',
  54. showRunHistory: 'Show Run History',
  55. enableJinja: 'Enable Jinja template support',
  56. learnMore: 'Learn More',
  57. copy: 'Copy',
  58. duplicate: 'Duplicate',
  59. addBlock: 'Add Block',
  60. pasteHere: 'Paste Here',
  61. pointerMode: 'Pointer Mode',
  62. handMode: 'Hand Mode',
  63. model: 'Model',
  64. workflowAsTool: 'Workflow as Tool',
  65. configureRequired: 'Configure Required',
  66. configure: 'Configure',
  67. manageInTools: 'Manage in Tools',
  68. workflowAsToolTip: 'Tool reconfiguration is required after the workflow update.',
  69. viewDetailInTracingPanel: 'View details',
  70. syncingData: 'Syncing data, just a few seconds.',
  71. },
  72. errorMsg: {
  73. fieldRequired: '{{field}} is required',
  74. authRequired: 'Authorization is required',
  75. invalidJson: '{{field}} is invalid JSON',
  76. fields: {
  77. variable: 'Variable Name',
  78. variableValue: 'Variable Value',
  79. code: 'Code',
  80. model: 'Model',
  81. rerankModel: 'Rerank Model',
  82. },
  83. invalidVariable: 'Invalid variable',
  84. },
  85. singleRun: {
  86. testRun: 'Test Run ',
  87. startRun: 'Start Run',
  88. running: 'Running',
  89. testRunIteration: 'Test Run Iteration',
  90. back: 'Back',
  91. iteration: 'Iteration',
  92. },
  93. tabs: {
  94. 'searchBlock': 'Search block',
  95. 'blocks': 'Blocks',
  96. 'tools': 'Tools',
  97. 'allTool': 'All',
  98. 'builtInTool': 'Built-in',
  99. 'customTool': 'Custom',
  100. 'workflowTool': 'Workflow',
  101. 'question-understand': 'Question Understand',
  102. 'logic': 'Logic',
  103. 'transform': 'Transform',
  104. 'utilities': 'Utilities',
  105. 'noResult': 'No match found',
  106. },
  107. blocks: {
  108. 'start': 'Start',
  109. 'end': 'End',
  110. 'answer': 'Answer',
  111. 'llm': 'LLM',
  112. 'knowledge-retrieval': 'Knowledge Retrieval',
  113. 'question-classifier': 'Question Classifier',
  114. 'if-else': 'IF/ELSE',
  115. 'code': 'Code',
  116. 'template-transform': 'Template',
  117. 'http-request': 'HTTP Request',
  118. 'variable-assigner': 'Variable Aggregator',
  119. 'variable-aggregator': 'Variable Aggregator',
  120. 'iteration-start': 'Iteration Start',
  121. 'iteration': 'Iteration',
  122. 'parameter-extractor': 'Parameter Extractor',
  123. },
  124. blocksAbout: {
  125. 'start': 'Define the initial parameters for launching a workflow',
  126. 'end': 'Define the end and result type of a workflow',
  127. 'answer': 'Define the reply content of a chat conversation',
  128. 'llm': 'Invoking large language models to answer questions or process natural language',
  129. 'knowledge-retrieval': 'Allows you to query text content related to user questions from the Knowledge',
  130. 'question-classifier': 'Define the classification conditions of user questions, LLM can define how the conversation progresses based on the classification description',
  131. 'if-else': 'Allows you to split the workflow into two branches based on if/else conditions',
  132. 'code': 'Execute a piece of Python or NodeJS code to implement custom logic',
  133. 'template-transform': 'Convert data to string using Jinja template syntax',
  134. 'http-request': 'Allow server requests to be sent over the HTTP protocol',
  135. 'variable-assigner': 'Aggregate multi-branch variables into a single variable for unified configuration of downstream nodes.',
  136. 'variable-aggregator': 'Aggregate multi-branch variables into a single variable for unified configuration of downstream nodes.',
  137. 'iteration': 'Perform multiple steps on a list object until all results are outputted.',
  138. 'parameter-extractor': 'Use LLM to extract structured parameters from natural language for tool invocations or HTTP requests.',
  139. },
  140. operator: {
  141. zoomIn: 'Zoom In',
  142. zoomOut: 'Zoom Out',
  143. zoomTo50: 'Zoom to 50%',
  144. zoomTo100: 'Zoom to 100%',
  145. zoomToFit: 'Zoom to Fit',
  146. },
  147. panel: {
  148. userInputField: 'User Input Field',
  149. changeBlock: 'Change Block',
  150. helpLink: 'Help Link',
  151. about: 'About',
  152. createdBy: 'Created By ',
  153. nextStep: 'Next Step',
  154. addNextStep: 'Add the next block in this workflow',
  155. selectNextStep: 'Select Next Block',
  156. runThisStep: 'Run this step',
  157. checklist: 'Checklist',
  158. checklistTip: 'Make sure all issues are resolved before publishing',
  159. checklistResolved: 'All issues are resolved',
  160. organizeBlocks: 'Organize blocks',
  161. change: 'Change',
  162. },
  163. nodes: {
  164. common: {
  165. outputVars: 'Output Variables',
  166. insertVarTip: 'Insert Variable',
  167. memory: {
  168. memory: 'Memory',
  169. memoryTip: 'Chat memory settings',
  170. windowSize: 'Window Size',
  171. conversationRoleName: 'Conversation Role Name',
  172. user: 'User prefix',
  173. assistant: 'Assistant prefix',
  174. },
  175. memories: {
  176. title: 'Memories',
  177. tip: 'Chat memory',
  178. builtIn: 'Built-in',
  179. },
  180. },
  181. start: {
  182. required: 'required',
  183. inputField: 'Input Field',
  184. builtInVar: 'Built-in Variables',
  185. outputVars: {
  186. query: 'User input',
  187. memories: {
  188. des: 'Conversation history',
  189. type: 'message type',
  190. content: 'message content',
  191. },
  192. files: 'File list',
  193. },
  194. noVarTip: 'Set inputs that can be used in the Workflow',
  195. },
  196. end: {
  197. outputs: 'Outputs',
  198. output: {
  199. type: 'output type',
  200. variable: 'output variable',
  201. },
  202. type: {
  203. 'none': 'None',
  204. 'plain-text': 'Plain Text',
  205. 'structured': 'Structured',
  206. },
  207. },
  208. answer: {
  209. answer: 'Answer',
  210. outputVars: 'Output Variables',
  211. },
  212. llm: {
  213. model: 'model',
  214. variables: 'variables',
  215. context: 'context',
  216. contextTooltip: 'You can import Knowledge as context',
  217. notSetContextInPromptTip: 'To enable the context feature, please fill in the context variable in PROMPT.',
  218. prompt: 'prompt',
  219. roleDescription: {
  220. system: 'Give high level instructions for the conversation',
  221. user: 'Provide instructions, queries, or any text-based input to the model',
  222. assistant: 'The model’s responses based on the user messages',
  223. },
  224. addMessage: 'Add Message',
  225. vision: 'vision',
  226. files: 'Files',
  227. resolution: {
  228. name: 'Resolution',
  229. high: 'High',
  230. low: 'Low',
  231. },
  232. outputVars: {
  233. output: 'Generate content',
  234. usage: 'Model Usage Information',
  235. },
  236. singleRun: {
  237. variable: 'Variable',
  238. },
  239. sysQueryInUser: 'sys.query in user message is required',
  240. },
  241. knowledgeRetrieval: {
  242. queryVariable: 'Query Variable',
  243. knowledge: 'Knowledge',
  244. outputVars: {
  245. output: 'Retrieval segmented data',
  246. content: 'Segmented content',
  247. title: 'Segmented title',
  248. icon: 'Segmented icon',
  249. url: 'Segmented URL',
  250. metadata: 'Other metadata',
  251. },
  252. },
  253. http: {
  254. inputVars: 'Input Variables',
  255. api: 'API',
  256. apiPlaceholder: 'Enter URL, type ‘/’ insert variable',
  257. notStartWithHttp: 'API should start with http:// or https://',
  258. key: 'Key',
  259. value: 'Value',
  260. bulkEdit: 'Bulk Edit',
  261. keyValueEdit: 'Key-Value Edit',
  262. headers: 'Headers',
  263. params: 'Params',
  264. body: 'Body',
  265. outputVars: {
  266. body: 'Response Content',
  267. statusCode: 'Response Status Code',
  268. headers: 'Response Header List JSON',
  269. files: 'Files List',
  270. },
  271. authorization: {
  272. 'authorization': 'Authorization',
  273. 'authorizationType': 'Authorization Type',
  274. 'no-auth': 'None',
  275. 'api-key': 'API-Key',
  276. 'auth-type': 'Auth Type',
  277. 'basic': 'Basic',
  278. 'bearer': 'Bearer',
  279. 'custom': 'Custom',
  280. 'api-key-title': 'API Key',
  281. 'header': 'Header',
  282. },
  283. insertVarPlaceholder: 'type \'/\' to insert variable',
  284. timeout: {
  285. title: 'Timeout',
  286. connectLabel: 'Connection Timeout',
  287. connectPlaceholder: 'Enter connection timeout in seconds',
  288. readLabel: 'Read Timeout',
  289. readPlaceholder: 'Enter read timeout in seconds',
  290. writeLabel: 'Write Timeout',
  291. writePlaceholder: 'Enter write timeout in seconds',
  292. },
  293. },
  294. code: {
  295. inputVars: 'Input Variables',
  296. outputVars: 'Output Variables',
  297. advancedDependencies: 'Advanced Dependencies',
  298. advancedDependenciesTip: 'Add some preloaded dependencies that take more time to consume or are not default built-in here',
  299. searchDependencies: 'Search Dependencies',
  300. },
  301. templateTransform: {
  302. inputVars: 'Input Variables',
  303. code: 'Code',
  304. codeSupportTip: 'Only supports Jinja2',
  305. outputVars: {
  306. output: 'Transformed content',
  307. },
  308. },
  309. ifElse: {
  310. if: 'If',
  311. else: 'Else',
  312. elseDescription: 'Used to define the logic that should be executed when the if condition is not met.',
  313. and: 'and',
  314. or: 'or',
  315. operator: 'Operator',
  316. notSetVariable: 'Please set variable first',
  317. comparisonOperator: {
  318. 'contains': 'contains',
  319. 'not contains': 'not contains',
  320. 'start with': 'start with',
  321. 'end with': 'end with',
  322. 'is': 'is',
  323. 'is not': 'is not',
  324. 'empty': 'is empty',
  325. 'not empty': 'is not empty',
  326. 'null': 'is null',
  327. 'not null': 'is not null',
  328. },
  329. enterValue: 'Enter value',
  330. addCondition: 'Add Condition',
  331. conditionNotSetup: 'Condition NOT setup',
  332. },
  333. variableAssigner: {
  334. title: 'Assign variables',
  335. outputType: 'Output Type',
  336. varNotSet: 'Variable not set',
  337. noVarTip: 'Add the variables to be assigned',
  338. type: {
  339. string: 'String',
  340. number: 'Number',
  341. object: 'Object',
  342. array: 'Array',
  343. },
  344. aggregationGroup: 'Aggregation Group',
  345. aggregationGroupTip: 'Enabling this feature allows the variable aggregator to aggregate multiple sets of variables.',
  346. addGroup: 'Add Group',
  347. outputVars: {
  348. varDescribe: '{{groupName}} output',
  349. },
  350. setAssignVariable: 'Set assign variable',
  351. },
  352. tool: {
  353. toAuthorize: 'To authorize',
  354. inputVars: 'Input Variables',
  355. outputVars: {
  356. text: 'tool generated content',
  357. files: {
  358. title: 'tool generated files',
  359. type: 'Support type. Now only support image',
  360. transfer_method: 'Transfer method.Value is remote_url or local_file',
  361. url: 'Image url',
  362. upload_file_id: 'Upload file id',
  363. },
  364. },
  365. },
  366. questionClassifiers: {
  367. model: 'model',
  368. inputVars: 'Input Variables',
  369. outputVars: {
  370. className: 'Class Name',
  371. },
  372. class: 'Class',
  373. classNamePlaceholder: 'Write your class name',
  374. advancedSetting: 'Advanced Setting',
  375. topicName: 'Topic Name',
  376. topicPlaceholder: 'Write your topic name',
  377. addClass: 'Add Class',
  378. instruction: 'Instruction',
  379. instructionTip: 'Input additional instructions to help the question classifier better understand how to categorize questions.',
  380. instructionPlaceholder: 'Write your instruction',
  381. },
  382. parameterExtractor: {
  383. inputVar: 'Input Variable',
  384. extractParameters: 'Extract Parameters',
  385. importFromTool: 'Import from tools',
  386. addExtractParameter: 'Add Extract Parameter',
  387. addExtractParameterContent: {
  388. name: 'Name',
  389. namePlaceholder: 'Extract Parameter Name',
  390. type: 'Type',
  391. typePlaceholder: 'Extract Parameter Type',
  392. description: 'Description',
  393. descriptionPlaceholder: 'Extract Parameter Description',
  394. required: 'Required',
  395. requiredContent: 'Required is only used as a reference for model inference, and not for mandatory validation of parameter output.',
  396. },
  397. extractParametersNotSet: 'Extract Parameters not setup',
  398. instruction: 'Instruction',
  399. instructionTip: 'Input additional instructions to help the parameter extractor understand how to extract parameters.',
  400. advancedSetting: 'Advanced Setting',
  401. reasoningMode: 'Reasoning Mode',
  402. reasoningModeTip: 'You can choose the appropriate reasoning mode based on the model\'s ability to respond to instructions for function calling or prompts.',
  403. isSuccess: 'Is Success.On success the value is 1, on failure the value is 0.',
  404. errorReason: 'Error Reason',
  405. },
  406. iteration: {
  407. deleteTitle: 'Delete Iteration Node?',
  408. deleteDesc: 'Deleting the iteration node will delete all child nodes',
  409. input: 'Input',
  410. output: 'Output Variables',
  411. iteration_one: '{{count}} Iteration',
  412. iteration_other: '{{count}} Iterations',
  413. currentIteration: 'Current Iteration',
  414. },
  415. note: {
  416. addNote: 'Add Note',
  417. editor: {
  418. placeholder: 'Write your note...',
  419. small: 'Small',
  420. medium: 'Medium',
  421. large: 'Large',
  422. bold: 'Bold',
  423. italic: 'Italic',
  424. strikethrough: 'Strikethrough',
  425. link: 'Link',
  426. openLink: 'Open',
  427. unlink: 'Unlink',
  428. enterUrl: 'Enter URL...',
  429. invalidUrl: 'Invalid URL',
  430. bulletList: 'Bullet List',
  431. showAuthor: 'Show Author',
  432. },
  433. },
  434. },
  435. tracing: {
  436. stopBy: 'Stop by {{user}}',
  437. },
  438. }
  439. export default translation