# app/tools/math.py class Calculator: def __init__(self): self.spec = type("Spec", (), {"name": "calculator"})() def add(self, a, b): return a + b def subtract(self, a, b): return a - b def multiply(self, a, b): return a * b def divide(self, a, b): return a / b if b != 0 else None