MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / run

Method run

eval_heldout/rewoo/nodes/Worker.py:118–125  ·  view source on GitHub ↗
(self, input, log=False)

Source from the content-addressed store, hash-verified

116 "Algebraic equation. Input should be an equation or function."
117
118 def run(self, input, log=False):
119 assert isinstance(input, self.input_type)
120 tool = CustomWolframAlphaAPITool()
121 evidence = tool.run(input).replace("Answer:", "").strip()
122 assert isinstance(evidence, self.output_type)
123 if log:
124 print(f"Running {self.name} with input {input}\nOutput: {evidence}\n")
125 return evidence
126
127
128class CalculatorWorker(Node):

Callers

nothing calls this directly

Calls 2

runMethod · 0.95

Tested by

no test coverage detected