human
Hi, I need help with calculating my loan payment. Sure, the principal amount is $20000, the annual interest rate is 5%, and the term is 60 months. And, Hi, I need help with calculating my mortgage payment. Sure, the loan amount is $200,000, the annual interest rate is 3.5%, and the loan term is 30 years.
function_call
[{"name": "calculate_loan_payment", "arguments": {"principal": 20000, "interest_rate": 5, "term": 60}}, {"name": "calculate_mortgage_payment", "arguments": {"loan_amount": 200000, "interest_rate": 3.5, "loan_term": 30}}]
[{"name": "calculate_loan_payment", "description": "Calculate the monthly payment for 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 for the loan"}, "term": {"type": "integer", "description": "The term of the loan in months"}}, "required": ["principal", "interest_rate", "term"]}}, {"name": "get_stock_price", "description": "Get the current price of a stock", "parameters": {"type": "object", "properties": {"symbol": {"type": "string", "description": "The stock symbol"}}, "required": ["symbol"]}}, {"name": "calculate_mortgage_payment", "description": "Calculate the monthly mortgage payment", "parameters": {"type": "object", "properties": {"loan_amount": {"type": "number", "description": "The loan amount in dollars"}, "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": "generate_random_number", "description": "Generate a random number within a specified range", "parameters": {"type": "object", "properties": {"min": {"type": "integer", "description": "The minimum value"}, "max": {"type": "integer", "description": "The maximum value"}}, "required": ["min", "max"]}}]
[{"name": "calculate_loan_payment", "arguments": {"principal": 20000, "interest_rate": 5, "term": 60}}, {"name": "calculate_mortgage_payment", "arguments": {"loan_amount": 200000, "interest_rate": 3.5, "loan_term": 30}}]