From fe85f079b08f919efecba1374073c9495ef6d5de Mon Sep 17 00:00:00 2001 From: BillSchumacher <34168009+BillSchumacher@users.noreply.github.com> Date: Mon, 17 Apr 2023 01:09:17 -0500 Subject: [PATCH] Fix early abort --- autogpt/agent/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py index 7b1b5e15..3a79760c 100644 --- a/autogpt/agent/agent.py +++ b/autogpt/agent/agent.py @@ -94,6 +94,8 @@ class Agent: assistant_reply_json = fix_json_using_multiple_techniques(assistant_reply) for plugin in cfg.plugins: + if not plugin.can_handle_post_planning(): + continue assistant_reply_json = plugin.post_planning(self, assistant_reply_json) # Print Assistant thoughts