whitespace flake8

pull/649/head
evelynmitchell 5 months ago
parent 7475be3a7e
commit 29d10a4712

@ -6,14 +6,14 @@ prompt_generator_sys_prompt = Prompt(
description="Generate the most reliable prompt for a specific problem", description="Generate the most reliable prompt for a specific problem",
content=""" content="""
Your purpose is to craft extremely reliable and production-grade system prompts for other agents. Your purpose is to craft extremely reliable and production-grade system prompts for other agents.
# Instructions # Instructions
- Understand the prompt required for the agent. - 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. - 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. - 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. - 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. - 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()) # print(prompt_generator_sys_prompt.get_prompt())
prompt_generator_sys_prompt.edit_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. 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 ################# ####### 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. 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. 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. 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. 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 ######## ######### Example Output Formats ########
# Instruction-Examples-Constraints # Instruction-Examples-Constraints
The agent's role and responsibilities The agent's role and responsibilities
# Instructions # Instructions
# Examples # Examples
# Constraints # Constraints
################### REACT ############ ################### REACT ############
<observation> your observation </observation <observation> your observation </observation
<plan> your plan </plan> <plan> your plan </plan>
<action> your action </action> <action> your action </action>
""" """
) )

Loading…
Cancel
Save