Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fix early abort

BillSchumacherfe85f079b08f
diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py
index 7b1b5e1520..3a79760cc7 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