MCPcopy Create free account
hub / github.com/MARIO-Math-Reasoning/Super_MARIO / ChoiceEnum

Function ChoiceEnum

mcts_math/config.py:35–37  ·  view source on GitHub ↗

return the Enum class used to enforce list of choices

(choices: List[str])

Source from the content-addressed store, hash-verified

33
34
35def ChoiceEnum(choices: List[str]):
36 """return the Enum class used to enforce list of choices"""
37 return StrEnum("Choices", {k: k for k in choices})
38
39
40_SEARCH_CHOICES = [

Callers 1

config.pyFile · 0.85

Calls 1

StrEnumClass · 0.85

Tested by

no test coverage detected