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

Method run

mcts_math/tools/python_tool.py:171–184  ·  view source on GitHub ↗
(
        self,
        query: str,
    )

Source from the content-addressed store, hash-verified

169 return "{}: {}".format(type(e).__name__, str(e))
170
171 def run(
172 self,
173 query: str,
174 ) -> str:
175
176 @timeout(TIMEOUT_SECONDS, use_signals=self.use_signals, exception_message=TIMEOUT_MESSAGE)
177 def base_run(query: str) -> str:
178 return self._base_run(query)
179
180 try:
181 ret = base_run(query)
182 return ret
183 except Exception as e:
184 return "{}: {}".format(type(e).__name__, str(e))
185
186
187def parse_args():

Callers 2

python_tool.pyFile · 0.80
_toolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected