From cfbd60b6d5e6d6d6c5bb783bd5bb61dc3bdf88a1 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Sat, 22 Apr 2023 20:25:28 -0400 Subject: [PATCH] post planning should receive and return a dict --- src/auto_gpt_plugin_template/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auto_gpt_plugin_template/__init__.py b/src/auto_gpt_plugin_template/__init__.py index c8340dd..3ea2cb8 100644 --- a/src/auto_gpt_plugin_template/__init__.py +++ b/src/auto_gpt_plugin_template/__init__.py @@ -90,14 +90,14 @@ def can_handle_post_planning(self) -> bool: return False @abc.abstractmethod - def post_planning(self, response: str) -> str: + def post_planning(self, response: Dict[Any, Any]) -> Dict[Any, Any]: """This method is called after the planning chat completion is done. Args: - response (str): The response. + response (Dict[Any, Any]): The response. Returns: - str: The resulting response. + Dict[Any, Any]: The resulting response. """ pass