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_longest_word", "description": "Finds the longest word in a list of words.", "parameters": {"words": {"description": "A list of words.", "type": "List[str]"}}}, {"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": "calculate_factorial", "description": "Calculates the factorial of a non-negative integer.", "parameters": {"n": {"description": "The non-negative integer.", "type": "int"}}}, {"name": "fibonacci", "description": "Calculates the nth Fibonacci number.", "parameters": {"n": {"description": "The position of the Fibonacci number.", "type": "int"}}}]
What is the longest word in the list ['hello', 'world', 'python', 'programming'] and what is the majority element in the list [1, 2, 3, 2, 2]?
user
assistant
[{"name": "find_longest_word", "arguments": {"words": ["hello", "world", "python", "programming"]}}, {"name": "find_majority_element", "arguments": {"nums": [1, 2, 3, 2, 2]}}]