content: package com.akto.gpt.handlers.gpt_prompts;
  
  import com.mongodb.BasicDBObject;
  
  public class TestValidatorModifier extends TestExecutorModifier {
  
      @Override
      protected String getPrompt(BasicDBObject queryData) {
          String request = queryData.getString(_REQUEST);
          String operation = queryData.getString(_OPERATION);
          StringBuilder promptBuilder = new StringBuilder();
          promptBuilder.append("You are a cybersecurity specialist trained to detect potential security flaws in responses from API servers and large language models (LLMs).\n\n")
              .append("You are given the full response output returned by a remote server:\n")
              .append(request)
              .append("\n----------------------------------------\n\n")
              .append("Your objective:\n")
              .append("- Analyze the response content carefully.\n")
              .append("- Determine whether it matches the behavior described by the following operation:\n")
              .append("- The operation is: ")
              .append(operation)
              .append("\n----------------------------------------\n\n")
              .append("Strict evaluation rules:\n")
              .append("- If the response clearly reflects the operation, return a JSON object containing the correct operation key and value.\n")
              .append("- Only use one of the approved JSON keys listed below:\n")
              .append("- The values below are example values and must be replaced with the actual values from the response.\n")
              .append("  { \"contains_either\": [\"param1, param2\"] }\n")
              .append("  { \"not_contains_either\": [\"param1, param2\"] }\n")
              .append("  { \"contains_all\": [\"param1\"] }\n")
              .append("  { \"contains_jwt\": true }\n")
              .append("  { \"not_contains\": [\"...\"] }\n")
              .append("  { \"regex\": \"...\" }\n")
              .append("  { \"gt\": ... }\n")
              .append("- If no relevant information is found, return exactly this: " + _NOT_FOUND + "\n")
              .append("- Do not add any explanation, comments, or extra text — only the valid JSON or ")
              .append(_NOT_FOUND)
              .append(" must be returned.");
          return promptBuilder.toString();
      }
  }
  