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": "longest_common_prefix", "description": "Finds the longest common prefix among a list of strings.", "parameters": {"strs": {"description": "The list of strings.", "type": "List[str]"}}}, {"name": "is_subset", "description": "Checks if one set is a subset of another set.", "parameters": {"set1": {"description": "The first set.", "type": "set"}, "set2": {"description": "The second set.", "type": "set"}}}, {"name": "split_list", "description": "Splits a list into chunks of a specified size.", "parameters": {"lst": {"description": "The input list.", "type": "List"}, "chunk_size": {"description": "The size of each chunk.", "type": "int"}}}, {"name": "is_valid_parentheses", "description": "Checks if a string contains valid parentheses.", "parameters": {"s": {"description": "The input string.", "type": "str"}}}, {"name": "remove_duplicates", "description": "Removes duplicate elements from a list while preserving the order.", "parameters": {"lst": {"description": "The input list.", "type": "List"}}}, {"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": "get_range", "description": "Helper function to format the range string.", "parameters": {"start": {"description": "The start of the range.", "type": "int"}, "end": {"description": "The end of the range.", "type": "int"}}}]
Find the majority element in the list [2, 2, 1, 1, 1, 2, 2].
user
assistant
[{"name": "find_majority_element", "arguments": {"nums": [2, 2, 1, 1, 1, 2, 2]}}]