Spaces:
Sleeping
Sleeping
| 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}" |