File size: 376 Bytes
6364e69
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import annotations

from typing import Dict


class GuardSignals:
    """Stub guard adapter that tags risky content."""

    def label(self, text: str) -> Dict[str, str]:
        lowered = text.lower()
        label = "safe"
        if any(term in lowered for term in ["weapon", "exploit", "phish"]):
            label = "risk"
        return {"label": label}