You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "factorial", "description": "Computes the factorial of a non-negative integer.", "parameters": {"n": {"description": "The non-negative integer to compute the factorial of.", "type": "int"}}}, {"name": "compound_interest", "description": "Calculates the compound interest of an investment.", "parameters": {"principal": {"description": "The initial investment amount.", "type": "float", "default": 1}, "rate": {"description": "The annual interest rate expressed as a decimal.", "type": "float", "default": 1}, "time": {"description": "The time in years for which the investment is held.", "type": "float"}, "n": {"description": "The number of times interest is compounded per year. Defaults to 1.", "type": "int, optional"}}}, {"name": "circle_area", "description": "Computes the area of a circle given its radius.", "parameters": {"radius": {"description": "The radius of the circle.", "type": "float"}}}]
I have an investment of $1000 with an annual interest rate of 5% compounded monthly for 3 years. What will be the final amount?
user
assistant
[{"name": "compound_interest", "arguments": {"principal": 1000, "rate": 0.05, "time": 3, "n": 12}}]