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": "find_majority_element", "description": "Finds the majority element in a list, which appears more than \u230an / 2\u230b times.", "parameters": {"nums": {"description": "The input list of integers.", "type": "List[int]"}}}, {"name": "find_files", "description": "Finds all files with a specific extension in a directory and its subdirectories.", "parameters": {"directory": {"description": "The directory to search in.", "type": "str"}, "extension": {"description": "The file extension to search for.", "type": "str"}}}, {"name": "word_frequency", "description": "Calculates the frequency of each word in a text.", "parameters": {"text": {"description": "The input text.", "type": "str"}}}, {"name": "format_date", "description": "Converts a date string from one format to another.", "parameters": {"date": {"description": "The date string to convert.", "type": "str"}, "input_format": {"description": "The format of the input date string.", "type": "str"}, "output_format": {"description": "The desired format of the output date string.", "type": "str"}}}]
Find the majority element, if it exists, in the list [1, 2, 3, 2, 2].
user
assistant
[{"name": "find_majority_element", "arguments": {"nums": [1, 2, 3, 2, 2]}}]