(self, input, log=False)
| 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 | |
| 128 | class CalculatorWorker(Node): |
nothing calls this directly
no test coverage detected