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

Method _good_response

demo.py:105–108  ·  view source on GitHub ↗
(self, prompt: str)

Source from the content-addressed store, hash-verified

103 return self._good_response(prompt)
104
105 def _good_response(self, prompt: str) -> str:
106 if "json" in prompt.lower() or "JSON" in prompt:
107 return random.choice(GOOD_JSON_RESPONSES)
108 return random.choice(GOOD_TEXT_RESPONSES)
109
110 def _bad_response(self) -> str:
111 if self.failure_mode == FailureMode.SCHEMA_VIOLATION:

Callers 1

__call__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected