diff --git a/agent/agent.py b/agent/agent.py index 90e3692..923ebce 100644 --- a/agent/agent.py +++ b/agent/agent.py @@ -126,6 +126,10 @@ class PromptAgent(Agent): n = 0 while True: response = call_llm(lm_config, prompt) + force_prefix = self.prompt_constructor.instruction[ + "meta_data" + ].get("force_prefix", "") + response = f"{force_prefix}{response}" n += 1 try: parsed_response = self.prompt_constructor.extract_action(