Skip to content

Conversation

VLSMB
Copy link
Collaborator

@VLSMB VLSMB commented Sep 11, 2025

Describe what this PR does / why we need it

  1. add MiddleOutputNode for Studio DSL
  2. refactor render edges (prepare for parallel, branch and iteration node) add NodeSection#renderEdges Method
  3. remove unused BranchNode
  4. support IterationNode for Studio DSL (The generation logic has been restructured, dividing iteration nodes into three parts: start, end, and middle. For Dify's iteration nodes, manual addition of an iteration end node is required.)
  5. enhance CodeExecutorNodeAction and fix its some bugs (to support code from Studio ScriptNode)
  6. support ScriptNode (CodeNodeSection) for Studio DSL
  7. add NodeSection#getImports Method

All changes were tested for generation using a simple DSL file.

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

This is a simple workflow involving two newly supported nodes:

image

Export the code and test it:

image

Special notes for reviews

@github-actions github-actions bot added area/graph SAA Grpah module area/studio SAA Studio module labels Sep 11, 2025
@VLSMB VLSMB changed the title feat(studio): support Branch, Iteration and Loop for Studio DSL feat(studio): support Script, Branch, Iteration and Loop for Studio DSL Sep 11, 2025
@VLSMB VLSMB changed the title feat(studio): support Script, Branch, Iteration and Loop for Studio DSL feat(studio): support MiddleOutput, Script and Iteration for Studio DSL Sep 12, 2025
@VLSMB VLSMB marked this pull request as ready for review September 12, 2025 08:09
@HY-love-sleep HY-love-sleep merged commit c3f85c2 into alibaba:main Sep 12, 2025
11 checks passed
@VLSMB VLSMB deleted the studio-dsl branch September 12, 2025 08:32
zhouyou9505 pushed a commit to zhouyou9505/spring-ai-alibaba that referenced this pull request Sep 13, 2025
…SL (alibaba#2379)

* feat: add MiddleOutputNode for Studio DSL

* refactor: refactor renderEdges

* refactor: remove unused BranchNode.java

* feat: refactor IterationNodeDataConverter to support Studio DSL primarily

* fix: fix dify iteration generate bugs

* fix: fix dify iteration bugs

* feat: enhance CodeExecutorNodeAction and fix bugs

* feat: enhance CodeNodeSection for Dify DSL

* feat: support CodeNodeSection for Studio DSL

* feat: support IterationNode for Studio DSL

* refactor: add NodeSection#getImports Method
mcallzbl pushed a commit to mcallzbl/spring-ai-alibaba that referenced this pull request Sep 14, 2025
…SL (alibaba#2379)

* feat: add MiddleOutputNode for Studio DSL

* refactor: refactor renderEdges

* refactor: remove unused BranchNode.java

* feat: refactor IterationNodeDataConverter to support Studio DSL primarily

* fix: fix dify iteration generate bugs

* fix: fix dify iteration bugs

* feat: enhance CodeExecutorNodeAction and fix bugs

* feat: enhance CodeNodeSection for Dify DSL

* feat: support CodeNodeSection for Studio DSL

* feat: support IterationNode for Studio DSL

* refactor: add NodeSection#getImports Method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graph SAA Grpah module area/studio SAA Studio module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants