I looked carefully at your code and I see, you are making multiple calls. So yea pseudocode might not be a good option here. it can be run in two chunks. The first should be run through expound pseudo code should do the same.
and then we generate a task list from the expounded – with a prompt containing main objective –
and then we send the task list to be iteratively worked upon by the last function.
I will try and see if it works.
I noticed from the parameters on each function you allowed for manipulation of model and temperature. Do you have some templates for these, like agents they are tuned to specific temperatures/models or is there a function that can decided what parameters, models to use for a task.?
Edit: Parameters on functions