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

Method generate

mcts_math/agents/react.py:98–105  ·  view source on GitHub ↗

generate as a linked list root -> x -> y -> z

(self)

Source from the content-addressed store, hash-verified

96 return not self.current_node.is_terminal and self.current_node.depth <= self.config.max_depth
97
98 def generate(self) -> None:
99 """
100 generate as a linked list
101 root -> x -> y -> z
102 """
103 while self.should_generate_next():
104 step_result, parser_result = self.get_parsable_samples()
105 self.update_current_node(step_result, parser_result)
106
107 def update_current_node(
108 self,

Callers

nothing calls this directly

Calls 3

should_generate_nextMethod · 0.95
get_parsable_samplesMethod · 0.95
update_current_nodeMethod · 0.95

Tested by

no test coverage detected