MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / response_to_name

Function response_to_name

codeclash/arenas/scml/runtime/run_scml.py:93–100  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

91
92
93def response_to_name(response) -> str:
94 if response == ResponseType.ACCEPT_OFFER:
95 return "accept"
96 if response == ResponseType.REJECT_OFFER:
97 return "reject"
98 if response == ResponseType.END_NEGOTIATION:
99 return "end"
100 return str(response).lower()
101
102
103def awi_to_plain(agent) -> dict[str, Any]:

Callers 2

respondMethod · 0.85
counter_allMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected