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": "count_occurrences", "description": "Counts the occurrences of each element in a list and returns a dictionary with the counts.", "parameters": {"lst": {"description": "The input list.", "type": "List"}}}, {"name": "calculate_factorial", "description": "Calculates the factorial of a non-negative integer.", "parameters": {"n": {"description": "The non-negative integer.", "type": "int"}}}, {"name": "find_longest_word", "description": "Finds the longest word in a list of words.", "parameters": {"words": {"description": "A list of words.", "type": "List[str]"}}}, {"name": "word_frequency", "description": "Calculates the frequency of each word in a text.", "parameters": {"text": {"description": "The input text.", "type": "str"}}}]
Calculate the factorial of 7, find the frequency of each word in the sentence 'I love to play soccer and basketball', and then count the occurrences of each element in the list [5, 5, 5, 10, 10, 15].
user
assistant
[{"name": "calculate_factorial", "arguments": {"n": 7}}, {"name": "word_frequency", "arguments": {"text": "I love to play soccer and basketball"}}, {"name": "count_occurrences", "arguments": {"lst": [5, 5, 5, 10, 10, 15]}}]