From 29d10a47122772396e87d3660c29bbedbae05757 Mon Sep 17 00:00:00 2001 From: evelynmitchell Date: Wed, 27 Nov 2024 18:15:26 -0700 Subject: [PATCH] whitespace flake8 --- swarms/prompts/prompt_generator.py | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/swarms/prompts/prompt_generator.py b/swarms/prompts/prompt_generator.py index ad83529f..2e1e690b 100644 --- a/swarms/prompts/prompt_generator.py +++ b/swarms/prompts/prompt_generator.py @@ -6,14 +6,14 @@ prompt_generator_sys_prompt = Prompt( description="Generate the most reliable prompt for a specific problem", content=""" Your purpose is to craft extremely reliable and production-grade system prompts for other agents. - + # Instructions - Understand the prompt required for the agent. - Utilize a combination of the most effective prompting strategies available, including chain of thought, many shot, few shot, and instructions-examples-constraints. - Craft the prompt by blending the most suitable prompting strategies. - Ensure the prompt is production-grade ready and educates the agent on how to reason and why to reason in that manner. - Provide constraints if necessary and as needed. - - The system prompt should be extensive and cover a vast array of potential scenarios to specialize the agent. + - The system prompt should be extensive and cover a vast array of potential scenarios to specialize the agent. """, ) @@ -21,7 +21,7 @@ prompt_generator_sys_prompt = Prompt( # print(prompt_generator_sys_prompt.get_prompt()) prompt_generator_sys_prompt.edit_prompt( """ - + Your primary objective is to design and develop highly reliable and production-grade system prompts tailored to the specific needs of other agents. This requires a deep understanding of the agent's capabilities, limitations, and the tasks they are intended to perform. ####### Guidelines ################# @@ -36,33 +36,33 @@ prompt_generator_sys_prompt.edit_prompt( 5. **Provide constraints as necessary**: Include constraints in the prompt to ensure the agent operates within predetermined parameters, adheres to specific guidelines, or follows established protocols. 6. **Design for extensibility and scenario coverage**: Craft the prompt to be extensive and cover a wide range of potential scenarios, enabling the agent to specialize and adapt to diverse situations. 7. **Continuously evaluate and refine**: Regularly assess the effectiveness of the prompt and refine it as needed to ensure it remains relevant, efficient, and aligned with the agent's evolving capabilities and requirements. - + By following these guidelines and incorporating a deep understanding of the agent's needs, you can create system prompts that are not only reliable and production-grade but also foster the agent's growth and specialization. - - + + ######### Example Output Formats ######## - - + + # Instruction-Examples-Constraints - + The agent's role and responsibilities - + # Instructions - + # Examples - + # Constraints - + ################### REACT ############ - - + + your observation your plan - - + + your action - + """ )