feat: register airline off-topic restriction in policy templates backup

This commit is contained in:
Ishaan Jaffer 2026-02-19 13:36:39 -08:00
parent f84e087e3b
commit c6a365d0f5

View file

@ -1692,6 +1692,51 @@
"Security"
]
},
{
"id": "airline-off-topic-restriction",
"title": "Airline Off-Topic Restriction",
"description": "Restricts an airline chatbot to airline-related topics only. Blocks off-topic questions about news, sports, coding, politics, entertainment, finance, recipes, homework, and general knowledge using keyword-based detection with no additional LLM calls.",
"icon": "ShieldExclamationIcon",
"iconColor": "text-orange-500",
"iconBg": "bg-orange-50",
"guardrails": [
"airline-off-topic-filter"
],
"complexity": "Medium",
"guardrailDefinitions": [
{
"guardrail_name": "airline-off-topic-filter",
"litellm_params": {
"guardrail": "litellm_content_filter",
"mode": "pre_call",
"categories": [
{
"category": "airline_off_topic_restriction",
"category_file": "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/policy_templates/airline_off_topic_restriction.yaml",
"enabled": true,
"action": "BLOCK",
"severity_threshold": "medium"
}
]
},
"guardrail_info": {
"description": "Blocks off-topic questions unrelated to airline services (news, sports, coding, politics, entertainment, finance, recipes, etc.)"
}
}
],
"templateData": {
"policy_name": "airline-off-topic-restriction",
"description": "Restricts chatbot to airline-related topics. Blocks off-topic questions using keyword matching with no extra LLM calls.",
"guardrails_add": [
"airline-off-topic-filter"
],
"guardrails_remove": []
},
"tags": [
"Aviation",
"Topic Restriction"
]
},
{
"id": "uae-regulatory-compliance",
"title": "UAE Regulatory Compliance",