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": "remove_duplicates", "description": "Removes duplicate elements from a list while preserving the order.", "parameters": {"lst": {"description": "The input list.", "type": "List"}}}, {"name": "generate_password", "description": "Generates a random password of specified length and character types.", "parameters": {"length": {"description": "The length of the password. Defaults to 12.", "type": "int, optional", "default": 12}, "include_special": {"description": "Whether to include special characters in the password. Defaults to True.", "type": "bool, optional", "default": true}}}, {"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": "is_palindrome", "description": "Checks if a string is a palindrome.", "parameters": {"text": {"description": "The input string.", "type": "str"}}}, {"name": "count_vowels", "description": "Counts the number of vowels in a given text.", "parameters": {"text": {"description": "The input text.", "type": "str"}}}, {"name": "find_duplicate_number", "description": "Finds the duplicate number in a list of integers.", "parameters": {"nums": {"description": "The list of integers.", "type": "List[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": "generate_random_string", "description": "Generates a random string of specified length and character types.", "parameters": {"length": {"description": "The length of the random string.", "type": "int", "default": true}, "uppercase": {"description": "Include uppercase letters. Defaults to True.", "type": "bool, optional", "default": true}, "lowercase": {"description": "Include lowercase letters. Defaults to True.", "type": "bool, optional", "default": true}, "digits": {"description": "Include digits. Defaults to True.", "type": "bool, optional"}, "special_chars": {"description": "Include special characters. Defaults to False.", "type": "bool, optional", "default": true}}}]
Find the duplicate number in the list [1, 3, 4, 2, 2]
user
assistant
[{"name": "find_duplicate_number", "arguments": {"nums": [1, 3, 4, 2, 2]}}]