Solve math problems accurately using the compute tool. Use when the user asks to calculate, compute, or figure out anything involving numbers, percentages, conversions, or arithmetic.
Solve math problems by using the compute tool rather than doing mental
math. This ensures accuracy for arithmetic, percentages, unit conversions,
and any numeric computation.
tool_request with tool: "compute" and
input as the Python expression string.response should explain what you're computing and why, but
leave the final numeric answer for after the tool returns.The compute tool evaluates Python expressions. You can use:
2 + 3, 10 / 3, 7 * 82 ** 10(100 - 15) / 3math module is available: math.sqrt(144), math.pi * 5**2round(847.50 * 0.18, 2)round(..., 2).