chat
stringlengths
176
4.36k
system
stringlengths
187
5.96k
__hfsplit__
stringclasses
1 value
conversations
listlengths
3
15
USER: Hi, I have a list of numbers and I need to find the median. The numbers are 5, 2, 9, 1, 7, 4, 6, 3, 8. ASSISTANT: <functioncall> {"name": "calculate_median", "arguments": '{"numbers": [5, 2, 9, 1, 7, 4, 6, 3, 8]}'} <|endoftext|> FUNCTION RESPONSE: {"median": 5} ASSISTANT: The median of your list of numbers is 5. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_median", "description": "Calculate the median of a list of numbers", "parameters": { "type": "object", "properties": { "numbers": { "type": "array", "items": { "type": "number" }, "description": "The list of numbers" } }, "required": [ "numbers" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_median\",\n \"description\": \"Calculate the median of a list of numbers\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"numbers\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n },\n \"description\": \"The list of numbers\"\n }\n },\n \"required\": [\n \"numbers\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I have a list of numbers and I need to find the median. The numbers are 5, 2, 9, 1, 7, 4, 6, 3, 8." }, { "from": "gpt", "value": "{\"name\": \"calculate_median\", \"arguments\": '{\"numbers\": [5, 2, 9, 1, 7, 4, 6, 3, 8]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"median\": 5}" }, { "from": "gpt", "value": "The median of your list of numbers is 5. <|endoftext|>" } ]
USER: Hi, can you tell me how old I am if I was born on 1990-05-15? ASSISTANT: Sure, let me calculate that for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "calculate_age", "arguments": '{"date_of_birth": "1990-05-15"}'} <|endoftext|> FUNCTION RESPONSE: {"age": 31} ASSISTANT: Based on the date of birth you provided, you are 31 years old. <|endoftext|> USER: Great, thanks! Can you also book a flight for me to New York next week? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to book flights or perform external tasks. I can only provide information based on the functions available to me. Currently, I can calculate age based on the date of birth. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_age", "description": "Calculate the age based on the date of birth", "parameters": { "type": "object", "properties": { "date_of_birth": { "type": "string", "format": "date", "description": "The date of birth" } }, "required": [ "date_of_birth" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on the date of birth\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"date_of_birth\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The date of birth\"\n }\n },\n \"required\": [\n \"date_of_birth\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, can you tell me how old I am if I was born on 1990-05-15?" }, { "from": "gpt", "value": "Sure, let me calculate that for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"calculate_age\", \"arguments\": '{\"date_of_birth\": \"1990-05-15\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"age\": 31}" }, { "from": "gpt", "value": "Based on the date of birth you provided, you are 31 years old. <|endoftext|>" }, { "from": "human", "value": "Great, thanks! Can you also book a flight for me to New York next week?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to book flights or perform external tasks. I can only provide information based on the functions available to me. Currently, I can calculate age based on the date of birth. <|endoftext|>" } ]
USER: I saw a dress that I liked. It was originally priced at $100 but it's on sale for 20% off. Can you tell me how much it will cost after the discount? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 100, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 80} ASSISTANT: The dress will cost you $80 after the 20% discount. <|endoftext|> USER: That's a good deal! What about a pair of shoes that was originally $75 but now has a 15% discount? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 75, "discount_percentage": 15}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 63.75} ASSISTANT: The pair of shoes will cost you $63.75 after the 15% discount. <|endoftext|> USER: Great, thanks for the help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price of a product", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the product" }, "discount_percentage": { "type": "number", "description": "The discount percentage" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I saw a dress that I liked. It was originally priced at $100 but it's on sale for 20% off. Can you tell me how much it will cost after the discount?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 100, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 80}" }, { "from": "gpt", "value": "The dress will cost you $80 after the 20% discount. <|endoftext|>" }, { "from": "human", "value": "That's a good deal! What about a pair of shoes that was originally $75 but now has a 15% discount?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 75, \"discount_percentage\": 15}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 63.75}" }, { "from": "gpt", "value": "The pair of shoes will cost you $63.75 after the 15% discount. <|endoftext|>" }, { "from": "human", "value": "Great, thanks for the help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Can you order pizza for me? ASSISTANT: I'm sorry, but I'm unable to perform external tasks like ordering pizza. My capabilities are currently limited to the functions provided to me, such as translating text. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "translate_text", "description": "Translate text from one language to another", "parameters": { "type": "object", "properties": { "text": { "type": "string", "description": "The text to be translated" }, "source_language": { "type": "string", "description": "The source language of the text" }, "target_language": { "type": "string", "description": "The target language to translate the text" } }, "required": [ "text", "source_language", "target_language" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"translate_text\",\n \"description\": \"Translate text from one language to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be translated\"\n },\n \"source_language\": {\n \"type\": \"string\",\n \"description\": \"The source language of the text\"\n },\n \"target_language\": {\n \"type\": \"string\",\n \"description\": \"The target language to translate the text\"\n }\n },\n \"required\": [\n \"text\",\n \"source_language\",\n \"target_language\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you order pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks like ordering pizza. My capabilities are currently limited to the functions provided to me, such as translating text. <|endoftext|>" } ]
USER: Hi, I need help with calculating a tip. My bill total is $85 and I want to leave a 15% tip. ASSISTANT: <functioncall> {"name": "calculate_tip", "arguments": '{"bill_total": 85, "tip_percentage": 15}'} <|endoftext|> FUNCTION RESPONSE: {"tip_amount": 12.75} ASSISTANT: Based on your bill total and the tip percentage you provided, the tip amount you should leave is $12.75. <|endoftext|> USER: Great, thank you! What if I want to leave a 20% tip instead? ASSISTANT: <functioncall> {"name": "calculate_tip", "arguments": '{"bill_total": 85, "tip_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"tip_amount": 17} ASSISTANT: If you decide to leave a 20% tip, the tip amount would be $17. <|endoftext|> USER: Perfect, thanks for the help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_tip", "description": "Calculate the tip amount based on bill total and tip percentage", "parameters": { "type": "object", "properties": { "bill_total": { "type": "number", "description": "The total amount of the bill" }, "tip_percentage": { "type": "number", "description": "The percentage to be tipped" } }, "required": [ "bill_total", "tip_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount based on bill total and tip percentage\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_total\": {\n \"type\": \"number\",\n \"description\": \"The total amount of the bill\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage to be tipped\"\n }\n },\n \"required\": [\n \"bill_total\",\n \"tip_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with calculating a tip. My bill total is $85 and I want to leave a 15% tip." }, { "from": "gpt", "value": "{\"name\": \"calculate_tip\", \"arguments\": '{\"bill_total\": 85, \"tip_percentage\": 15}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tip_amount\": 12.75}" }, { "from": "gpt", "value": "Based on your bill total and the tip percentage you provided, the tip amount you should leave is $12.75. <|endoftext|>" }, { "from": "human", "value": "Great, thank you! What if I want to leave a 20% tip instead?" }, { "from": "gpt", "value": "{\"name\": \"calculate_tip\", \"arguments\": '{\"bill_total\": 85, \"tip_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tip_amount\": 17}" }, { "from": "gpt", "value": "If you decide to leave a 20% tip, the tip amount would be $17. <|endoftext|>" }, { "from": "human", "value": "Perfect, thanks for the help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Can you find me some horror movies? ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"search_query": "horror"}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["The Conjuring", "Insidious", "A Quiet Place", "Hereditary", "Get Out"]} ASSISTANT: Here are some horror movies you might like: "The Conjuring", "Insidious", "A Quiet Place", "Hereditary", "Get Out". <|endoftext|> USER: What about some romantic comedies? ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"search_query": "romantic comedy"}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["Crazy, Stupid, Love", "The Proposal", "Bridget Jones's Diary", "Love Actually", "The Holiday"]} ASSISTANT: Here are some romantic comedies you might enjoy: "Crazy, Stupid, Love", "The Proposal", "Bridget Jones's Diary", "Love Actually", "The Holiday". <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_movies", "description": "Search for movies based on title or genre", "parameters": { "type": "object", "properties": { "search_query": { "type": "string", "description": "The title or genre of the movie" } }, "required": [ "search_query" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"search_query\": {\n \"type\": \"string\",\n \"description\": \"The title or genre of the movie\"\n }\n },\n \"required\": [\n \"search_query\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you find me some horror movies?" }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"search_query\": \"horror\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"The Conjuring\", \"Insidious\", \"A Quiet Place\", \"Hereditary\", \"Get Out\"]}" }, { "from": "gpt", "value": "Here are some horror movies you might like: \"The Conjuring\", \"Insidious\", \"A Quiet Place\", \"Hereditary\", \"Get Out\". <|endoftext|>" }, { "from": "human", "value": "What about some romantic comedies?" }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"search_query\": \"romantic comedy\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"Crazy, Stupid, Love\", \"The Proposal\", \"Bridget Jones's Diary\", \"Love Actually\", \"The Holiday\"]}" }, { "from": "gpt", "value": "Here are some romantic comedies you might enjoy: \"Crazy, Stupid, Love\", \"The Proposal\", \"Bridget Jones's Diary\", \"Love Actually\", \"The Holiday\". <|endoftext|>" } ]
USER: Hi, I need to convert 1000 US dollars to Euros. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{ "amount": 1000, "from_currency": "USD", "to_currency": "EUR" }'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 850.00, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 1000 US dollars is approximately 850 Euros. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Converts an amount from one currency to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Converts an amount from one currency to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 1000 US dollars to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\n \"amount\": 1000,\n \"from_currency\": \"USD\",\n \"to_currency\": \"EUR\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850.00, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 1000 US dollars is approximately 850 Euros. <|endoftext|>" } ]
USER: Hi, I need a QR code for my website. Can you help me with that? ASSISTANT: Of course, I can help you with that. Could you please provide me with the URL of your website? <|endoftext|> USER: Sure, it's www.mywebsite.com. ASSISTANT: <functioncall> {"name": "generate_qr_code", "arguments": '{"text": "www.mywebsite.com"}'} <|endoftext|> FUNCTION RESPONSE: {"qr_code": "QR_CODE_IMAGE_DATA"} ASSISTANT: I have generated the QR code for your website. Here it is: [QR_CODE_IMAGE_DATA]. You can scan this code to directly access your website. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_qr_code", "description": "Generate a QR code for a given text", "parameters": { "type": "object", "properties": { "text": { "type": "string", "description": "The text to encode in the QR code" } }, "required": [ "text" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to encode in the QR code\"\n }\n },\n \"required\": [\n \"text\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need a QR code for my website. Can you help me with that?" }, { "from": "gpt", "value": "Of course, I can help you with that. Could you please provide me with the URL of your website? <|endoftext|>" }, { "from": "human", "value": "Sure, it's www.mywebsite.com." }, { "from": "gpt", "value": "{\"name\": \"generate_qr_code\", \"arguments\": '{\"text\": \"www.mywebsite.com\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"qr_code\": \"QR_CODE_IMAGE_DATA\"}" }, { "from": "gpt", "value": "I have generated the QR code for your website. Here it is: [QR_CODE_IMAGE_DATA]. You can scan this code to directly access your website. <|endoftext|>" } ]
USER: Can you please order a pizza for me? ASSISTANT: I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me, such as generating a random number within a specified range. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_number", "description": "Generate a random number within a specified range", "parameters": { "type": "object", "properties": { "min": { "type": "number", "description": "The minimum value of the range" }, "max": { "type": "number", "description": "The maximum value of the range" } }, "required": [ "min", "max" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the range\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum value of the range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me, such as generating a random number within a specified range. <|endoftext|>" } ]
USER: Hi, I saw a dress that I liked in a store. It was originally priced at $200 but it's on a 20% discount. Can you help me calculate how much I will save? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 200, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discount_amount": 40} ASSISTANT: Sure, with a 20% discount on a $200 dress, you will save $40. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discount amount based on original price and discount percentage", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the item" }, "discount_percentage": { "type": "number", "description": "The percentage discount" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discount amount based on original price and discount percentage\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage discount\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I saw a dress that I liked in a store. It was originally priced at $200 but it's on a 20% discount. Can you help me calculate how much I will save?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 200, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discount_amount\": 40}" }, { "from": "gpt", "value": "Sure, with a 20% discount on a $200 dress, you will save $40. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but as an AI, I'm currently not equipped with the function to book flights. My capabilities are limited to the functions provided to me. Currently, I can assist you with calculating your monthly loan payment. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_payment", "description": "Calculate the monthly loan payment", "parameters": { "type": "object", "properties": { "principal": { "type": "number", "description": "The loan principal amount" }, "interest_rate": { "type": "number", "description": "The interest rate per period" }, "num_periods": { "type": "integer", "description": "The number of periods" } }, "required": [ "principal", "interest_rate", "num_periods" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The loan principal amount\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The interest rate per period\"\n },\n \"num_periods\": {\n \"type\": \"integer\",\n \"description\": \"The number of periods\"\n }\n },\n \"required\": [\n \"principal\",\n \"interest_rate\",\n \"num_periods\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I'm currently not equipped with the function to book flights. My capabilities are limited to the functions provided to me. Currently, I can assist you with calculating your monthly loan payment. <|endoftext|>" } ]
USER: I am looking for books on artificial intelligence. Can you help me find some? ASSISTANT: Of course, I can help you with that. How many books would you like me to find? <|endoftext|> USER: Let's start with 5 books. ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"query": "artificial intelligence", "limit": 5}'} <|endoftext|> FUNCTION RESPONSE: {"books": [{"title": "Artificial Intelligence: A Modern Approach", "author": "Stuart Russell and Peter Norvig"}, {"title": "Life 3.0: Being Human in the Age of Artificial Intelligence", "author": "Max Tegmark"}, {"title": "Superintelligence: Paths, Dangers, Strategies", "author": "Nick Bostrom"}, {"title": "Artificial Intelligence: Structures and Strategies for Complex Problem Solving", "author": "George F. Luger"}, {"title": "Artificial Intelligence: A Guide for Thinking Humans", "author": "Melanie Mitchell"}]} ASSISTANT: Here are 5 books on artificial intelligence that you might find interesting: 1. "Artificial Intelligence: A Modern Approach" by Stuart Russell and Peter Norvig 2. "Life 3.0: Being Human in the Age of Artificial Intelligence" by Max Tegmark 3. "Superintelligence: Paths, Dangers, Strategies" by Nick Bostrom 4. "Artificial Intelligence: Structures and Strategies for Complex Problem Solving" by George F. Luger 5. "Artificial Intelligence: A Guide for Thinking Humans" by Melanie Mitchell <|endoftext|> USER: That's great! Can you find more books by Max Tegmark? ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"author": "Max Tegmark", "limit": 5}'} <|endoftext|> FUNCTION RESPONSE: {"books": [{"title": "Our Mathematical Universe: My Quest for the Ultimate Nature of Reality", "author": "Max Tegmark"}, {"title": "Life 3.0: Being Human in the Age of Artificial Intelligence", "author": "Max Tegmark"}]} ASSISTANT: Here are more books by Max Tegmark: 1. "Our Mathematical Universe: My Quest for the Ultimate Nature of Reality" 2. "Life 3.0: Being Human in the Age of Artificial Intelligence" <|endoftext|> USER: Thank you, that's very helpful! ASSISTANT: You're welcome! If you have any other questions or need further assistance, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_books", "description": "Search for books based on a query", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "The search query for books" }, "author": { "type": "string", "description": "The author of the books" }, "limit": { "type": "integer", "description": "The maximum number of books to retrieve" } }, "required": [ "query", "limit" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_books\",\n \"description\": \"Search for books based on a query\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query for books\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the books\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"The maximum number of books to retrieve\"\n }\n },\n \"required\": [\n \"query\",\n \"limit\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I am looking for books on artificial intelligence. Can you help me find some?" }, { "from": "gpt", "value": "Of course, I can help you with that. How many books would you like me to find? <|endoftext|>" }, { "from": "human", "value": "Let's start with 5 books." }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"query\": \"artificial intelligence\", \"limit\": 5}'} <|endoftext|>" }, { "from": "tool", "value": "{\"books\": [{\"title\": \"Artificial Intelligence: A Modern Approach\", \"author\": \"Stuart Russell and Peter Norvig\"}, {\"title\": \"Life 3.0: Being Human in the Age of Artificial Intelligence\", \"author\": \"Max Tegmark\"}, {\"title\": \"Superintelligence: Paths, Dangers, Strategies\", \"author\": \"Nick Bostrom\"}, {\"title\": \"Artificial Intelligence: Structures and Strategies for Complex Problem Solving\", \"author\": \"George F. Luger\"}, {\"title\": \"Artificial Intelligence: A Guide for Thinking Humans\", \"author\": \"Melanie Mitchell\"}]}" }, { "from": "gpt", "value": "Here are 5 books on artificial intelligence that you might find interesting:\n1. \"Artificial Intelligence: A Modern Approach\" by Stuart Russell and Peter Norvig\n2. \"Life 3.0: Being Human in the Age of Artificial Intelligence\" by Max Tegmark\n3. \"Superintelligence: Paths, Dangers, Strategies\" by Nick Bostrom\n4. \"Artificial Intelligence: Structures and Strategies for Complex Problem Solving\" by George F. Luger\n5. \"Artificial Intelligence: A Guide for Thinking Humans\" by Melanie Mitchell <|endoftext|>" }, { "from": "human", "value": "That's great! Can you find more books by Max Tegmark?" }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"author\": \"Max Tegmark\", \"limit\": 5}'} <|endoftext|>" }, { "from": "tool", "value": "{\"books\": [{\"title\": \"Our Mathematical Universe: My Quest for the Ultimate Nature of Reality\", \"author\": \"Max Tegmark\"}, {\"title\": \"Life 3.0: Being Human in the Age of Artificial Intelligence\", \"author\": \"Max Tegmark\"}]}" }, { "from": "gpt", "value": "Here are more books by Max Tegmark:\n1. \"Our Mathematical Universe: My Quest for the Ultimate Nature of Reality\"\n2. \"Life 3.0: Being Human in the Age of Artificial Intelligence\" <|endoftext|>" }, { "from": "human", "value": "Thank you, that's very helpful!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions or need further assistance, feel free to ask. <|endoftext|>" } ]
USER: Hi, I would like to calculate my BMI. I weigh 70 kg and my height is 1.75 meters. ASSISTANT: <functioncall> {"name": "calculate_bmi", "arguments": '{"weight": 70, "height": 1.75}'} <|endoftext|> FUNCTION RESPONSE: {"bmi": 22.86} ASSISTANT: Your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_bmi", "description": "Calculate BMI (Body Mass Index)", "parameters": { "type": "object", "properties": { "weight": { "type": "number", "description": "The weight in kilograms" }, "height": { "type": "number", "description": "The height in meters" } }, "required": [ "weight", "height" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate BMI (Body Mass Index)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I would like to calculate my BMI. I weigh 70 kg and my height is 1.75 meters." }, { "from": "gpt", "value": "{\"name\": \"calculate_bmi\", \"arguments\": '{\"weight\": 70, \"height\": 1.75}'} <|endoftext|>" }, { "from": "tool", "value": "{\"bmi\": 22.86}" }, { "from": "gpt", "value": "Your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height. <|endoftext|>" } ]
USER: 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. ASSISTANT: <functioncall> {"name": "generate_invoice", "arguments": '{"customer_name": "John Doe", "items": [{"product_name": "apple", "quantity": 2, "price": 1}, {"product_name": "orange", "quantity": 3, "price": 2}]}'} <|endoftext|> FUNCTION RESPONSE: {"invoice_id": "INV12345", "customer_name": "John Doe", "items": [{"product_name": "apple", "quantity": 2, "price": 1, "total": 2}, {"product_name": "orange", "quantity": 3, "price": 2, "total": 6}], "total_amount": 8} ASSISTANT: The invoice for John Doe has been generated successfully. The invoice ID is INV12345. He bought 2 apples for a total of $2 and 3 oranges for a total of $6. The total amount for the invoice is $8. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_invoice", "description": "Generate an invoice for a customer", "parameters": { "type": "object", "properties": { "customer_name": { "type": "string", "description": "The name of the customer" }, "items": { "type": "array", "items": { "type": "object", "properties": { "product_name": { "type": "string", "description": "The name of the product" }, "quantity": { "type": "integer", "description": "The quantity of the product" }, "price": { "type": "number", "description": "The price of the product" } }, "required": [ "product_name", "quantity", "price" ] }, "description": "The list of items in the invoice" } }, "required": [ "customer_name", "items" ] } } { "name": "search_jobs", "description": "Search for job openings with specified criteria", "parameters": { "type": "object", "properties": { "keywords": { "type": "array", "items": { "type": "string" }, "description": "The keywords to search for in job titles" }, "location": { "type": "string", "description": "The location of the job openings" }, "salary_range": { "type": "object", "properties": { "min": { "type": "number", "description": "The minimum salary range" }, "max": { "type": "number", "description": "The maximum salary range" } }, "required": [ "min", "max" ] } }, "required": [] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice for a customer\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"product_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the product\"\n },\n \"quantity\": {\n \"type\": \"integer\",\n \"description\": \"The quantity of the product\"\n },\n \"price\": {\n \"type\": \"number\",\n \"description\": \"The price of the product\"\n }\n },\n \"required\": [\n \"product_name\",\n \"quantity\",\n \"price\"\n ]\n },\n \"description\": \"The list of items in the invoice\"\n }\n },\n \"required\": [\n \"customer_name\",\n \"items\"\n ]\n }\n}\n\n{\n \"name\": \"search_jobs\",\n \"description\": \"Search for job openings with specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The keywords to search for in job titles\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the job openings\"\n },\n \"salary_range\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum salary range\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum salary range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n },\n \"required\": []\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "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." }, { "from": "gpt", "value": "{\"name\": \"generate_invoice\", \"arguments\": '{\"customer_name\": \"John Doe\", \"items\": [{\"product_name\": \"apple\", \"quantity\": 2, \"price\": 1}, {\"product_name\": \"orange\", \"quantity\": 3, \"price\": 2}]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"invoice_id\": \"INV12345\", \"customer_name\": \"John Doe\", \"items\": [{\"product_name\": \"apple\", \"quantity\": 2, \"price\": 1, \"total\": 2}, {\"product_name\": \"orange\", \"quantity\": 3, \"price\": 2, \"total\": 6}], \"total_amount\": 8}" }, { "from": "gpt", "value": "The invoice for John Doe has been generated successfully. The invoice ID is INV12345. He bought 2 apples for a total of $2 and 3 oranges for a total of $6. The total amount for the invoice is $8. <|endoftext|>" } ]
USER: Can you order a pizza for me? ASSISTANT: I'm sorry, but I'm unable to perform external tasks such as ordering a pizza. My current capabilities are limited to the functions provided to me. For instance, I can help you calculate the discounted price of a product. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price of a product", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the product" }, "discount_percentage": { "type": "number", "description": "The discount percentage" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks such as ordering a pizza. My current capabilities are limited to the functions provided to me. For instance, I can help you calculate the discounted price of a product. <|endoftext|>" } ]
USER: I need to create an invoice for a customer named John Doe. The total amount is $500 and the due date is 30th April. ASSISTANT: <functioncall> {"name": "create_invoice", "arguments": '{"customer_name": "John Doe", "total_amount": 500, "due_date": "30th April"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Invoice created successfully for customer John Doe with total amount $500 due by 30th April"} ASSISTANT: The invoice has been created successfully for customer John Doe with a total amount of $500 due by 30th April. <|endoftext|> USER: Great, thank you! ASSISTANT: You're welcome! If you need any more assistance, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_invoice", "description": "Create a new invoice", "parameters": { "type": "object", "properties": { "customer_name": { "type": "string", "description": "The name of the customer" }, "total_amount": { "type": "number", "description": "The total amount of the invoice" }, "due_date": { "type": "string", "description": "The due date of the invoice" } }, "required": [ "customer_name", "total_amount", "due_date" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_invoice\",\n \"description\": \"Create a new invoice\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"total_amount\": {\n \"type\": \"number\",\n \"description\": \"The total amount of the invoice\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"description\": \"The due date of the invoice\"\n }\n },\n \"required\": [\n \"customer_name\",\n \"total_amount\",\n \"due_date\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to create an invoice for a customer named John Doe. The total amount is $500 and the due date is 30th April." }, { "from": "gpt", "value": "{\"name\": \"create_invoice\", \"arguments\": '{\"customer_name\": \"John Doe\", \"total_amount\": 500, \"due_date\": \"30th April\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Invoice created successfully for customer John Doe with total amount $500 due by 30th April\"}" }, { "from": "gpt", "value": "The invoice has been created successfully for customer John Doe with a total amount of $500 due by 30th April. <|endoftext|>" }, { "from": "human", "value": "Great, thank you!" }, { "from": "gpt", "value": "You're welcome! If you need any more assistance, feel free to ask. <|endoftext|>" } ]
USER: Can you please order a pizza for me? ASSISTANT: I'm sorry, but I don't have the capability to perform external tasks like ordering a pizza. My functions are limited to the ones provided to me. In this case, I can provide information about the current stock price of a company if you provide me with the company's stock market symbol. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_stock_price", "description": "Get the current stock price of a company", "parameters": { "type": "object", "properties": { "company_symbol": { "type": "string", "description": "The symbol of the company in the stock market" } }, "required": [ "company_symbol" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price of a company\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"company_symbol\": {\n \"type\": \"string\",\n \"description\": \"The symbol of the company in the stock market\"\n }\n },\n \"required\": [\n \"company_symbol\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to perform external tasks like ordering a pizza. My functions are limited to the ones provided to me. In this case, I can provide information about the current stock price of a company if you provide me with the company's stock market symbol. <|endoftext|>" } ]
USER: Hi, I need to convert 500 USD to Euros. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 500, "from_currency": "USD", "to_currency": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 425.50, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 500 USD is approximately 425.50 Euros. <|endoftext|> USER: Great, thanks! Now, can you convert 1000 Euros back to USD? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from_currency": "EUR", "to_currency": "USD"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 1176.47, "from_currency": "EUR", "to_currency": "USD"} ASSISTANT: 1000 Euros is approximately 1176.47 USD. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert an amount from one currency to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert an amount from one currency to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 500 USD to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 500, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 425.50, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 500 USD is approximately 425.50 Euros. <|endoftext|>" }, { "from": "human", "value": "Great, thanks! Now, can you convert 1000 Euros back to USD?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"EUR\", \"to_currency\": \"USD\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 1176.47, \"from_currency\": \"EUR\", \"to_currency\": \"USD\"}" }, { "from": "gpt", "value": "1000 Euros is approximately 1176.47 USD. <|endoftext|>" } ]
USER: Hi, can you play some jazz music for me? ASSISTANT: Of course, I can help with that. Let me get that started for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "play_music", "arguments": '{"genre": "jazz"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Now playing jazz music"} ASSISTANT: Great news! Jazz music is now playing for your enjoyment. <|endoftext|> USER: That's great! Can you also order a pizza for me? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. My current functions are limited to playing music. Is there anything else I can assist you with within my capabilities? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "play_music", "description": "Play music from a specified genre", "parameters": { "type": "object", "properties": { "genre": { "type": "string", "description": "The genre of music to play" } }, "required": [ "genre" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"play_music\",\n \"description\": \"Play music from a specified genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of music to play\"\n }\n },\n \"required\": [\n \"genre\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, can you play some jazz music for me?" }, { "from": "gpt", "value": "Of course, I can help with that. Let me get that started for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"play_music\", \"arguments\": '{\"genre\": \"jazz\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Now playing jazz music\"}" }, { "from": "gpt", "value": "Great news! Jazz music is now playing for your enjoyment. <|endoftext|>" }, { "from": "human", "value": "That's great! Can you also order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. My current functions are limited to playing music. Is there anything else I can assist you with within my capabilities? <|endoftext|>" } ]
USER: Hi, I need to convert 500 US dollars to Euros. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 500, "from_currency": "USD", "to_currency": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 425.50, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 500 US dollars is approximately 425.50 Euros. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount 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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to convert\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 500 US dollars to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 500, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 425.50, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 500 US dollars is approximately 425.50 Euros. <|endoftext|>" } ]
USER: Hi, can you get me the lyrics of the song 'Imagine' by John Lennon? ASSISTANT: <functioncall> {"name": "get_lyrics", "arguments": '{"artist": "John Lennon", "song": "Imagine"}'} <|endoftext|> FUNCTION RESPONSE: {"lyrics": "
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_lyrics", "description": "Get the lyrics of a song", "parameters": { "type": "object", "properties": { "artist": { "type": "string", "description": "The name of the artist" }, "song": { "type": "string", "description": "The title of the song" } }, "required": [ "artist", "song" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_lyrics\",\n \"description\": \"Get the lyrics of a song\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"artist\": {\n \"type\": \"string\",\n \"description\": \"The name of the artist\"\n },\n \"song\": {\n \"type\": \"string\",\n \"description\": \"The title of the song\"\n }\n },\n \"required\": [\n \"artist\",\n \"song\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, can you get me the lyrics of the song 'Imagine' by John Lennon?" }, { "from": "gpt", "value": "{\"name\": \"get_lyrics\", \"arguments\": '{\"artist\": \"John Lennon\", \"song\": \"Imagine\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"lyrics\": \"" } ]
USER: Hi, I am looking for some good movies to watch. Can you help me with that? ASSISTANT: Of course! Could you please specify the genre or the title of the movie you're interested in? <|endoftext|> USER: I am interested in action movies. ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"title": "", "genre": "action"}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["Die Hard", "Mad Max: Fury Road", "John Wick", "The Dark Knight", "Inception"]} ASSISTANT: Here are some action movies you might enjoy: "Die Hard", "Mad Max: Fury Road", "John Wick", "The Dark Knight", "Inception". <|endoftext|> USER: Great! Can you also book a ticket for me for the movie "Inception"? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking movie tickets. I recommend using a ticket booking platform for that. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_movies", "description": "Search for movies based on title or genre", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The search query for movies" }, "genre": { "type": "string", "description": "The genre to filter the search" } } } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The search query for movies\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre to filter the search\"\n }\n }\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I am looking for some good movies to watch. Can you help me with that?" }, { "from": "gpt", "value": "Of course! Could you please specify the genre or the title of the movie you're interested in? <|endoftext|>" }, { "from": "human", "value": "I am interested in action movies." }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"title\": \"\", \"genre\": \"action\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"Die Hard\", \"Mad Max: Fury Road\", \"John Wick\", \"The Dark Knight\", \"Inception\"]}" }, { "from": "gpt", "value": "Here are some action movies you might enjoy: \"Die Hard\", \"Mad Max: Fury Road\", \"John Wick\", \"The Dark Knight\", \"Inception\". <|endoftext|>" }, { "from": "human", "value": "Great! Can you also book a ticket for me for the movie \"Inception\"?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking movie tickets. I recommend using a ticket booking platform for that. <|endoftext|>" } ]
USER: Hi, I was born on 1990-05-15. Can you tell me how old I am today? ASSISTANT: <functioncall> {"name": "calculate_age", "arguments": '{"birthdate": "1990-05-15"}'} <|endoftext|> FUNCTION RESPONSE: {"age": 31} ASSISTANT: According to my calculations, you are 31 years old today. <|endoftext|> USER: Wow, time flies! Thank you for the information.
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_age", "description": "Calculate the age based on the birthdate", "parameters": { "type": "object", "properties": { "birthdate": { "type": "string", "description": "The birthdate of the person" } }, "required": [ "birthdate" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on the birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"description\": \"The birthdate of the person\"\n }\n },\n \"required\": [\n \"birthdate\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I was born on 1990-05-15. Can you tell me how old I am today?" }, { "from": "gpt", "value": "{\"name\": \"calculate_age\", \"arguments\": '{\"birthdate\": \"1990-05-15\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"age\": 31}" }, { "from": "gpt", "value": "According to my calculations, you are 31 years old today. <|endoftext|>" }, { "from": "human", "value": "Wow, time flies! Thank you for the information." } ]
USER: I need a random number between 1 and 100. ASSISTANT: <functioncall> {"name": "get_random_number", "arguments": '{"min": 1, "max": 100}'} <|endoftext|> FUNCTION RESPONSE: {"result": 42} ASSISTANT: The random number between 1 and 100 is 42. <|endoftext|> USER: Can you generate another random number but this time between 50 and 75? ASSISTANT: <functioncall> {"name": "get_random_number", "arguments": '{"min": 50, "max": 75}'} <|endoftext|> FUNCTION RESPONSE: {"result": 63} ASSISTANT: The random number between 50 and 75 is 63. <|endoftext|> USER: Great, thanks for your help! ASSISTANT: You're welcome! If you need anything else, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_number", "description": "Get a random number within a specified range", "parameters": { "type": "object", "properties": { "min": { "type": "number", "description": "The minimum value of the range" }, "max": { "type": "number", "description": "The maximum value of the range" } }, "required": [ "min", "max" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_number\",\n \"description\": \"Get a random number within a specified range\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the range\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum value of the range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need a random number between 1 and 100." }, { "from": "gpt", "value": "{\"name\": \"get_random_number\", \"arguments\": '{\"min\": 1, \"max\": 100}'} <|endoftext|>" }, { "from": "tool", "value": "{\"result\": 42}" }, { "from": "gpt", "value": "The random number between 1 and 100 is 42. <|endoftext|>" }, { "from": "human", "value": "Can you generate another random number but this time between 50 and 75?" }, { "from": "gpt", "value": "{\"name\": \"get_random_number\", \"arguments\": '{\"min\": 50, \"max\": 75}'} <|endoftext|>" }, { "from": "tool", "value": "{\"result\": 63}" }, { "from": "gpt", "value": "The random number between 50 and 75 is 63. <|endoftext|>" }, { "from": "human", "value": "Great, thanks for your help!" }, { "from": "gpt", "value": "You're welcome! If you need anything else, feel free to ask. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to the functions provided to me, and at the moment, I can only calculate age based on a date of birth. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on date of birth\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"date_of_birth\": {\n \"type\": \"string\",\n \"description\": \"The date of birth in format YYYY-MM-DD\"\n }\n },\n \"required\": [\n \"date_of_birth\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to the functions provided to me, and at the moment, I can only calculate age based on a date of birth. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with booking flights as it's an external task. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate a discount on a given price. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price" }, "discount_percentage": { "type": "number", "description": "The discount percentage" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights as it's an external task. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate a discount on a given price. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to generating QR codes for given text. If you need a QR code, I'd be happy to help with that! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "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 in the QR code" } }, "required": [ "text" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be encoded in the QR code\"\n }\n },\n \"required\": [\n \"text\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to generating QR codes for given text. If you need a QR code, I'd be happy to help with that! <|endoftext|>" } ]
USER: Can you order a pizza for me? ASSISTANT: I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can assist you in creating a note. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_note", "description": "Create a new note", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the note" }, "content": { "type": "string", "description": "The content of the note" } }, "required": [ "title", "content" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_note\",\n \"description\": \"Create a new note\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the note\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"The content of the note\"\n }\n },\n \"required\": [\n \"title\",\n \"content\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can assist you in creating a note. <|endoftext|>" } ]
USER: Can you help me calculate my GPA? I have the grades for my subjects. ASSISTANT: Of course, I can help with that. Please provide me with your grades. <|endoftext|> USER: Here they are: 89, 92, 85, 90, 88. ASSISTANT: <functioncall> {"name": "calculate_gpa", "arguments": '{"grades": [89, 92, 85, 90, 88]}'} <|endoftext|> FUNCTION RESPONSE: {"gpa": 88.8} ASSISTANT: Based on the grades you provided, your Grade Point Average (GPA) is 88.8. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_gpa", "description": "Calculate the Grade Point Average (GPA)", "parameters": { "type": "object", "properties": { "grades": { "type": "array", "items": { "type": "number" }, "description": "The grades obtained" } }, "required": [ "grades" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_gpa\",\n \"description\": \"Calculate the Grade Point Average (GPA)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"grades\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n },\n \"description\": \"The grades obtained\"\n }\n },\n \"required\": [\n \"grades\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you help me calculate my GPA? I have the grades for my subjects." }, { "from": "gpt", "value": "Of course, I can help with that. Please provide me with your grades. <|endoftext|>" }, { "from": "human", "value": "Here they are: 89, 92, 85, 90, 88." }, { "from": "gpt", "value": "{\"name\": \"calculate_gpa\", \"arguments\": '{\"grades\": [89, 92, 85, 90, 88]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"gpa\": 88.8}" }, { "from": "gpt", "value": "Based on the grades you provided, your Grade Point Average (GPA) is 88.8. <|endoftext|>" } ]
USER: I need a random number between 1 and 100. ASSISTANT: <functioncall> {"name": "generate_random_number", "arguments": '{"min": 1, "max": 100}'} <|endoftext|> FUNCTION RESPONSE: {"result": 42} ASSISTANT: The random number generated between 1 and 100 is 42. <|endoftext|> USER: Can you generate another random number but this time between 200 and 300? ASSISTANT: <functioncall> {"name": "generate_random_number", "arguments": '{"min": 200, "max": 300}'} <|endoftext|> FUNCTION RESPONSE: {"result": 278} ASSISTANT: The random number generated between 200 and 300 is 278. <|endoftext|> USER: Great, thanks for your help! ASSISTANT: You're welcome! If you need anything else, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_number", "description": "Generate a random number within a specified range", "parameters": { "type": "object", "properties": { "min": { "type": "integer", "description": "The minimum value for the random number" }, "max": { "type": "integer", "description": "The maximum value for the random number" } }, "required": [ "min", "max" ] } } { "name": "search_recipe", "description": "Search for a recipe based on ingredients", "parameters": { "type": "object", "properties": { "ingredients": { "type": "array", "items": { "type": "string" }, "description": "The ingredients for the recipe" } }, "required": [ "ingredients" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"integer\",\n \"description\": \"The minimum value for the random number\"\n },\n \"max\": {\n \"type\": \"integer\",\n \"description\": \"The maximum value for the random number\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n}\n\n{\n \"name\": \"search_recipe\",\n \"description\": \"Search for a recipe based on ingredients\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients for the recipe\"\n }\n },\n \"required\": [\n \"ingredients\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need a random number between 1 and 100." }, { "from": "gpt", "value": "{\"name\": \"generate_random_number\", \"arguments\": '{\"min\": 1, \"max\": 100}'} <|endoftext|>" }, { "from": "tool", "value": "{\"result\": 42}" }, { "from": "gpt", "value": "The random number generated between 1 and 100 is 42. <|endoftext|>" }, { "from": "human", "value": "Can you generate another random number but this time between 200 and 300?" }, { "from": "gpt", "value": "{\"name\": \"generate_random_number\", \"arguments\": '{\"min\": 200, \"max\": 300}'} <|endoftext|>" }, { "from": "tool", "value": "{\"result\": 278}" }, { "from": "gpt", "value": "The random number generated between 200 and 300 is 278. <|endoftext|>" }, { "from": "human", "value": "Great, thanks for your help!" }, { "from": "gpt", "value": "You're welcome! If you need anything else, feel free to ask. <|endoftext|>" } ]
USER: I need to send an email to my boss. Can you help me with that? ASSISTANT: Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the message you want to send? <|endoftext|> USER: Sure, the email address is boss@company.com. The subject is "Project Update" and the message is "Dear Boss, I have completed the project as per the deadline. Please review it at your earliest convenience. Regards, [User's Name]". ASSISTANT: <functioncall> {"name": "send_email", "arguments": '{ "recipient": "boss@company.com", "subject": "Project Update", "message": "Dear Boss, I have completed the project as per the deadline. Please review it at your earliest convenience. Regards, [User's Name]" }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully"} ASSISTANT: The email has been sent successfully to your boss. Is there anything else you need help with? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "send_email", "description": "Send an email to a recipient", "parameters": { "type": "object", "properties": { "recipient": { "type": "string", "description": "The email address of the recipient" }, "subject": { "type": "string", "description": "The subject of the email" }, "message": { "type": "string", "description": "The body of the email" } }, "required": [ "recipient", "subject", "message" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"message\": {\n \"type\": \"string\",\n \"description\": \"The body of the email\"\n }\n },\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to send an email to my boss. Can you help me with that?" }, { "from": "gpt", "value": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the message you want to send? <|endoftext|>" }, { "from": "human", "value": "Sure, the email address is boss@company.com. The subject is \"Project Update\" and the message is \"Dear Boss, I have completed the project as per the deadline. Please review it at your earliest convenience. Regards, [User's Name]\"." }, { "from": "gpt", "value": "{\"name\": \"send_email\", \"arguments\": '{\n \"recipient\": \"boss@company.com\",\n \"subject\": \"Project Update\",\n \"message\": \"Dear Boss, I have completed the project as per the deadline. Please review it at your earliest convenience. Regards, [User's Name]\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}" }, { "from": "gpt", "value": "The email has been sent successfully to your boss. Is there anything else you need help with? <|endoftext|>" } ]
USER: Can you book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to the functions provided to me, and at the moment, I can only calculate age based on the birth date. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_age", "description": "Calculate the age based on the birth date", "parameters": { "type": "object", "properties": { "birth_date": { "type": "string", "description": "The birth date in YYYY-MM-DD format" } }, "required": [ "birth_date" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on the birth date\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birth_date\": {\n \"type\": \"string\",\n \"description\": \"The birth date in YYYY-MM-DD format\"\n }\n },\n \"required\": [\n \"birth_date\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to the functions provided to me, and at the moment, I can only calculate age based on the birth date. <|endoftext|>" } ]
USER: Can you check the status of flight BA 2156 for tomorrow? ASSISTANT: <functioncall> {"name": "check_flight_status", "arguments": '{"flight_number": "BA 2156", "date": "tomorrow"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "On time", "departure_time": "10:30 AM", "arrival_time": "2:45 PM"} ASSISTANT: The flight BA 2156 scheduled for tomorrow is on time. It is expected to depart at 10:30 AM and arrive at 2:45 PM. <|endoftext|> USER: That's great! Thank you.
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "check_flight_status", "description": "Check the status of a flight", "parameters": { "type": "object", "properties": { "flight_number": { "type": "string", "description": "The flight number" }, "date": { "type": "string", "description": "The date of the flight" } }, "required": [ "flight_number", "date" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"check_flight_status\",\n \"description\": \"Check the status of a flight\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"flight_number\": {\n \"type\": \"string\",\n \"description\": \"The flight number\"\n },\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of the flight\"\n }\n },\n \"required\": [\n \"flight_number\",\n \"date\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you check the status of flight BA 2156 for tomorrow?" }, { "from": "gpt", "value": "{\"name\": \"check_flight_status\", \"arguments\": '{\"flight_number\": \"BA 2156\", \"date\": \"tomorrow\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"On time\", \"departure_time\": \"10:30 AM\", \"arrival_time\": \"2:45 PM\"}" }, { "from": "gpt", "value": "The flight BA 2156 scheduled for tomorrow is on time. It is expected to depart at 10:30 AM and arrive at 2:45 PM. <|endoftext|>" }, { "from": "human", "value": "That's great! Thank you." } ]
USER: Hi, I need a new password. Can you generate one for me? ASSISTANT: Of course, I can help with that. Could you please specify the length and the complexity level for the password? The complexity level is from 1 to 3, with 1 being the simplest and 3 being the most complex. <|endoftext|> USER: I would like a password of length 12 and complexity level 3. ASSISTANT: <functioncall> {"name": "generate_random_password", "arguments": '{"length": 12, "complexity": 3}'} <|endoftext|> FUNCTION RESPONSE: {"password": "9#jK8$zX6&Q!"} ASSISTANT: Here is your new password: 9#jK8$zX6&Q!. Please make sure to save it in a secure place. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_password", "description": "Generate a random password with specified length and complexity", "parameters": { "type": "object", "properties": { "length": { "type": "integer", "description": "The length of the password" }, "complexity": { "type": "integer", "description": "The complexity level of the password (1-3)" } }, "required": [ "length", "complexity" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password with specified length and complexity\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n },\n \"complexity\": {\n \"type\": \"integer\",\n \"description\": \"The complexity level of the password (1-3)\"\n }\n },\n \"required\": [\n \"length\",\n \"complexity\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need a new password. Can you generate one for me?" }, { "from": "gpt", "value": "Of course, I can help with that. Could you please specify the length and the complexity level for the password? The complexity level is from 1 to 3, with 1 being the simplest and 3 being the most complex. <|endoftext|>" }, { "from": "human", "value": "I would like a password of length 12 and complexity level 3." }, { "from": "gpt", "value": "{\"name\": \"generate_random_password\", \"arguments\": '{\"length\": 12, \"complexity\": 3}'} <|endoftext|>" }, { "from": "tool", "value": "{\"password\": \"9#jK8$zX6&Q!\"}" }, { "from": "gpt", "value": "Here is your new password: 9#jK8$zX6&Q!. Please make sure to save it in a secure place. <|endoftext|>" } ]
USER: Hi, I have some ingredients and I don't know what to cook. Can you help me find a recipe? ASSISTANT: Of course, I can help you with that. Please tell me what ingredients you have. <|endoftext|> USER: I have chicken, bell peppers, and rice. ASSISTANT: <functioncall> {"name": "search_recipes", "arguments": '{"ingredients": ["chicken", "bell peppers", "rice"]}'} <|endoftext|> FUNCTION RESPONSE: {"recipes": [{"name": "Chicken and Bell Pepper Stir Fry", "url": "www.example.com/recipe1"}, {"name": "Chicken and Rice Casserole", "url": "www.example.com/recipe2"}]} ASSISTANT: I found a couple of recipes for you. You can try "Chicken and Bell Pepper Stir Fry" or "Chicken and Rice Casserole". You can find the recipes on the provided links. <|endoftext|> USER: That's great! Can you also order these ingredients for me from the nearest grocery store? ASSISTANT: I'm sorry, but I'm unable to perform external tasks like ordering groceries. My current capabilities are limited to searching for recipes based on the ingredients you provide. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_recipes", "description": "Search for recipes based on given ingredients", "parameters": { "type": "object", "properties": { "ingredients": { "type": "array", "items": { "type": "string" }, "description": "The ingredients to search for" } }, "required": [ "ingredients" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_recipes\",\n \"description\": \"Search for recipes based on given ingredients\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients to search for\"\n }\n },\n \"required\": [\n \"ingredients\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I have some ingredients and I don't know what to cook. Can you help me find a recipe?" }, { "from": "gpt", "value": "Of course, I can help you with that. Please tell me what ingredients you have. <|endoftext|>" }, { "from": "human", "value": "I have chicken, bell peppers, and rice." }, { "from": "gpt", "value": "{\"name\": \"search_recipes\", \"arguments\": '{\"ingredients\": [\"chicken\", \"bell peppers\", \"rice\"]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"recipes\": [{\"name\": \"Chicken and Bell Pepper Stir Fry\", \"url\": \"www.example.com/recipe1\"}, {\"name\": \"Chicken and Rice Casserole\", \"url\": \"www.example.com/recipe2\"}]}" }, { "from": "gpt", "value": "I found a couple of recipes for you. You can try \"Chicken and Bell Pepper Stir Fry\" or \"Chicken and Rice Casserole\". You can find the recipes on the provided links. <|endoftext|>" }, { "from": "human", "value": "That's great! Can you also order these ingredients for me from the nearest grocery store?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks like ordering groceries. My current capabilities are limited to searching for recipes based on the ingredients you provide. <|endoftext|>" } ]
USER: I'm trying to remember a movie. It's a comedy released in 2004. ASSISTANT: Sure, I can help with that. Do you remember the title of the movie? <|endoftext|> USER: I think it was something like "Mean Girls". ASSISTANT: <functioncall> {"name": "search_movie", "arguments": '{"title": "Mean Girls", "release_year": 2004, "genre": "comedy"}'} <|endoftext|> FUNCTION RESPONSE: {"title": "Mean Girls", "release_year": 2004, "genre": "comedy", "director": "Mark Waters", "cast": ["Lindsay Lohan", "Rachel McAdams", "Tina Fey"], "plot": "Cady Heron is a hit with The Plastics, the A-list girl clique at her new school, until she makes the mistake of falling for Aaron Samuels, the ex-boyfriend of alpha Plastic Regina George."} ASSISTANT: Yes, you're right. The movie "Mean Girls" was released in 2004. It's a comedy directed by Mark Waters. The main cast includes Lindsay Lohan, Rachel McAdams, and Tina Fey. The plot revolves around Cady Heron, who becomes popular with The Plastics, the A-list girl clique at her new school, until she falls for Aaron Samuels, the ex-boyfriend of alpha Plastic Regina George. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_movie", "description": "Search for a movie by title", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the movie" }, "release_year": { "type": "integer", "description": "The release year of the movie" }, "genre": { "type": "string", "description": "The genre of the movie" } }, "required": [ "title" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movie\",\n \"description\": \"Search for a movie by title\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n },\n \"release_year\": {\n \"type\": \"integer\",\n \"description\": \"The release year of the movie\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the movie\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I'm trying to remember a movie. It's a comedy released in 2004." }, { "from": "gpt", "value": "Sure, I can help with that. Do you remember the title of the movie? <|endoftext|>" }, { "from": "human", "value": "I think it was something like \"Mean Girls\"." }, { "from": "gpt", "value": "{\"name\": \"search_movie\", \"arguments\": '{\"title\": \"Mean Girls\", \"release_year\": 2004, \"genre\": \"comedy\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"title\": \"Mean Girls\", \"release_year\": 2004, \"genre\": \"comedy\", \"director\": \"Mark Waters\", \"cast\": [\"Lindsay Lohan\", \"Rachel McAdams\", \"Tina Fey\"], \"plot\": \"Cady Heron is a hit with The Plastics, the A-list girl clique at her new school, until she makes the mistake of falling for Aaron Samuels, the ex-boyfriend of alpha Plastic Regina George.\"}" }, { "from": "gpt", "value": "Yes, you're right. The movie \"Mean Girls\" was released in 2004. It's a comedy directed by Mark Waters. The main cast includes Lindsay Lohan, Rachel McAdams, and Tina Fey. The plot revolves around Cady Heron, who becomes popular with The Plastics, the A-list girl clique at her new school, until she falls for Aaron Samuels, the ex-boyfriend of alpha Plastic Regina George. <|endoftext|>" } ]
USER: Can you please order a pizza for me? ASSISTANT: I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate your Body Mass Index (BMI) if you provide me with your weight and height. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate your Body Mass Index (BMI) if you provide me with your weight and height. <|endoftext|>" } ]
USER: Hi, I need help calculating the tip for my bill. The total bill amount is $100 and I want to give a 15% tip. ASSISTANT: <functioncall> {"name": "calculate_tip", "arguments": '{"bill_amount": 100, "tip_percentage": 15}'} <|endoftext|> FUNCTION RESPONSE: {"tip_amount": 15} ASSISTANT: The tip amount for your bill is $15. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "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": "search_recipe", "description": "Search for a recipe by name or ingredients", "parameters": { "type": "object", "properties": { "search_query": { "type": "string", "description": "Search query" } }, "required": [ "search_query" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount for a bill\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip to be given\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n}\n\n{\n \"name\": \"search_recipe\",\n \"description\": \"Search for a recipe by name or ingredients\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"search_query\": {\n \"type\": \"string\",\n \"description\": \"Search query\"\n }\n },\n \"required\": [\n \"search_query\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help calculating the tip for my bill. The total bill amount is $100 and I want to give a 15% tip." }, { "from": "gpt", "value": "{\"name\": \"calculate_tip\", \"arguments\": '{\"bill_amount\": 100, \"tip_percentage\": 15}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tip_amount\": 15}" }, { "from": "gpt", "value": "The tip amount for your bill is $15. <|endoftext|>" } ]
USER: I need to schedule a meeting. ASSISTANT: Sure, I can help with that. Could you please provide me with the name of the meeting, the start and end times, and the attendees? <|endoftext|> USER: The meeting is called "Project Update", it should start at 2022-04-01T10:00:00 and end at 2022-04-01T11:00:00. The attendees are John, Sarah, and Mike. ASSISTANT: <functioncall> {"name": "schedule_meeting", "arguments": '{ "meeting_name": "Project Update", "start_time": "2022-04-01T10:00:00", "end_time": "2022-04-01T11:00:00", "attendees": ["John", "Sarah", "Mike"] }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Meeting 'Project Update' has been scheduled from 10:00 to 11:00 on 2022-04-01 with attendees John, Sarah, and Mike."} ASSISTANT: The meeting 'Project Update' has been successfully scheduled from 10:00 to 11:00 on 2022-04-01 with attendees John, Sarah, and Mike. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "schedule_meeting", "description": "Schedule a meeting", "parameters": { "type": "object", "properties": { "meeting_name": { "type": "string", "description": "The name of the meeting" }, "start_time": { "type": "string", "format": "date-time", "description": "The start time of the meeting" }, "end_time": { "type": "string", "format": "date-time", "description": "The end time of the meeting" }, "attendees": { "type": "array", "items": { "type": "string" }, "description": "The attendees of the meeting" } }, "required": [ "meeting_name", "start_time", "end_time", "attendees" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"schedule_meeting\",\n \"description\": \"Schedule a meeting\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"meeting_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the meeting\"\n },\n \"start_time\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"description\": \"The start time of the meeting\"\n },\n \"end_time\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"description\": \"The end time of the meeting\"\n },\n \"attendees\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The attendees of the meeting\"\n }\n },\n \"required\": [\n \"meeting_name\",\n \"start_time\",\n \"end_time\",\n \"attendees\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to schedule a meeting." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the name of the meeting, the start and end times, and the attendees? <|endoftext|>" }, { "from": "human", "value": "The meeting is called \"Project Update\", it should start at 2022-04-01T10:00:00 and end at 2022-04-01T11:00:00. The attendees are John, Sarah, and Mike." }, { "from": "gpt", "value": "{\"name\": \"schedule_meeting\", \"arguments\": '{\n \"meeting_name\": \"Project Update\",\n \"start_time\": \"2022-04-01T10:00:00\",\n \"end_time\": \"2022-04-01T11:00:00\",\n \"attendees\": [\"John\", \"Sarah\", \"Mike\"]\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Meeting 'Project Update' has been scheduled from 10:00 to 11:00 on 2022-04-01 with attendees John, Sarah, and Mike.\"}" }, { "from": "gpt", "value": "The meeting 'Project Update' has been successfully scheduled from 10:00 to 11:00 on 2022-04-01 with attendees John, Sarah, and Mike. <|endoftext|>" } ]
USER: Hi, I need a new password. Can you generate a random one for me? ASSISTANT: Of course, I can help with that. How long would you like your password to be? <|endoftext|> USER: I would like it to be 12 characters long. ASSISTANT: <functioncall> {"name": "generate_random_password", "arguments": '{"length": 12}'} <|endoftext|> FUNCTION RESPONSE: {"password": "aB3#fG7!kL9@"} ASSISTANT: Here is your new password: aB3#fG7!kL9@. Please make sure to save it in a secure place. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_password", "description": "Generate a random password", "parameters": { "type": "object", "properties": { "length": { "type": "integer", "description": "The length of the password" } }, "required": [ "length" ] } } { "name": "find_nearest_gas_station", "description": "Find the nearest gas station based on current location", "parameters": { "type": "object", "properties": { "current_location": { "type": "string", "description": "The current location" }, "fuel_type": { "type": "string", "description": "The type of fuel needed" } }, "required": [ "current_location", "fuel_type" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n}\n\n{\n \"name\": \"find_nearest_gas_station\",\n \"description\": \"Find the nearest gas station based on current location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"current_location\": {\n \"type\": \"string\",\n \"description\": \"The current location\"\n },\n \"fuel_type\": {\n \"type\": \"string\",\n \"description\": \"The type of fuel needed\"\n }\n },\n \"required\": [\n \"current_location\",\n \"fuel_type\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need a new password. Can you generate a random one for me?" }, { "from": "gpt", "value": "Of course, I can help with that. How long would you like your password to be? <|endoftext|>" }, { "from": "human", "value": "I would like it to be 12 characters long." }, { "from": "gpt", "value": "{\"name\": \"generate_random_password\", \"arguments\": '{\"length\": 12}'} <|endoftext|>" }, { "from": "tool", "value": "{\"password\": \"aB3#fG7!kL9@\"}" }, { "from": "gpt", "value": "Here is your new password: aB3#fG7!kL9@. Please make sure to save it in a secure place. <|endoftext|>" } ]
USER: I need to create a new todo item. ASSISTANT: Sure, I can help with that. Could you please provide me with the title and description for the new todo item? <|endoftext|> USER: The title should be "Grocery Shopping" and the description should be "Buy fruits, vegetables, and bread". ASSISTANT: <functioncall> {"name": "create_todo", "arguments": '{"title": "Grocery Shopping", "description": "Buy fruits, vegetables, and bread"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Todo item 'Grocery Shopping' has been created successfully"} ASSISTANT: Your todo item titled "Grocery Shopping" has been created successfully. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_todo", "description": "Create a new todo item with a given title and description", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the todo item" }, "description": { "type": "string", "description": "The description of the todo item" } }, "required": [ "title", "description" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_todo\",\n \"description\": \"Create a new todo item with a given title and description\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the todo item\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"The description of the todo item\"\n }\n },\n \"required\": [\n \"title\",\n \"description\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to create a new todo item." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the title and description for the new todo item? <|endoftext|>" }, { "from": "human", "value": "The title should be \"Grocery Shopping\" and the description should be \"Buy fruits, vegetables, and bread\"." }, { "from": "gpt", "value": "{\"name\": \"create_todo\", \"arguments\": '{\"title\": \"Grocery Shopping\", \"description\": \"Buy fruits, vegetables, and bread\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Todo item 'Grocery Shopping' has been created successfully\"}" }, { "from": "gpt", "value": "Your todo item titled \"Grocery Shopping\" has been created successfully. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I don't have the capability to book flights. My current function allows me to generate a QR code for a given text or URL. If you need a QR code for a specific URL or text, I'd be happy to assist with that. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_qr_code", "description": "Generate a QR code for a given text or URL", "parameters": { "type": "object", "properties": { "data": { "type": "string", "description": "The text or URL to encode in the QR code" } }, "required": [ "data" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text or URL\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"string\",\n \"description\": \"The text or URL to encode in the QR code\"\n }\n },\n \"required\": [\n \"data\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to book flights. My current function allows me to generate a QR code for a given text or URL. If you need a QR code for a specific URL or text, I'd be happy to assist with that. <|endoftext|>" } ]
USER: Hi, I need help with calculating my mortgage payment. I have a loan amount of $200,000 with an interest rate of 3.5% and a loan term of 30 years. ASSISTANT: <functioncall> {"name": "calculate_mortgage_payment", "arguments": '{"loan_amount": 200000, "interest_rate": 3.5, "loan_term": 30}'} <|endoftext|> FUNCTION RESPONSE: {"monthly_payment": 898.09} ASSISTANT: Based on the details you provided, your monthly mortgage payment would be approximately $898.09. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_mortgage_payment", "description": "Calculate the monthly mortgage payment", "parameters": { "type": "object", "properties": { "loan_amount": { "type": "number", "description": "The loan amount" }, "interest_rate": { "type": "number", "description": "The interest rate" }, "loan_term": { "type": "integer", "description": "The loan term in years" } }, "required": [ "loan_amount", "interest_rate", "loan_term" ] } } { "name": "convert_currency", "description": "Convert one currency to another based on the exchange rate", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_mortgage_payment\",\n \"description\": \"Calculate the monthly mortgage payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The loan amount\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The interest rate\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in years\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n}\n\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert one currency to another based on the exchange rate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with calculating my mortgage payment. I have a loan amount of $200,000 with an interest rate of 3.5% and a loan term of 30 years." }, { "from": "gpt", "value": "{\"name\": \"calculate_mortgage_payment\", \"arguments\": '{\"loan_amount\": 200000, \"interest_rate\": 3.5, \"loan_term\": 30}'} <|endoftext|>" }, { "from": "tool", "value": "{\"monthly_payment\": 898.09}" }, { "from": "gpt", "value": "Based on the details you provided, your monthly mortgage payment would be approximately $898.09. <|endoftext|>" } ]
USER: Hi, I saw a dress that I liked in a store. It costs $200 but they are offering a 20% discount. Can you tell me how much I will have to pay after the discount? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 200, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 160} ASSISTANT: After applying the 20% discount, the dress will cost you $160. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price based on the original price and discount percentage", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the item" }, "discount_percentage": { "type": "number", "description": "The percentage of discount" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price based on the original price and discount percentage\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of discount\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I saw a dress that I liked in a store. It costs $200 but they are offering a 20% discount. Can you tell me how much I will have to pay after the discount?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 200, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 160}" }, { "from": "gpt", "value": "After applying the 20% discount, the dress will cost you $160. <|endoftext|>" } ]
USER: Can you order a pizza for me? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. My current function allows me to generate a random password for you. Is there anything else you need help with? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_password", "description": "Generate a random password", "parameters": { "type": "object", "properties": { "length": { "type": "integer", "description": "The length of the password" }, "include_symbols": { "type": "boolean", "description": "Include symbols in the password" } }, "required": [ "length" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n },\n \"include_symbols\": {\n \"type\": \"boolean\",\n \"description\": \"Include symbols in the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. My current function allows me to generate a random password for you. Is there anything else you need help with? <|endoftext|>" } ]
USER: I need a random number between 1 and 100. ASSISTANT: <functioncall> {"name": "generate_random_number", "arguments": '{"min": 1, "max": 100}'} <|endoftext|> FUNCTION RESPONSE: {"result": 42} ASSISTANT: The random number generated between 1 and 100 is 42. <|endoftext|> USER: Can you generate another random number but this time between 200 and 300? ASSISTANT: <functioncall> {"name": "generate_random_number", "arguments": '{"min": 200, "max": 300}'} <|endoftext|> FUNCTION RESPONSE: {"result": 278} ASSISTANT: The random number generated between 200 and 300 is 278. <|endoftext|> USER: Great, thanks for the help! ASSISTANT: You're welcome! If you need anything else, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_number", "description": "Generate a random number within a specified range", "parameters": { "type": "object", "properties": { "min": { "type": "integer", "description": "The minimum value of the range" }, "max": { "type": "integer", "description": "The maximum value of the range" } }, "required": [ "min", "max" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"integer\",\n \"description\": \"The minimum value of the range\"\n },\n \"max\": {\n \"type\": \"integer\",\n \"description\": \"The maximum value of the range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need a random number between 1 and 100." }, { "from": "gpt", "value": "{\"name\": \"generate_random_number\", \"arguments\": '{\"min\": 1, \"max\": 100}'} <|endoftext|>" }, { "from": "tool", "value": "{\"result\": 42}" }, { "from": "gpt", "value": "The random number generated between 1 and 100 is 42. <|endoftext|>" }, { "from": "human", "value": "Can you generate another random number but this time between 200 and 300?" }, { "from": "gpt", "value": "{\"name\": \"generate_random_number\", \"arguments\": '{\"min\": 200, \"max\": 300}'} <|endoftext|>" }, { "from": "tool", "value": "{\"result\": 278}" }, { "from": "gpt", "value": "The random number generated between 200 and 300 is 278. <|endoftext|>" }, { "from": "human", "value": "Great, thanks for the help!" }, { "from": "gpt", "value": "You're welcome! If you need anything else, feel free to ask. <|endoftext|>" } ]
USER: Hi, I am planning a trip and I want to know how much carbon emission will be there if I travel by car for 200 kilometers? ASSISTANT: <functioncall> {"name": "calculate_emission", "arguments": '{"mode": "car", "distance": 200}'} <|endoftext|> FUNCTION RESPONSE: {"emission": "46 kg"} ASSISTANT: The carbon emission for your car trip of 200 kilometers would be approximately 46 kg. <|endoftext|> USER: What if I decide to take a train instead for the same distance? ASSISTANT: <functioncall> {"name": "calculate_emission", "arguments": '{"mode": "train", "distance": 200}'} <|endoftext|> FUNCTION RESPONSE: {"emission": "14 kg"} ASSISTANT: If you decide to take a train for the same distance, the carbon emission would be significantly lower, approximately 14 kg. <|endoftext|> USER: That's helpful. Thank you! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_emission", "description": "Calculate the carbon emission for a given mode of transportation", "parameters": { "type": "object", "properties": { "mode": { "type": "string", "description": "The mode of transportation (e.g., car, bus, train)" }, "distance": { "type": "number", "description": "The distance traveled in kilometers" } }, "required": [ "mode", "distance" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_emission\",\n \"description\": \"Calculate the carbon emission for a given mode of transportation\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"mode\": {\n \"type\": \"string\",\n \"description\": \"The mode of transportation (e.g., car, bus, train)\"\n },\n \"distance\": {\n \"type\": \"number\",\n \"description\": \"The distance traveled in kilometers\"\n }\n },\n \"required\": [\n \"mode\",\n \"distance\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I am planning a trip and I want to know how much carbon emission will be there if I travel by car for 200 kilometers?" }, { "from": "gpt", "value": "{\"name\": \"calculate_emission\", \"arguments\": '{\"mode\": \"car\", \"distance\": 200}'} <|endoftext|>" }, { "from": "tool", "value": "{\"emission\": \"46 kg\"}" }, { "from": "gpt", "value": "The carbon emission for your car trip of 200 kilometers would be approximately 46 kg. <|endoftext|>" }, { "from": "human", "value": "What if I decide to take a train instead for the same distance?" }, { "from": "gpt", "value": "{\"name\": \"calculate_emission\", \"arguments\": '{\"mode\": \"train\", \"distance\": 200}'} <|endoftext|>" }, { "from": "tool", "value": "{\"emission\": \"14 kg\"}" }, { "from": "gpt", "value": "If you decide to take a train for the same distance, the carbon emission would be significantly lower, approximately 14 kg. <|endoftext|>" }, { "from": "human", "value": "That's helpful. Thank you!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hey, can you get me the recent posts from the Instagram account of @john_doe? ASSISTANT: Sure, I can do that. Let me fetch the information for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "get_social_media_posts", "arguments": '{"platform": "Instagram", "username": "john_doe"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "data": [{"post": "Enjoying the sunset at the beach", "timestamp": "2021-09-10T18:30:00Z"}, {"post": "Homemade pizza for dinner", "timestamp": "2021-09-09T20:00:00Z"}]} ASSISTANT: Here are the recent posts from @john_doe on Instagram: 1. "Enjoying the sunset at the beach" posted on 10th September 2021 at 18:30 UTC. 2. "Homemade pizza for dinner" posted on 9th September 2021 at 20:00 UTC. <|endoftext|> USER: That's great! Can you also order a pizza for me from Domino's? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks such as placing an order for a pizza. I can provide information based on the functions available to me. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_social_media_posts", "description": "Get recent posts from social media platforms", "parameters": { "type": "object", "properties": { "platform": { "type": "string", "enum": [ "Instagram", "Twitter", "Facebook" ], "description": "The social media platform to retrieve posts from" }, "username": { "type": "string", "description": "The username of the user whose posts to retrieve" } }, "required": [ "platform", "username" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_social_media_posts\",\n \"description\": \"Get recent posts from social media platforms\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"platform\": {\n \"type\": \"string\",\n \"enum\": [\n \"Instagram\",\n \"Twitter\",\n \"Facebook\"\n ],\n \"description\": \"The social media platform to retrieve posts from\"\n },\n \"username\": {\n \"type\": \"string\",\n \"description\": \"The username of the user whose posts to retrieve\"\n }\n },\n \"required\": [\n \"platform\",\n \"username\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hey, can you get me the recent posts from the Instagram account of @john_doe?" }, { "from": "gpt", "value": "Sure, I can do that. Let me fetch the information for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"get_social_media_posts\", \"arguments\": '{\"platform\": \"Instagram\", \"username\": \"john_doe\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"data\": [{\"post\": \"Enjoying the sunset at the beach\", \"timestamp\": \"2021-09-10T18:30:00Z\"}, {\"post\": \"Homemade pizza for dinner\", \"timestamp\": \"2021-09-09T20:00:00Z\"}]}" }, { "from": "gpt", "value": "Here are the recent posts from @john_doe on Instagram:\n1. \"Enjoying the sunset at the beach\" posted on 10th September 2021 at 18:30 UTC.\n2. \"Homemade pizza for dinner\" posted on 9th September 2021 at 20:00 UTC. <|endoftext|>" }, { "from": "human", "value": "That's great! Can you also order a pizza for me from Domino's?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as placing an order for a pizza. I can provide information based on the functions available to me. <|endoftext|>" } ]
USER: Hi, I need to convert 100 USD to Euros. Can you help me with that? ASSISTANT: Of course, I can help you with that. Let me do the conversion for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 100, "from_currency": "USD", "to_currency": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 85.30, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: The converted amount from 100 USD to EUR is 85.30 Euros. <|endoftext|> USER: Great, thanks! Can you also book a flight for me from New York to Paris? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to book flights. My current functions only allow me to convert currency. You may want to use a travel booking website or app for that task. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert an amount from one currency to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert an amount from one currency to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 100 USD to Euros. Can you help me with that?" }, { "from": "gpt", "value": "Of course, I can help you with that. Let me do the conversion for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 100, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 85.30, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "The converted amount from 100 USD to EUR is 85.30 Euros. <|endoftext|>" }, { "from": "human", "value": "Great, thanks! Can you also book a flight for me from New York to Paris?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to book flights. My current functions only allow me to convert currency. You may want to use a travel booking website or app for that task. <|endoftext|>" } ]
USER: I saw a jacket I liked in a store. It was originally priced at $200 but it's on a 20% discount. How much will it cost me now? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 200, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 160} ASSISTANT: With the 20% discount, the jacket will now cost you $160. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discount on a product", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the product" }, "discount_percentage": { "type": "number", "description": "The percentage discount on the product" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discount on a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage discount on the product\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I saw a jacket I liked in a store. It was originally priced at $200 but it's on a 20% discount. How much will it cost me now?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 200, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 160}" }, { "from": "gpt", "value": "With the 20% discount, the jacket will now cost you $160. <|endoftext|>" } ]
USER: Can you please fetch my notes? ASSISTANT: <functioncall> {"name": "get_notes", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"notes": ["Buy groceries", "Call the bank", "Finish the report for the meeting", "Book a doctor's appointment"]} ASSISTANT: Here are your notes: 1. Buy groceries 2. Call the bank 3. Finish the report for the meeting 4. Book a doctor's appointment <|endoftext|> USER: Thanks, that's helpful. Can you fetch them again? I think I might have added a new one. ASSISTANT: <functioncall> {"name": "get_notes", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"notes": ["Buy groceries", "Call the bank", "Finish the report for the meeting", "Book a doctor's appointment", "Pick up laundry"]} ASSISTANT: Here are your updated notes: 1. Buy groceries 2. Call the bank 3. Finish the report for the meeting 4. Book a doctor's appointment 5. Pick up laundry <|endoftext|> USER: Great, thank you!
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_notes", "description": "Retrieve the user's notes", "parameters": { "type": "object", "properties": {}, "required": [] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_notes\",\n \"description\": \"Retrieve the user's notes\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {},\n \"required\": []\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please fetch my notes?" }, { "from": "gpt", "value": "{\"name\": \"get_notes\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"notes\": [\"Buy groceries\", \"Call the bank\", \"Finish the report for the meeting\", \"Book a doctor's appointment\"]}" }, { "from": "gpt", "value": "Here are your notes: \n1. Buy groceries\n2. Call the bank\n3. Finish the report for the meeting\n4. Book a doctor's appointment <|endoftext|>" }, { "from": "human", "value": "Thanks, that's helpful. Can you fetch them again? I think I might have added a new one." }, { "from": "gpt", "value": "{\"name\": \"get_notes\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"notes\": [\"Buy groceries\", \"Call the bank\", \"Finish the report for the meeting\", \"Book a doctor's appointment\", \"Pick up laundry\"]}" }, { "from": "gpt", "value": "Here are your updated notes: \n1. Buy groceries\n2. Call the bank\n3. Finish the report for the meeting\n4. Book a doctor's appointment\n5. Pick up laundry <|endoftext|>" }, { "from": "human", "value": "Great, thank you!" } ]
USER: I need to add a task to my todo list. ASSISTANT: Sure, I can help with that. Could you please tell me what the task is and when it's due? <|endoftext|> USER: The task is to buy groceries and it's due tomorrow. ASSISTANT: <functioncall> {"name": "create_todo", "arguments": '{"task": "buy groceries", "due_date": "tomorrow"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "The task 'buy groceries' due tomorrow has been added to your todo list."} ASSISTANT: The task 'buy groceries' due tomorrow has been successfully added to your todo list. <|endoftext|> USER: Great, thank you! I also need to add another task. ASSISTANT: Of course, what's the next task and its due date? <|endoftext|> USER: The task is to pay the electricity bill and it's due in three days. ASSISTANT: <functioncall> {"name": "create_todo", "arguments": '{"task": "pay the electricity bill", "due_date": "in three days"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "The task 'pay the electricity bill' due in three days has been added to your todo list."} ASSISTANT: The task 'pay the electricity bill' due in three days has been successfully added to your todo list. <|endoftext|> USER: Perfect, thanks for your help! ASSISTANT: You're welcome! If you have any other tasks to add, just let me know. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_todo", "description": "Create a new todo item", "parameters": { "type": "object", "properties": { "task": { "type": "string", "description": "The task to be added" }, "due_date": { "type": "string", "format": "date", "description": "The due date of the task" } }, "required": [ "task", "due_date" ] } } { "name": "convert_currency", "description": "Convert currency from one type to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount of money to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_todo\",\n \"description\": \"Create a new todo item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"task\": {\n \"type\": \"string\",\n \"description\": \"The task to be added\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The due date of the task\"\n }\n },\n \"required\": [\n \"task\",\n \"due_date\"\n ]\n }\n}\n\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of money to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to add a task to my todo list." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please tell me what the task is and when it's due? <|endoftext|>" }, { "from": "human", "value": "The task is to buy groceries and it's due tomorrow." }, { "from": "gpt", "value": "{\"name\": \"create_todo\", \"arguments\": '{\"task\": \"buy groceries\", \"due_date\": \"tomorrow\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"The task 'buy groceries' due tomorrow has been added to your todo list.\"}" }, { "from": "gpt", "value": "The task 'buy groceries' due tomorrow has been successfully added to your todo list. <|endoftext|>" }, { "from": "human", "value": "Great, thank you! I also need to add another task." }, { "from": "gpt", "value": "Of course, what's the next task and its due date? <|endoftext|>" }, { "from": "human", "value": "The task is to pay the electricity bill and it's due in three days." }, { "from": "gpt", "value": "{\"name\": \"create_todo\", \"arguments\": '{\"task\": \"pay the electricity bill\", \"due_date\": \"in three days\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"The task 'pay the electricity bill' due in three days has been added to your todo list.\"}" }, { "from": "gpt", "value": "The task 'pay the electricity bill' due in three days has been successfully added to your todo list. <|endoftext|>" }, { "from": "human", "value": "Perfect, thanks for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other tasks to add, just let me know. <|endoftext|>" } ]
USER: I want to watch a movie tonight. Can you suggest me some? ASSISTANT: Of course! Could you please tell me your preferred genre, year of release, or any specific actor you like? <|endoftext|> USER: I like action movies. And I love Tom Cruise. ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"genre": "action", "actor": "Tom Cruise"}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["Mission: Impossible - Fallout", "Top Gun", "Edge of Tomorrow", "Jack Reacher"]} ASSISTANT: Based on your preferences, here are some action movies starring Tom Cruise: "Mission: Impossible - Fallout", "Top Gun", "Edge of Tomorrow", "Jack Reacher". Enjoy your movie night! <|endoftext|> USER: Great! What about action movies from 2020? ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"genre": "action", "year": 2020}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["Tenet", "Extraction", "The Old Guard", "Birds of Prey"]} ASSISTANT: Here are some action movies from 2020: "Tenet", "Extraction", "The Old Guard", "Birds of Prey". I hope you find these suggestions helpful! <|endoftext|> USER: Thank you, these suggestions are great! ASSISTANT: You're welcome! If you need more recommendations, feel free to ask. Enjoy your movie! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_movies", "description": "Search for movies based on specific criteria", "parameters": { "type": "object", "properties": { "genre": { "type": "string", "description": "The desired genre of the movie" }, "year": { "type": "integer", "description": "The year of release of the movie" }, "actor": { "type": "string", "description": "The name of an actor in the movie" } } } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on specific criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The desired genre of the movie\"\n },\n \"year\": {\n \"type\": \"integer\",\n \"description\": \"The year of release of the movie\"\n },\n \"actor\": {\n \"type\": \"string\",\n \"description\": \"The name of an actor in the movie\"\n }\n }\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I want to watch a movie tonight. Can you suggest me some?" }, { "from": "gpt", "value": "Of course! Could you please tell me your preferred genre, year of release, or any specific actor you like? <|endoftext|>" }, { "from": "human", "value": "I like action movies. And I love Tom Cruise." }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"genre\": \"action\", \"actor\": \"Tom Cruise\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"Mission: Impossible - Fallout\", \"Top Gun\", \"Edge of Tomorrow\", \"Jack Reacher\"]}" }, { "from": "gpt", "value": "Based on your preferences, here are some action movies starring Tom Cruise: \"Mission: Impossible - Fallout\", \"Top Gun\", \"Edge of Tomorrow\", \"Jack Reacher\". Enjoy your movie night! <|endoftext|>" }, { "from": "human", "value": "Great! What about action movies from 2020?" }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"genre\": \"action\", \"year\": 2020}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"Tenet\", \"Extraction\", \"The Old Guard\", \"Birds of Prey\"]}" }, { "from": "gpt", "value": "Here are some action movies from 2020: \"Tenet\", \"Extraction\", \"The Old Guard\", \"Birds of Prey\". I hope you find these suggestions helpful! <|endoftext|>" }, { "from": "human", "value": "Thank you, these suggestions are great!" }, { "from": "gpt", "value": "You're welcome! If you need more recommendations, feel free to ask. Enjoy your movie! <|endoftext|>" } ]
USER: I have some chicken, tomatoes and garlic. Can you find me a recipe? ASSISTANT: <functioncall> {"name": "search_recipes", "arguments": '{"ingredients": ["chicken", "tomatoes", "garlic"]}'} <|endoftext|> FUNCTION RESPONSE: {"recipes": [{"name": "Chicken Tomato Garlic Pasta", "ingredients": ["chicken", "tomatoes", "garlic", "pasta"], "instructions": "Boil the pasta. In a separate pan, cook the chicken until it's no longer pink. Add the tomatoes and garlic and cook until the tomatoes are soft. Mix the pasta and chicken mixture together and serve."}]} ASSISTANT: I found a recipe for you. It's called "Chicken Tomato Garlic Pasta". Here are the instructions: Boil the pasta. In a separate pan, cook the chicken until it's no longer pink. Add the tomatoes and garlic and cook until the tomatoes are soft. Mix the pasta and chicken mixture together and serve. Enjoy your meal! <|endoftext|> USER: That sounds delicious! Thank you.
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_recipes", "description": "Search for recipes based on ingredients", "parameters": { "type": "object", "properties": { "ingredients": { "type": "array", "items": { "type": "string" }, "description": "The ingredients for the recipes" } }, "required": [ "ingredients" ] } } { "name": "calculate_age", "description": "Calculate the age based on given birthdate", "parameters": { "type": "object", "properties": { "birthdate": { "type": "string", "description": "The birthdate in the format of YYYY-MM-DD" } }, "required": [ "birthdate" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_recipes\",\n \"description\": \"Search for recipes based on ingredients\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients for the recipes\"\n }\n },\n \"required\": [\n \"ingredients\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on given birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"description\": \"The birthdate in the format of YYYY-MM-DD\"\n }\n },\n \"required\": [\n \"birthdate\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I have some chicken, tomatoes and garlic. Can you find me a recipe?" }, { "from": "gpt", "value": "{\"name\": \"search_recipes\", \"arguments\": '{\"ingredients\": [\"chicken\", \"tomatoes\", \"garlic\"]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"recipes\": [{\"name\": \"Chicken Tomato Garlic Pasta\", \"ingredients\": [\"chicken\", \"tomatoes\", \"garlic\", \"pasta\"], \"instructions\": \"Boil the pasta. In a separate pan, cook the chicken until it's no longer pink. Add the tomatoes and garlic and cook until the tomatoes are soft. Mix the pasta and chicken mixture together and serve.\"}]}" }, { "from": "gpt", "value": "I found a recipe for you. It's called \"Chicken Tomato Garlic Pasta\". Here are the instructions: Boil the pasta. In a separate pan, cook the chicken until it's no longer pink. Add the tomatoes and garlic and cook until the tomatoes are soft. Mix the pasta and chicken mixture together and serve. Enjoy your meal! <|endoftext|>" }, { "from": "human", "value": "That sounds delicious! Thank you." } ]
USER: I'm running low on gas. Can you help me find the nearest gas station? I'm currently at latitude 40.7128 and longitude -74.0060. ASSISTANT: <functioncall> {"name": "find_closest_gas_station", "arguments": '{"latitude": 40.7128, "longitude": -74.0060}'} <|endoftext|> FUNCTION RESPONSE: {"name": "Shell", "address": "2nd Ave & E 25th St, New York, NY 10010", "distance": "0.9 miles"} ASSISTANT: The closest gas station to your location is Shell, located at 2nd Ave & E 25th St, New York, NY 10010. It's approximately 0.9 miles away from you. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "find_closest_gas_station", "description": "Find the closest gas station based on location", "parameters": { "type": "object", "properties": { "latitude": { "type": "number", "description": "The latitude of the current location" }, "longitude": { "type": "number", "description": "The longitude of the current location" } }, "required": [ "latitude", "longitude" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"find_closest_gas_station\",\n \"description\": \"Find the closest gas station based on location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"latitude\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the current location\"\n },\n \"longitude\": {\n \"type\": \"number\",\n \"description\": \"The longitude of the current location\"\n }\n },\n \"required\": [\n \"latitude\",\n \"longitude\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I'm running low on gas. Can you help me find the nearest gas station? I'm currently at latitude 40.7128 and longitude -74.0060." }, { "from": "gpt", "value": "{\"name\": \"find_closest_gas_station\", \"arguments\": '{\"latitude\": 40.7128, \"longitude\": -74.0060}'} <|endoftext|>" }, { "from": "tool", "value": "{\"name\": \"Shell\", \"address\": \"2nd Ave & E 25th St, New York, NY 10010\", \"distance\": \"0.9 miles\"}" }, { "from": "gpt", "value": "The closest gas station to your location is Shell, located at 2nd Ave & E 25th St, New York, NY 10010. It's approximately 0.9 miles away from you. <|endoftext|>" } ]
USER: Hi, I need to create a note for my meeting tomorrow. ASSISTANT: Sure, I can help with that. Could you please provide me with the title and content for the note? <|endoftext|> USER: The title should be "Team Meeting" and the content should be "Discuss project updates, budget allocation, and team assignments." ASSISTANT: <functioncall> {"name": "create_note", "arguments": '{"title": "Team Meeting", "content": "Discuss project updates, budget allocation, and team assignments."}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Note created successfully"} ASSISTANT: Your note titled "Team Meeting" has been created successfully. It contains the following content: "Discuss project updates, budget allocation, and team assignments." <|endoftext|> USER: Great, can you also send an email to my team with the details of the meeting? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to send emails. My current function only allows me to create notes. You might want to use an email client for that task. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_note", "description": "Create a new note", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the note" }, "content": { "type": "string", "description": "The content of the note" } }, "required": [ "title", "content" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_note\",\n \"description\": \"Create a new note\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the note\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"The content of the note\"\n }\n },\n \"required\": [\n \"title\",\n \"content\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to create a note for my meeting tomorrow." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the title and content for the note? <|endoftext|>" }, { "from": "human", "value": "The title should be \"Team Meeting\" and the content should be \"Discuss project updates, budget allocation, and team assignments.\"" }, { "from": "gpt", "value": "{\"name\": \"create_note\", \"arguments\": '{\"title\": \"Team Meeting\", \"content\": \"Discuss project updates, budget allocation, and team assignments.\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Note created successfully\"}" }, { "from": "gpt", "value": "Your note titled \"Team Meeting\" has been created successfully. It contains the following content: \"Discuss project updates, budget allocation, and team assignments.\" <|endoftext|>" }, { "from": "human", "value": "Great, can you also send an email to my team with the details of the meeting?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to send emails. My current function only allows me to create notes. You might want to use an email client for that task. <|endoftext|>" } ]
USER: I need to create an event for my birthday party. ASSISTANT: Sure, I can help with that. Could you please provide me with the date and location for your birthday party? <|endoftext|> USER: The date is 2022-05-15 and the location is my house. ASSISTANT: <functioncall> {"name": "create_event", "arguments": '{"title": "My Birthday Party", "date": "2022-05-15", "location": "My House"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Event 'My Birthday Party' has been successfully created for 2022-05-15 at 'My House'"} ASSISTANT: Great! The event 'My Birthday Party' has been successfully created for May 15, 2022 at your house. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_event", "description": "Create a new event", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the event" }, "date": { "type": "string", "description": "The date of the event (format: YYYY-MM-DD)" }, "location": { "type": "string", "description": "The location of the event" } }, "required": [ "title", "date", "location" ] } } { "name": "analyze_sentiment", "description": "Analyze the sentiment of a text", "parameters": { "type": "object", "properties": { "text": { "type": "string", "description": "The text to be analyzed" } }, "required": [ "text" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_event\",\n \"description\": \"Create a new event\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the event\"\n },\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of the event (format: YYYY-MM-DD)\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the event\"\n }\n },\n \"required\": [\n \"title\",\n \"date\",\n \"location\"\n ]\n }\n}\n\n{\n \"name\": \"analyze_sentiment\",\n \"description\": \"Analyze the sentiment of a text\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be analyzed\"\n }\n },\n \"required\": [\n \"text\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to create an event for my birthday party." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the date and location for your birthday party? <|endoftext|>" }, { "from": "human", "value": "The date is 2022-05-15 and the location is my house." }, { "from": "gpt", "value": "{\"name\": \"create_event\", \"arguments\": '{\"title\": \"My Birthday Party\", \"date\": \"2022-05-15\", \"location\": \"My House\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Event 'My Birthday Party' has been successfully created for 2022-05-15 at 'My House'\"}" }, { "from": "gpt", "value": "Great! The event 'My Birthday Party' has been successfully created for May 15, 2022 at your house. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I don't have the capability to book flights. My current function allows me to calculate the distance between two locations. If you need to know the distance between New York and London, I can certainly help with that. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "source_location": { "type": "string", "description": "The source location" }, "destination_location": { "type": "string", "description": "The destination location" } }, "required": [ "source_location", "destination_location" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"source_location\": {\n \"type\": \"string\",\n \"description\": \"The source location\"\n },\n \"destination_location\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n }\n },\n \"required\": [\n \"source_location\",\n \"destination_location\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to book flights. My current function allows me to calculate the distance between two locations. If you need to know the distance between New York and London, I can certainly help with that. <|endoftext|>" } ]
USER: I saw a dress that I liked. It was priced at $100 and there's a 20% discount on it. Can you tell me how much I will have to pay after the discount? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"price": 100, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 80} ASSISTANT: After applying the 20% discount, the dress will cost you $80. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price", "parameters": { "type": "object", "properties": { "price": { "type": "number", "description": "The original price" }, "discount_percentage": { "type": "number", "description": "The discount percentage" } }, "required": [ "price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"price\": {\n \"type\": \"number\",\n \"description\": \"The original price\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I saw a dress that I liked. It was priced at $100 and there's a 20% discount on it. Can you tell me how much I will have to pay after the discount?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"price\": 100, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 80}" }, { "from": "gpt", "value": "After applying the 20% discount, the dress will cost you $80. <|endoftext|>" } ]
USER: Hey, can you get me the lyrics of the song 'Imagine' by John Lennon? ASSISTANT: <functioncall> {"name": "get_lyrics", "arguments": '{"artist": "John Lennon", "song_title": "Imagine"}'} <|endoftext|> FUNCTION RESPONSE: {"lyrics": "
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_lyrics", "description": "Get the lyrics of a song", "parameters": { "type": "object", "properties": { "artist": { "type": "string", "description": "The name of the artist" }, "song_title": { "type": "string", "description": "The title of the song" } }, "required": [ "artist", "song_title" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_lyrics\",\n \"description\": \"Get the lyrics of a song\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"artist\": {\n \"type\": \"string\",\n \"description\": \"The name of the artist\"\n },\n \"song_title\": {\n \"type\": \"string\",\n \"description\": \"The title of the song\"\n }\n },\n \"required\": [\n \"artist\",\n \"song_title\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hey, can you get me the lyrics of the song 'Imagine' by John Lennon?" }, { "from": "gpt", "value": "{\"name\": \"get_lyrics\", \"arguments\": '{\"artist\": \"John Lennon\", \"song_title\": \"Imagine\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"lyrics\": \"" } ]
USER: I need to send an email to my boss. The recipient is boss@company.com. The subject should be "Monthly Report" and the body should say "Please find attached the monthly report for your review." ASSISTANT: <functioncall> {"name": "send_email", "arguments": '{"recipient": "boss@company.com", "subject": "Monthly Report", "body": "Please find attached the monthly report for your review."}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully"} ASSISTANT: The email has been sent successfully to your boss. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "send_email", "description": "Send an email", "parameters": { "type": "object", "properties": { "recipient": { "type": "string", "description": "The email address of the recipient" }, "subject": { "type": "string", "description": "The subject of the email" }, "body": { "type": "string", "description": "The body of the email" } }, "required": [ "recipient", "subject", "body" ] } } { "name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "start_location": { "type": "string", "description": "The starting location" }, "end_location": { "type": "string", "description": "The ending location" } }, "required": [ "start_location", "end_location" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"body\": {\n \"type\": \"string\",\n \"description\": \"The body of the email\"\n }\n },\n \"required\": [\n \"recipient\",\n \"subject\",\n \"body\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"start_location\": {\n \"type\": \"string\",\n \"description\": \"The starting location\"\n },\n \"end_location\": {\n \"type\": \"string\",\n \"description\": \"The ending location\"\n }\n },\n \"required\": [\n \"start_location\",\n \"end_location\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to send an email to my boss. The recipient is boss@company.com. The subject should be \"Monthly Report\" and the body should say \"Please find attached the monthly report for your review.\"" }, { "from": "gpt", "value": "{\"name\": \"send_email\", \"arguments\": '{\"recipient\": \"boss@company.com\", \"subject\": \"Monthly Report\", \"body\": \"Please find attached the monthly report for your review.\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}" }, { "from": "gpt", "value": "The email has been sent successfully to your boss. <|endoftext|>" } ]
USER: Hi, I need to convert 1000 US dollars to Euros. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from": "USD", "to": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 850.00, "from": "USD", "to": "EUR"} ASSISTANT: Sure, 1000 US dollars is equivalent to 850 Euros. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one type to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "from": { "type": "string", "description": "The currency to convert from" }, "to": { "type": "string", "description": "The currency to convert to" } }, "required": [ "amount", "from", "to" ] } } { "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from\",\n \"to\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_tax\",\n \"description\": \"Calculate the tax amount based on income and tax rate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"income\": {\n \"type\": \"number\",\n \"description\": \"The income amount\"\n },\n \"tax_rate\": {\n \"type\": \"number\",\n \"description\": \"The tax rate in percentage\"\n }\n },\n \"required\": [\n \"income\",\n \"tax_rate\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 1000 US dollars to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from\": \"USD\", \"to\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850.00, \"from\": \"USD\", \"to\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 1000 US dollars is equivalent to 850 Euros. <|endoftext|>" } ]
USER: Hi, I need to calculate the area of a rectangle. The length is 10 units and the width is 5 units. ASSISTANT: Sure, I can help with that. Let me calculate it for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "calculate_area", "arguments": '{ "shape": "rectangle", "dimensions": { "length": 10, "width": 5 } }'} <|endoftext|> FUNCTION RESPONSE: {"area": 50} ASSISTANT: The area of the rectangle with length 10 units and width 5 units is 50 square units. <|endoftext|> USER: Great, thank you. Can you also help me book a flight to New York? ASSISTANT: I'm sorry, but I can't assist with that. My current capabilities are limited to calculating the area of shapes. I don't have the function to book flights or perform other external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_area", "description": "Calculate the area of a specified shape", "parameters": { "type": "object", "properties": { "shape": { "type": "string", "enum": [ "circle", "rectangle", "triangle" ], "description": "The shape for which the area will be calculated" }, "dimensions": { "type": "object", "properties": { "radius": { "type": "number", "description": "The radius of the circle" }, "length": { "type": "number", "description": "The length of the rectangle" }, "width": { "type": "number", "description": "The width of the rectangle" }, "base": { "type": "number", "description": "The base of the triangle" }, "height": { "type": "number", "description": "The height of the triangle" } }, "required": [ "radius", "length", "width", "base", "height" ] } }, "required": [ "shape", "dimensions" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a specified shape\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"enum\": [\n \"circle\",\n \"rectangle\",\n \"triangle\"\n ],\n \"description\": \"The shape for which the area will be calculated\"\n },\n \"dimensions\": {\n \"type\": \"object\",\n \"properties\": {\n \"radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the circle\"\n },\n \"length\": {\n \"type\": \"number\",\n \"description\": \"The length of the rectangle\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the rectangle\"\n },\n \"base\": {\n \"type\": \"number\",\n \"description\": \"The base of the triangle\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the triangle\"\n }\n },\n \"required\": [\n \"radius\",\n \"length\",\n \"width\",\n \"base\",\n \"height\"\n ]\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to calculate the area of a rectangle. The length is 10 units and the width is 5 units." }, { "from": "gpt", "value": "Sure, I can help with that. Let me calculate it for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"calculate_area\", \"arguments\": '{\n \"shape\": \"rectangle\",\n \"dimensions\": {\n \"length\": 10,\n \"width\": 5\n }\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"area\": 50}" }, { "from": "gpt", "value": "The area of the rectangle with length 10 units and width 5 units is 50 square units. <|endoftext|>" }, { "from": "human", "value": "Great, thank you. Can you also help me book a flight to New York?" }, { "from": "gpt", "value": "I'm sorry, but I can't assist with that. My current capabilities are limited to calculating the area of shapes. I don't have the function to book flights or perform other external tasks. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with booking flights. My current capabilities allow me to calculate the distance between two locations. If you need that information, I'd be happy to help. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "origin": { "type": "string", "description": "The origin location" }, "destination": { "type": "string", "description": "The destination location" } }, "required": [ "origin", "destination" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"origin\": {\n \"type\": \"string\",\n \"description\": \"The origin location\"\n },\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n }\n },\n \"required\": [\n \"origin\",\n \"destination\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities allow me to calculate the distance between two locations. If you need that information, I'd be happy to help. <|endoftext|>" } ]
USER: Can you please order a pizza for me from the local pizzeria? ASSISTANT: I'm sorry, but I can't assist with that. My capabilities are limited to the functions I've been provided, and ordering food from a local pizzeria is an external task that I can't perform. I can help you search for a product in a given online store using the "search_product" function. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_product", "description": "Search for a product in a given online store", "parameters": { "type": "object", "properties": { "store": { "type": "string", "description": "The name of the online store" }, "product_name": { "type": "string", "description": "The name of the product" } }, "required": [ "store", "product_name" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_product\",\n \"description\": \"Search for a product in a given online store\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"store\": {\n \"type\": \"string\",\n \"description\": \"The name of the online store\"\n },\n \"product_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the product\"\n }\n },\n \"required\": [\n \"store\",\n \"product_name\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please order a pizza for me from the local pizzeria?" }, { "from": "gpt", "value": "I'm sorry, but I can't assist with that. My capabilities are limited to the functions I've been provided, and ordering food from a local pizzeria is an external task that I can't perform. I can help you search for a product in a given online store using the \"search_product\" function. <|endoftext|>" } ]
USER: Hi, I need to convert 500 USD to Euros. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 500, "from_currency": "USD", "to_currency": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 425.50, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 500 USD is approximately 425.50 Euros. <|endoftext|> USER: That's great! Now, can you convert 1000 Euros back to USD? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from_currency": "EUR", "to_currency": "USD"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 1176.47, "from_currency": "EUR", "to_currency": "USD"} ASSISTANT: 1000 Euros is approximately 1176.47 USD. <|endoftext|> USER: Thank you for your help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one type to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount of money to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of money to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 500 USD to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 500, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 425.50, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 500 USD is approximately 425.50 Euros. <|endoftext|>" }, { "from": "human", "value": "That's great! Now, can you convert 1000 Euros back to USD?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"EUR\", \"to_currency\": \"USD\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 1176.47, \"from_currency\": \"EUR\", \"to_currency\": \"USD\"}" }, { "from": "gpt", "value": "1000 Euros is approximately 1176.47 USD. <|endoftext|>" }, { "from": "human", "value": "Thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hi, I need help with calculating the tip for my bill. The total bill amount is $50 and I want to leave a 20% tip. ASSISTANT: <functioncall> {"name": "calculate_tip", "arguments": '{"bill_amount": 50, "tip_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"tip_amount": 10} ASSISTANT: The tip amount for a bill of $50 with a tip percentage of 20% is $10. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_tip", "description": "Calculate the tip amount", "parameters": { "type": "object", "properties": { "bill_amount": { "type": "number", "description": "The total bill amount" }, "tip_percentage": { "type": "number", "description": "The tip percentage" } }, "required": [ "bill_amount", "tip_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The tip percentage\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with calculating the tip for my bill. The total bill amount is $50 and I want to leave a 20% tip." }, { "from": "gpt", "value": "{\"name\": \"calculate_tip\", \"arguments\": '{\"bill_amount\": 50, \"tip_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tip_amount\": 10}" }, { "from": "gpt", "value": "The tip amount for a bill of $50 with a tip percentage of 20% is $10. <|endoftext|>" } ]
USER: I need to send an email to my boss about the meeting tomorrow. ASSISTANT: Sure, I can help with that. Could you please provide me with your boss's email address, the subject of the email, and the content you'd like to include in the email? <|endoftext|> USER: Yes, his email is boss@company.com. The subject should be "Meeting Agenda for Tomorrow". And for the content, write "Dear Sir, I would like to discuss our marketing strategy in tomorrow's meeting. I have prepared a presentation and would appreciate your feedback. Regards, [User's Name]". ASSISTANT: <functioncall> {"name": "send_email", "arguments": '{"recipient": "boss@company.com", "subject": "Meeting Agenda for Tomorrow", "message": "Dear Sir, I would like to discuss our marketing strategy in tomorrow's meeting. I have prepared a presentation and would appreciate your feedback. Regards, [User's Name]"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully."} ASSISTANT: The email has been sent successfully to your boss. Is there anything else you need assistance with? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "send_email", "description": "Send an email to a recipient", "parameters": { "type": "object", "properties": { "recipient": { "type": "string", "description": "The email address of the recipient" }, "subject": { "type": "string", "description": "The subject of the email" }, "message": { "type": "string", "description": "The content of the email" } }, "required": [ "recipient", "subject", "message" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"message\": {\n \"type\": \"string\",\n \"description\": \"The content of the email\"\n }\n },\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to send an email to my boss about the meeting tomorrow." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with your boss's email address, the subject of the email, and the content you'd like to include in the email? <|endoftext|>" }, { "from": "human", "value": "Yes, his email is boss@company.com. The subject should be \"Meeting Agenda for Tomorrow\". And for the content, write \"Dear Sir, I would like to discuss our marketing strategy in tomorrow's meeting. I have prepared a presentation and would appreciate your feedback. Regards, [User's Name]\"." }, { "from": "gpt", "value": "{\"name\": \"send_email\", \"arguments\": '{\"recipient\": \"boss@company.com\", \"subject\": \"Meeting Agenda for Tomorrow\", \"message\": \"Dear Sir, I would like to discuss our marketing strategy in tomorrow's meeting. I have prepared a presentation and would appreciate your feedback. Regards, [User's Name]\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Email has been sent successfully.\"}" }, { "from": "gpt", "value": "The email has been sent successfully to your boss. Is there anything else you need assistance with? <|endoftext|>" } ]
USER: Hi, I need some motivation. Can you share a quote with me? ASSISTANT: <functioncall> {"name": "get_random_quote", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"quote": "The only way to do great work is to love what you do. - Steve Jobs"} ASSISTANT: Here is a quote for you: "The only way to do great work is to love what you do." - Steve Jobs <|endoftext|> USER: That's a great quote. Can you share another one? ASSISTANT: <functioncall> {"name": "get_random_quote", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"quote": "Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful. - Albert Schweitzer"} ASSISTANT: Here's another one for you: "Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful." - Albert Schweitzer <|endoftext|> USER: Thank you, that was really inspiring. ASSISTANT: You're welcome! If you need more quotes or any other help, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_quote", "description": "Get a random quote", "parameters": { "type": "object", "properties": {}, "required": [] } } { "name": "get_random_joke", "description": "Get a random joke", "parameters": {} }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_quote\",\n \"description\": \"Get a random quote\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {},\n \"required\": []\n }\n}\n\n{\n \"name\": \"get_random_joke\",\n \"description\": \"Get a random joke\",\n \"parameters\": {}\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need some motivation. Can you share a quote with me?" }, { "from": "gpt", "value": "{\"name\": \"get_random_quote\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"quote\": \"The only way to do great work is to love what you do. - Steve Jobs\"}" }, { "from": "gpt", "value": "Here is a quote for you: \"The only way to do great work is to love what you do.\" - Steve Jobs <|endoftext|>" }, { "from": "human", "value": "That's a great quote. Can you share another one?" }, { "from": "gpt", "value": "{\"name\": \"get_random_quote\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"quote\": \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful. - Albert Schweitzer\"}" }, { "from": "gpt", "value": "Here's another one for you: \"Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful.\" - Albert Schweitzer <|endoftext|>" }, { "from": "human", "value": "Thank you, that was really inspiring." }, { "from": "gpt", "value": "You're welcome! If you need more quotes or any other help, feel free to ask. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with that. My current capabilities allow me to calculate the average of a list of numbers. I don't have the ability to book flights or perform other external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_average", "description": "Calculate the average of a list of numbers", "parameters": { "type": "object", "properties": { "numbers": { "type": "array", "items": { "type": "number" }, "description": "The list of numbers" } }, "required": [ "numbers" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_average\",\n \"description\": \"Calculate the average of a list of numbers\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"numbers\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n },\n \"description\": \"The list of numbers\"\n }\n },\n \"required\": [\n \"numbers\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with that. My current capabilities allow me to calculate the average of a list of numbers. I don't have the ability to book flights or perform other external tasks. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. I can assist with tasks related to the functions provided to me. For instance, I can help calculate the area of a shape given its dimensions. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_area", "description": "Calculate the area of a shape", "parameters": { "type": "object", "properties": { "shape": { "type": "string", "description": "The shape (e.g., circle, square, triangle)" }, "dimensions": { "type": "object", "properties": { "radius": { "type": "number", "description": "The radius of the circle" }, "side": { "type": "number", "description": "The side length of the square" }, "base": { "type": "number", "description": "The base length of the triangle" }, "height": { "type": "number", "description": "The height of the triangle" } } } }, "required": [ "shape", "dimensions" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a shape\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"description\": \"The shape (e.g., circle, square, triangle)\"\n },\n \"dimensions\": {\n \"type\": \"object\",\n \"properties\": {\n \"radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the circle\"\n },\n \"side\": {\n \"type\": \"number\",\n \"description\": \"The side length of the square\"\n },\n \"base\": {\n \"type\": \"number\",\n \"description\": \"The base length of the triangle\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the triangle\"\n }\n }\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. I can assist with tasks related to the functions provided to me. For instance, I can help calculate the area of a shape given its dimensions. <|endoftext|>" } ]
USER: I need to create an event. ASSISTANT: Sure, I can help with that. Could you please provide me with the title, location, date, and time of the event? <|endoftext|> USER: The title is "Annual Charity Gala", it will be held at "The Grand Hall", on "December 10th, 2022", at "7:00 PM". ASSISTANT: <functioncall> {"name": "create_event", "arguments": '{"title": "Annual Charity Gala", "location": "The Grand Hall", "date": "December 10th, 2022", "time": "7:00 PM"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Event 'Annual Charity Gala' has been successfully created for December 10th, 2022 at 7:00 PM at The Grand Hall."} ASSISTANT: The event "Annual Charity Gala" has been successfully created. It will be held on December 10th, 2022 at 7:00 PM at The Grand Hall. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_event", "description": "Create a new event with specified details", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the event" }, "location": { "type": "string", "description": "The location of the event" }, "date": { "type": "string", "description": "The date of the event" }, "time": { "type": "string", "description": "The time of the event" } }, "required": [ "title", "location", "date", "time" ] } } { "name": "calculate_tip", "description": "Calculate tip amount", "parameters": { "type": "object", "properties": { "bill_amount": { "type": "number", "description": "The total bill amount" }, "tip_percentage": { "type": "number", "description": "The percentage of tip" } }, "required": [ "bill_amount", "tip_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_event\",\n \"description\": \"Create a new event with specified details\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the event\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the event\"\n },\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of the event\"\n },\n \"time\": {\n \"type\": \"string\",\n \"description\": \"The time of the event\"\n }\n },\n \"required\": [\n \"title\",\n \"location\",\n \"date\",\n \"time\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate tip amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to create an event." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the title, location, date, and time of the event? <|endoftext|>" }, { "from": "human", "value": "The title is \"Annual Charity Gala\", it will be held at \"The Grand Hall\", on \"December 10th, 2022\", at \"7:00 PM\"." }, { "from": "gpt", "value": "{\"name\": \"create_event\", \"arguments\": '{\"title\": \"Annual Charity Gala\", \"location\": \"The Grand Hall\", \"date\": \"December 10th, 2022\", \"time\": \"7:00 PM\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Event 'Annual Charity Gala' has been successfully created for December 10th, 2022 at 7:00 PM at The Grand Hall.\"}" }, { "from": "gpt", "value": "The event \"Annual Charity Gala\" has been successfully created. It will be held on December 10th, 2022 at 7:00 PM at The Grand Hall. <|endoftext|>" } ]
USER: Hi, I am planning to travel to Japan. Can you tell me about the visa requirements? ASSISTANT: <functioncall> {"name": "check_visa_requirements", "arguments": '{"country": "Japan"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "data": {"visa_requirements": "For most countries, Japan offers visa-free entry for a short stay. For longer stays, a visa is required. Please check with the Japanese embassy in your country for the most accurate information."}} ASSISTANT: For most countries, Japan offers visa-free entry for a short stay. For longer stays, a visa is required. Please check with the Japanese embassy in your country for the most accurate information. <|endoftext|> USER: Thank you for the information. What about Australia? ASSISTANT: <functioncall> {"name": "check_visa_requirements", "arguments": '{"country": "Australia"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "data": {"visa_requirements": "All visitors to Australia, except New Zealand citizens, require a visa to enter the country. Please check with the Australian embassy in your country for the most accurate information."}} ASSISTANT: All visitors to Australia, except New Zealand citizens, require a visa to enter the country. Please check with the Australian embassy in your country for the most accurate information. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "check_visa_requirements", "description": "Check the visa requirements for a specific country", "parameters": { "type": "object", "properties": { "country": { "type": "string", "description": "The name of the country" } }, "required": [ "country" ] } } { "name": "search_books", "description": "Search for books based on specified criteria", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the book" }, "author": { "type": "string", "description": "The author of the book" }, "genre": { "type": "string", "description": "The genre of the book" } } } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"check_visa_requirements\",\n \"description\": \"Check the visa requirements for a specific country\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The name of the country\"\n }\n },\n \"required\": [\n \"country\"\n ]\n }\n}\n\n{\n \"name\": \"search_books\",\n \"description\": \"Search for books based on specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the book\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the book\"\n }\n }\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I am planning to travel to Japan. Can you tell me about the visa requirements?" }, { "from": "gpt", "value": "{\"name\": \"check_visa_requirements\", \"arguments\": '{\"country\": \"Japan\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"data\": {\"visa_requirements\": \"For most countries, Japan offers visa-free entry for a short stay. For longer stays, a visa is required. Please check with the Japanese embassy in your country for the most accurate information.\"}}" }, { "from": "gpt", "value": "For most countries, Japan offers visa-free entry for a short stay. For longer stays, a visa is required. Please check with the Japanese embassy in your country for the most accurate information. <|endoftext|>" }, { "from": "human", "value": "Thank you for the information. What about Australia?" }, { "from": "gpt", "value": "{\"name\": \"check_visa_requirements\", \"arguments\": '{\"country\": \"Australia\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"data\": {\"visa_requirements\": \"All visitors to Australia, except New Zealand citizens, require a visa to enter the country. Please check with the Australian embassy in your country for the most accurate information.\"}}" }, { "from": "gpt", "value": "All visitors to Australia, except New Zealand citizens, require a visa to enter the country. Please check with the Australian embassy in your country for the most accurate information. <|endoftext|>" } ]
USER: I saw a jacket I liked for $200, but it's on sale for 20% off. How much would it cost after the discount? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 200, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 160} ASSISTANT: The jacket would cost you $160 after a 20% discount. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price of a product", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the product" }, "discount_percentage": { "type": "number", "description": "The percentage discount to be applied" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage discount to be applied\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I saw a jacket I liked for $200, but it's on sale for 20% off. How much would it cost after the discount?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 200, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 160}" }, { "from": "gpt", "value": "The jacket would cost you $160 after a 20% discount. <|endoftext|>" } ]
USER: Hi, I want to know how much I will save if I buy a dress that originally costs $100 but is currently on a 20% discount. ASSISTANT: Sure, let me calculate that for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 100, "discount_percentage": 20}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 80, "savings": 20} ASSISTANT: The dress will now cost you $80 after the discount. You will save $20. <|endoftext|> USER: That's great! Can you also book a taxi for me to go to the mall? ASSISTANT: I'm sorry, but I'm currently unable to perform external tasks such as booking a taxi. My functions are limited to the ones provided to me. Is there anything else you would like to know or calculate? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price based on original price and discount percentage", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price" }, "discount_percentage": { "type": "number", "description": "The percentage of discount" } }, "required": [ "original_price", "discount_percentage" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price based on original price and discount percentage\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of discount\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I want to know how much I will save if I buy a dress that originally costs $100 but is currently on a 20% discount." }, { "from": "gpt", "value": "Sure, let me calculate that for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 100, \"discount_percentage\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 80, \"savings\": 20}" }, { "from": "gpt", "value": "The dress will now cost you $80 after the discount. You will save $20. <|endoftext|>" }, { "from": "human", "value": "That's great! Can you also book a taxi for me to go to the mall?" }, { "from": "gpt", "value": "I'm sorry, but I'm currently unable to perform external tasks such as booking a taxi. My functions are limited to the ones provided to me. Is there anything else you would like to know or calculate? <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with booking flights as it's an external task. My current capabilities are limited to the functions provided to me. For instance, I can generate a random password for you. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_password", "description": "Generate a random password with specified length", "parameters": { "type": "object", "properties": { "length": { "type": "integer", "description": "The length of the password" } }, "required": [ "length" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password with specified length\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights as it's an external task. My current capabilities are limited to the functions provided to me. For instance, I can generate a random password for you. <|endoftext|>" } ]
USER: Hi, I need to convert 1000 USD to EUR. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from_currency": "USD", "to_currency": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 850.00, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 1000 USD is approximately 850 EUR. <|endoftext|> USER: Great, thanks! Now, can you convert 500 GBP to USD? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 500, "from_currency": "GBP", "to_currency": "USD"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 650.00, "from_currency": "GBP", "to_currency": "USD"} ASSISTANT: 500 GBP is approximately 650 USD. <|endoftext|> USER: Thank you for your help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 1000 USD to EUR. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850.00, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 1000 USD is approximately 850 EUR. <|endoftext|>" }, { "from": "human", "value": "Great, thanks! Now, can you convert 500 GBP to USD?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 500, \"from_currency\": \"GBP\", \"to_currency\": \"USD\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 650.00, \"from_currency\": \"GBP\", \"to_currency\": \"USD\"}" }, { "from": "gpt", "value": "500 GBP is approximately 650 USD. <|endoftext|>" }, { "from": "human", "value": "Thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hi, I need help with calculating the interest on my loan. ASSISTANT: Of course, I can help with that. Could you please provide me with the principal amount of the loan, the annual interest rate, and the term of the loan in years? <|endoftext|> USER: Sure, the principal amount is $50000, the annual interest rate is 5%, and the loan term is 10 years. ASSISTANT: <functioncall> {"name": "calculate_loan_interest", "arguments": '{"principal": 50000, "interest_rate": 5, "loan_term": 10}'} <|endoftext|> FUNCTION RESPONSE: {"interest": 25000} ASSISTANT: Based on the information you provided, the total interest on your loan over the term of 10 years will be $25000. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_interest", "description": "Calculate the interest 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 of the loan" }, "loan_term": { "type": "integer", "description": "The term of the loan in years" } }, "required": [ "principal", "interest_rate", "loan_term" ] } } { "name": "create_reminder", "description": "Create a reminder for a specific task", "parameters": { "type": "object", "properties": { "task": { "type": "string", "description": "The task for which the reminder will be created" }, "date": { "type": "string", "description": "The date of the task (format: yyyy-mm-dd)" }, "time": { "type": "string", "description": "The time of the task (format: hh:mm)" } }, "required": [ "task", "date", "time" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_interest\",\n \"description\": \"Calculate the interest on a loan\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The principal amount of the loan\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate of the loan\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in years\"\n }\n },\n \"required\": [\n \"principal\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n}\n\n{\n \"name\": \"create_reminder\",\n \"description\": \"Create a reminder for a specific task\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"task\": {\n \"type\": \"string\",\n \"description\": \"The task for which the reminder will be created\"\n },\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of the task (format: yyyy-mm-dd)\"\n },\n \"time\": {\n \"type\": \"string\",\n \"description\": \"The time of the task (format: hh:mm)\"\n }\n },\n \"required\": [\n \"task\",\n \"date\",\n \"time\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with calculating the interest on my loan." }, { "from": "gpt", "value": "Of course, I can help with that. Could you please provide me with the principal amount of the loan, the annual interest rate, and the term of the loan in years? <|endoftext|>" }, { "from": "human", "value": "Sure, the principal amount is $50000, the annual interest rate is 5%, and the loan term is 10 years." }, { "from": "gpt", "value": "{\"name\": \"calculate_loan_interest\", \"arguments\": '{\"principal\": 50000, \"interest_rate\": 5, \"loan_term\": 10}'} <|endoftext|>" }, { "from": "tool", "value": "{\"interest\": 25000}" }, { "from": "gpt", "value": "Based on the information you provided, the total interest on your loan over the term of 10 years will be $25000. <|endoftext|>" } ]
USER: I need to calculate the volume of a sphere with a radius of 5 units. Can you help me with that? ASSISTANT: <functioncall> {"name": "calculate_volume", "arguments": '{"shape": "sphere", "radius": 5}'} <|endoftext|> FUNCTION RESPONSE: {"volume": 523.5987755982989} ASSISTANT: The volume of the sphere with a radius of 5 units is approximately 523.6 cubic units. <|endoftext|> USER: That's great! Now, I also have a cube with a side length of 3 units. Can you calculate its volume? ASSISTANT: <functioncall> {"name": "calculate_volume", "arguments": '{"shape": "cube", "side": 3}'} <|endoftext|> FUNCTION RESPONSE: {"volume": 27} ASSISTANT: The volume of the cube with a side length of 3 units is 27 cubic units. <|endoftext|> USER: Lastly, I have a cylinder with a base radius of 2 units and a height of 10 units. What's its volume? ASSISTANT: <functioncall> {"name": "calculate_volume", "arguments": '{"shape": "cylinder", "base_radius": 2, "height": 10}'} <|endoftext|> FUNCTION RESPONSE: {"volume": 125.66370614359172} ASSISTANT: The volume of the cylinder with a base radius of 2 units and a height of 10 units is approximately 125.66 cubic units. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_volume", "description": "Calculate the volume of a shape", "parameters": { "type": "object", "properties": { "shape": { "type": "string", "enum": [ "sphere", "cube", "cylinder" ], "description": "The shape to calculate the volume of" }, "radius": { "type": "number", "description": "The radius of the sphere" }, "side": { "type": "number", "description": "The length of the side of the cube" }, "height": { "type": "number", "description": "The height of the cylinder" }, "base_radius": { "type": "number", "description": "The radius of the cylinder base" } }, "required": [ "shape" ] } } { "name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "location1": { "type": "string", "description": "The first location" }, "location2": { "type": "string", "description": "The second location" } }, "required": [ "location1", "location2" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_volume\",\n \"description\": \"Calculate the volume of a shape\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"enum\": [\n \"sphere\",\n \"cube\",\n \"cylinder\"\n ],\n \"description\": \"The shape to calculate the volume of\"\n },\n \"radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the sphere\"\n },\n \"side\": {\n \"type\": \"number\",\n \"description\": \"The length of the side of the cube\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the cylinder\"\n },\n \"base_radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the cylinder base\"\n }\n },\n \"required\": [\n \"shape\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location1\": {\n \"type\": \"string\",\n \"description\": \"The first location\"\n },\n \"location2\": {\n \"type\": \"string\",\n \"description\": \"The second location\"\n }\n },\n \"required\": [\n \"location1\",\n \"location2\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to calculate the volume of a sphere with a radius of 5 units. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"calculate_volume\", \"arguments\": '{\"shape\": \"sphere\", \"radius\": 5}'} <|endoftext|>" }, { "from": "tool", "value": "{\"volume\": 523.5987755982989}" }, { "from": "gpt", "value": "The volume of the sphere with a radius of 5 units is approximately 523.6 cubic units. <|endoftext|>" }, { "from": "human", "value": "That's great! Now, I also have a cube with a side length of 3 units. Can you calculate its volume?" }, { "from": "gpt", "value": "{\"name\": \"calculate_volume\", \"arguments\": '{\"shape\": \"cube\", \"side\": 3}'} <|endoftext|>" }, { "from": "tool", "value": "{\"volume\": 27}" }, { "from": "gpt", "value": "The volume of the cube with a side length of 3 units is 27 cubic units. <|endoftext|>" }, { "from": "human", "value": "Lastly, I have a cylinder with a base radius of 2 units and a height of 10 units. What's its volume?" }, { "from": "gpt", "value": "{\"name\": \"calculate_volume\", \"arguments\": '{\"shape\": \"cylinder\", \"base_radius\": 2, \"height\": 10}'} <|endoftext|>" }, { "from": "tool", "value": "{\"volume\": 125.66370614359172}" }, { "from": "gpt", "value": "The volume of the cylinder with a base radius of 2 units and a height of 10 units is approximately 125.66 cubic units. <|endoftext|>" } ]
USER: I'm bored. Can you tell me something interesting? ASSISTANT: <functioncall> {"name": "get_random_fact", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"fact": "Did you know that an octopus has three hearts?"} ASSISTANT: Did you know that an octopus has three hearts? Quite fascinating, isn't it? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_fact", "description": "Get a random interesting fact", "parameters": {} }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_fact\",\n \"description\": \"Get a random interesting fact\",\n \"parameters\": {}\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I'm bored. Can you tell me something interesting?" }, { "from": "gpt", "value": "{\"name\": \"get_random_fact\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"fact\": \"Did you know that an octopus has three hearts?\"}" }, { "from": "gpt", "value": "Did you know that an octopus has three hearts? Quite fascinating, isn't it? <|endoftext|>" } ]
USER: I'm feeling a bit down today. Can you share something inspiring? ASSISTANT: <functioncall> {"name": "generate_random_quote", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"quote": "The only way to do great work is to love what you do. - Steve Jobs"} ASSISTANT: Here's a quote for you: "The only way to do great work is to love what you do." - Steve Jobs. I hope this inspires you today. <|endoftext|> USER: That's a great quote. Can you share another one? ASSISTANT: <functioncall> {"name": "generate_random_quote", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"quote": "Believe you can and you're halfway there. - Theodore Roosevelt"} ASSISTANT: Here's another one: "Believe you can and you're halfway there." - Theodore Roosevelt. Keep believing in yourself! <|endoftext|> USER: Thank you, that's really uplifting. ASSISTANT: I'm glad you found it helpful. If you need more inspiration, don't hesitate to ask! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_random_quote", "description": "Generate a random inspirational quote", "parameters": {}, "required": [] }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_random_quote\",\n \"description\": \"Generate a random inspirational quote\",\n \"parameters\": {},\n \"required\": []\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I'm feeling a bit down today. Can you share something inspiring?" }, { "from": "gpt", "value": "{\"name\": \"generate_random_quote\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"quote\": \"The only way to do great work is to love what you do. - Steve Jobs\"}" }, { "from": "gpt", "value": "Here's a quote for you: \"The only way to do great work is to love what you do.\" - Steve Jobs. I hope this inspires you today. <|endoftext|>" }, { "from": "human", "value": "That's a great quote. Can you share another one?" }, { "from": "gpt", "value": "{\"name\": \"generate_random_quote\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"quote\": \"Believe you can and you're halfway there. - Theodore Roosevelt\"}" }, { "from": "gpt", "value": "Here's another one: \"Believe you can and you're halfway there.\" - Theodore Roosevelt. Keep believing in yourself! <|endoftext|>" }, { "from": "human", "value": "Thank you, that's really uplifting." }, { "from": "gpt", "value": "I'm glad you found it helpful. If you need more inspiration, don't hesitate to ask! <|endoftext|>" } ]
USER: Hi, I need help with calculating my loan repayment. I borrowed $50000 at an interest rate of 5% and the term of the loan is 60 months. ASSISTANT: <functioncall> {"name": "calculate_loan_repayment", "arguments": '{"loan_amount": 50000, "interest_rate": 5, "loan_term": 60}'} <|endoftext|> FUNCTION RESPONSE: {"monthly_repayment": 943.56} ASSISTANT: Based on the details you provided, your monthly loan repayment amount will be approximately $943.56. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_repayment", "description": "Calculate monthly loan repayment amount", "parameters": { "type": "object", "properties": { "loan_amount": { "type": "number", "description": "The amount of the loan" }, "interest_rate": { "type": "number", "description": "The interest rate on the loan" }, "loan_term": { "type": "integer", "description": "The term of the loan in months" } }, "required": [ "loan_amount", "interest_rate", "loan_term" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_repayment\",\n \"description\": \"Calculate monthly loan repayment amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the loan\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The interest rate on the loan\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in months\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with calculating my loan repayment. I borrowed $50000 at an interest rate of 5% and the term of the loan is 60 months." }, { "from": "gpt", "value": "{\"name\": \"calculate_loan_repayment\", \"arguments\": '{\"loan_amount\": 50000, \"interest_rate\": 5, \"loan_term\": 60}'} <|endoftext|>" }, { "from": "tool", "value": "{\"monthly_repayment\": 943.56}" }, { "from": "gpt", "value": "Based on the details you provided, your monthly loan repayment amount will be approximately $943.56. <|endoftext|>" } ]
USER: Hi, I need to convert 1000 US dollars to Euros. Can you help me with that? ASSISTANT: Sure, I can help with that. Let me calculate the conversion for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from": "USD", "to": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 850.50, "from": "USD", "to": "EUR"} ASSISTANT: The conversion of 1000 US dollars to Euros is approximately 850.50 Euros. <|endoftext|> USER: That's great! Now, can you convert 500 Euros to British Pounds? ASSISTANT: Absolutely, let me calculate that for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 500, "from": "EUR", "to": "GBP"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 430.25, "from": "EUR", "to": "GBP"} ASSISTANT: The conversion of 500 Euros to British Pounds is approximately 430.25 GBP. <|endoftext|> USER: Thank you for your help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert one currency to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to convert" }, "from": { "type": "string", "description": "The currency to convert from" }, "to": { "type": "string", "description": "The currency to convert to" } }, "required": [ "amount", "from", "to" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert one currency to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to convert\"\n },\n \"from\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from\",\n \"to\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 1000 US dollars to Euros. Can you help me with that?" }, { "from": "gpt", "value": "Sure, I can help with that. Let me calculate the conversion for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from\": \"USD\", \"to\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850.50, \"from\": \"USD\", \"to\": \"EUR\"}" }, { "from": "gpt", "value": "The conversion of 1000 US dollars to Euros is approximately 850.50 Euros. <|endoftext|>" }, { "from": "human", "value": "That's great! Now, can you convert 500 Euros to British Pounds?" }, { "from": "gpt", "value": "Absolutely, let me calculate that for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 500, \"from\": \"EUR\", \"to\": \"GBP\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 430.25, \"from\": \"EUR\", \"to\": \"GBP\"}" }, { "from": "gpt", "value": "The conversion of 500 Euros to British Pounds is approximately 430.25 GBP. <|endoftext|>" }, { "from": "human", "value": "Thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hey, can you get me the lyrics of the song 'Bohemian Rhapsody' by Queen? ASSISTANT: <functioncall> {"name": "get_lyrics", "arguments": '{"song_title": "Bohemian Rhapsody", "artist": "Queen"}'} <|endoftext|> FUNCTION RESPONSE: {"lyrics": "Is this the real
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_lyrics", "description": "Get the lyrics of a song", "parameters": { "type": "object", "properties": { "song_title": { "type": "string", "description": "The title of the song" }, "artist": { "type": "string", "description": "The artist of the song" } }, "required": [ "song_title", "artist" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_lyrics\",\n \"description\": \"Get the lyrics of a song\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"song_title\": {\n \"type\": \"string\",\n \"description\": \"The title of the song\"\n },\n \"artist\": {\n \"type\": \"string\",\n \"description\": \"The artist of the song\"\n }\n },\n \"required\": [\n \"song_title\",\n \"artist\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hey, can you get me the lyrics of the song 'Bohemian Rhapsody' by Queen?" }, { "from": "gpt", "value": "{\"name\": \"get_lyrics\", \"arguments\": '{\"song_title\": \"Bohemian Rhapsody\", \"artist\": \"Queen\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"lyrics\": \"Is this the real" } ]
USER: Hi, I would like to know the latest news in technology. ASSISTANT: <functioncall> {"name": "get_news", "arguments": '{"category": "technology"}'} <|endoftext|> FUNCTION RESPONSE: {"news": [{"title": "Apple releases new iPhone", "description": "Apple has just released their latest iPhone model with advanced features."}, {"title": "Tesla's new electric car model", "description": "Tesla has unveiled a new electric car model with improved battery life."}]} ASSISTANT: Here are the latest news in technology: 1. Apple releases new iPhone - Apple has just released their latest iPhone model with advanced features. 2. Tesla's new electric car model - Tesla has unveiled a new electric car model with improved battery life. <|endoftext|> USER: That's interesting. What about sports news? ASSISTANT: <functioncall> {"name": "get_news", "arguments": '{"category": "sports"}'} <|endoftext|> FUNCTION RESPONSE: {"news": [{"title": "Olympics 2022", "description": "The 2022 Winter Olympics are scheduled to take place in Beijing, China."}, {"title": "FIFA World Cup", "description": "The next FIFA World Cup will be held in Qatar in 2022."}]} ASSISTANT: Here are the latest news in sports: 1. Olympics 2022 - The 2022 Winter Olympics are scheduled to take place in Beijing, China. 2. FIFA World Cup - The next FIFA World Cup will be held in Qatar in 2022. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_news", "description": "Get the latest news", "parameters": { "type": "object", "properties": { "category": { "type": "string", "description": "The category of news, e.g. sports, technology" } }, "required": [ "category" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_news\",\n \"description\": \"Get the latest news\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The category of news, e.g. sports, technology\"\n }\n },\n \"required\": [\n \"category\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I would like to know the latest news in technology." }, { "from": "gpt", "value": "{\"name\": \"get_news\", \"arguments\": '{\"category\": \"technology\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"news\": [{\"title\": \"Apple releases new iPhone\", \"description\": \"Apple has just released their latest iPhone model with advanced features.\"}, {\"title\": \"Tesla's new electric car model\", \"description\": \"Tesla has unveiled a new electric car model with improved battery life.\"}]}" }, { "from": "gpt", "value": "Here are the latest news in technology: \n1. Apple releases new iPhone - Apple has just released their latest iPhone model with advanced features.\n2. Tesla's new electric car model - Tesla has unveiled a new electric car model with improved battery life. <|endoftext|>" }, { "from": "human", "value": "That's interesting. What about sports news?" }, { "from": "gpt", "value": "{\"name\": \"get_news\", \"arguments\": '{\"category\": \"sports\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"news\": [{\"title\": \"Olympics 2022\", \"description\": \"The 2022 Winter Olympics are scheduled to take place in Beijing, China.\"}, {\"title\": \"FIFA World Cup\", \"description\": \"The next FIFA World Cup will be held in Qatar in 2022.\"}]}" }, { "from": "gpt", "value": "Here are the latest news in sports: \n1. Olympics 2022 - The 2022 Winter Olympics are scheduled to take place in Beijing, China.\n2. FIFA World Cup - The next FIFA World Cup will be held in Qatar in 2022. <|endoftext|>" } ]
USER: Hi, I need to convert 1000 USD to EUR. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from": "USD", "to": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 850.00, "from": "USD", "to": "EUR"} ASSISTANT: Sure, 1000 USD is approximately 850 EUR. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "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": { "type": "string", "description": "The currency code of the original unit" }, "to": { "type": "string", "description": "The currency code of the desired unit" } }, "required": [ "amount", "from", "to" ] } } { "name": "generate_invoice", "description": "Generate an invoice for a customer", "parameters": { "type": "object", "properties": { "customer_name": { "type": "string", "description": "The name of the customer" }, "total_amount": { "type": "number", "description": "The total amount of the invoice" } }, "required": [ "customer_name", "total_amount" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of currency to convert\"\n },\n \"from\": {\n \"type\": \"string\",\n \"description\": \"The currency code of the original unit\"\n },\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The currency code of the desired unit\"\n }\n },\n \"required\": [\n \"amount\",\n \"from\",\n \"to\"\n ]\n }\n}\n\n{\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice for a customer\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"total_amount\": {\n \"type\": \"number\",\n \"description\": \"The total amount of the invoice\"\n }\n },\n \"required\": [\n \"customer_name\",\n \"total_amount\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 1000 USD to EUR. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from\": \"USD\", \"to\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850.00, \"from\": \"USD\", \"to\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 1000 USD is approximately 850 EUR. <|endoftext|>" } ]
USER: Hi, I need some motivation. Can you share a quote with me? ASSISTANT: <functioncall> {"name": "get_random_quote", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"quote": "The only way to do great work is to love what you do. - Steve Jobs"} ASSISTANT: Here is a quote for you: "The only way to do great work is to love what you do." - Steve Jobs <|endoftext|> USER: That's inspiring. Can you share another one? ASSISTANT: <functioncall> {"name": "get_random_quote", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"quote": "Believe you can and you're halfway there. - Theodore Roosevelt"} ASSISTANT: Here is another quote for you: "Believe you can and you're halfway there." - Theodore Roosevelt <|endoftext|> USER: Thank you, that was helpful. ASSISTANT: You're welcome! If you need more quotes or any other assistance, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_quote", "description": "Get a random quote", "parameters": {} }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_quote\",\n \"description\": \"Get a random quote\",\n \"parameters\": {}\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need some motivation. Can you share a quote with me?" }, { "from": "gpt", "value": "{\"name\": \"get_random_quote\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"quote\": \"The only way to do great work is to love what you do. - Steve Jobs\"}" }, { "from": "gpt", "value": "Here is a quote for you: \"The only way to do great work is to love what you do.\" - Steve Jobs <|endoftext|>" }, { "from": "human", "value": "That's inspiring. Can you share another one?" }, { "from": "gpt", "value": "{\"name\": \"get_random_quote\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"quote\": \"Believe you can and you're halfway there. - Theodore Roosevelt\"}" }, { "from": "gpt", "value": "Here is another quote for you: \"Believe you can and you're halfway there.\" - Theodore Roosevelt <|endoftext|>" }, { "from": "human", "value": "Thank you, that was helpful." }, { "from": "gpt", "value": "You're welcome! If you need more quotes or any other assistance, feel free to ask. <|endoftext|>" } ]
USER: Hi, I was born on 1990-05-15. Can you tell me how old I am today? ASSISTANT: <functioncall> {"name": "calculate_age", "arguments": '{"birthdate": "1990-05-15"}'} <|endoftext|> FUNCTION RESPONSE: {"age": 31} ASSISTANT: According to my calculations, you are 31 years old today. <|endoftext|> USER: That's correct! Thank you.
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_age", "description": "Calculate the age based on birthdate", "parameters": { "type": "object", "properties": { "birthdate": { "type": "string", "description": "The birthdate of the person in format yyyy-mm-dd" } }, "required": [ "birthdate" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"description\": \"The birthdate of the person in format yyyy-mm-dd\"\n }\n },\n \"required\": [\n \"birthdate\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I was born on 1990-05-15. Can you tell me how old I am today?" }, { "from": "gpt", "value": "{\"name\": \"calculate_age\", \"arguments\": '{\"birthdate\": \"1990-05-15\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"age\": 31}" }, { "from": "gpt", "value": "According to my calculations, you are 31 years old today. <|endoftext|>" }, { "from": "human", "value": "That's correct! Thank you." } ]
USER: Can you book a flight for me to New York? ASSISTANT: I'm sorry, but I am currently unable to book flights. My available function is to search for restaurants based on keywords. If you need help with that, feel free to ask! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_restaurants", "description": "Search for restaurants based on keywords", "parameters": { "type": "object", "properties": { "keywords": { "type": "array", "items": { "type": "string" }, "description": "Keywords to search for in restaurants" } }, "required": [ "keywords" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_restaurants\",\n \"description\": \"Search for restaurants based on keywords\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Keywords to search for in restaurants\"\n }\n },\n \"required\": [\n \"keywords\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you book a flight for me to New York?" }, { "from": "gpt", "value": "I'm sorry, but I am currently unable to book flights. My available function is to search for restaurants based on keywords. If you need help with that, feel free to ask! <|endoftext|>" } ]
USER: I need to send an email to my boss, can you help me with that? ASSISTANT: Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, the message you want to send, and any attachments if there are any? <|endoftext|> USER: The recipient's email is boss@company.com. The subject is "Monthly Report". The message is "Please find attached the monthly report for your review.". And I want to attach the file "Report.pdf". ASSISTANT: <functioncall> {"name": "send_email", "arguments": '{ "recipient": "boss@company.com", "subject": "Monthly Report", "message": "Please find attached the monthly report for your review.", "attachments": ["Report.pdf"] }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully"} ASSISTANT: The email has been sent successfully to your boss. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "send_email", "description": "Send an email to a recipient", "parameters": { "type": "object", "properties": { "recipient": { "type": "string", "description": "The email address of the recipient" }, "subject": { "type": "string", "description": "The subject of the email" }, "message": { "type": "string", "description": "The content of the email" }, "attachments": { "type": "array", "items": { "type": "string" }, "description": "The file attachments to include in the email" } }, "required": [ "recipient", "subject", "message" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"message\": {\n \"type\": \"string\",\n \"description\": \"The content of the email\"\n },\n \"attachments\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The file attachments to include in the email\"\n }\n },\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to send an email to my boss, can you help me with that?" }, { "from": "gpt", "value": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, the message you want to send, and any attachments if there are any? <|endoftext|>" }, { "from": "human", "value": "The recipient's email is boss@company.com. The subject is \"Monthly Report\". The message is \"Please find attached the monthly report for your review.\". And I want to attach the file \"Report.pdf\"." }, { "from": "gpt", "value": "{\"name\": \"send_email\", \"arguments\": '{\n \"recipient\": \"boss@company.com\",\n \"subject\": \"Monthly Report\",\n \"message\": \"Please find attached the monthly report for your review.\",\n \"attachments\": [\"Report.pdf\"]\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}" }, { "from": "gpt", "value": "The email has been sent successfully to your boss. <|endoftext|>" } ]
USER: Hi, I have an image and I want to find similar images on the internet. Can you help me with that? ASSISTANT: Of course! I can help you with that. Please provide me with the URL of the image and the similarity threshold you want to set. <|endoftext|> USER: Here is the URL: www.example.com/image.jpg and set the similarity threshold to 0.8. ASSISTANT: <functioncall> {"name": "find_similar_images", "arguments": '{ "image_url": "www.example.com/image.jpg", "threshold": 0.8 }'} <|endoftext|> FUNCTION RESPONSE: {"similar_images": ["www.example1.com/image1.jpg", "www.example2.com/image2.jpg", "www.example3.com/image3.jpg"]} ASSISTANT: I found some images that are similar to the one you provided. Here they are: 1. [www.example1.com/image1.jpg](www.example1.com/image1.jpg) 2. [www.example2.com/image2.jpg](www.example2.com/image2.jpg) 3. [www.example3.com/image3.jpg](www.example3.com/image3.jpg) <|endoftext|> USER: That's great! Now, can you also order a pizza for me? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks like ordering a pizza. My main function is to assist you with tasks related to the functions provided to me. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "find_similar_images", "description": "Find similar images based on a given image", "parameters": { "type": "object", "properties": { "image_url": { "type": "string", "format": "uri", "description": "The URL of the image" }, "threshold": { "type": "number", "description": "The similarity threshold" } }, "required": [ "image_url", "threshold" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"find_similar_images\",\n \"description\": \"Find similar images based on a given image\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"image_url\": {\n \"type\": \"string\",\n \"format\": \"uri\",\n \"description\": \"The URL of the image\"\n },\n \"threshold\": {\n \"type\": \"number\",\n \"description\": \"The similarity threshold\"\n }\n },\n \"required\": [\n \"image_url\",\n \"threshold\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I have an image and I want to find similar images on the internet. Can you help me with that?" }, { "from": "gpt", "value": "Of course! I can help you with that. Please provide me with the URL of the image and the similarity threshold you want to set. <|endoftext|>" }, { "from": "human", "value": "Here is the URL: www.example.com/image.jpg and set the similarity threshold to 0.8." }, { "from": "gpt", "value": "{\"name\": \"find_similar_images\", \"arguments\": '{\n \"image_url\": \"www.example.com/image.jpg\",\n \"threshold\": 0.8\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"similar_images\": [\"www.example1.com/image1.jpg\", \"www.example2.com/image2.jpg\", \"www.example3.com/image3.jpg\"]}" }, { "from": "gpt", "value": "I found some images that are similar to the one you provided. Here they are:\n1. [www.example1.com/image1.jpg](www.example1.com/image1.jpg)\n2. [www.example2.com/image2.jpg](www.example2.com/image2.jpg)\n3. [www.example3.com/image3.jpg](www.example3.com/image3.jpg) <|endoftext|>" }, { "from": "human", "value": "That's great! Now, can you also order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to perform external tasks like ordering a pizza. My main function is to assist you with tasks related to the functions provided to me. <|endoftext|>" } ]
USER: Hi, I need to generate an invoice for a customer named John Doe. The transaction amount is $500 and the items purchased are a laptop and a mouse. ASSISTANT: <functioncall> {"name": "generate_invoice", "arguments": '{ "customer_name": "John Doe", "amount": 500, "items": ["laptop", "mouse"] }'} <|endoftext|> FUNCTION RESPONSE: {"invoice_id": "INV12345", "customer_name": "John Doe", "amount": 500, "items": ["laptop", "mouse"], "status": "Invoice generated successfully"} ASSISTANT: The invoice has been generated successfully. The invoice ID is INV12345 for the customer John Doe. The transaction amount is $500 and the items purchased are a laptop and a mouse. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_invoice", "description": "Generate an invoice for a transaction", "parameters": { "type": "object", "properties": { "customer_name": { "type": "string", "description": "The name of the customer" }, "amount": { "type": "number", "description": "The amount of the transaction" }, "items": { "type": "array", "items": { "type": "string" }, "description": "The items purchased in the transaction" } }, "required": [ "customer_name", "amount", "items" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice for a transaction\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the transaction\"\n },\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The items purchased in the transaction\"\n }\n },\n \"required\": [\n \"customer_name\",\n \"amount\",\n \"items\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to generate an invoice for a customer named John Doe. The transaction amount is $500 and the items purchased are a laptop and a mouse." }, { "from": "gpt", "value": "{\"name\": \"generate_invoice\", \"arguments\": '{\n \"customer_name\": \"John Doe\",\n \"amount\": 500,\n \"items\": [\"laptop\", \"mouse\"]\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"invoice_id\": \"INV12345\", \"customer_name\": \"John Doe\", \"amount\": 500, \"items\": [\"laptop\", \"mouse\"], \"status\": \"Invoice generated successfully\"}" }, { "from": "gpt", "value": "The invoice has been generated successfully. The invoice ID is INV12345 for the customer John Doe. The transaction amount is $500 and the items purchased are a laptop and a mouse. <|endoftext|>" } ]
USER: Can you please order a pizza for me? ASSISTANT: I'm sorry, but I don't have the capability to perform external tasks such as ordering a pizza. My functions are limited to the ones provided to me. In this case, I can assist you in creating a todo item. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_todo", "description": "Create a new todo item", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the todo item" }, "description": { "type": "string", "description": "The description of the todo item" } }, "required": [ "title" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_todo\",\n \"description\": \"Create a new todo item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the todo item\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"The description of the todo item\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to perform external tasks such as ordering a pizza. My functions are limited to the ones provided to me. In this case, I can assist you in creating a todo item. <|endoftext|>" } ]
USER: Hi, I need to convert 500 US dollars to Euros. Can you help me with that? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 500, "from_currency": "USD", "to_currency": "EUR"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 425.50, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 500 US dollars is approximately 425.50 Euros. <|endoftext|> USER: That's great! Now, can you convert 1000 Euros to Japanese Yen? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from_currency": "EUR", "to_currency": "JPY"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 130000, "from_currency": "EUR", "to_currency": "JPY"} ASSISTANT: 1000 Euros is approximately 130,000 Japanese Yen. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to convert 500 US dollars to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 500, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 425.50, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 500 US dollars is approximately 425.50 Euros. <|endoftext|>" }, { "from": "human", "value": "That's great! Now, can you convert 1000 Euros to Japanese Yen?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"EUR\", \"to_currency\": \"JPY\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 130000, \"from_currency\": \"EUR\", \"to_currency\": \"JPY\"}" }, { "from": "gpt", "value": "1000 Euros is approximately 130,000 Japanese Yen. <|endoftext|>" } ]
USER: I am looking for a book but I can't remember the title. The author's name is George Orwell. ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"author": "George Orwell"}'} <|endoftext|> FUNCTION RESPONSE: {"books": [{"title": "1984", "author": "George Orwell", "genre": "Dystopian"}, {"title": "Animal Farm", "author": "George Orwell", "genre": "Allegorical novella"}]} ASSISTANT: I found two books by George Orwell. The first one is "1984", which is a dystopian novel. The second one is "Animal Farm", an allegorical novella. <|endoftext|> USER: I think it was a dystopian novel. ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"author": "George Orwell", "genre": "Dystopian"}'} <|endoftext|> FUNCTION RESPONSE: {"books": [{"title": "1984", "author": "George Orwell", "genre": "Dystopian"}]} ASSISTANT: The dystopian novel by George Orwell is "1984". Is this the book you were looking for? <|endoftext|> USER: Yes, that's the one! Thank you. ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_books", "description": "Search for books based on specified criteria", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the book" }, "author": { "type": "string", "description": "The author of the book" }, "genre": { "type": "string", "description": "The genre of the book" } } } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_books\",\n \"description\": \"Search for books based on specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the book\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the book\"\n }\n }\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I am looking for a book but I can't remember the title. The author's name is George Orwell." }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"author\": \"George Orwell\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"books\": [{\"title\": \"1984\", \"author\": \"George Orwell\", \"genre\": \"Dystopian\"}, {\"title\": \"Animal Farm\", \"author\": \"George Orwell\", \"genre\": \"Allegorical novella\"}]}" }, { "from": "gpt", "value": "I found two books by George Orwell. The first one is \"1984\", which is a dystopian novel. The second one is \"Animal Farm\", an allegorical novella. <|endoftext|>" }, { "from": "human", "value": "I think it was a dystopian novel." }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"author\": \"George Orwell\", \"genre\": \"Dystopian\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"books\": [{\"title\": \"1984\", \"author\": \"George Orwell\", \"genre\": \"Dystopian\"}]}" }, { "from": "gpt", "value": "The dystopian novel by George Orwell is \"1984\". Is this the book you were looking for? <|endoftext|>" }, { "from": "human", "value": "Yes, that's the one! Thank you." }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: I need to find a hotel in New York from 1st May to 5th May. ASSISTANT: <functioncall> {"name": "find_hotels", "arguments": '{ "location": "New York", "check_in_date": "1st May", "check_out_date": "5th May" }'} <|endoftext|> FUNCTION RESPONSE: {"hotels": [{"name": "Hotel A", "rating": 4.5, "price": "$200 per night"}, {"name": "Hotel B", "rating": 4.2, "price": "$150 per night"}, {"name": "Hotel C", "rating": 4.7, "price": "$250 per night"}]} ASSISTANT: I found some hotels for you. Hotel A with a rating of 4.5 costs $200 per night. Hotel B with a rating of 4.2 costs $150 per night. Hotel C with a rating of 4.7 costs $250 per night. <|endoftext|> USER: Thanks for the information. I will consider these options.
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "find_hotels", "description": "Find nearby hotels", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The current location" }, "check_in_date": { "type": "string", "description": "The check-in date" }, "check_out_date": { "type": "string", "description": "The check-out date" } }, "required": [ "location", "check_in_date", "check_out_date" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"find_hotels\",\n \"description\": \"Find nearby hotels\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The current location\"\n },\n \"check_in_date\": {\n \"type\": \"string\",\n \"description\": \"The check-in date\"\n },\n \"check_out_date\": {\n \"type\": \"string\",\n \"description\": \"The check-out date\"\n }\n },\n \"required\": [\n \"location\",\n \"check_in_date\",\n \"check_out_date\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to find a hotel in New York from 1st May to 5th May." }, { "from": "gpt", "value": "{\"name\": \"find_hotels\", \"arguments\": '{\n \"location\": \"New York\",\n \"check_in_date\": \"1st May\",\n \"check_out_date\": \"5th May\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"hotels\": [{\"name\": \"Hotel A\", \"rating\": 4.5, \"price\": \"$200 per night\"}, {\"name\": \"Hotel B\", \"rating\": 4.2, \"price\": \"$150 per night\"}, {\"name\": \"Hotel C\", \"rating\": 4.7, \"price\": \"$250 per night\"}]}" }, { "from": "gpt", "value": "I found some hotels for you. Hotel A with a rating of 4.5 costs $200 per night. Hotel B with a rating of 4.2 costs $150 per night. Hotel C with a rating of 4.7 costs $250 per night. <|endoftext|>" }, { "from": "human", "value": "Thanks for the information. I will consider these options." } ]
USER: Hi, I need to create an event in my calendar. ASSISTANT: Sure, I can help with that. Could you please provide me with the name of the calendar, the title of the event, and the start and end times? <|endoftext|> USER: The calendar name is "Work", the event title is "Project Meeting", and it should start at 2022-05-15 10:00 and end at 2022-05-15 12:00. ASSISTANT: <functioncall> {"name": "create_event", "arguments": '{ "calendar": "Work", "title": "Project Meeting", "start_time": "2022-05-15 10:00", "end_time": "2022-05-15 12:00" }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "The event 'Project Meeting' has been successfully created in the 'Work' calendar from 10:00 to 12:00 on 2022-05-15."} ASSISTANT: The event 'Project Meeting' has been successfully created in your 'Work' calendar. It is scheduled from 10:00 to 12:00 on 2022-05-15. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_event", "description": "Create a new event in a specified calendar", "parameters": { "type": "object", "properties": { "calendar": { "type": "string", "description": "The name of the calendar" }, "title": { "type": "string", "description": "The title of the event" }, "start_time": { "type": "string", "description": "The start time of the event (YYYY-MM-DD HH:MM)" }, "end_time": { "type": "string", "description": "The end time of the event (YYYY-MM-DD HH:MM)" } }, "required": [ "calendar", "title", "start_time", "end_time" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_event\",\n \"description\": \"Create a new event in a specified calendar\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"calendar\": {\n \"type\": \"string\",\n \"description\": \"The name of the calendar\"\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the event\"\n },\n \"start_time\": {\n \"type\": \"string\",\n \"description\": \"The start time of the event (YYYY-MM-DD HH:MM)\"\n },\n \"end_time\": {\n \"type\": \"string\",\n \"description\": \"The end time of the event (YYYY-MM-DD HH:MM)\"\n }\n },\n \"required\": [\n \"calendar\",\n \"title\",\n \"start_time\",\n \"end_time\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to create an event in my calendar." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the name of the calendar, the title of the event, and the start and end times? <|endoftext|>" }, { "from": "human", "value": "The calendar name is \"Work\", the event title is \"Project Meeting\", and it should start at 2022-05-15 10:00 and end at 2022-05-15 12:00." }, { "from": "gpt", "value": "{\"name\": \"create_event\", \"arguments\": '{\n \"calendar\": \"Work\",\n \"title\": \"Project Meeting\",\n \"start_time\": \"2022-05-15 10:00\",\n \"end_time\": \"2022-05-15 12:00\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"The event 'Project Meeting' has been successfully created in the 'Work' calendar from 10:00 to 12:00 on 2022-05-15.\"}" }, { "from": "gpt", "value": "The event 'Project Meeting' has been successfully created in your 'Work' calendar. It is scheduled from 10:00 to 12:00 on 2022-05-15. <|endoftext|>" } ]
USER: I need to create a note for my meeting tomorrow. ASSISTANT: Sure, I can help with that. What would you like the title and content of the note to be? <|endoftext|> USER: The title should be "Team Meeting" and the content should be "Discuss project updates, budget allocation, and team assignments." ASSISTANT: <functioncall> {"name": "create_note", "arguments": '{"title": "Team Meeting", "content": "Discuss project updates, budget allocation, and team assignments."}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Note created successfully"} ASSISTANT: Your note titled "Team Meeting" has been created successfully. The content of the note is "Discuss project updates, budget allocation, and team assignments." <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_note", "description": "Create a new note", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the note" }, "content": { "type": "string", "description": "The content of the note" } }, "required": [ "title", "content" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_note\",\n \"description\": \"Create a new note\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the note\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"The content of the note\"\n }\n },\n \"required\": [\n \"title\",\n \"content\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to create a note for my meeting tomorrow." }, { "from": "gpt", "value": "Sure, I can help with that. What would you like the title and content of the note to be? <|endoftext|>" }, { "from": "human", "value": "The title should be \"Team Meeting\" and the content should be \"Discuss project updates, budget allocation, and team assignments.\"" }, { "from": "gpt", "value": "{\"name\": \"create_note\", \"arguments\": '{\"title\": \"Team Meeting\", \"content\": \"Discuss project updates, budget allocation, and team assignments.\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Note created successfully\"}" }, { "from": "gpt", "value": "Your note titled \"Team Meeting\" has been created successfully. The content of the note is \"Discuss project updates, budget allocation, and team assignments.\" <|endoftext|>" } ]
USER: Hi, I would like to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms. ASSISTANT: <functioncall> {"name": "calculate_bmi", "arguments": '{"height": 1.75, "weight": 70}'} <|endoftext|> FUNCTION RESPONSE: {"bmi": 22.86} ASSISTANT: Based on the information provided, your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": { "type": "object", "properties": { "height": { "type": "number", "description": "The height in meters" }, "weight": { "type": "number", "description": "The weight in kilograms" } }, "required": [ "height", "weight" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n }\n },\n \"required\": [\n \"height\",\n \"weight\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I would like to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms." }, { "from": "gpt", "value": "{\"name\": \"calculate_bmi\", \"arguments\": '{\"height\": 1.75, \"weight\": 70}'} <|endoftext|>" }, { "from": "tool", "value": "{\"bmi\": 22.86}" }, { "from": "gpt", "value": "Based on the information provided, your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height. <|endoftext|>" } ]
USER: Hi, I need a QR code for my website. ASSISTANT: Sure, I can help with that. Could you please provide me with the URL of your website? <|endoftext|> USER: Yes, it's www.mywebsite.com. ASSISTANT: <functioncall> {"name": "generate_qr_code", "arguments": '{"data": "www.mywebsite.com"}'} <|endoftext|> FUNCTION RESPONSE: {"qr_code": "QR_CODE_IMAGE"} ASSISTANT: Here is the QR code for your website: QR_CODE_IMAGE. You can scan this code to directly access your website. <|endoftext|> USER: That's great! Can I also get a larger QR code? ASSISTANT: Of course. How large would you like it to be? <|endoftext|> USER: Let's try a size of 500. ASSISTANT: <functioncall> {"name": "generate_qr_code", "arguments": '{"data": "www.mywebsite.com", "size": 500}'} <|endoftext|> FUNCTION RESPONSE: {"qr_code": "LARGER_QR_CODE_IMAGE"} ASSISTANT: Here is the larger QR code for your website: LARGER_QR_CODE_IMAGE. This should be easier to scan from a distance. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "generate_qr_code", "description": "Generate a QR code for a given text or URL", "parameters": { "type": "object", "properties": { "data": { "type": "string", "description": "The text or URL to encode" }, "size": { "type": "integer", "description": "The size of the QR code" } }, "required": [ "data" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text or URL\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"string\",\n \"description\": \"The text or URL to encode\"\n },\n \"size\": {\n \"type\": \"integer\",\n \"description\": \"The size of the QR code\"\n }\n },\n \"required\": [\n \"data\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need a QR code for my website." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the URL of your website? <|endoftext|>" }, { "from": "human", "value": "Yes, it's www.mywebsite.com." }, { "from": "gpt", "value": "{\"name\": \"generate_qr_code\", \"arguments\": '{\"data\": \"www.mywebsite.com\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"qr_code\": \"QR_CODE_IMAGE\"}" }, { "from": "gpt", "value": "Here is the QR code for your website: QR_CODE_IMAGE. You can scan this code to directly access your website. <|endoftext|>" }, { "from": "human", "value": "That's great! Can I also get a larger QR code?" }, { "from": "gpt", "value": "Of course. How large would you like it to be? <|endoftext|>" }, { "from": "human", "value": "Let's try a size of 500." }, { "from": "gpt", "value": "{\"name\": \"generate_qr_code\", \"arguments\": '{\"data\": \"www.mywebsite.com\", \"size\": 500}'} <|endoftext|>" }, { "from": "tool", "value": "{\"qr_code\": \"LARGER_QR_CODE_IMAGE\"}" }, { "from": "gpt", "value": "Here is the larger QR code for your website: LARGER_QR_CODE_IMAGE. This should be easier to scan from a distance. <|endoftext|>" } ]