MCPcopy Create free account
hub / github.com/Emmimal/control-layer / __init__

Method __init__

control_layer.py:247–252  ·  view source on GitHub ↗
(self, max_input_chars: int = 2000)

Source from the content-addressed store, hash-verified

245 """
246
247 def __init__(self, max_input_chars: int = 2000):
248 self.max_input_chars = max_input_chars
249 self._patterns = [
250 re.compile(p, re.IGNORECASE | re.DOTALL)
251 for p in INJECTION_PATTERNS
252 ]
253
254 def validate(self, user_input: str) -> ValidationResult:
255 if not user_input or not user_input.strip():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected