File size: 588 Bytes
1b82460
 
 
 
 
 
 
f051f2e
 
 
d78ac98
f051f2e
1b82460
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
POLICY_NOTICE = (
    "ClarityOps provides operational & executive decision support. "
    "It is not a diagnostic tool. For clinical decisions, follow institutional protocols and escalate as required."
)

def safety_filter(text: str, mode: str = "input"):
    # Add real safety stack here (prompt attack detection, prohibited intents, etc.)
    blocked = False
    reason = ""
    return text, blocked, reason

def refusal_reply(reason: str):
    if reason:
        return f"Sorry, I can’t help with that. {POLICY_NOTICE}"
    return f"Sorry, I can’t help with that. {POLICY_NOTICE}"