Add optional JSON-array output for the Agent Flow Iteration node#6139
Open
Dexterity104 wants to merge 2 commits intoFlowiseAI:mainfrom
Open
Add optional JSON-array output for the Agent Flow Iteration node#6139Dexterity104 wants to merge 2 commits intoFlowiseAI:mainfrom
Dexterity104 wants to merge 2 commits intoFlowiseAI:mainfrom
Conversation
430944a to
270db43
Compare
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new Row Text Splitter node for line-based text processing and adds an Output Structure option to the Iteration node, allowing users to choose between aggregated text and JSON array formats. The server-side execution logic was updated to support these structures and ensure index alignment for JSON array outputs. I have no feedback to provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Output Structure option on the Agent Flow Iteration node so results can stay in a fixed order and length that matches the input array, instead of only a single joined text string.
It's useful for flows that treat the iteration as a map over sections or rows and need a stable list to feed into another Iteration or any step that expects parseable JSON.
Closes #6091
Behavior
output.contentis all iteration outputs joined with newlines.output.contentis a JSON string of a string array (one entry per input index). If a sub-run has no text, that index is still present as an empty string so positions stay aligned with the input.output.iterationResultsremains the underlyingstring[]in both modes.contentstays a string everywhere so the usual flow completion and variable paths keep working.