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": "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"}}}, {"name": "calculate_median", "description": "Calculates the median of a list of numbers.", "parameters": {"numbers": {"description": "The list of numbers.", "type": "List[Union[int, float]]"}}}, {"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"}}}]
Sort the numbers [1.2, 3.4, 2.1, 5.6, 4.3] in descending order, and find the batting average with 20 hits in 80 at-bats to 2 decimal places.
user
assistant
[{"name": "sort_numbers", "arguments": {"numbers": [1.2, 3.4, 2.1, 5.6, 4.3], "descending": true}}, {"name": "batting_average", "arguments": {"num_hits": 20, "num_at_bats": 80, "precision": 2}}]