\ def safety_filter(text, mode="input"): # Placeholder safety filter (replace with real policy if needed). blocked = False reason = "" return text, blocked, reason def refusal_reply(reason: str): return "Sorry, I can't help with that request."