From 17478d6a05f1659f746b9156a8abdf3fcd3ee835 Mon Sep 17 00:00:00 2001 From: BillSchumacher <34168009+BillSchumacher@users.noreply.github.com> Date: Sun, 16 Apr 2023 00:09:11 -0500 Subject: [PATCH] Add post planning hook --- autogpt/agent/agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py index 934af42c..5d3383d8 100644 --- a/autogpt/agent/agent.py +++ b/autogpt/agent/agent.py @@ -73,6 +73,9 @@ class Agent: cfg.fast_token_limit, ) # TODO: This hardcodes the model to use GPT3.5. Make this an argument + for plugin in cfg.plugins: + assistant_reply = plugin.post_planning(self, assistant_reply) + # Print Assistant thoughts print_assistant_thoughts(self.ai_name, assistant_reply)