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": "reverse_words", "description": "Reverses the order of words in a sentence.", "parameters": {"sentence": {"description": "The input sentence.", "type": "str"}}}, {"name": "calculate_grade", "description": "Calculates the weighted average grade based on scores and their corresponding weights.", "parameters": {"scores": {"description": "A list of scores.", "type": "List[float]"}, "weights": {"description": "A list of weights corresponding to each score.", "type": "List[float]"}}}]
Reverse the sentence 'The quick brown fox' and calculate the weighted average grade for a student with scores [85, 90, 78] and weights [0.3, 0.4, 0.3].
user
assistant
[{"name": "reverse_words", "arguments": {"sentence": "The quick brown fox"}}, {"name": "calculate_grade", "arguments": {"scores": [85, 90, 78], "weights": [0.3, 0.4, 0.3]}}]