Auto-GPT-Plugins
Auto-GPT-Plugins copied to clipboard
Plugin post_planning argument type not match
Hi
The caller for plugin post_planning should be receiving a string based on the abstract template.
def post_planning(self, response: str) -> str:
"""This method is called after the planning chat completion is done.
Args:
response (str): The response.
Returns:
str: The resulting response.
"""
pass
But seems like in agent.py : line 126, the argument is dict and not string
assistant_reply_json = plugin.post_planning(self, assistant_reply_json)
Shall we change the template argument to any instead?
Because it prompts error
TypeError: can only concatenate str (not "dict") to str
Thank you for confirming.