-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Tool Agent in the Loop using only first item #14032
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
Comments
Hey @anflsc2024, We have created an internal ticket to look into this which we will be tracking as "GHC-1267" |
"output": I found the reason. I think the max iterations of 6 exactly of one act I loop through |
Hey @anflsc2024 That would do it, so as you are hitting the max iterations I don't think there is a bug here. Let me know if you believe this to be a bug still and we can work out what to do next. |
I still think there is a bug. Only the first item from the loop is processed in a continuous loop. I only got it working now by placing the agent in a sub-workflow. This indicates to me that there's something wrong with the main implementation. |
Hey @anflsc2024, Can you clarify what the bug is and provide a minimal workflow that reproduces it? to me it looks like it is working as expected if the Agent node is hitting a limit and not outputting an item the loop will finish this also happens with normal nodes so we have the option to continue on error and always output data so the output can be checked and passed back to the loop for the next run. |
Here you can import the workflow |
I encountered the same problem, occasionally. During the loop, a node gets the data of the previous loop. |
Hey @anflsc2024, Looking at your example workflow in the By changing your code node to use the below it is running loops as expected.
@gavinkwang if you have a way to reproduce this issue it would be great to see it in in a workflow form. |
@anflsc2024 after some more digging the team has managed to find an issue while looking at this, When using Tools it looks like the items are not correctly looped. |
Describe the problem/error/question
The agent retains or uses only the first index at the loop's prompt. The results the agent returns are always the same.
What is the error message (if any)?
There is no error message.
Please share your workflow/screenshots/recording
Share the output returned by the last node
Debug info
core
storage
pruning
client
Generated at: 2025-03-18T05:42:48.845Z}
The text was updated successfully, but these errors were encountered: