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

Function state_to_plain

codeclash/arenas/scml/runtime/run_scml.py:79–84  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

77
78
79def state_to_plain(state) -> dict[str, Any]:
80 return {
81 "step": to_plain(getattr(state, "step", None)),
82 "relative_time": to_plain(getattr(state, "relative_time", None)),
83 "current_offer": offer_to_plain(getattr(state, "current_offer", None)),
84 }
85
86
87def offer_to_plain(offer):

Callers 1

_base_observationMethod · 0.85

Calls 2

to_plainFunction · 0.85
offer_to_plainFunction · 0.85

Tested by

no test coverage detected