-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Feature/Update Loop Agentflow #4957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…n increment to 1.1 - Added a new input parameter 'fallbackMessage' to the Loop Agentflow for displaying a message when the loop count is exceeded. - Incremented the version of Loop Agentflow from 1.0 to 1.1. - Updated the processing logic to handle the fallback message appropriately when the maximum loop count is reached.
…g the runtime state during workflow execution. - Added a method to list runtime state keys for dynamic state management. - Implemented logic to retrieve and utilize the current loop count in variable resolution. - Updated the Loop Agentflow output to reflect the new state and final output content.
@HenryHengZJ following the conversation from here #4653 (comment), if what we want is simplicity for new users, the visual approach with 1 ouput works better, IMHO. This allows us to add a simple reply node, as we do in other nodes, or of if needed, create much more advanced applications by adding whatever new workflow logic we can implement after exhaustion. I don't know, it feels quite intuitive to me and provides a new dimension to the flow that it currently does not have. I know you want to get this simple, but this draft implementation I did took me 45 mins (only 2 files), just the time I needed to figure out the loop counting, but of course, as always, this is up to you. Maybe a new toggle option to disable the visual output by default? |
|
Good suggestion, I think the best approach is to add another toggle option - |
@HenryHengZJ For what it's worth, I have aligned the fallback implementation (now working in all the scenarios and nodes I tested out) with the original code main...toi500:Flowise:exhausted-output-loop-node, making only minimal and targeted changes. If you want, I can make a draft PR so you can wrap this out with that new UI dynamic capability to make the fallback output disabled by default. |
thanks, that's fine we dont have to open a draft PR, I can just refer to the link you pasted |
Include fallback message and version increment to 1.1