MCPcopy Create free account
hub / github.com/GAIR-NLP/factool / run

Method run

factool/math/tool.py:27–35  ·  view source on GitHub ↗
(self, snippet)

Source from the content-addressed store, hash-verified

25 return output
26
27 def run(self, snippet):
28 if snippet == None:
29 return None
30 exec_result = self.run_single(snippet)
31 if exec_result and 'False' in exec_result:
32 exec_result = 'False'
33 else:
34 exec_result = 'True'
35 return exec_result

Calls 1

run_singleMethod · 0.95

Tested by

no test coverage detected