human
Hi, I need help with calculating my tax. My income is $50000 and the tax rate is 20%. And, Hi, I need to know the distance between New York and Los Angeles. And, Hi, I need a QR code for my website. Yes, it's www.mywebsite.com. And, Hi, I need help calculating my GPA. I have the grades and credit hours for each course. Sure, here they are. My grades are A, B, A, C and the credit hours are 3, 4, 3, 2 respectively.
function_call
[{"name": "calculate_tax", "arguments": {"income": 50000, "tax_rate": 20}}, {"name": "calculate_distance", "arguments": {"start_location": "New York", "end_location": "Los Angeles"}}, {"name": "generate_qr_code", "arguments": {"text": "www.mywebsite.com"}}, {"name": "calculate_gpa", "arguments": {"grades": ["A", "B", "A", "C"], "credit_hours": [3, 4, 3, 2]}}]
[{"name": "calculate_tax", "description": "Calculate the tax amount based on income and tax rate", "parameters": {"type": "object", "properties": {"income": {"type": "number", "description": "The income amount"}, "tax_rate": {"type": "number", "description": "The tax rate in percentage"}}, "required": ["income", "tax_rate"]}}, {"name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": {"type": "object", "properties": {"weight": {"type": "number", "description": "The weight in kilograms"}, "height": {"type": "number", "description": "The height in meters"}}, "required": ["weight", "height"]}}, {"name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": {"type": "object", "properties": {"start_location": {"type": "string", "description": "Starting location"}, "end_location": {"type": "string", "description": "Ending location"}}, "required": ["start_location", "end_location"]}}, {"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"}}}}, {"name": "generate_qr_code", "description": "Generate a QR code for a given text", "parameters": {"type": "object", "properties": {"text": {"type": "string", "description": "The text to be encoded"}}, "required": ["text"]}}, {"name": "calculate_gpa", "description": "Calculate the Grade Point Average (GPA)", "parameters": {"type": "object", "properties": {"grades": {"type": "array", "items": {"type": "string"}, "description": "The grades obtained"}, "credit_hours": {"type": "array", "items": {"type": "number"}, "description": "The credit hours for each course"}}}}]
[{"name": "calculate_tax", "arguments": {"income": 50000, "tax_rate": 20}}, {"name": "calculate_distance", "arguments": {"start_location": "New York", "end_location": "Los Angeles"}}, {"name": "generate_qr_code", "arguments": {"text": "www.mywebsite.com"}}, {"name": "calculate_gpa", "arguments": {"grades": ["A", "B", "A", "C"], "credit_hours": [3, 4, 3, 2]}}]