-
Notifications
You must be signed in to change notification settings - Fork 868
Expand file tree
/
Copy pathworkflow.ts
More file actions
981 lines (980 loc) · 40.1 KB
/
Copy pathworkflow.ts
File metadata and controls
981 lines (980 loc) · 40.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
const translation = {
nodes: {
startNode: {
type: '开始节点',
},
endNode: {
type: '结束节点',
answerMode: '回答模式',
returnParams: '返回参数,由工作流生成',
returnFormat: '返回设定格式配置的回答',
thinkingContent: '思考内容',
answerContent: '回答内容',
streamOutput: '流式输出',
templatePlaceholder:
'可以使用{{变量名}}、{{变量名.子变量名}}、{{变量名[数组索引]}}的方式引用输出参数中的变量',
},
largeModelNode: {
model: '模型',
type: '大模型',
prompt: '提示词',
promptLibrary: '提示词库',
systemPrompt: '系统提示词',
userPrompt: '用户提示词',
chatHistory: '对话历史',
outputFormat: '输出格式:',
systemPromptPlaceholder:
'大模型人设设置,需结合用户输入的问题,在此定义大模型处理问题的类型、范畴、格式等,可以使用{{变量名}}方式进行输出',
userPromptPlaceholder:
'大模型人设设置,需结合用户输入的问题,在此定义大模型处理问题的类型、范畴、格式等,可以使用{{变量名}}方式进行输出',
newVersionUpdate: '有新版本更新',
modelThinkingProcess: '模型思考过程',
multimedia: '多媒体',
multimediaInputPlaceholder: '输入多媒体内容或从引用中选择',
multimediaRefPlaceholder: '从其他节点选择多媒体内容',
multimediaNamePlaceholder: '参数名称',
noMultimediaInput: '未配置多媒体输入',
addMultimediaInput: '添加多媒体输入',
},
agentNode: {
type: '大模型',
prompt: '提示词',
chatHistory: '对话历史',
mcpServerConfig: '输入MCP服务器相关配置地址',
invalidUrl: '请输入正确的URL',
systemPromptPlaceholder:
'系统提示词,通过指令定义模型的角色和回复风格,例如"你是一个运营文案撰写专家,以轻松幽默的风格撰写文章内容"。',
userPromptPlaceholder:
'请输入您的问题或指令,明确的让模型知道我们想要什么,例如"写一篇劳动节的文章",通过插入{{参数名}}可以引用对应的参数值,如{{input}}。',
userQuery: '用户查询/提问(query)',
thinkingSteps: '思考步骤',
thinkingStepsPlaceholder:
'用于规划模型的思考逻辑,如果有特定的一些调用步骤,我们可以给模型些小建议做提示,例如"优先考虑使用某某工具"。',
roleSetting: '角色设定',
maxLoopCount: '最大推理轮次',
maxLoopCountTip: '最大轮次支持100轮',
newVersionUpdate: '有新版本更新',
agentStrategy: 'Agent策略',
pluginList: '插件列表',
addPlugin: '添加插件',
plugin: '插件',
knowledge: '知识库',
mcp: 'MCP',
customMcpServerAddress: '自定义MCP服务器地址',
input: '输入',
output: '输出',
oneClickUpdate: '一键更新',
update: '更新',
addAddress: '添加地址',
promptLibrary: '提示词库',
tool: '插件',
knowledgeBase: '知识库',
mcpServer: 'MCP',
},
rpaNode: {
selectRpa: '选择RPA',
searchRobot: '搜索机器人',
parameters: '参数',
add: '添加',
noRobot: '暂无机器人',
noRpaTool: '暂无RPA工具,快去新建RPA工具吧~',
noMore: '没有更多了',
createRpa: '新建RPA',
},
toolNode: {
type: '工具',
addTool: '添加',
createTool: '新建工具',
myCreated: '我创建的',
officialTools: '官方工具',
mostPopular: '最受欢迎',
recentlyUsed: '最近使用',
tool: '工具',
publishTime: '发布时间',
publishedAt: '发布于',
parameters: '参数',
test: '测试',
edit: '编辑',
delete: '删除',
noPlugins: '暂无插件',
editPlugin: '编辑插件',
fillBasicInfo: '填写基本信息',
describePluginBrieflyNameRequestMethodAndAuthorization:
'填写插件简介、名称、请求方法和授权方式',
addPlugin: '添加插件',
configureInputOutputParametersOrSubmitPluginParametersByAddingYamlFile:
'通过配置输入输出参数或者添加yaml文件提交插件参数',
debugAndVerify: '调试与校验',
debugAndVerifyPlugin: '对插件进行调试和校验',
pluginName: '插件名称',
pleaseEnterPluginName: '请输入插件名称',
pleaseEnter: '请输入',
pluginDescription: '插件描述',
describePluginFunctionalityInNaturalLanguagePleaseProvideExamplesSuchAsThisPluginIsUsedToCompleteSpecificFunctionsForExampleHelpMeSendAnEmailToZhangSan:
'通过自然语言描述插件的作用,请尽是给出示例,例:此插件用于完成特定的功能。如帮我发一封邮件给张三',
pleaseEnterPluginDescription: '请输入插件描述',
authorizationMethod: '授权方式',
pleaseEnterAuthorizationMethod: '请输入授权方式',
noAuthorizationRequired: '不需要授权',
youCanUseTheAPIWithoutAdditionalAuthorization:
'无需额外授权就可以使用API',
service: 'Service',
youNeedToIncludeTheKeyInTheRequestHeaderOrQueryToGetAuthorization:
'需要在请求头 (header)或者查询 (query)时携带密钥来获取授权',
pluginPath: '插件路径',
pleaseEnterPluginPath: '请输入插件路径',
pleaseEnterAValidURLFormat: '请输入有效的URL格式',
position: '位置',
headerRepresentsPassingTheKeyInTheRequestHeaderQueryRepresentsPassingTheKeyInTheQuery:
'Header代表在请求头中传递密钥,Query代表在查询中传递密钥',
pleaseEnterPosition: '请输入位置',
header: 'Header',
query: 'Query',
parameterName: 'Parameter name',
parameterNameDescription:
'密钥的参数,您需要传递Service Token的参数名。其作用是告诉API服务,您将在哪个参数中提供授权信息',
pleaseEnterParameterName: '请输入参数名',
serviceTokenAPlKey: 'Service token / APl key',
parameterValueDescription:
'密钥的参数值,代表您的身份或给定的服务权限。API服务会验证此Token,以确保您有权进行相应的操作',
pleaseEnterServiceTokenAPlKey: '请输入Service token / APl key',
requestMethod: '请求方法',
pleaseSelectRequestMethod: '请选择请求方法',
pleaseSelect: '请选择',
getMethod: 'Get方法',
postMethod: 'Post方法',
putMethod: 'Put方法',
deleteMethod: 'Delete方法',
patchMethod: 'Patch方法',
debugResult: '调试结果',
debug: '调试',
hold: '暂存',
previousStep: '上一步',
nextStep: '下一步',
save: '保存',
publish: '发布',
parameterValidationFailed: '参数校验未通过,请检查后再试',
pleaseEnterParameterDescription: '请输入参数描述',
requiredParametersNotFilled: '存在未填写的必填参数,请检查后再试',
debugPlugin: '调试插件',
pluginDetails: '插件详情',
pluginParameters: '插件参数',
inputParameters: '输入参数',
outputParameters: '输出参数',
pleaseEnterParameterValue: '请输入参数值',
isRequired: '是否必填',
yes: '是',
no: '否',
parameterValue: '参数值',
operation: '操作',
addSubItem: '添加子项',
parameterConfiguration: '参数配置',
noData: '暂无数据',
configureInputParameters: '配置输入参数',
enable: '开启',
enableDescription:
'当参数设置为不可见时,插件的使用者和大模型将无法看到该参数。如果该参数设置了默认值并且不可见,则在调用插件时,智能体会默认只使用这个设定值',
requiredParameterDefaultValueSwitch:
'此参数是必填参数,填写默认值后,此开关可用',
pleaseEnterDefaultValue: '请输入默认值',
configureOutputParameters: '配置输出参数',
outputParameterEnableDescription:
'当设为不可见时,该参数将不会被返回给大模型',
},
mcpNode: {
officalMcp: '官方MCP',
},
knowledgeNode: {
type: '知识库',
knowledgeBase: '知识库',
parameterSetting: '参数设置',
addKnowledgeBase: '添加知识库',
pleaseAddKnowledgeBase: '请添加您需要使用的知识库到此节点',
},
knowledgeProNode: {
type: '知识库 Pro',
knowledgeBase: '知识库',
parameterSetting: '参数设置',
addKnowledgeBase: '添加知识库',
pleaseAddKnowledgeBase: '请添加您需要使用的知识库到此节点',
answerRule: '回答规则',
outputRequirementPlaceholder:
'如果有输出要求限制或对特殊情况的说明请在此补充,例如:回答用户的问题, 如果没有找到答案时,请直接告诉我"不知道"',
input: '输入',
output: '输出',
parameterName: '参数名',
parameterValue: '参数值',
strategySelection: '策略选择',
parameterModal: {
topK: 'Top K',
topKDescription:
'用于筛选与用户问题相似度最高的文本片段,系统同时会根据选用模型上下文窗口大小动态调整分段数量。当问题被分解时,最终汇总的片段数量为设定的top k乘以问题数。',
topKExample:
'例如,一个问题分解为3个子问题,设定为召回3个片段,最终汇总3x3=9个片段。',
scoreThreshold: 'Score 阈值',
scoreThresholdDescription: '用于设置文本片段筛选的相似度阈值。',
},
},
textJoinerNode: {
type: '文本拼接',
joinRulePlaceholder:
'输入拼接规则,将定义过的变量用{{变量名}}的方式引用,节点会将您输入的文本和引用的变量进行拼接输出',
selectSeparator: '请选择分隔符',
rule: '规则',
separator: '分隔符',
customSeparator: '自定义分隔符',
stringConcatenation: '字符串拼接',
stringSplitting: '字符串分割',
input: '输入',
output: '输出',
},
messageNode: {
type: '消息',
answerContent: '回答内容',
streamOutput: '流式输出',
formatPlaceholder:
'可以根据参数名,在此定义返回结果的格式,例如使用{{变量名}}方式进行输出',
},
questionAnswerNode: {
nodeQuestionContent: '该节点的提问内容',
userReplyOptions: '用户回复的选项',
userReplyOptionContent: '用户回复的选项内容',
userInvisible: '用户不可见',
answerType: '问答类型',
type: '大模型',
largeModel: '大模型',
questionPlaceholder:
'在此填写向用户提出的问题,可以使用{(变量名}}方式进行输出',
input: '输入',
questionContent: '提问内容',
questionContentPlaceholder: '未配置提问内容',
answerMode: '回答模式',
directReply: '直接回复',
optionReply: '选项回复',
setOptionContent: '设置选项内容',
extractFieldsFromUserReply: '从用户回复中提取字段',
newVersionAvailable: '有新版本更新',
newVersionUpdate: '有新版本更新',
// OutputParams
variableName: '变量名',
variableType: '变量类型',
description: '描述',
parameterExtraction: '参数抽取',
defaultValue: '默认值',
required: '是否必要',
add: '添加',
variableDescriptionPlaceholder: '请输入变量的作用的描述语句',
selectPlaceholder: '请选择',
inputPlaceholder: '请输入',
// FixedOptions
option: '选项',
optionType: '选项类型',
optionContent: '选项内容',
contentPlaceholder: '请输入内容,可以使用{{变量名}}方式引用输入参数',
addOption: '添加选项',
other: '其他',
otherOptionDescription: '此选项对用户不可见,当用户没有回答时,走此分支',
// AnswerSettings
answerSettings: '回答设置',
userMustAnswer: '用户是否必须回答',
userMustAnswerTip:
'当设定用户必须回答时,在用户对话界面必须回答问题才能继续执行工作流,当设定用户非必须回答时,用户可忽略该问题继续执行工作流',
conversationTimeout: '对话超时设置',
conversationTimeoutTip:
'当在回答问题界面停留超过预置时间,该工作流将会终止运行',
maxRetrySettings: '最多回答次数设置',
maxRetrySettingsTip:
'允许用户回答该问题的最多次数,当从用户的多次回答中获取不到必填的关键字段时,该工作流将会终止运行',
minute: '分',
times: '次',
// Node descriptions
questionContentDescription: '该节点提问内容',
userReplyOptionsDescription: '用户回复的选项',
userReplyOptionContentDescription: '用户回复的选项内容',
userReplyContentDescription: '用户回复内容',
},
decisionMakingNode: {
type: '决策',
chatHistory: '对话历史',
intentNamePlaceholder: '请输入意图名称',
intentDescriptionPlaceholder: '请输入意图描述',
systemPromptPlaceholder:
'在此定义额外的系统提示词,用来增强用户输入与意图匹配的成功率,可以输入更多的限制条件,或提供更多的案例等,可以使用{{变量名}]方式进行输出',
intent: '意图',
intentDescription: '意图描述',
defaultIntent: '默认意图',
addIntentKeyword: '添加意图关键字',
advancedConfiguration: '高级配置',
newVersionUpdate: '有新版本更新',
input: '输入',
intentNumber: '意图{{index}}',
output: '输出',
// NodeTransformationModal
decisionNodeSwitch: '决策节点切换',
switchConfirmMessage: '切换后不可回退至旧版本,是否确认切换?',
confirm: '确认',
cancel: '取消',
},
ifElseNode: {
type: '分支器',
branch: '分支',
addBranch: '添加分支',
else: '否则',
if: '如果',
elseIf: '否则如果',
priority: '优先级',
referenceVariable: '引用变量',
selectCondition: '选择条件',
compareType: '比较类型',
compareValue: '比较值',
and: '且',
or: '或',
input: '输入',
reference: '引用',
},
iteratorNode: {
type: '迭代',
input: '输入',
output: '输出',
iterationSubNodes: '迭代子节点',
runConfigTitle: '运行模式',
runModeLabel: '运行模式',
serialMode: '串行模式',
parallelMode: '并行模式',
errorHandlingLabel: '错误响应方法',
errorHandlingOptions: {
failFast: '错误时终止',
continue: '忽略错误并继续',
ignoreErrorOutput: '移除错误输出',
},
maxConcurrencyLabel: '最大并行度',
parallelModeNoQaInSubCanvas: '并行模式下不支持在迭代子画布中添加问答节点',
cannotSwitchToParallelWithQa: '子画布中存在问答节点,无法切换到并行模式',
},
loopNode: {
type: '循环',
variables: '循环变量',
addVariable: '添加变量',
termination: '终止条件',
maxLoopCount: '最大循环次数',
addCondition: '添加条件',
output: '输出',
},
codeNode: {
type: '代码',
code: '代码',
viewCode: '查看',
editCode: '编辑',
viewOrEditCode: '查看代码',
editOrViewCode: '编辑代码',
readOnlyEditor: '只读,如需编辑请点击编辑代码按钮',
},
extractorParameterNode: {
type: '变量提取器',
},
variableMemoryNode: {
type: '变量存储器',
variableMemory: '变量存储器',
setVariableValue: '设置变量值',
getVariableValue: '获取变量值',
input: '输入',
output: '输出',
parameterName: '参数名称',
variableType: '变量类型',
add: '添加',
},
variableAggregationNode: {
type: '变量聚合',
output: '输出',
candidates: '候选变量',
priority: '优先级',
candidateLabel: '候选{{index}}',
fallback: '兜底值',
enableFallback: '当所有候选变量都为空时使用兜底值',
moveUp: '上移',
moveDown: '下移',
},
databaseNode: {
type: '数据库',
customSQL: '自定义SQL',
formDataProcessing: '表单处理数据',
selectDatabase: '选择数据库:',
selectDataTable: '选择数据表:',
processingMode: '处理模式:',
pleaseSelect: '请选择',
addData: '新增数据',
updateData: '更新数据',
queryData: '查询数据',
deleteData: '删除数据',
input: '输入',
sql: 'SQL',
setAddData: '设置新增数据',
setDataRange: '设置数据范围',
setUpdateData: '设置更新数据',
queryResultFields: '查询结果字段',
sort: '排序',
queryLimit: '查询上限',
output: '输出',
executionResult: '执行结果',
sqlPlaceholder:
"在此填写SQL语句,可以使用{{变量名}}方式进行引用\n将变量作为SQL条件时:\n如果变量中的内容是字符串,需要加''(例如:'{{xxxx}}');\n如果不是字符串则不用加''(例如: {{xxxx}});\nSQL语句示例:\nselect * from {{message}}\nwhere name='{{xxxx}}' and age={{xxxx}}",
getTableFieldsFailed: '获取表字段接口失败',
// AddDataInputs
parameterName: '参数名',
fieldType: '类型',
fieldValue: '值',
literal: '输入',
reference: '引用',
add: '添加',
// CasesInputs
tableField: '表字段',
selectCondition: '选择条件',
compareType: '比较类型',
compareValue: '比较值',
and: '且',
or: '或',
pleaseEnter: '请输入',
syntaxError: '语法错误',
pleaseCheckType: '请检查类型是否正确',
// InputParams
inputParameterName: '参数名',
inputFieldType: '类型',
inputFieldValue: '值',
inputLiteral: '输入',
inputReference: '引用',
inputAdd: '添加',
image: 'Image',
// OutputDatabase
outputParameterName: '参数名',
outputFieldType: '类型',
outputDescription: '描述',
addSubItem: '添加子项',
// QueryField
queryParameterName: '参数名',
queryAdd: '添加',
ascending: '正序',
descending: '倒序',
// Validation errors
valueCannotBeEmpty: '值不能为空',
modelCannotBeEmpty: '模型不能为空',
},
flowNode: {
// 使用common中的input, output
},
common: {
back: '返回',
undefined: '未定义',
selectPlaceholder: '请选择',
inputPlaceholder: '请输入',
outputPlaceholder: '输出',
input: '输入',
output: '输出',
reference: '引用',
add: '添加',
parameterName: '参数名',
parameterValue: '参数值',
variableName: '变量名',
variableType: '变量类型',
description: '描述',
referenceVariable: '引用变量',
addBranch: '添加分支',
addOption: '添加选项',
addIntentKeyword: '添加意图关键字',
intentDescription: '意图描述',
addPlugin: '添加插件',
addAddress: '添加地址',
inputTest: '输入测试',
outputResult: '输出结果',
maxAddWarning: '最多添加30个插件或者MCP!',
pluginLimitTip:
'支持在已发布列表里同时勾选并添加多个插件或 MCP,最多添加 30 个。',
mcpServerTip: '支持自定义添加MCP服务器地址,上限3个',
knowledgeTypeTip: '知识库节点仅支持添加同类型文件',
variableDescriptionPlaceholder: '请输入变量的作用的描述语句',
contentPlaceholder: '请输入内容,可以使用{{变量名}}方式引用输入参数',
required: '是否必要',
addSubItem: '添加子项',
startEndNodeDeleteWarning: '开始和结束节点不能删除!',
fixedNodes: '固定节点',
confirmUpdate: '确认更新为当前最新已发布版本?',
addNote: '添加注释',
showNote: '显示注释',
hideNote: '隐藏注释',
createCopy: '创建副本',
deleteNode: '删除',
testNode: '测试该节点',
rename: '重命名',
manuallyAdd: '手动添加',
jsonExtract: 'JSON参数提取',
jsonError: '无效的json格式',
confirm: '确认',
cancel: '取消',
},
modelSelect: {
answerMode: '回答模式',
selectMoreModels: '选择更多模型',
modelThinkingProcess: '模型思考过程',
modelParamsSettings: '模型参数设置',
modelOffShelf: '该模型已下架,请及时切换模型',
modelOffShelfTip: '该模型将于{{time}}下架,请及时切换以免影响正常使用!',
willOffShelf: '即将下架',
offShelf: '已下架',
},
header: {
previewing: '预览中',
editing: '编辑中',
autoSaved: '已自动保存',
testRunning: '试运行中',
runCompleted: '运行完成',
runFailed: '运行失败',
arrange: '编排',
analysis: '分析',
chat: '对话',
export: '导出',
comparativeDebugging: '对比调试',
versionHistory: '历史版本',
advancedConfiguration: '高级配置',
traceLogs: 'Trace日志',
debug: '调试',
publish: '发布',
updatePublish: '更新发布',
debugBeforePublish: '调试通过后即可发布',
debugBeforePublishDesc: '发布前需要进行调试,以确保工作流程正常运行。',
notAllowed: '当前工作流正在测评中,不允许进行编辑。',
first: '若需编辑当前工作流,可先',
stop: '终止当前测评任务',
notAllowedPrompt: '当前提示词正在测评中,不允许进行编辑。',
firstPrompt: '若需编辑当前提示词,可先',
},
multipleCanvasesTip: {
continueEditingInCurrentWindow: '在当前窗口继续编辑',
confirm: '确认',
cancel: '取消',
multipleWindowsTip:
'你在另一个窗口也打开了此页面。你想要继续在当前窗口编辑吗?',
continueEditing: '继续编辑',
},
outputParams: {
// 使用common中的parameterName, variableName, parameterValue, variableType, description, add, variableDescriptionPlaceholder
required: '是否必要',
addSubItem: '添加子项',
},
inputParams: {
// 使用common中的parameterName, parameterValue, input, reference, add
},
operationResult: {
errorNodes: '异常节点',
rerun: '重新运行',
errorChildNodes: '异常子节点:',
},
flowChatResult: {
runResult: '运行结果',
collapse: '收起',
input: '输入',
rawOutput: '原始输出',
output: '输出',
answerContent: '回答内容',
noRunResult: '暂无运行结果',
copySuccess: '复制成功',
},
flow: {
intentNumbers: [
'一',
'二',
'三',
'四',
'五',
'六',
'七',
'八',
'九',
'十',
],
nodeValidationFailed: '节点校验失败,请检查是否有空值或不满足命名规则',
defaultIntentUnconnected: '默认意图存在未连接的边',
intentUnconnected: '意图{{number}}存在未连接的边',
conditionUnconnected: '{{condition}}存在未连接的边',
nodeUnconnected: '该节点存在未连接的边',
cycleDependencyDetected: '检测到循环依赖(环)',
nodeValidationFailedUnconnected: '节点校验失败,存在未连接的边',
childNodesUnsatisfied: '子节点中存在未满足要求的节点',
ifCondition: '如果',
elseIfCondition: '否则如果(优先级{{level}})',
elseCondition: '否则',
optionCondition: '选项{{name}}',
otherOptionCondition: '其他选项',
// Additional keys for the code
defaultIntentNotConnected: '默认意图存在未连接的边',
intentNotConnected: '意图{{intentNumber}}存在未连接的边',
edgeNotConnected: '存在未连接的边',
nodeNotConnected: '该节点存在未连接的边',
cycleDependency: '检测到循环依赖(环)',
nodeNotSatisfied: '节点校验失败,请检查是否有空值或不满足命名规则',
subNodeNotSatisfied: '子节点中存在未满足要求的节点',
if: '如果',
elseIf: '否则如果(优先级{{priority}})',
else: '否则',
option: '选项{{optionName}}',
otherOption: '其他选项',
},
selectPrompt: {
title: '选择prompt',
myTab: '我的',
officialTab: '官方',
searchPlaceholder: '请输入',
createNewPrompt: '新建prompt',
publishedAt: '发布于',
parameters: '参数',
add: '添加',
noTemplates: '暂无模板',
modelThinkingProcess: '模型思考过程',
},
codeIDEA: {
language: '语言',
pythonPackages: '当前支持100+python包',
viewDetails: '查看详情',
aiCode: 'AI代码',
generating: '生成中',
aiThinking: 'AI思考中',
inputPlaceholder: '请输入',
accept: '接受',
reject: '拒绝',
send: '发送',
inputTest: '输入测试',
autoGenerate: '自动生成',
run: '运行',
outputResult: '输出结果',
runSuccess: '运行成功',
toolInputMustBeJson: '工具的输入必须是个JSON字符串',
aiDescriptionRequired: 'AI生成的描述是必填的',
},
parameterModal: {
topK: 'Top K',
topKDescription:
'用于筛选与 用户问题相似度最高的文本片段。系统同时会根据选用模型上下文窗口大小动态调整分段数量。',
scoreThreshold: 'Score 阈值',
scoreThresholdDescription: '用于设置文本片段筛选的相似度阈值。',
rerankModelId: 'Rerank 模型 ID',
rerankModelIdDescription:
'可选。填写 RAGFlow 中已配置的 Rerank 模型 ID;留空时保持当前检索行为。',
rerankModelIdPlaceholder: '请输入 Rerank 模型 ID',
},
relatedKnowledgeModal: {
title: '选择知识库',
versionSelection: '版本选择',
xingchen: '星辰',
xingpu: '星火',
personal: '个人版',
createTime: '创建时间',
updateTime: '更新时间',
searchPlaceholder: '请输入',
createNewKnowledge: '新建知识库',
knowledgeTypeTip: '知识库节点仅支持添加同类型文件',
remove: '移除',
add: '添加',
createTimePrefix: '创建时间:',
updateTimePrefix: '更新时间:',
noDocuments: '暂无文档',
},
validation: {
valueCannotBeEmpty: '值不能为空',
valueCannotBeRepeated: '值不能重复',
pleaseEnterValidURL: '请输入有效的URL格式',
variableMemoryNamingConflict: '变量存储器命名冲突',
canOnlyContainLettersNumbersHyphensOrUnderscores:
'只能包含字母、数字、中划线或者下划线,并且以字母或者下划线开头',
canOnlyContainLettersNumbersOrUnderscores:
'只能包含字母、数字或者下划线,并且以字母或者下划线开头',
knowledgeCannotBeEmpty: '知识不可为空',
codeCannotBeEmpty: '代码不可为空',
separatorCannotBeEmpty: '分隔符不可为空',
invalidJSONFormat: '无效的JSON格式',
variableAggregationTypeMismatch: '候选变量类型必须与输出类型一致',
variableAggregationFallbackInvalid: '兜底值与当前输出类型不匹配',
},
addFlow: {
selectWorkflow: '选择工作流',
myCreated: '我创建的',
officialWorkflow: '官方工作流',
createTime: '创建时间',
updateTime: '更新时间',
pleaseEnter: '请输入',
createNewWorkflow: '新建工作流',
add: '添加',
copyAndAdd: '复制并添加',
noWorkflow: '暂无工作流',
},
mcpDetail: {
activateMcpServiceToTest: '开通MCP服务方可测试',
activateMcpService: '开通MCP服务',
confirmActivate: '确认开通',
},
chatDebugger: {
dialogue: '调试与预览',
runResult: '运行结果',
keepOnly10DialogueRecords: '当前只保留10条调试记录',
multiParamWorkflowOnlySupportDebugAndPublishAsAPI:
'多入参工作流仅支持调试和发布为API,无用户对话页',
switchToUserDialoguePage: '用户对话页预览',
clearDialogue: '清空对话',
send: '发送',
userIgnoredQuestion: '用户已忽略此次问答',
userCurrentRoundInput: '用户本轮对话输入内容',
workflowTerminated: '工作流终止运行',
workflowConnectionInterrupted: '工作流连接中断,请重试',
startNewConversation: '开启新对话',
deepThinking: '已深度思考',
generating: '生成中',
ignoreThisQuestion: '忽略此问题',
endThisRoundConversation: '结束本轮对话',
regenerate: '重新生成',
tryFlow: '试试Flow',
confirmDeleteAllDialogue: '确认删除清空所有对话?',
versionNotPublished: '当前版本未发布成功,无用户对话页',
virtualLoading: '虚拟人加载中',
},
flowModal: {
createWorkflow: '创建工作流',
workflowName: '工作流名称',
workflowDescription: '工作流描述',
workflowDescriptionTip:
'以下文字将展示在客户端中,用于对用户进行解释说明应用的功能并进行基本引导。',
workflowCategory: '工作流分类',
submit: '提交',
confirmDeleteWorkflow: '确认删除工作流?',
delete: '删除',
editWorkflow: '工作流编辑',
flowId: 'FlowID',
copySuccess: '复制成功',
},
},
advancedConfiguration: {
title: '高级配置',
subtitle: '增强用户体验',
conversationStarter: '对话开场白',
conversationStarterDescription:
'在对话型应用中,让AI应用主动说的第一段话,进行打招呼等,可以拉近与用户的距离。',
aiGenerate: 'AI生成',
openingRemarksPlaceholder: '请输入开场白',
openingRemarksPresetQuestions: '开场白预留问题',
add: '添加',
presetQuestionPlaceholder: '请输入开场白预置问题',
nextQuestionSuggestion: '下一步问题建议',
nextQuestionSuggestionDescription:
'启用后,可以在对话结束后,生成引导性对话,帮助用户更好的对话。',
speechToText: '语音转文字',
speechToTextDescription: '启用后,可以支持使用语音输入。',
likeAndDislike: '点赞点踩',
likeAndDislikeDescription:
'启用后,可以支持用户对AI生成的回答进行点赞或点踩等操作,帮助应用更好的服务用户。',
characterVoice: '角色声音',
characterVoiceDescription: '可以与工作流进行语音对话,请为工作流选择音色。',
pleaseSelect: '请选择',
setBackground: '设置背景',
setBackgroundDescription: '开启此项功能,为对话界面设置背景图片。',
dragFileHere: '拖拽文件至此,或者',
selectFile: '选择文件',
fileFormatTip: '文件格式为png、jpg、jpeg,文件大小不超过5M',
uploadFileSizeError: '上传文件大小不能超出5M!',
uploadFileFormatError: '请上传png、jpg、jpeg格式文件!',
},
versionManagement: {
title: '版本与问题追踪',
versionRecord: '版本记录',
feedbackRecord: '问题反馈记录',
draftVersion: '草稿版本',
restoredFrom: '还原自',
version: '版本:',
versionId: '版本ID:',
publishTime: '发布时间:',
publishResult: '发布结果',
previewDebug: '预览调试',
restoreThisVersion: '还原此版本',
publishResultTitle: '发布结果',
versionDescription: '版本描述',
publishPlatform: '发布平台',
noPublishRecord: '暂无发布记录',
publishSuccess: '发布成功',
publishing: '发布中',
publishFailed: '发布失败',
unknownPlatform: '未知平台',
iflytekVoicePlatform: '科大讯飞语音平台',
iflytekCloudPlatform: '讯飞云开放平台',
wechatOfficialAccount: '微信公众号',
mcpPlatform: 'MCP 平台',
questionId: '问题ID:',
detail: '详情',
},
promptDebugger: {
success: '成功',
failed: '失败',
cancel: '取消',
running: '运行中',
debugNode: '调试节点',
debugPreview: '调试预览',
nodeInfoChanged:
'由于{{nodeNames}}节点信息发生改变,需将所有对照组中该节点信息重置',
addControlGroup: '添加对照组({{count}}/4)',
clearHistoryRecords: '清除历史记录',
benchmarkGroup: '基准组',
controlGroup: '对照组',
copyBenchmarkData: '拷贝基准组数据',
viewCanvasInfo: '查看画布信息',
setAsBenchmark: '设置为基准组',
expandAllNodeInfo: '展开所有节点信息(收起所有节点信息)',
pleaseUploadAttachment: '请上传附件',
pleaseEnterContent: '请输入内容',
pleaseCheckModelParameterConfiguration: '请检查模型参数配置',
fileUrl: '文件url',
enterContentHere: '在此处输入内容',
debugResult: '调试结果',
finalAnswer: '最终回答',
viewDetails: '查看详情',
viewAllControlGroupDetails: '查看所有对照组详情',
// Header component translations
checkBaseGroupData: '请检查基础组数据',
saveToDraftConfirm:
'会将基准组的信息保存至工作流草稿版本中,替换原有信息,是否确认?',
confirm: '确认',
saveSuccess: '保存成功',
comparativeDebugging: '对比调试',
autoSaved: '已自动保存',
apply: '应用',
// ModelConfigItem component translations
referenceVariables: '可引用变量:',
model: '模型:',
pleaseSelectModel: '请选择模型',
// ModelDetailItem component translations
iterationNumber: '第{{number}}次:',
// DebuggerContent component translations
startNewConversation: '开启新对话',
ignoreThisQuestion: '忽略此问题',
endThisRoundConversation: '结束本轮对话',
// FeedbackDialog component translations
feedbackDetail: '反馈详情',
oneClickFeedback: '一键反馈',
problemId: '问题ID:',
createTime: '创建时间:',
feedbackContent: '反馈内容',
pleaseEnterFeedbackContent: '请输入反馈内容',
feedbackContentMaxLength: '反馈内容最多1000个字符',
feedbackPlaceholder:
'为精准了解问题,请您详细描述,并附上智能体配置信息截图,以便高效定位解决。',
uploadImage: '上传图片',
dragFileHereOr: '拖拽文件至此,或者',
selectFile: '选择文件',
supportUploadFormat: '支持上传JPG和PNG等格式的文件,仅支持上传10张图片',
maxUploadImages: '最多只能上传10张图片',
onlySupportJpgPng: '只支持上传 JPG/PNG 格式的图片!',
// NodeDebugging component translations
timeCost: '耗时:',
totalTokens: '总token数:',
expand: '展开',
collapse: '收起',
runResult: '运行结果',
chatHistoryTokenLimit: '历史对话token达上限时,系统自动移除最早对话轮次。',
reasoningContent: '思考内容',
answerContent: '回答内容',
errorMessage: '错误信息',
warning: '警告',
// WorkflowImportModal component translations
importWorkflow: '导入工作流',
uploadFileSizeExceeded: '上传文件大小不能超出20M!',
pleaseUploadYmlYamlFormat: '请上传yml、yaml格式文件!',
fileFormatYmlYaml: '文件格式为yml、yaml,文件大小不超过20M',
// AddTool component translations
updateConfig: '更新配置',
// FlowOperatorPanel component translations
locateInitialNode: '定位初始节点',
clearCanvas: '清空画布',
restoreToOnlineVersion: '还原成线上版本',
createCopy: '创建副本',
viewThumbnail: '查看缩略图',
adaptiveView: '自适应视图',
optimizeLayout: '优化布局',
switchToPolyline: '切换成折线',
switchToCurve: '切换成曲线',
undo: '撤销 Ctrl+z',
expandAllNodes: '展开全部节点',
collapseAllNodes: '收起全部节点',
switchToFollowMode: '切换成跟随模式',
switchToAutonomousMode: '切换成自主模式',
helpDocument: '帮助文档',
beginnerGuide: '不清楚怎么做?先来新手文档学习一下吧',
// DeleteModal component translations
confirmClearCanvas: '确认清除画布?',
canvasClearDescription:
'画布清空后,画布将恢复为空画布状态。开始节点和结束节点将恢复为初始状态,其余节点将被删除。',
// ParameterModal component translations
scoreThresholdLabel: 'Score 阈值',
scoreThresholdDescription:
'根据设置的匹配度选取段落返回给大模型,低于设定匹配度的内容不会被召回。',
// NodeOperation component translations
nodeValidationWarning: '节点存在未填字段或者变量命名不符合规范!',
// SelectAgentPrompt component translations
promptLibraryTitle: '提示词库',
adaptationModel: '适配模型:',
roleSettingLabel: '#角色设定:',
thinkingStepsLabel: '#思考步骤:',
userQueryLabel: '#用户查询/提问:',
// FlowOperatorPanel component translations
mouseFriendlyMode: '鼠标友好模式',
touchFriendlyMode: '触控板友好模式',
mouseFriendlyModeDescription: '鼠标左键拖动画布,滚轮缩放',
touchFriendlyModeDescription: '双指同向移动拖动,双指张开捏合缩放',
interactionMode: '交互模式',
showNodeRemarks: '查看节点注释',
hideNodeRemarks: '隐藏节点注释',
},
nodeList: {
selectNode: '选择节点',
details: '详情',
newVersionAvailable: '新上线满血版DeepSeek R1、 DeepSeek V3模型!',
},
exceptionHandling: {
title: '异常处理',
tooltip:
'可设置异常处理,包括超时、重试、异常处理方式。开启流式输出后,一旦开始输出数据,即使出现异常也无法重试或者跳转异常分支。',
timeout: '超时时间',
timeoutTooltip:
'超时时间指节点运行的最大耗时,如果超过此时长,则判断为节点运行超时。 默认情况下,节点的超时时间默认为 60s,即 1 分钟。你也可以将其改为 0.1s~120s,灵活控制超时时间。',
retryTimes: '重试次数',
exceptionHandlingMethod: '异常处理方式',
retryOptions: {
noRetry: '不重试',
retry1Time: '重试1次',
retry2Times: '重试2次',
retry3Times: '重试3次',
retry4Times: '重试4次',
retry5Times: '重试5次',
},
exceptionMethods: {
interruptFlow: {
label: '中断流程',
description:
'发生异常后,中断流程执行。异常信息将会显示在节点卡片上,或者通过调用结果返回。',
},
returnSetContent: {
label: '返回设定内容',
description:
'发生异常后,流程不会中断。异常信息会通过errorCode、errorMessage返回。开发者可设定需要返回的内容。',
},
executeExceptionFlow: {
label: '执行异常流程',
description:
'发生异常后,流程不会中断。异常信息会通过errorCode、errorMessage返回,同时会新增异常分支。开发者需要完善异常处理流程后,方可运行流程。',
},
},
setAnswerContent: '设定回答内容',
errorInfo: '错误信息',
errorCode: '错误码',
errorMessage: '错误信息',
validationMessages: {
valueCannotBeEmpty: '值不能为空',
invalidJsonFormat: '无效的JSON格式',
outputVariableNameValidationFailed:
'输出中变量名校验不通过,自动生成JSON失败',
},
},
};
export default translation;