Skip to content

Commit 4445a75

Browse files
authored
fix: There is a situation in the intelligent agent where workflow tools cannot be used as end nodes (#5048)
* fix: There is a situation in the intelligent agent where workflow tools cannot be used as end nodes * fix: There is a situation in the intelligent agent where workflow tools cannot be used as end nodes
1 parent eb409f7 commit 4445a75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/src/workflow/common/validate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const end_nodes: Array<string> = [
2121
WorkflowType.VideoUnderstandNode,
2222
WorkflowType.VariableAssignNode,
2323
WorkflowType.KnowledgeWriteNode,
24+
WorkflowType.ToolWorkflowLib,
2425
]
2526

2627
const loop_end_nodes: Array<string> = [
@@ -40,6 +41,7 @@ const loop_end_nodes: Array<string> = [
4041
WorkflowType.LoopNode,
4142
WorkflowType.LoopBreakNode,
4243
WorkflowType.VariableAssignNode,
44+
WorkflowType.ToolWorkflowLib,
4345
]
4446
const end_nodes_dict = {
4547
[WorkflowMode.Application]: end_nodes,

0 commit comments

Comments
 (0)