Dataset Viewer
Auto-converted to Parquet
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|>" } ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
87