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": "v1_caloriesburned", "description": "Fetches the number of calories burned for a given activity using the API Ninjas Calories Burned API.", "parameters": {"activity": {"description": "The name of the activity. Partial values are allowed (e.g., 'ski' will match both 'water skiing' and 'downhill skiing').", "type": "str", "default": "skiing"}, "weight": {"description": "Weight of the user in pounds (must be between 50 and 500). Defaults to None.", "type": "int, optional", "default": ""}, "duration": {"description": "Duration of the activity in minutes (must be 1 or greater). Defaults to None.", "type": "str, optional", "default": ""}}}, {"name": "target_heart_rate", "description": "Calculates the target heart rate range for cardiovascular exercise using the Karvonen method based on the user's age and fitness level.", "parameters": {"age": {"description": "The age of the user in years.", "type": "int", "default": "27"}, "fitness_level": {"description": "The fitness level of the user. Acceptable values are \"beginner\", \"intermediate\", and \"advanced\".", "type": "str", "default": "beginner"}}}]
How many calories does a 180-pound person burn playing basketball for 40 minutes and hiking for an hour?
user
assistant
[{"name": "v1_caloriesburned", "arguments": {"activity": "basketball", "weight": 180, "duration": "40"}}, {"name": "v1_caloriesburned", "arguments": {"activity": "hiking", "weight": 180, "duration": "60"}}]