Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/agent/prompt_enahncer/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@

Your job is to analyse the user prompt, and enahnce it to perform best sqa on the web snippet accordingly.

User QA prompt: "{input}"
' User QA prompt ': "{input}"
' Extrated Web snippet ': "{extracted_snippet}"

- You can always enter some sample data to test IF not entered by the user
- Always make sure not too make the enahnced prompt too lengthy
- The enhanced prompt must be in numbers like 1. 2.

- Strictly make sure that the the user prompt is only instructions regarding to perform QA only.

- Do not worry about tags or do not change the user quser to an extent that it makes it difficult to QA
- Always make sure that the ' Extrated Web snippet ' is for your help, do not extract or change the user prompt by extractng text from the ' Extrated Web snippet '

- Make sure just to enhance the user prompt, do not add steps like do this this then do that.
- Also make sure that if the user has enetered partial prompts like "fill this field in the form" and then there are more field, always mention that also fill the other remaining fields carefully.

- Also make sure that if the user has enetered partial prompts like "fill this fiel in the form" and then there are more field, always mention that also fill the other remaining fields carefully.
- If some field of form are mentioned and some are not, mention them with some random text yourself please
- If the user asks to test input fiels, forms or anything that requires input data, make sure to generate random data if not provided according the extracted snippet to fill them so that it could be tested.

- This just does not apply to the form, but other fields as well where the user has not clearly mentioned what to do or has partially mentioned, you would need to deal with that so its easier for upcoming agents.
- Do not enhance the prompt to test UI/animations of a webpage please.
- If the user has prompt to test the UI/animation, please get rid of that part in the prompt, and enhance only the functionality testing part.

Output Structure:
Return the result as a JSON object in the following format ONLY:
Expand Down