workflow.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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. },
  71. errorMsg: {
  72. fieldRequired: '{{field}} is required',
  73. authRequired: 'Authorization is required',
  74. invalidJson: '{{field}} is invalid JSON',
  75. fields: {
  76. variable: 'Variable Name',
  77. variableValue: 'Variable Value',
  78. code: 'Code',
  79. model: 'Model',
  80. rerankModel: 'Rerank Model',
  81. },
  82. invalidVariable: 'Invalid variable',
  83. },
  84. singleRun: {
  85. testRun: 'Test Run ',
  86. startRun: 'Start Run',
  87. running: 'Running',
  88. testRunIteration: 'Test Run Iteration',
  89. back: 'Back',
  90. iteration: 'Iteration',
  91. },
  92. tabs: {
  93. 'searchBlock': 'Search block',
  94. 'blocks': 'Blocks',
  95. 'tools': 'Tools',
  96. 'allTool': 'All',
  97. 'builtInTool': 'Built-in',
  98. 'customTool': 'Custom',
  99. 'workflowTool': 'Workflow',
  100. 'question-understand': 'Question Understand',
  101. 'logic': 'Logic',
  102. 'transform': 'Transform',
  103. 'utilities': 'Utilities',
  104. 'noResult': 'No match found',
  105. },
  106. blocks: {
  107. 'start': 'Start',
  108. 'end': 'End',
  109. 'answer': 'Answer',
  110. 'llm': 'LLM',
  111. 'knowledge-retrieval': 'Knowledge Retrieval',
  112. 'question-classifier': 'Question Classifier',
  113. 'if-else': 'IF/ELSE',
  114. 'code': 'Code',
  115. 'template-transform': 'Template',
  116. 'http-request': 'HTTP Request',
  117. 'variable-assigner': 'Variable Aggregator',
  118. 'variable-aggregator': 'Variable Aggregator',
  119. 'iteration-start': 'Iteration Start',
  120. 'iteration': 'Iteration',
  121. 'parameter-extractor': 'Parameter Extractor',
  122. },
  123. blocksAbout: {
  124. 'start': 'Define the initial parameters for launching a workflow',
  125. 'end': 'Define the end and result type of a workflow',
  126. 'answer': 'Define the reply content of a chat conversation',
  127. 'llm': 'Invoking large language models to answer questions or process natural language',
  128. 'knowledge-retrieval': 'Allows you to query text content related to user questions from the Knowledge',
  129. 'question-classifier': 'Define the classification conditions of user questions, LLM can define how the conversation progresses based on the classification description',
  130. 'if-else': 'Allows you to split the workflow into two branches based on if/else conditions',
  131. 'code': 'Execute a piece of Python or NodeJS code to implement custom logic',
  132. 'template-transform': 'Convert data to string using Jinja template syntax',
  133. 'http-request': 'Allow server requests to be sent over the HTTP protocol',
  134. 'variable-assigner': 'Aggregate multi-branch variables into a single variable for unified configuration of downstream nodes.',
  135. 'variable-aggregator': 'Aggregate multi-branch variables into a single variable for unified configuration of downstream nodes.',
  136. 'iteration': 'Perform multiple steps on a list object until all results are outputted.',
  137. 'parameter-extractor': 'Use LLM to extract structured parameters from natural language for tool invocations or HTTP requests.',
  138. },
  139. operator: {
  140. zoomIn: 'Zoom In',
  141. zoomOut: 'Zoom Out',
  142. zoomTo50: 'Zoom to 50%',
  143. zoomTo100: 'Zoom to 100%',
  144. zoomToFit: 'Zoom to Fit',
  145. },
  146. panel: {
  147. userInputField: 'User Input Field',
  148. changeBlock: 'Change Block',
  149. helpLink: 'Help Link',
  150. about: 'About',
  151. createdBy: 'Created By ',
  152. nextStep: 'Next Step',
  153. addNextStep: 'Add the next block in this workflow',
  154. selectNextStep: 'Select Next Block',
  155. runThisStep: 'Run this step',
  156. checklist: 'Checklist',
  157. checklistTip: 'Make sure all issues are resolved before publishing',
  158. checklistResolved: 'All issues are resolved',
  159. organizeBlocks: 'Organize blocks',
  160. change: 'Change',
  161. },
  162. nodes: {
  163. common: {
  164. outputVars: 'Output Variables',
  165. insertVarTip: 'Insert Variable',
  166. memory: {
  167. memory: 'Memory',
  168. memoryTip: 'Chat memory settings',
  169. windowSize: 'Window Size',
  170. conversationRoleName: 'Conversation Role Name',
  171. user: 'User prefix',
  172. assistant: 'Assistant prefix',
  173. },
  174. memories: {
  175. title: 'Memories',
  176. tip: 'Chat memory',
  177. builtIn: 'Built-in',
  178. },
  179. },
  180. start: {
  181. required: 'required',
  182. inputField: 'Input Field',
  183. builtInVar: 'Built-in Variables',
  184. outputVars: {
  185. query: 'User input',
  186. memories: {
  187. des: 'Conversation history',
  188. type: 'message type',
  189. content: 'message content',
  190. },
  191. files: 'File list',
  192. },
  193. noVarTip: 'Set inputs that can be used in the Workflow',
  194. },
  195. end: {
  196. outputs: 'Outputs',
  197. output: {
  198. type: 'output type',
  199. variable: 'output variable',
  200. },
  201. type: {
  202. 'none': 'None',
  203. 'plain-text': 'Plain Text',
  204. 'structured': 'Structured',
  205. },
  206. },
  207. answer: {
  208. answer: 'Answer',
  209. outputVars: 'Output Variables',
  210. },
  211. llm: {
  212. model: 'model',
  213. variables: 'variables',
  214. context: 'context',
  215. contextTooltip: 'You can import Knowledge as context',
  216. notSetContextInPromptTip: 'To enable the context feature, please fill in the context variable in PROMPT.',
  217. prompt: 'prompt',
  218. roleDescription: {
  219. system: 'Give high level instructions for the conversation',
  220. user: 'Provide instructions, queries, or any text-based input to the model',
  221. assistant: 'The model’s responses based on the user messages',
  222. },
  223. addMessage: 'Add Message',
  224. vision: 'vision',
  225. files: 'Files',
  226. resolution: {
  227. name: 'Resolution',
  228. high: 'High',
  229. low: 'Low',
  230. },
  231. outputVars: {
  232. output: 'Generate content',
  233. usage: 'Model Usage Information',
  234. },
  235. singleRun: {
  236. variable: 'Variable',
  237. },
  238. sysQueryInUser: 'sys.query in user message is required',
  239. },
  240. knowledgeRetrieval: {
  241. queryVariable: 'Query Variable',
  242. knowledge: 'Knowledge',
  243. outputVars: {
  244. output: 'Retrieval segmented data',
  245. content: 'Segmented content',
  246. title: 'Segmented title',
  247. icon: 'Segmented icon',
  248. url: 'Segmented URL',
  249. metadata: 'Other metadata',
  250. },
  251. },
  252. http: {
  253. inputVars: 'Input Variables',
  254. api: 'API',
  255. apiPlaceholder: 'Enter URL, type ‘/’ insert variable',
  256. notStartWithHttp: 'API should start with http:// or https://',
  257. key: 'Key',
  258. value: 'Value',
  259. bulkEdit: 'Bulk Edit',
  260. keyValueEdit: 'Key-Value Edit',
  261. headers: 'Headers',
  262. params: 'Params',
  263. body: 'Body',
  264. outputVars: {
  265. body: 'Response Content',
  266. statusCode: 'Response Status Code',
  267. headers: 'Response Header List JSON',
  268. files: 'Files List',
  269. },
  270. authorization: {
  271. 'authorization': 'Authorization',
  272. 'authorizationType': 'Authorization Type',
  273. 'no-auth': 'None',
  274. 'api-key': 'API-Key',
  275. 'auth-type': 'Auth Type',
  276. 'basic': 'Basic',
  277. 'bearer': 'Bearer',
  278. 'custom': 'Custom',
  279. 'api-key-title': 'API Key',
  280. 'header': 'Header',
  281. },
  282. insertVarPlaceholder: 'type \'/\' to insert variable',
  283. timeout: {
  284. title: 'Timeout',
  285. connectLabel: 'Connection Timeout',
  286. connectPlaceholder: 'Enter connection timeout in seconds',
  287. readLabel: 'Read Timeout',
  288. readPlaceholder: 'Enter read timeout in seconds',
  289. writeLabel: 'Write Timeout',
  290. writePlaceholder: 'Enter write timeout in seconds',
  291. },
  292. },
  293. code: {
  294. inputVars: 'Input Variables',
  295. outputVars: 'Output Variables',
  296. advancedDependencies: 'Advanced Dependencies',
  297. advancedDependenciesTip: 'Add some preloaded dependencies that take more time to consume or are not default built-in here',
  298. searchDependencies: 'Search Dependencies',
  299. },
  300. templateTransform: {
  301. inputVars: 'Input Variables',
  302. code: 'Code',
  303. codeSupportTip: 'Only supports Jinja2',
  304. outputVars: {
  305. output: 'Transformed content',
  306. },
  307. },
  308. ifElse: {
  309. if: 'If',
  310. else: 'Else',
  311. elseDescription: 'Used to define the logic that should be executed when the if condition is not met.',
  312. and: 'and',
  313. or: 'or',
  314. operator: 'Operator',
  315. notSetVariable: 'Please set variable first',
  316. comparisonOperator: {
  317. 'contains': 'contains',
  318. 'not contains': 'not contains',
  319. 'start with': 'start with',
  320. 'end with': 'end with',
  321. 'is': 'is',
  322. 'is not': 'is not',
  323. 'empty': 'is empty',
  324. 'not empty': 'is not empty',
  325. 'null': 'is null',
  326. 'not null': 'is not null',
  327. },
  328. enterValue: 'Enter value',
  329. addCondition: 'Add Condition',
  330. conditionNotSetup: 'Condition NOT setup',
  331. },
  332. variableAssigner: {
  333. title: 'Assign variables',
  334. outputType: 'Output Type',
  335. varNotSet: 'Variable not set',
  336. noVarTip: 'Add the variables to be assigned',
  337. type: {
  338. string: 'String',
  339. number: 'Number',
  340. object: 'Object',
  341. array: 'Array',
  342. },
  343. aggregationGroup: 'Aggregation Group',
  344. aggregationGroupTip: 'Enabling this feature allows the variable aggregator to aggregate multiple sets of variables.',
  345. addGroup: 'Add Group',
  346. outputVars: {
  347. varDescribe: '{{groupName}} output',
  348. },
  349. setAssignVariable: 'Set assign variable',
  350. },
  351. tool: {
  352. toAuthorize: 'To authorize',
  353. inputVars: 'Input Variables',
  354. outputVars: {
  355. text: 'tool generated content',
  356. files: {
  357. title: 'tool generated files',
  358. type: 'Support type. Now only support image',
  359. transfer_method: 'Transfer method.Value is remote_url or local_file',
  360. url: 'Image url',
  361. upload_file_id: 'Upload file id',
  362. },
  363. },
  364. },
  365. questionClassifiers: {
  366. model: 'model',
  367. inputVars: 'Input Variables',
  368. outputVars: {
  369. className: 'Class Name',
  370. },
  371. class: 'Class',
  372. classNamePlaceholder: 'Write your class name',
  373. advancedSetting: 'Advanced Setting',
  374. topicName: 'Topic Name',
  375. topicPlaceholder: 'Write your topic name',
  376. addClass: 'Add Class',
  377. instruction: 'Instruction',
  378. instructionTip: 'Input additional instructions to help the question classifier better understand how to categorize questions.',
  379. instructionPlaceholder: 'Write your instruction',
  380. },
  381. parameterExtractor: {
  382. inputVar: 'Input Variable',
  383. extractParameters: 'Extract Parameters',
  384. importFromTool: 'Import from tools',
  385. addExtractParameter: 'Add Extract Parameter',
  386. addExtractParameterContent: {
  387. name: 'Name',
  388. namePlaceholder: 'Extract Parameter Name',
  389. type: 'Type',
  390. typePlaceholder: 'Extract Parameter Type',
  391. description: 'Description',
  392. descriptionPlaceholder: 'Extract Parameter Description',
  393. required: 'Required',
  394. requiredContent: 'Required is only used as a reference for model inference, and not for mandatory validation of parameter output.',
  395. },
  396. extractParametersNotSet: 'Extract Parameters not setup',
  397. instruction: 'Instruction',
  398. instructionTip: 'Input additional instructions to help the parameter extractor understand how to extract parameters.',
  399. advancedSetting: 'Advanced Setting',
  400. reasoningMode: 'Reasoning Mode',
  401. reasoningModeTip: 'You can choose the appropriate reasoning mode based on the model\'s ability to respond to instructions for function calling or prompts.',
  402. isSuccess: 'Is Success.On success the value is 1, on failure the value is 0.',
  403. errorReason: 'Error Reason',
  404. },
  405. iteration: {
  406. deleteTitle: 'Delete Iteration Node?',
  407. deleteDesc: 'Deleting the iteration node will delete all child nodes',
  408. input: 'Input',
  409. output: 'Output Variables',
  410. iteration_one: '{{count}} Iteration',
  411. iteration_other: '{{count}} Iterations',
  412. currentIteration: 'Current Iteration',
  413. },
  414. },
  415. tracing: {
  416. stopBy: 'Stop by {{user}}',
  417. },
  418. }
  419. export default translation