human
I am looking for a product named "Galaxy S21" in the category "Smartphones". And, Hi, I need help calculating my GPA. I have my grades and credit hours for each course. Okay, here they are. For English, I got an A and it was 3 credit hours. For Math, I got a B and it was 4 credit hours. For Science, I got a C and it was 3 credit hours. And, Hi, I need to know the distance between New York and Los Angeles.
function_call
[{"name": "search_product", "arguments": {"name": "Galaxy S21", "category": "Smartphones"}}, {"name": "calculate_gpa", "arguments": {"grades": [{"course": "English", "grade": "A", "credit_hours": 3}, {"course": "Math", "grade": "B", "credit_hours": 4}, {"course": "Science", "grade": "C", "credit_hours": 3}]}}, {"name": "calculate_distance", "arguments": {"start_location": "New York", "end_location": "Los Angeles"}}]
[{"name": "search_product", "description": "Search for a product by name or category", "parameters": {"type": "object", "properties": {"name": {"type": "string", "description": "The name of the product"}, "category": {"type": "string", "description": "The category of the product"}}, "required": ["name", "category"]}}, {"name": "calculate_gpa", "description": "Calculate the Grade Point Average (GPA)", "parameters": {"type": "object", "properties": {"grades": {"type": "array", "description": "The list of grades", "items": {"type": "object", "properties": {"course": {"type": "string", "description": "The name of the course"}, "grade": {"type": "string", "description": "The grade obtained in the course"}, "credit_hours": {"type": "number", "description": "The credit hours for the course"}}, "required": ["course", "grade", "credit_hours"]}}}, "required": ["grades"]}}, {"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"start_location": {"type": "string", "description": "The starting location"}, "end_location": {"type": "string", "description": "The ending location"}}, "required": ["start_location", "end_location"]}}]
[{"name": "search_product", "arguments": {"name": "Galaxy S21", "category": "Smartphones"}}, {"name": "calculate_gpa", "arguments": {"grades": [{"course": "English", "grade": "A", "credit_hours": 3}, {"course": "Math", "grade": "B", "credit_hours": 4}, {"course": "Science", "grade": "C", "credit_hours": 3}]}}, {"name": "calculate_distance", "arguments": {"start_location": "New York", "end_location": "Los Angeles"}}]