Skip to content

Latest commit

 

History

History
89 lines (68 loc) · 2.04 KB

PROMPTS.md

File metadata and controls

89 lines (68 loc) · 2.04 KB

Useful Prompts

code evaluation agent

evaluator_prompt = """ Evaluate this following code implementation for:

  1. code correctness
  2. time complexity
  3. style and best practices

You should be evaluating only and not attemping to solve the task. Only output "PASS" if all criteria are met and you have no further suggestions for improvements. Output your evaluation concisely in the following format.

PASS, NEEDS_IMPROVEMENT, or FAIL What needs improvement and why. """

code generator

generator_prompt = """ Your goal is to complete the task based on . If there are feedback from your previous generations, you should reflect on them to improve your solution

Output your answer concisely in the following format:

[Your understanding of the task and feedback and how you plan to improve] [Your code implementation here] """

task = """ Implement a Stack with:

  1. push(x)
  2. pop()
  3. getMin() All operations should be O(1). </user input> """

orchastrator

ORCHESTRATOR_PROMPT = """ Analyze this task and break it down into 2-3 distinct approaches:

Task: {task}

Return your response in this format:

Explain your understanding of the task and which variations would be valuable. Focus on how each approach serves different aspects of the task. formal Write a precise, technical version that emphasizes specifications conversational Write an engaging, friendly version that connects with readers """

WORKER_PROMPT = """ Generate content based on: Task: {original_task} Style: {task_type} Guidelines: {task_description}

Return your response in this format:

Your content here, maintaining the specified style and fully addressing requirements. """

prompts from the following posts https://github.com/anthropics/anthropic-cookbook/tree/main