human
Hi, can you help me calculate my age? I was born on 1990-05-15. And, I need to generate an invoice for a customer named John Doe. He bought 2 apples for $1 each and 3 oranges for $2 each.
function_call
[{"name": "calculate_age", "arguments": {"date_of_birth": "1990-05-15"}}, {"name": "generate_invoice", "arguments": {"customer_name": "John Doe", "items": [{"name": "apple", "quantity": 2, "price": 1}, {"name": "orange", "quantity": 3, "price": 2}]}}]
[{"name": "calculate_age", "description": "Calculate the age based on date of birth", "parameters": {"type": "object", "properties": {"date_of_birth": {"type": "string", "description": "The date of birth in format YYYY-MM-DD"}}, "required": ["date_of_birth"]}}, {"name": "calculate_loan_interest", "description": "Calculate the total interest paid on a loan", "parameters": {"type": "object", "properties": {"principal": {"type": "number", "description": "The principal amount of the loan"}, "interest_rate": {"type": "number", "description": "The annual interest rate"}, "loan_term": {"type": "integer", "description": "The loan term in years"}}, "required": ["principal", "interest_rate", "loan_term"]}}, {"name": "generate_invoice", "description": "Generate an invoice for a purchase", "parameters": {"type": "object", "properties": {"customer_name": {"type": "string", "description": "The name of the customer"}, "items": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "description": "The name of the item"}, "quantity": {"type": "integer", "description": "The quantity of the item"}, "price": {"type": "number", "description": "The price per unit of the item"}}, "required": ["name", "quantity", "price"]}}}, "required": ["customer_name", "items"]}}]
[{"name": "calculate_age", "arguments": {"date_of_birth": "1990-05-15"}}, {"name": "generate_invoice", "arguments": {"customer_name": "John Doe", "items": [{"name": "apple", "quantity": 2, "price": 1}, {"name": "orange", "quantity": 3, "price": 2}]}}]