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": "is_perfect_square", "description": "Checks if a number is a perfect square.", "parameters": {"num": {"description": "The number to check.", "type": "int"}}}, {"name": "cosine_similarity", "description": "Calculates the cosine similarity between two vectors.", "parameters": {"vector_a": {"description": "The first vector.", "type": "List[float]"}, "vector_b": {"description": "The second vector.", "type": "List[float]"}}}]
Calculate the cosine similarity between vectors (1, 2, 3, 4) and (4, 3, 2, 1).
user
assistant
[{"name": "cosine_similarity", "arguments": {"vector_a": [1, 2, 3, 4], "vector_b": [4, 3, 2, 1]}}]