Is it possible to iterate through the same process multiple times using CrewAI #1132
Replies: 9 comments
-
While I don't know if it possible using crewai itself , but one way to do this is to loop over the process using for loop . to do this make the prompt of the task (the description ) a variable and set the initial value to your prompt that you used above. in the loop execute the process and save the output in a result variable and add it to the prompt value so you can tell your agent at what stage of your ToC it's so it understand the context and what to do next . |
Beta Was this translation helpful? Give feedback.
-
don't forget we have https://chat.openai.com/g/g-qqTuUWsBY-crewai-assistant to help and also the discord community https://discord.com/invite/X4JWnZnxPb |
Beta Was this translation helpful? Give feedback.
-
@sc00rpi0n I will try and apply the approach you suggested, I was thinking same appraoch |
Beta Was this translation helpful? Give feedback.
-
I had an example where the crew kickoff would happen as normal, and then a second kickoff would happen with the main agent returning "DONE" when the task was complete. A while loop on the results re kickedoff over and over. |
Beta Was this translation helpful? Give feedback.
-
@iplayfast Can you elaborate more on this or provide a little code snippet? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Check out the |
Beta Was this translation helpful? Give feedback.
-
A small snippet would be very useful indeed. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@okoliechykwuka |
Beta Was this translation helpful? Give feedback.
-
Investigate the agent_name.execute_task(task_name, topic) functionality. I had some success with it. but here is my loop function: |
Beta Was this translation helpful? Give feedback.
-
I am using Crew to automate the writing of a proposal response for RFI documents.
I am writing my responses by following a ToC
I have a lot of Agents handling this, The proposal Manager is a Super Agent coordinating the writing process.
I have written the first part 1.0 Introduction, How do I instruct the Proposal Manager Agents that once we have the final output for 1.0, move to the next section 1.1
Can this be achieved using CrewAI?
I understand that the current process is Process.sequential, can It handle such case?
This is what my Task for the PM looks like.
Beta Was this translation helpful? Give feedback.
All reactions