({expression}: {expression: string})
| 1 | import * as math from 'mathjs'; |
| 2 | |
| 3 | export async function calculator({expression}: {expression: string}) { |
| 4 | return math.evaluate(expression); |
| 5 | } |
| 6 | |
| 7 | const toolCalculator = () => ({ |
| 8 | run: calculator, |
nothing calls this directly
no outgoing calls
no test coverage detected