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

Method _bad_response

demo.py:110–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 return random.choice(GOOD_TEXT_RESPONSES)
109
110 def _bad_response(self) -> str:
111 if self.failure_mode == FailureMode.SCHEMA_VIOLATION:
112 return random.choice(BAD_JSON_RESPONSES)
113 if self.failure_mode == FailureMode.CONSTRAINT_VIOLATION:
114 return random.choice(LONG_RESPONSES + FORBIDDEN_RESPONSES)
115 return ""
116
117
118def make_deterministic_llm(responses: list):

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected