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": "light_travel_time", "description": "Calculate the time taken for light to travel from one celestial body to another.", "parameters": {"distance_in_light_years": {"description": "The distance between the two celestial bodies in light years.", "type": "int", "default": 299792458}, "speed_of_light": {"description": "The speed of light in vacuum, in m/s. Default value is 299792458 m/s.", "type": "int", "default": 299792458}}}, {"name": "matrix_multiply", "description": "Multiplies two matrices.", "parameters": {"matrix_a": {"description": "The first matrix.", "type": "List[List[float]]"}, "matrix_b": {"description": "The second matrix.", "type": "List[List[float]]"}}}, {"name": "solve_quadratic", "description": "Computes the roots of a quadratic equation given its coefficients.", "parameters": {"a": {"description": "The coefficient of the quadratic term (x^2).", "type": "float"}, "b": {"description": "The coefficient of the linear term (x).", "type": "float"}, "c": {"description": "The constant term.", "type": "float"}}}, {"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"}}}]
What is the final amount of an investment of $1000, with an annual interest rate of 5% compounded quarterly, after 5 years?
user
assistant
[{"name": "compound_interest", "arguments": {"principal": 1000, "rate": 0.05, "time": 5, "n": 4}}]