@@ -276,7 +276,6 @@ export const parameterExtractionNode = {
276276 properties : { stepName : '参数提取' , config : { fields : [ { label : '结果' , value : 'result' } ] } } ,
277277}
278278
279-
280279/* 知识库检索 */
281280export const searchKnowledgeNode = {
282281 type : WorkflowNodeType . SearchKnowledge ,
@@ -344,7 +343,6 @@ export const rerankerNode = {
344343 } ,
345344}
346345
347-
348346/* MCP 调用 */
349347export const mcpNode = {
350348 type : WorkflowNodeType . McpNode ,
@@ -361,7 +359,6 @@ export const toolCustomNode = {
361359 properties : { stepName : '自定义工具' , config : { fields : [ { label : '结果' , value : 'result' } ] } } ,
362360}
363361
364-
365362/* 智能体节点 */
366363export const applicationNode = {
367364 type : WorkflowNodeType . Application ,
@@ -370,99 +367,92 @@ export const applicationNode = {
370367 properties : { stepName : '智能体节点' , config : { fields : [ { label : '结果' , value : 'result' } ] } } ,
371368}
372369
373-
374370/**
375371 * 工具配置数据
376372 */
377373export const toolLibNode = {
378374 type : WorkflowNodeType . ToolLib ,
379- text : '通过执行自定义脚本,实现数据处理' ,
380- label : '自定义工具' ,
381- height : 170 ,
382- properties : { stepName : '自定义工具' , config : { fields : [ { label : '结果' , value : 'result' } ] } } ,
383- }
384-
385- /**
386- * 工作流工具配置数据
387- */
388- export const toolWorkflowLibNode = {
389- type : WorkflowNodeType . ToolWorkflowLib ,
390- text : '工作流工具' ,
391- label : '工作流工具' ,
392- height : 170 ,
393- properties : { stepName : '工作流工具' , config : { fields : [ ] } } ,
375+ text : '工具节点' ,
376+ label : '工具节点' ,
377+ properties : { stepName : '工具节点' , config : { fields : [ { label : '结果' , value : 'result' } ] } } ,
394378}
395379
396-
397-
398-
399- export const loopStartNode = {
400- id : WorkflowNodeType . LoopStartNode ,
401- type : WorkflowNodeType . LoopStartNode ,
402- x : 480 ,
403- y : 3340 ,
404- properties : {
405- height : 364 ,
406- stepName : '循环开始' ,
407- config : {
408- fields : [
409- { label : '下标' , value : 'index' } ,
410- { label : '循环元素' , value : 'item' } ,
411- ] ,
412- globalFields : [ ] ,
413- } ,
414- showNode : true ,
415- } ,
416- }
380+ /* 循环节点 */
417381
418382export const loopNode = {
419383 type : WorkflowNodeType . LoopNode ,
420384 visible : false ,
421385 text : '通过设置循环次数和逻辑,重复执行一系列任务' ,
422386 label : '循环节点' ,
423- height : 252 ,
424387 properties : {
425388 stepName : '循环节点' ,
426389 workflow : {
427390 edges : [ ] ,
428391 nodes : [
429392 {
430393 x : 480 ,
431- y : 3340 ,
394+ y : 200 ,
432395 id : 'loop-start-node' ,
433396 type : 'loop-start-node' ,
434- properties : { config : { fields : [ ] , globalFields : [ ] } , fields : [ ] , height : 361.333 , showNode : true , stepName : '开始' , globalFields : [ ] } ,
397+ properties : { config : { fields : [ ] , globalFields : [ ] } , fields : [ ] , showNode : true , stepName : '开始' , globalFields : [ ] } ,
435398 } ,
436399 ] ,
437400 } ,
438401 config : { fields : [ ] } ,
439402 } ,
440403}
441404
405+ export const loopStartNode = {
406+ id : WorkflowNodeType . LoopStartNode ,
407+ type : WorkflowNodeType . LoopStartNode ,
408+ x : 480 ,
409+ y : 200 ,
410+ properties : {
411+ stepName : '循环开始' ,
412+ config : {
413+ fields : [
414+ { label : '下标' , value : 'index' } ,
415+ { label : '循环元素' , value : 'item' } ,
416+ ] ,
417+ globalFields : [ ] ,
418+ } ,
419+ showNode : true ,
420+ } ,
421+ }
422+
442423export const loopBodyNode = {
443424 type : WorkflowNodeType . LoopBodyNode ,
444425 text : '循环体' ,
445426 label : '循环体' ,
446427 height : 1080 ,
428+
447429 properties : { width : 1920 , stepName : '循环体' , config : { fields : [ ] } } ,
448430}
449431
450432export const loopContinueNode = {
451433 type : WorkflowNodeType . LoopContinueNode ,
452434 text : '用于终止当前循环,执行下次循环' ,
453435 label : 'Continue' ,
454- height : 100 ,
455436 properties : { width : 600 , stepName : 'Continue' , config : { fields : [ ] } } ,
456437}
457438
458439export const loopBreakNode = {
459440 type : WorkflowNodeType . LoopBreakNode ,
460441 text : '终止当前循环,跳出循环体' ,
461442 label : 'Break' ,
462- height : 100 ,
463443 properties : { width : 600 , stepName : 'Break' , config : { fields : [ ] } } ,
464444}
465445
446+ /**
447+ * 工作流工具配置数据
448+ */
449+ export const toolWorkflowLibNode = {
450+ type : WorkflowNodeType . ToolWorkflowLib ,
451+ text : '工作流工具' ,
452+ label : '工作流工具' ,
453+ properties : { stepName : '工作流工具' , config : { fields : [ ] } } ,
454+ }
455+
466456/* 文档分段 */
467457export const documentSplitNode = {
468458 type : WorkflowNodeType . DocumentSplitNode ,
0 commit comments