crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
19.25k stars 2.66k forks source link

looping tasks #183

Closed chriscamacho closed 1 month ago

chriscamacho commented 7 months ago

Ideally I'd like to do something like this...

1 programming agent creates code 2 testing agent runs code in repl and provides feedback given some example require output testing passed goes to set 4 3 programming agent takes code from step 2 re-codes and goes to step 2 4 resulting code is presented

so this is 3 tasks really, but in particular step 2 needs a way to complete the whole process and step 3 needs a way to be able to get back to step 2

Biancamazzi commented 7 months ago

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

Kolaposki commented 7 months ago

Check out the task.execute() method.

That's what I use to get the output of a task and then move on to the next task or perform some operations. You can also use task.output which simply just gives you the result of the executed task.

Toppbeatz commented 5 months ago

I been trying to figure out how to do the same thing.