tools
stringlengths
110
1.59k
conversations
listlengths
2
4
[{"name": "calculate_loan_payment", "description": "Calculate the monthly payment for a loan", "parameters": {"type": "object", "properties": {"loan_amount": {"type": "number", "description": "The amount of the loan"}, "interest_rate": {"type": "number", "description": "The interest rate for the loan"}, "loan_term": {"type": "integer", "description": "The term of the loan in months"}}, "required": ["loan_amount", "interest_rate", "loan_term"]}}, {"name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": {"type": "object", "properties": {"amount": {"type": "number", "description": "The amount of currency to convert"}, "from_currency": {"type": "string", "description": "The currency to convert from"}, "to_currency": {"type": "string", "description": "The currency to convert to"}}, "required": ["amount", "from_currency", "to_currency"]}}]
[ { "from": "human", "value": "Hi, I need help with calculating my loan payment. Sure, the loan amount is $50000, the interest rate is 5% and the loan term is 60 months." }, { "from": "gpt", "value": "{\"Thought\": \"First, I need to use the tool calculate_loan_payment to solve this problem. This involves providing the following parameters: loan_amount is of type number, interest_rate is of type number, loan_term is of type integer, \", \"Action\": {\"name\": \"calculate_loan_payment\", \"arguments\": {\"loan_amount\": 50000, \"interest_rate\": 5, \"loan_term\": 60}}}" }, { "from": "observation", "value": "{\"monthly_payment\": 943.56}" }, { "from": "gpt", "value": "{\"Thought\": \"According to the Chat History, I have solved the problem\", \"Action\": {\"name\": \"Finish\", \"value\": \"Based on the information you provided, your monthly loan payment would be approximately $943.56.\"}}" } ]
[{"name": "calculate_area", "description": "Calculate the area of a shape", "parameters": {"type": "object", "properties": {"shape": {"type": "string", "description": "The shape for which area is to be calculated"}, "dimensions": {"type": "object", "description": "The dimensions required to calculate the area"}}, "required": ["shape", "dimensions"]}}, {"name": "search_images", "description": "Search for images based on a given query", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "The search query"}, "limit": {"type": "integer", "description": "The maximum number of images to return"}}, "required": ["query", "limit"]}}]
[ { "from": "human", "value": "Hi, I need to calculate the area of a rectangle. The length is 5 units and the breadth is 3 units." }, { "from": "gpt", "value": "{\"Thought\": \"First, I need to use the tool calculate_area to solve this problem. This involves providing the following parameters: shape is of type string, dimensions is of type object, \", \"Action\": {\"name\": \"calculate_area\", \"arguments\": {\"shape\": \"rectangle\", \"dimensions\": {\"length\": 5, \"breadth\": 3}}}}" }, { "from": "observation", "value": "{\"area\": 15}" }, { "from": "gpt", "value": "{\"Thought\": \"According to the Chat History, I have solved the problem\", \"Action\": {\"name\": \"Finish\", \"value\": \"The area of the rectangle with length 5 units and breadth 3 units is 15 square units.\"}}" } ]