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

Method __init__

demo.py:76–85  ·  view source on GitHub ↗
(
        self,
        failure_rate: float = 0.6,
        failure_mode: FailureMode = FailureMode.SCHEMA_VIOLATION,
        simulate_latency: bool = True,
    )

Source from the content-addressed store, hash-verified

74 """
75
76 def __init__(
77 self,
78 failure_rate: float = 0.6,
79 failure_mode: FailureMode = FailureMode.SCHEMA_VIOLATION,
80 simulate_latency: bool = True,
81 ):
82 self.failure_rate = failure_rate
83 self.failure_mode = failure_mode
84 self.simulate_latency = simulate_latency
85 self._call_count = 0
86
87 def __call__(self, prompt: str) -> str:
88 self._call_count += 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected