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"}}}]
Find the longest word in the list ['python', 'programming', 'is', 'fun'] and calculate the factorial of 7.
user
assistant
[{"name": "find_longest_word", "arguments": {"words": ["python", "programming", "is", "fun"]}}, {"name": "calculate_factorial", "arguments": {"n": 7}}]