human
I am looking for books written by J.K. Rowling. And, Hi, I was born on 1990-05-15. Can you tell me how old I am today? And, Hi, I need help with calculating a tip. My bill is $50 and I want to leave a 15% tip.
function_call
[{"name": "search_books", "arguments": {"query": "J.K. Rowling"}}, {"name": "calculate_age", "arguments": {"birthdate": "1990-05-15"}}, {"name": "calculate_tip", "arguments": {"bill_amount": 50, "tip_percentage": 15}}]
[{"name": "search_books", "description": "Search for books by title or author", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query"}}, "required": ["query"]}}, {"name": "get_news_headlines", "description": "Get the latest news headlines", "parameters": {"type": "object", "properties": {"country": {"type": "string", "description": "The country for which to retrieve news headlines"}}, "required": ["country"]}}, {"name": "calculate_age", "description": "Calculate the age based on the birthdate", "parameters": {"type": "object", "properties": {"birthdate": {"type": "string", "description": "The birthdate of the person (in format 'YYYY-MM-DD')"}}, "required": ["birthdate"]}}, {"name": "calculate_tip", "description": "Calculate the tip amount for a bill", "parameters": {"type": "object", "properties": {"bill_amount": {"type": "number", "description": "The total bill amount"}, "tip_percentage": {"type": "number", "description": "The percentage of tip to be given"}}, "required": ["bill_amount", "tip_percentage"]}}, {"name": "calculate_mortgage_payments", "description": "Calculate the monthly mortgage payments", "parameters": {"type": "object", "properties": {"loan_amount": {"type": "number", "description": "The loan amount"}, "interest_rate": {"type": "number", "description": "The annual interest rate"}, "loan_term": {"type": "integer", "description": "The loan term in years"}}, "required": ["loan_amount", "interest_rate", "loan_term"]}}]
[{"name": "search_books", "arguments": {"query": "J.K. Rowling"}}, {"name": "calculate_age", "arguments": {"birthdate": "1990-05-15"}}, {"name": "calculate_tip", "arguments": {"bill_amount": 50, "tip_percentage": 15}}]