{
  "name": "illustrative-store-faq-guardrail",
  "description": "Illustrative example only. Tune every value against your own eval set before use.",
  "visibilityStatus": "SAVED",
  "blockedInputMessaging": "I can only help with questions about orders, shipping, returns, and our products.",
  "blockedOutputsMessaging": "I can't share that here. I can connect you with a team member.",
  "topicPolicyConfig": {
    "topicsConfig": [
      {
        "name": "InvestmentAdvice",
        "definition": "Recommendations about buying, selling, or holding stocks or other financial instruments.",
        "examples": ["Should I buy your stock?", "Is your company a good investment?"],
        "type": "DENY"
      },
      {
        "name": "MedicalAdvice",
        "definition": "Diagnosis, treatment, or medication guidance.",
        "examples": ["Is this safe with my blood pressure medication?"],
        "type": "DENY"
      }
    ]
  },
  "contentPolicyConfig": {
    "filtersConfig": [
      { "type": "HATE", "inputStrength": "HIGH", "outputStrength": "HIGH" },
      { "type": "INSULTS", "inputStrength": "MEDIUM", "outputStrength": "MEDIUM" },
      { "type": "PROMPT_ATTACK", "inputStrength": "HIGH", "outputStrength": "NONE" }
    ]
  },
  "wordPolicyConfig": {
    "managedWordListsConfig": [{ "type": "PROFANITY" }]
  },
  "sensitiveInformationPolicyConfig": {
    "piiEntitiesConfig": [
      { "type": "CREDIT_DEBIT_CARD_NUMBER", "action": "BLOCK" },
      { "type": "US_SOCIAL_SECURITY_NUMBER", "action": "BLOCK" },
      { "type": "EMAIL", "action": "ANONYMIZE" }
    ],
    "regexesConfig": [
      { "name": "OrderNumber", "description": "Example order id pattern, replace with yours", "pattern": "ORD-[0-9]{8}", "action": "ANONYMIZE" }
    ]
  },
  "contextualGroundingPolicyConfig": {
    "filtersConfig": [
      { "type": "GROUNDING", "threshold": 0.7 },
      { "type": "RELEVANCE", "threshold": 0.7 }
    ]
  }
}
