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": "calculate_factorial", "description": "Calculates the factorial of a non-negative integer.", "parameters": {"n": {"description": "The non-negative integer.", "type": "int"}}}, {"name": "calculate_age", "description": "Calculates the age based on the birthdate.", "parameters": {"birthdate": {"description": "The birthdate in the format 'YYYY-MM-DD'.", "type": "str"}}}, {"name": "is_palindrome", "description": "Checks if a string is a palindrome.", "parameters": {"text": {"description": "The input string.", "type": "str"}}}, {"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": "is_rotation", "description": "Checks if one string is a rotation of another string.", "parameters": {"str1": {"description": "The first string.", "type": "str"}, "str2": {"description": "The second string.", "type": "str"}}}]
Is the string 'waterbottle' a rotation of 'erbottlewat'?
user
assistant
[{"name": "is_rotation", "arguments": {"str1": "waterbottle", "str2": "erbottlewat"}}]