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.

Add post planning hook

BillSchumacher17478d6a05f1
diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py
index 934af42c80..5d3383d835 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)