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": "is_valid_sudoku", "description": "Checks if a 9x9 Sudoku board is valid.", "parameters": {"board": {"description": "The Sudoku board represented as a 2D list of strings.", "type": "List[List[str]]"}}}, {"name": "calculate_angle", "description": "Calculates the angle between the hour and minute hands of a clock.", "parameters": {"hour": {"description": "The hour value (1-12).", "type": "int"}, "minute": {"description": "The minute value (0-59).", "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": "find_peak_element", "description": "Finds a peak element in a list of integers.", "parameters": {"nums": {"description": "The list of integers.", "type": "List[int]"}}}]
What will be the final amount if $5000 is invested at 3% annual interest for 5 years, compounded monthly?
user
assistant
[{"name": "compound_interest", "arguments": {"principal": 5000, "rate": 0.03, "time": 5, "n": 12}}]