diff --git a/swarms/agents/base.py b/swarms/agents/base.py index cb98bd50..056254f0 100644 --- a/swarms/agents/base.py +++ b/swarms/agents/base.py @@ -76,8 +76,7 @@ class Agent: def run(self, goals: List[str]) -> str: user_input = ( - "Determine which next command to use, " - "and respond using the format specified above:" + "Determine which next command to use, and respond using the format specified above:" ) # Interaction Loop loop_count = 0 @@ -120,11 +119,10 @@ class Agent: result = f"Error: {action.args}. " else: result = ( - f"Unknown command '{action.name}'. " - f"Please refer to the 'COMMANDS' list for available " - f"commands and only respond in the specified JSON format." + f"""Unknown command '{action.name}'. + Please refer to the 'COMMANDS' list for available + commands and only respond in the specified JSON format.""" ) - memory_to_add = ( f"Assistant Reply: {assistant_reply} " f"\nResult: {result} " ) diff --git a/swarms/agents/models/prompts/agent_prompt_auto.py b/swarms/agents/models/prompts/agent_prompt_auto.py index e50bdf7d..088a4012 100644 --- a/swarms/agents/models/prompts/agent_prompt_auto.py +++ b/swarms/agents/models/prompts/agent_prompt_auto.py @@ -16,12 +16,12 @@ class PromptConstructor: def construct_full_prompt(self, goals: List[str]) -> str: prompt_start = ( - "Your decisions must always be made independently " - "without seeking user assistance.\n" - "Play to your strengths as an LLM and pursue simple " - "strategies with no legal complications.\n" - "If you have completed all your tasks, make sure to " - 'use the "finish" command.' + """Your decisions must always be made independently + without seeking user assistance.\n + Play to your strengths as an LLM and pursue simple + strategies with no legal complications.\n + If you have completed all your tasks, make sure to + use the "finish" command.""" ) # Construct full prompt full_prompt = (