crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

looping tasks

Open chriscamacho opened this issue 2 years ago • 3 comments

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

chriscamacho avatar Jan 25 '24 07:01 chriscamacho

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

Biancamazzi avatar Jan 25 '24 14:01 Biancamazzi

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.

Kolaposki avatar Feb 01 '24 16:02 Kolaposki

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

Toppbeatz avatar Apr 01 '24 22:04 Toppbeatz