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": "batting_average", "description": "Calculates the batting average of a baseball player based on the number of hits and at-bats.", "parameters": {"num_hits": {"description": "The number of hits.", "type": "int", "default": 3}, "num_at_bats": {"description": "The number of at-bats.", "type": "int", "default": 3}, "precision": {"description": "The number of decimal places to round the batting average. Defaults to 3.", "type": "int, optional"}}}]
What is the duration between a note with a frequency of 440 Hz and another note with a frequency of 660 Hz at a tempo of 120 beats per minute? Also, calculate the batting average of a player who had 120 hits in 360 at-bats.
user
assistant
[{"name": "note_duration", "arguments": {"freq1": 440, "freq2": 660, "bpm": 120}}, {"name": "batting_average", "arguments": {"num_hits": 120, "num_at_bats": 360}}]