Loop through multiple actions in a single LLM response instead of processing only the last one. #7806
Closed
4 of 5 tasks
Labels
💪 enhancement
New feature or request
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
When my Agent receives a response from the LLM like the one below,
I notice that Dify only processes the last action while skipping the previous ones. After reviewing the code, it appears to be designed this way. Is it possible to implement a loop to process all actions?
2. Additional context or comments
The relevant code is located here.
dify/api/core/agent/cot_agent_runner.py
Lines 144 to 165 in 0e0a703
3. Can you help us with this feature?
The text was updated successfully, but these errors were encountered: