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.
Fixed stacking prompt instructions (#5520)
NeonN3mesisf227d5adb194
diff --git a/autogpts/autogpt/autogpt/agents/agent.py b/autogpts/autogpt/autogpt/agents/agent.pyindex a7267959ed..05ce17f221 100644--- a/autogpts/autogpt/autogpt/agents/agent.py+++ b/autogpts/autogpt/autogpt/agents/agent.py@@ -108,10 +108,12 @@ class Agent(def build_prompt(self,*args,- extra_messages: list[ChatMessage] = [],+ extra_messages: [list[ChatMessage]] = None,include_os_info: Optional[bool] = None,**kwargs,) -> ChatPrompt:+ if extra_messages is None:+ extra_messages = []# Clockextra_messages.append(ChatMessage.system(f"The current time and date is {time.strftime('%c')}"),