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_armstrong_number", "description": "Checks if a number is an Armstrong number.", "parameters": {"num": {"description": "The number to check.", "type": "int"}}}, {"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]"}}}]
Can you calculate the weighted average grade for scores 85, 90, and 78 with weights 0.3, 0.4, and 0.3 respectively? Also, what if the scores are 70, 85, and 90 and the weights are 0.2, 0.5, and 0.3?
user
assistant
[{"name": "calculate_grade", "arguments": {"scores": [85, 90, 78], "weights": [0.3, 0.4, 0.3]}}, {"name": "calculate_grade", "arguments": {"scores": [70, 85, 90], "weights": [0.2, 0.5, 0.3]}}]