yoheinakajima / babyagi

MIT License
19.73k stars 2.58k forks source link

Dict to String of `result` param in `task_creation_agent`'s prompt should be improved #269

Open peterbanda opened 1 year ago

peterbanda commented 1 year ago

The result param in task_creation_agent, which always contains only data key-value pair, is included in the task_creation_agent's prompt as

  The last completed task has the result: {result}.

Since result is of type Dict the actual output looks something like:

  The last completed task has the result: {'data': '....'}

That's unnecessary too technical and can be flattened just to result["data"]. What was the point of enriching it to Dict at the first place?

peterbanda commented 1 year ago

Can provide a fix but need a feedback here.