Test Skill - Calculator
What to do
- •Parse the user's arithmetic request (e.g., "calculate 5 + 3", "what is 10 * 20")
- •Perform the calculation
- •Return the result in a clear format
Supported Operations
- •Addition (+)
- •Subtraction (-)
- •Multiplication (*)
- •Division (/)
Output format
- •Confirm the operation: "Calculating [expression]..."
- •Show the result: "Result: [number]"
- •Add a friendly closing message
Example
User: "What is 15 + 25?" Response:
code
Calculating 15 + 25... Result: 40 Hope this helps! 🧮
Notes
- •For division by zero, return an error message
- •Support both integer and floating-point numbers
- •Handle invalid expressions gracefully