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": "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]"}}}]
In a recommendation system, user A's preferences are represented as [5, 3, 2] and user B's preferences are [2, 3, 5]. What is the cosine similarity between their preferences?
user
assistant
[{"name": "cosine_similarity", "arguments": {"vector_a": [5, 3, 2], "vector_b": [2, 3, 5]}}]