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": "note_duration", "description": "Calculates the duration between two musical notes based on their frequencies and the tempo.", "parameters": {"freq1": {"description": "The frequency of the first note in Hz.", "type": "int", "default": 120}, "freq2": {"description": "The frequency of the second note in Hz.", "type": "int", "default": 120}, "bpm": {"description": "The tempo of the music in beats per minute. Defaults to 120.", "type": "int, optional"}}}, {"name": "sort_numbers", "description": "Sorts a list of numbers in ascending or descending order.", "parameters": {"numbers": {"description": "The list of numbers to be sorted.", "type": "List[float]"}, "descending": {"description": "If True, sorts the numbers in descending order. Defaults to False.", "type": "bool, optional"}}}, {"name": "is_power_of_two", "description": "Checks if a number is a power of two.", "parameters": {"num": {"description": "The number to check.", "type": "int"}}}]
Calculate the duration between a 262 Hz and 392 Hz note at 140 BPM, sort this list [0.5, 0.7, 0.3] in ascending order, and determine if 64 is a power of two.
user
assistant
[{"name": "note_duration", "arguments": {"freq1": 262, "freq2": 392, "bpm": 140}}, {"name": "sort_numbers", "arguments": {"numbers": [0.5, 0.7, 0.3]}}, {"name": "is_power_of_two", "arguments": {"num": 64}}]