chat
stringlengths
176
4.36k
system
stringlengths
187
5.96k
__hfsplit__
stringclasses
1 value
conversations
listlengths
3
15
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 current function allows me to create notes for you. If you need to remember to order a pizza, I can help you create a note for that. <|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 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 current function allows me to create notes for you. If you need to remember to order a pizza, I can help you create a note for that. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with that. My current capabilities allow me to calculate Body Mass Index (BMI) based on weight and height. I don't have the ability to book flights or perform other external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": { "type": "object", "properties": { "weight": { "type": "number", "description": "The weight of the person in kilograms" }, "height": { "type": "number", "description": "The height of the person 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 of the person in kilograms\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the person 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 book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with that. My current capabilities allow me to calculate Body Mass Index (BMI) based on weight and height. I don't have the ability to book flights or perform other external tasks. <|endoftext|>" } ]
USER: I need to create a new todo item. ASSISTANT: Sure, I can help with that. Could you please tell me the task description and the due date? <|endoftext|> USER: The task is to buy groceries and the due date is 2022-03-15. ASSISTANT: <functioncall> {"name": "create_todo", "arguments": '{"task": "buy groceries", "due_date": "2022-03-15"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Todo item created successfully", "data": {"task": "buy groceries", "due_date": "2022-03-15"}} ASSISTANT: Your todo item to "buy groceries" has been created successfully and is due on 2022-03-15. <|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 description" }, "due_date": { "type": "string", "format": "date", "description": "The due date for the task" } }, "required": [ "task", "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_todo\",\n \"description\": \"Create a new todo item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"task\": {\n \"type\": \"string\",\n \"description\": \"The task description\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The due date for the task\"\n }\n },\n \"required\": [\n \"task\",\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 a new todo item." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please tell me the task description and the due date? <|endoftext|>" }, { "from": "human", "value": "The task is to buy groceries and the due date is 2022-03-15." }, { "from": "gpt", "value": "{\"name\": \"create_todo\", \"arguments\": '{\"task\": \"buy groceries\", \"due_date\": \"2022-03-15\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Todo item created successfully\", \"data\": {\"task\": \"buy groceries\", \"due_date\": \"2022-03-15\"}}" }, { "from": "gpt", "value": "Your todo item to \"buy groceries\" has been created successfully and is due on 2022-03-15. <|endoftext|>" } ]
USER: I am looking for books by J.K. Rowling. Can you help me find them? ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"query": "J.K. Rowling"}'} <|endoftext|> FUNCTION RESPONSE: {"results": [{"title": "Harry Potter and the Philosopher's Stone", "author": "J.K. Rowling"}, {"title": "Harry Potter and the Chamber of Secrets", "author": "J.K. Rowling"}, {"title": "Harry Potter and the Prisoner of Azkaban", "author": "J.K. Rowling"}]} ASSISTANT: I found several books by J.K. Rowling for you. Here are a few: "Harry Potter and the Philosopher's Stone", "Harry Potter and the Chamber of Secrets", and "Harry Potter and the Prisoner of Azkaban". <|endoftext|> USER: That's great! Can you also find books by George R.R. Martin? ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"query": "George R.R. Martin"}'} <|endoftext|> FUNCTION RESPONSE: {"results": [{"title": "A Game of Thrones", "author": "George R.R. Martin"}, {"title": "A Clash of Kings", "author": "George R.R. Martin"}, {"title": "A Storm of Swords", "author": "George R.R. Martin"}]} ASSISTANT: I found several books by George R.R. Martin for you. Here are a few: "A Game of Thrones", "A Clash of Kings", and "A Storm of Swords". <|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 given title or author", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "The title or author to search for" } }, "required": [ "query" ] } }
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 given title or author\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The title or author to search for\"\n }\n },\n \"required\": [\n \"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": "I am looking for books by J.K. Rowling. Can you help me find them?" }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"query\": \"J.K. Rowling\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"results\": [{\"title\": \"Harry Potter and the Philosopher's Stone\", \"author\": \"J.K. Rowling\"}, {\"title\": \"Harry Potter and the Chamber of Secrets\", \"author\": \"J.K. Rowling\"}, {\"title\": \"Harry Potter and the Prisoner of Azkaban\", \"author\": \"J.K. Rowling\"}]}" }, { "from": "gpt", "value": "I found several books by J.K. Rowling for you. Here are a few: \"Harry Potter and the Philosopher's Stone\", \"Harry Potter and the Chamber of Secrets\", and \"Harry Potter and the Prisoner of Azkaban\". <|endoftext|>" }, { "from": "human", "value": "That's great! Can you also find books by George R.R. Martin?" }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"query\": \"George R.R. Martin\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"results\": [{\"title\": \"A Game of Thrones\", \"author\": \"George R.R. Martin\"}, {\"title\": \"A Clash of Kings\", \"author\": \"George R.R. Martin\"}, {\"title\": \"A Storm of Swords\", \"author\": \"George R.R. Martin\"}]}" }, { "from": "gpt", "value": "I found several books by George R.R. Martin for you. Here are a few: \"A Game of Thrones\", \"A Clash of Kings\", and \"A Storm of Swords\". <|endoftext|>" } ]
USER: Hi, I need to know the distance between New York and Los Angeles. Can you help me with that? ASSISTANT: Sure, I can help with that. Let me calculate the distance for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "calculate_distance", "arguments": '{"point1": {"latitude": 40.7128, "longitude": -74.0060}, "point2": {"latitude": 34.0522, "longitude": -118.2437}}'} <|endoftext|> FUNCTION RESPONSE: {"distance": 2448.2} ASSISTANT: The distance between New York and Los Angeles is approximately 2448.2 miles. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_distance", "description": "Calculate the distance between two points", "parameters": { "type": "object", "properties": { "point1": { "type": "object", "description": "The coordinates of the first point", "properties": { "latitude": { "type": "number", "description": "The latitude of the first point" }, "longitude": { "type": "number", "description": "The longitude of the first point" } }, "required": [ "latitude", "longitude" ] }, "point2": { "type": "object", "description": "The coordinates of the second point", "properties": { "latitude": { "type": "number", "description": "The latitude of the second point" }, "longitude": { "type": "number", "description": "The longitude of the second point" } }, "required": [ "latitude", "longitude" ] } }, "required": [ "point1", "point2" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two points\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"point1\": {\n \"type\": \"object\",\n \"description\": \"The coordinates of the first point\",\n \"properties\": {\n \"latitude\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the first point\"\n },\n \"longitude\": {\n \"type\": \"number\",\n \"description\": \"The longitude of the first point\"\n }\n },\n \"required\": [\n \"latitude\",\n \"longitude\"\n ]\n },\n \"point2\": {\n \"type\": \"object\",\n \"description\": \"The coordinates of the second point\",\n \"properties\": {\n \"latitude\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the second point\"\n },\n \"longitude\": {\n \"type\": \"number\",\n \"description\": \"The longitude of the second point\"\n }\n },\n \"required\": [\n \"latitude\",\n \"longitude\"\n ]\n }\n },\n \"required\": [\n \"point1\",\n \"point2\"\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 know the distance between New York and Los Angeles. Can you help me with that?" }, { "from": "gpt", "value": "Sure, I can help with that. Let me calculate the distance for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"calculate_distance\", \"arguments\": '{\"point1\": {\"latitude\": 40.7128, \"longitude\": -74.0060}, \"point2\": {\"latitude\": 34.0522, \"longitude\": -118.2437}}'} <|endoftext|>" }, { "from": "tool", "value": "{\"distance\": 2448.2}" }, { "from": "gpt", "value": "The distance between New York and Los Angeles is approximately 2448.2 miles. <|endoftext|>" } ]
USER: I'm looking for a vegan Italian recipe. Can you help me find one? ASSISTANT: <functioncall> {"name": "search_recipe", "arguments": '{ "keywords": ["vegan"], "cuisine": "Italian", "dietary_restrictions": ["vegan"] }'} <|endoftext|> FUNCTION RESPONSE: {"results": [{"name": "Vegan Lasagna", "ingredients": ["lasagna noodles", "marinara sauce", "vegan ricotta", "spinach", "vegan mozzarella"], "instructions": "Preheat oven to 375°F (190°C). Cook lasagna noodles according to package instructions. Layer noodles, marinara sauce, vegan ricotta, spinach, and vegan mozzarella in a baking dish. Bake for 45 minutes, or until the top is golden and bubbly."}]} ASSISTANT: I found a recipe for Vegan Lasagna. The ingredients you'll need are lasagna noodles, marinara sauce, vegan ricotta, spinach, and vegan mozzarella. Here are the instructions: Preheat your oven to 375°F (190°C). Cook the lasagna noodles according to the package instructions. Then, layer the noodles, marinara sauce, vegan ricotta, spinach, and vegan mozzarella in a baking dish. Bake for 45 minutes, or until the top is golden and bubbly. Enjoy your meal! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_recipe", "description": "Search for recipes based on specified criteria", "parameters": { "type": "object", "properties": { "keywords": { "type": "array", "items": { "type": "string" }, "description": "Keywords related to the recipe" }, "cuisine": { "type": "string", "description": "The cuisine type of the recipe" }, "dietary_restrictions": { "type": "array", "items": { "type": "string" }, "description": "Dietary restrictions to consider" } }, "required": [ "keywords" ] } } { "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" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"search_recipe\",\n \"description\": \"Search for recipes based on specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Keywords related to the recipe\"\n },\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type of the recipe\"\n },\n \"dietary_restrictions\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Dietary restrictions to consider\"\n }\n },\n \"required\": [\n \"keywords\"\n ]\n }\n}\n\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\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 looking for a vegan Italian recipe. Can you help me find one?" }, { "from": "gpt", "value": "{\"name\": \"search_recipe\", \"arguments\": '{\n \"keywords\": [\"vegan\"],\n \"cuisine\": \"Italian\",\n \"dietary_restrictions\": [\"vegan\"]\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"results\": [{\"name\": \"Vegan Lasagna\", \"ingredients\": [\"lasagna noodles\", \"marinara sauce\", \"vegan ricotta\", \"spinach\", \"vegan mozzarella\"], \"instructions\": \"Preheat oven to 375°F (190°C). Cook lasagna noodles according to package instructions. Layer noodles, marinara sauce, vegan ricotta, spinach, and vegan mozzarella in a baking dish. Bake for 45 minutes, or until the top is golden and bubbly.\"}]}" }, { "from": "gpt", "value": "I found a recipe for Vegan Lasagna. The ingredients you'll need are lasagna noodles, marinara sauce, vegan ricotta, spinach, and vegan mozzarella. Here are the instructions: Preheat your oven to 375°F (190°C). Cook the lasagna noodles according to the package instructions. Then, layer the noodles, marinara sauce, vegan ricotta, spinach, and vegan mozzarella in a baking dish. Bake for 45 minutes, or until the top is golden and bubbly. Enjoy your meal! <|endoftext|>" } ]
USER: Hi, I would like to calculate my BMI. I weigh 75 kilograms and my height is 1.8 meters. ASSISTANT: <functioncall> {"name": "calculate_bmi", "arguments": '{"weight": 75, "height": 1.8}'} <|endoftext|> FUNCTION RESPONSE: {"bmi": 23.15} ASSISTANT: Based on the information you provided, your Body Mass Index (BMI) is 23.15. This is considered a healthy weight for your height. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": { "type": "object", "properties": { "weight": { "type": "number", "description": "The weight of a person in kilograms" }, "height": { "type": "number", "description": "The height of a person in meters" } }, "required": [ "weight", "height" ] } } { "name": "search_movies", "description": "Search for movies based on title or genre", "parameters": { "type": "object", "properties": { "query": { "type": "string", "description": "The search query" }, "genre": { "type": "string", "description": "The genre of the movie" } }, "required": [ "query" ] } }
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 of a person in kilograms\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of a person in meters\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n }\n}\n\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the movie\"\n }\n },\n \"required\": [\n \"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 would like to calculate my BMI. I weigh 75 kilograms and my height is 1.8 meters." }, { "from": "gpt", "value": "{\"name\": \"calculate_bmi\", \"arguments\": '{\"weight\": 75, \"height\": 1.8}'} <|endoftext|>" }, { "from": "tool", "value": "{\"bmi\": 23.15}" }, { "from": "gpt", "value": "Based on the information you provided, your Body Mass Index (BMI) is 23.15. This is considered a healthy weight for your height. <|endoftext|>" } ]
USER: Hi, I need to know the distance between New York and Los Angeles. Can you help me with that? ASSISTANT: Sure, I can help with that. Let me calculate the distance for you. <|endoftext|> ASSISTANT: <functioncall> {"name": "calculate_distance", "arguments": '{"lat1": 40.7128, "lon1": -74.0060, "lat2": 34.0522, "lon2": -118.2437}'} <|endoftext|> FUNCTION RESPONSE: {"distance": 2448.2} ASSISTANT: The distance between New York and Los Angeles is approximately 2448.2 miles. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_distance", "description": "Calculate the distance between two coordinates", "parameters": { "type": "object", "properties": { "lat1": { "type": "number", "description": "The latitude of the first point" }, "lon1": { "type": "number", "description": "The longitude of the first point" }, "lat2": { "type": "number", "description": "The latitude of the second point" }, "lon2": { "type": "number", "description": "The longitude of the second point" } } } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two coordinates\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"lat1\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the first point\"\n },\n \"lon1\": {\n \"type\": \"number\",\n \"description\": \"The longitude of the first point\"\n },\n \"lat2\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the second point\"\n },\n \"lon2\": {\n \"type\": \"number\",\n \"description\": \"The longitude of the second point\"\n }\n }\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to know the distance between New York and Los Angeles. Can you help me with that?" }, { "from": "gpt", "value": "Sure, I can help with that. Let me calculate the distance for you. <|endoftext|>" }, { "from": "gpt", "value": "{\"name\": \"calculate_distance\", \"arguments\": '{\"lat1\": 40.7128, \"lon1\": -74.0060, \"lat2\": 34.0522, \"lon2\": -118.2437}'} <|endoftext|>" }, { "from": "tool", "value": "{\"distance\": 2448.2}" }, { "from": "gpt", "value": "The distance between New York and Los Angeles is approximately 2448.2 miles. <|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. For instance, I can provide you with a random quote and its author. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_quote_author", "description": "Get a random quote with author", "parameters": {} }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_quote_author\",\n \"description\": \"Get a random quote with author\",\n \"parameters\": {}\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "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. For instance, I can provide you with a random quote and its author. <|endoftext|>" } ]
USER: Hi, I need to check if an email address is valid. ASSISTANT: Sure, I can help with that. Please provide me with the email address you want to validate. <|endoftext|> USER: The email address is [email protected]. ASSISTANT: <functioncall> {"name": "validate_email", "arguments": '{"email": "[email protected]"}'} <|endoftext|> FUNCTION RESPONSE: {"valid": true, "message": "The email address is valid."} ASSISTANT: The email address you provided is valid. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "validate_email", "description": "Validate if an email address is valid", "parameters": { "type": "object", "properties": { "email": { "type": "string", "description": "The email address to be validated" } }, "required": [ "email" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"validate_email\",\n \"description\": \"Validate if an email address is valid\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address to be validated\"\n }\n },\n \"required\": [\n \"email\"\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 check if an email address is valid." }, { "from": "gpt", "value": "Sure, I can help with that. Please provide me with the email address you want to validate. <|endoftext|>" }, { "from": "human", "value": "The email address is [email protected]." }, { "from": "gpt", "value": "{\"name\": \"validate_email\", \"arguments\": '{\"email\": \"[email protected]\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"valid\": true, \"message\": \"The email address is valid.\"}" }, { "from": "gpt", "value": "The email address you provided is valid. <|endoftext|>" } ]
USER: Hey, can you get me the lyrics of the song 'Bohemian Rhapsody' by Queen? ASSISTANT: <functioncall> {"name": "get_song_lyrics", "arguments": '{ "song_title": "Bohemian Rhapsody", "artist": "Queen" }'} <|endoftext|> FUNCTION RESPONSE: {"lyrics": "Is this the real
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_song_lyrics", "description": "Get the lyrics of a specific song", "parameters": { "type": "object", "properties": { "song_title": { "type": "string", "description": "The title of the song" }, "artist": { "type": "string", "description": "The artist of the song" } }, "required": [ "song_title", "artist" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_song_lyrics\",\n \"description\": \"Get the lyrics of a specific song\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"song_title\": {\n \"type\": \"string\",\n \"description\": \"The title of the song\"\n },\n \"artist\": {\n \"type\": \"string\",\n \"description\": \"The artist of the song\"\n }\n },\n \"required\": [\n \"song_title\",\n \"artist\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hey, can you get me the lyrics of the song 'Bohemian Rhapsody' by Queen?" }, { "from": "gpt", "value": "{\"name\": \"get_song_lyrics\", \"arguments\": '{\n \"song_title\": \"Bohemian Rhapsody\",\n \"artist\": \"Queen\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"lyrics\": \"Is this the real" } ]
USER: I'm looking for a comedy movie to watch tonight. Any suggestions? ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"keyword": "", "genre": "comedy"}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["Superbad", "The Hangover", "Step Brothers", "Bridesmaids", "Anchorman"]} ASSISTANT: Here are some comedy movies you might enjoy: "Superbad", "The Hangover", "Step Brothers", "Bridesmaids", "Anchorman". <|endoftext|> USER: I've seen all of those. Can you suggest something based on the movie "Superbad"? ASSISTANT: <functioncall> {"name": "search_movies", "arguments": '{"keyword": "Superbad", "genre": ""}'} <|endoftext|> FUNCTION RESPONSE: {"movies": ["Pineapple Express", "Knocked Up", "This Is The End", "The 40-Year-Old Virgin", "Forgetting Sarah Marshall"]} ASSISTANT: If you enjoyed "Superbad", you might also like these movies: "Pineapple Express", "Knocked Up", "This Is The End", "The 40-Year-Old Virgin", "Forgetting Sarah Marshall". <|endoftext|> USER: Great, I'll check out "Pineapple Express". Thanks! ASSISTANT: You're welcome! Enjoy your movie night! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_movies", "description": "Search for movies by title or genre", "parameters": { "type": "object", "properties": { "keyword": { "type": "string", "description": "The keyword to search for" }, "genre": { "type": "string", "description": "The genre of 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 by title or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keyword\": {\n \"type\": \"string\",\n \"description\": \"The keyword to search for\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of 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'm looking for a comedy movie to watch tonight. Any suggestions?" }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"keyword\": \"\", \"genre\": \"comedy\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"Superbad\", \"The Hangover\", \"Step Brothers\", \"Bridesmaids\", \"Anchorman\"]}" }, { "from": "gpt", "value": "Here are some comedy movies you might enjoy: \"Superbad\", \"The Hangover\", \"Step Brothers\", \"Bridesmaids\", \"Anchorman\". <|endoftext|>" }, { "from": "human", "value": "I've seen all of those. Can you suggest something based on the movie \"Superbad\"?" }, { "from": "gpt", "value": "{\"name\": \"search_movies\", \"arguments\": '{\"keyword\": \"Superbad\", \"genre\": \"\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"movies\": [\"Pineapple Express\", \"Knocked Up\", \"This Is The End\", \"The 40-Year-Old Virgin\", \"Forgetting Sarah Marshall\"]}" }, { "from": "gpt", "value": "If you enjoyed \"Superbad\", you might also like these movies: \"Pineapple Express\", \"Knocked Up\", \"This Is The End\", \"The 40-Year-Old Virgin\", \"Forgetting Sarah Marshall\". <|endoftext|>" }, { "from": "human", "value": "Great, I'll check out \"Pineapple Express\". Thanks!" }, { "from": "gpt", "value": "You're welcome! Enjoy your movie night! <|endoftext|>" } ]
USER: Hey, can you help me generate a random number between 1 and 100? ASSISTANT: Sure, I can do that. Let me generate the number for you. <|endoftext|> 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: That's great! Now, can you order a pizza for me from the nearest pizza place? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. I can assist with tasks that are within the functions provided to me. 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_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": "Hey, can you help me generate a random number between 1 and 100?" }, { "from": "gpt", "value": "Sure, I can do that. Let me generate the number for you. <|endoftext|>" }, { "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": "That's great! Now, can you order a pizza for me from the nearest pizza place?" }, { "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. I can assist with tasks that are within the functions provided to me. 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 that. My current capabilities are limited to the functions provided to me, and booking a flight is an external task that I don't have a function for. I can help calculate age based on date of birth. Is there anything else you need help with within my capabilities? <|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 YYYY-MM-DD format" } }, "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 YYYY-MM-DD format\"\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 book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with that. My current capabilities are limited to the functions provided to me, and booking a flight is an external task that I don't have a function for. I can help calculate age based on date of birth. Is there anything else you need help with within my capabilities? <|endoftext|>" } ]
USER: I have some chicken, broccoli, and cheese. What can I make with these? ASSISTANT: <functioncall> {"name": "search_recipe", "arguments": '{"ingredients": ["chicken", "broccoli", "cheese"]}'} <|endoftext|> FUNCTION RESPONSE: {"recipes": [{"name": "Chicken and Broccoli Casserole", "ingredients": ["chicken", "broccoli", "cheese", "rice", "milk"], "instructions": "Preheat oven to 350 degrees F (175 degrees C). In a large bowl, mix together chicken, broccoli, and cheese. In a separate bowl, mix together rice and milk. Combine both mixtures and pour into a casserole dish. Bake for 30 minutes, or until cheese is melted and bubbly."}]} ASSISTANT: You can make a Chicken and Broccoli Casserole with your ingredients. You'll also need rice and milk. Preheat your oven to 350 degrees F (175 degrees C). In a large bowl, mix together the chicken, broccoli, and cheese. In a separate bowl, mix together the rice and milk. Combine both mixtures and pour into a casserole dish. Bake for 30 minutes, or until the cheese is melted and bubbly. Enjoy your meal! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_recipe", "description": "Search for a recipe based on ingredients", "parameters": { "type": "object", "properties": { "ingredients": { "type": "array", "items": { "type": "string" }, "description": "The ingredients to search for in 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\": \"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 to search for in the recipe\"\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": "I have some chicken, broccoli, and cheese. What can I make with these?" }, { "from": "gpt", "value": "{\"name\": \"search_recipe\", \"arguments\": '{\"ingredients\": [\"chicken\", \"broccoli\", \"cheese\"]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"recipes\": [{\"name\": \"Chicken and Broccoli Casserole\", \"ingredients\": [\"chicken\", \"broccoli\", \"cheese\", \"rice\", \"milk\"], \"instructions\": \"Preheat oven to 350 degrees F (175 degrees C). In a large bowl, mix together chicken, broccoli, and cheese. In a separate bowl, mix together rice and milk. Combine both mixtures and pour into a casserole dish. Bake for 30 minutes, or until cheese is melted and bubbly.\"}]}" }, { "from": "gpt", "value": "You can make a Chicken and Broccoli Casserole with your ingredients. You'll also need rice and milk. Preheat your oven to 350 degrees F (175 degrees C). In a large bowl, mix together the chicken, broccoli, and cheese. In a separate bowl, mix together the rice and milk. Combine both mixtures and pour into a casserole dish. Bake for 30 minutes, or until the cheese is melted and bubbly. Enjoy your meal! <|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 that. My current capabilities allow me to provide information such as stock prices. I don't have a function to book flights or perform other external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_stock_price", "description": "Get the current stock price", "parameters": { "type": "object", "properties": { "symbol": { "type": "string", "description": "The stock symbol, e.g. AAPL" } }, "required": [ "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\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"symbol\": {\n \"type\": \"string\",\n \"description\": \"The stock symbol, e.g. AAPL\"\n }\n },\n \"required\": [\n \"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 book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with that. My current capabilities allow me to provide information such as stock prices. I don't have a function to book flights or perform other external tasks. <|endoftext|>" } ]
USER: Hi, can you help me find a book? ASSISTANT: Of course! I can help you with that. Could you please provide me with the title, author, or genre of the book you're looking for? <|endoftext|> USER: I am looking for a mystery novel by Agatha Christie. ASSISTANT: <functioncall> {"name": "search_books", "arguments": '{"title": "", "author": "Agatha Christie", "genre": "mystery"}'} <|endoftext|> FUNCTION RESPONSE: {"results": [{"title": "And Then There Were None", "author": "Agatha Christie", "genre": "mystery"}, {"title": "Murder on the Orient Express", "author": "Agatha Christie", "genre": "mystery"}]} ASSISTANT: I found two mystery novels by Agatha Christie. They are "And Then There Were None" and "Murder on the Orient Express". <|endoftext|> USER: Great, can you also order these books for me? ASSISTANT: I'm sorry, but I'm unable to perform external tasks such as placing an order. My current capabilities are limited to searching for books based on given criteria. You may want to order the books through an online bookstore or your local library. <|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 given criteria", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the book" }, "author": { "type": "string", "description": "The author of the book" }, "genre": { "type": "string", "description": "The genre of the book" } }, "required": [] } }
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 given criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the book\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the book\"\n }\n },\n \"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": "Hi, can you help me find a book?" }, { "from": "gpt", "value": "Of course! I can help you with that. Could you please provide me with the title, author, or genre of the book you're looking for? <|endoftext|>" }, { "from": "human", "value": "I am looking for a mystery novel by Agatha Christie." }, { "from": "gpt", "value": "{\"name\": \"search_books\", \"arguments\": '{\"title\": \"\", \"author\": \"Agatha Christie\", \"genre\": \"mystery\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"results\": [{\"title\": \"And Then There Were None\", \"author\": \"Agatha Christie\", \"genre\": \"mystery\"}, {\"title\": \"Murder on the Orient Express\", \"author\": \"Agatha Christie\", \"genre\": \"mystery\"}]}" }, { "from": "gpt", "value": "I found two mystery novels by Agatha Christie. They are \"And Then There Were None\" and \"Murder on the Orient Express\". <|endoftext|>" }, { "from": "human", "value": "Great, can you also order these books for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to perform external tasks such as placing an order. My current capabilities are limited to searching for books based on given criteria. You may want to order the books through an online bookstore or your local library. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but as an AI, I don't have the capability to book flights as it's an external task. I can assist you with tasks related to the functions provided to me. For instance, I can 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 of the person" } }, "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 of the person\"\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 please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but as an AI, I don't have the capability to book flights as it's an external task. I can assist you with tasks related to the functions provided to me. For instance, I can calculate age based on the birth date. <|endoftext|>" } ]
USER: I need to create a note for my meeting tomorrow. ASSISTANT: Sure, I can help with that. What would you like the title and content of the note to be? <|endoftext|> USER: The title should be "Team Meeting" and the content should be "Discuss project updates, assign new tasks, and review deadlines." ASSISTANT: <functioncall> {"name": "create_note", "arguments": '{"title": "Team Meeting", "content": "Discuss project updates, assign new tasks, and review deadlines."}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Note created successfully", "note": {"title": "Team Meeting", "content": "Discuss project updates, assign new tasks, and review deadlines."}} ASSISTANT: Your note titled "Team Meeting" has been created successfully. The content of the note is "Discuss project updates, assign new tasks, and review deadlines." <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_note", "description": "Create a new note", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the note" }, "content": { "type": "string", "description": "The content of the note" } }, "required": [ "title", "content" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_note\",\n \"description\": \"Create a new note\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the note\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"The content of the note\"\n }\n },\n \"required\": [\n \"title\",\n \"content\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "I need to create a note for my meeting tomorrow." }, { "from": "gpt", "value": "Sure, I can help with that. What would you like the title and content of the note to be? <|endoftext|>" }, { "from": "human", "value": "The title should be \"Team Meeting\" and the content should be \"Discuss project updates, assign new tasks, and review deadlines.\"" }, { "from": "gpt", "value": "{\"name\": \"create_note\", \"arguments\": '{\"title\": \"Team Meeting\", \"content\": \"Discuss project updates, assign new tasks, and review deadlines.\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Note created successfully\", \"note\": {\"title\": \"Team Meeting\", \"content\": \"Discuss project updates, assign new tasks, and review deadlines.\"}}" }, { "from": "gpt", "value": "Your note titled \"Team Meeting\" has been created successfully. The content of the note is \"Discuss project updates, assign new tasks, and review deadlines.\" <|endoftext|>" } ]
USER: Hi, I need to convert 500 USD to EUR. 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 EUR. <|endoftext|> USER: Great, thanks! Now, can you convert 1000 EUR to GBP? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 1000, "from_currency": "EUR", "to_currency": "GBP"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 860.00, "from_currency": "EUR", "to_currency": "GBP"} ASSISTANT: 1000 EUR is approximately 860.00 GBP. <|endoftext|> USER: Thank you for your help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "from_currency": { "type": "string", "description": "The source currency" }, "to_currency": { "type": "string", "description": "The target currency" } }, "required": [ "amount", "from_currency", "to_currency" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The source currency\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The target currency\"\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 EUR. 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 EUR. <|endoftext|>" }, { "from": "human", "value": "Great, thanks! Now, can you convert 1000 EUR to GBP?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"EUR\", \"to_currency\": \"GBP\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 860.00, \"from_currency\": \"EUR\", \"to_currency\": \"GBP\"}" }, { "from": "gpt", "value": "1000 EUR is approximately 860.00 GBP. <|endoftext|>" }, { "from": "human", "value": "Thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: 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": '{"data": "www.mywebsite.com", "size": 200}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "QR code generated successfully", "data": {"qr_code": "base64_encoded_qr_code"}} ASSISTANT: I have successfully generated the QR code for your website. You can download it using this link: [base64_encoded_qr_code]. <|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 input", "parameters": { "type": "object", "properties": { "data": { "type": "string", "description": "The data to encode in the QR code" }, "size": { "type": "integer", "description": "The size of the QR code in pixels" } }, "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 input\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"string\",\n \"description\": \"The data to encode in the QR code\"\n },\n \"size\": {\n \"type\": \"integer\",\n \"description\": \"The size of the QR code in pixels\"\n }\n },\n \"required\": [\n \"data\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need a QR code for my website. 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\": '{\"data\": \"www.mywebsite.com\", \"size\": 200}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"QR code generated successfully\", \"data\": {\"qr_code\": \"base64_encoded_qr_code\"}}" }, { "from": "gpt", "value": "I have successfully generated the QR code for your website. You can download it using this link: [base64_encoded_qr_code]. <|endoftext|>" } ]
USER: Hi, I need to ship a package to New York. It weighs about 5 pounds. Can you tell me how much it will cost? ASSISTANT: <functioncall> {"name": "calculate_shipping_cost", "arguments": '{"weight": 5, "destination": "New York"}'} <|endoftext|> FUNCTION RESPONSE: {"cost": 15.75} ASSISTANT: The cost to ship your package to New York will be $15.75. <|endoftext|> USER: Great, thanks for the information. Now, I have another package that weighs 10 pounds and needs to be shipped to Los Angeles. Can you calculate the cost for this one as well? ASSISTANT: <functioncall> {"name": "calculate_shipping_cost", "arguments": '{"weight": 10, "destination": "Los Angeles"}'} <|endoftext|> FUNCTION RESPONSE: {"cost": 20.50} ASSISTANT: The cost to ship your second package to Los Angeles will be $20.50. <|endoftext|> USER: Thank you for your help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_shipping_cost", "description": "Calculate the cost of shipping", "parameters": { "type": "object", "properties": { "weight": { "type": "number", "description": "The weight of the package in pounds" }, "destination": { "type": "string", "description": "The destination address" } }, "required": [ "weight", "destination" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_shipping_cost\",\n \"description\": \"Calculate the cost of shipping\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight of the package in pounds\"\n },\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination address\"\n }\n },\n \"required\": [\n \"weight\",\n \"destination\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to ship a package to New York. It weighs about 5 pounds. Can you tell me how much it will cost?" }, { "from": "gpt", "value": "{\"name\": \"calculate_shipping_cost\", \"arguments\": '{\"weight\": 5, \"destination\": \"New York\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"cost\": 15.75}" }, { "from": "gpt", "value": "The cost to ship your package to New York will be $15.75. <|endoftext|>" }, { "from": "human", "value": "Great, thanks for the information. Now, I have another package that weighs 10 pounds and needs to be shipped to Los Angeles. Can you calculate the cost for this one as well?" }, { "from": "gpt", "value": "{\"name\": \"calculate_shipping_cost\", \"arguments\": '{\"weight\": 10, \"destination\": \"Los Angeles\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"cost\": 20.50}" }, { "from": "gpt", "value": "The cost to ship your second package to Los Angeles will be $20.50. <|endoftext|>" }, { "from": "human", "value": "Thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hi, I need to convert 1000 USD 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, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 1000 USD is approximately 850 Euros. <|endoftext|> USER: Great, thanks! Now, can you convert 5000 Japanese Yen to British Pounds? ASSISTANT: <functioncall> {"name": "convert_currency", "arguments": '{"amount": 5000, "from_currency": "JPY", "to_currency": "GBP"}'} <|endoftext|> FUNCTION RESPONSE: {"converted_amount": 34, "from_currency": "JPY", "to_currency": "GBP"} ASSISTANT: 5000 Japanese Yen is approximately 34 British Pounds. <|endoftext|> USER: Thank you for your help! ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert 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 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 USD to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 1000 USD is approximately 850 Euros. <|endoftext|>" }, { "from": "human", "value": "Great, thanks! Now, can you convert 5000 Japanese Yen to British Pounds?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 5000, \"from_currency\": \"JPY\", \"to_currency\": \"GBP\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 34, \"from_currency\": \"JPY\", \"to_currency\": \"GBP\"}" }, { "from": "gpt", "value": "5000 Japanese Yen is approximately 34 British Pounds. <|endoftext|>" }, { "from": "human", "value": "Thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hi, I need to calculate my tax. My total income is $80,000 and I have $10,000 in deductions. ASSISTANT: <functioncall> {"name": "calculate_tax", "arguments": '{"income": 80000, "deductions": 10000}'} <|endoftext|> FUNCTION RESPONSE: {"tax_amount": 14000} ASSISTANT: Based on your income and deductions, your calculated tax amount is $14,000. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_tax", "description": "Calculate the tax amount based on income", "parameters": { "type": "object", "properties": { "income": { "type": "number", "description": "The total income amount" }, "deductions": { "type": "number", "description": "The total amount of deductions" } }, "required": [ "income" ] } } { "name": "generate_random_number", "description": "Generate a random number within a given 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\": \"calculate_tax\",\n \"description\": \"Calculate the tax amount based on income\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"income\": {\n \"type\": \"number\",\n \"description\": \"The total income amount\"\n },\n \"deductions\": {\n \"type\": \"number\",\n \"description\": \"The total amount of deductions\"\n }\n },\n \"required\": [\n \"income\"\n ]\n }\n}\n\n{\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a given 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\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to calculate my tax. My total income is $80,000 and I have $10,000 in deductions." }, { "from": "gpt", "value": "{\"name\": \"calculate_tax\", \"arguments\": '{\"income\": 80000, \"deductions\": 10000}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tax_amount\": 14000}" }, { "from": "gpt", "value": "Based on your income and deductions, your calculated tax amount is $14,000. <|endoftext|>" } ]
USER: Hi, I need to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms. ASSISTANT: <functioncall> {"name": "calculate_bmi", "arguments": '{"height": 1.75, "weight": 70}'} <|endoftext|> FUNCTION RESPONSE: {"bmi": 22.86} ASSISTANT: Your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_bmi", "description": "Calculate the Body Mass Index", "parameters": { "type": "object", "properties": { "height": { "type": "number", "description": "The height in meters" }, "weight": { "type": "number", "description": "The weight in kilograms" } }, "required": [ "height", "weight" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n }\n },\n \"required\": [\n \"height\",\n \"weight\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms." }, { "from": "gpt", "value": "{\"name\": \"calculate_bmi\", \"arguments\": '{\"height\": 1.75, \"weight\": 70}'} <|endoftext|>" }, { "from": "tool", "value": "{\"bmi\": 22.86}" }, { "from": "gpt", "value": "Your Body Mass Index (BMI) is 22.86. This is considered a healthy weight for your height. <|endoftext|>" } ]
USER: Can you order a pizza for me? ASSISTANT: I'm sorry, but I don't have the capability to order a pizza as it's an external task. My current function is to provide a random joke. Would you like to hear a joke instead? <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_joke", "description": "Get a random joke", "parameters": {} }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_joke\",\n \"description\": \"Get a random joke\",\n \"parameters\": {}\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to order a pizza as it's an external task. My current function is to provide a random joke. Would you like to hear a joke instead? <|endoftext|>" } ]
USER: I have some chicken, tomatoes and basil. Can you find me a recipe? ASSISTANT: <functioncall> {"name": "search_recipes", "arguments": '{"ingredients": ["chicken", "tomatoes", "basil"]}'} <|endoftext|> FUNCTION RESPONSE: {"recipes": [{"name": "Chicken Tomato Basil Stir Fry", "ingredients": ["chicken", "tomatoes", "basil"], "instructions": "1. Heat oil in a pan. 2. Add chicken and cook until browned. 3. Add tomatoes and basil and stir fry for 5 minutes. 4. Serve hot."}]} ASSISTANT: I found a recipe for you. It's called "Chicken Tomato Basil Stir Fry". Here are the instructions: 1. Heat oil in a pan. 2. Add chicken and cook until browned. 3. Add tomatoes and basil and stir fry for 5 minutes. 4. Serve hot. <|endoftext|> USER: That sounds delicious! Do you have a vegetarian recipe with the same ingredients? ASSISTANT: <functioncall> {"name": "search_recipes", "arguments": '{"ingredients": ["tomatoes", "basil"], "diet": "vegetarian"}'} <|endoftext|> FUNCTION RESPONSE: {"recipes": [{"name": "Tomato Basil Pasta", "ingredients": ["tomatoes", "basil"], "instructions": "1. Cook pasta according to package instructions. 2. In a pan, sauté tomatoes and basil in olive oil. 3. Toss cooked pasta in the tomato basil sauce. 4. Serve hot."}]} ASSISTANT: I found a vegetarian recipe for you. It's called "Tomato Basil Pasta". Here are the instructions: 1. Cook pasta according to package instructions. 2. In a pan, sauté tomatoes and basil in olive oil. 3. Toss cooked pasta in the tomato basil sauce. 4. Serve hot. <|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 ingredients", "parameters": { "type": "object", "properties": { "ingredients": { "type": "array", "items": { "type": "string" }, "description": "The ingredients to search for" }, "cuisine": { "type": "string", "description": "The cuisine type to filter the recipes" }, "diet": { "type": "string", "description": "The diet type to filter the recipes" } } } }
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 to search for\"\n },\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type to filter the recipes\"\n },\n \"diet\": {\n \"type\": \"string\",\n \"description\": \"The diet type to filter the recipes\"\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 basil. Can you find me a recipe?" }, { "from": "gpt", "value": "{\"name\": \"search_recipes\", \"arguments\": '{\"ingredients\": [\"chicken\", \"tomatoes\", \"basil\"]}'} <|endoftext|>" }, { "from": "tool", "value": "{\"recipes\": [{\"name\": \"Chicken Tomato Basil Stir Fry\", \"ingredients\": [\"chicken\", \"tomatoes\", \"basil\"], \"instructions\": \"1. Heat oil in a pan. 2. Add chicken and cook until browned. 3. Add tomatoes and basil and stir fry for 5 minutes. 4. Serve hot.\"}]}" }, { "from": "gpt", "value": "I found a recipe for you. It's called \"Chicken Tomato Basil Stir Fry\". Here are the instructions: 1. Heat oil in a pan. 2. Add chicken and cook until browned. 3. Add tomatoes and basil and stir fry for 5 minutes. 4. Serve hot. <|endoftext|>" }, { "from": "human", "value": "That sounds delicious! Do you have a vegetarian recipe with the same ingredients?" }, { "from": "gpt", "value": "{\"name\": \"search_recipes\", \"arguments\": '{\"ingredients\": [\"tomatoes\", \"basil\"], \"diet\": \"vegetarian\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"recipes\": [{\"name\": \"Tomato Basil Pasta\", \"ingredients\": [\"tomatoes\", \"basil\"], \"instructions\": \"1. Cook pasta according to package instructions. 2. In a pan, sauté tomatoes and basil in olive oil. 3. Toss cooked pasta in the tomato basil sauce. 4. Serve hot.\"}]}" }, { "from": "gpt", "value": "I found a vegetarian recipe for you. It's called \"Tomato Basil Pasta\". Here are the instructions: 1. Cook pasta according to package instructions. 2. In a pan, sauté tomatoes and basil in olive oil. 3. Toss cooked pasta in the tomato basil sauce. 4. Serve hot. <|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 calculating the area of a shape given the dimensions. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_area", "description": "Calculate the area of a shape", "parameters": { "type": "object", "properties": { "shape": { "type": "string", "enum": [ "square", "rectangle", "circle", "triangle" ], "description": "The shape to calculate the area for" }, "dimensions": { "type": "object", "properties": { "side": { "type": "number", "description": "The side length of the square" }, "length": { "type": "number", "description": "The length of the rectangle" }, "width": { "type": "number", "description": "The width of the rectangle" }, "radius": { "type": "number", "description": "The radius of the circle" }, "base": { "type": "number", "description": "The base of the triangle" }, "height": { "type": "number", "description": "The height of the triangle" } } } }, "required": [ "shape", "dimensions" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a shape\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"enum\": [\n \"square\",\n \"rectangle\",\n \"circle\",\n \"triangle\"\n ],\n \"description\": \"The shape to calculate the area for\"\n },\n \"dimensions\": {\n \"type\": \"object\",\n \"properties\": {\n \"side\": {\n \"type\": \"number\",\n \"description\": \"The side length of the square\"\n },\n \"length\": {\n \"type\": \"number\",\n \"description\": \"The length of the rectangle\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the rectangle\"\n },\n \"radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the circle\"\n },\n \"base\": {\n \"type\": \"number\",\n \"description\": \"The base of the triangle\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the triangle\"\n }\n }\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to calculating the area of a shape given the dimensions. <|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 type to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "from_currency": { "type": "string", "description": "The currency to convert from" }, "to_currency": { "type": "string", "description": "The currency to convert to" } }, "required": [ "amount", "from_currency", "to_currency" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_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: I'm bored. Can you tell me something interesting? ASSISTANT: <functioncall> {"name": "get_random_fact", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"fact": "Did you know that an octopus has three hearts?"} ASSISTANT: Did you know that an octopus has three hearts? Isn't that fascinating? <|endoftext|> USER: Wow, that's really interesting! Tell me another one. ASSISTANT: <functioncall> {"name": "get_random_fact", "arguments": {}} <|endoftext|> FUNCTION RESPONSE: {"fact": "The Eiffel Tower can be 15 cm taller during the summer due to the expansion of the iron on hot days."} ASSISTANT: Here's another one for you. The Eiffel Tower can be 15 cm taller during the summer due to the expansion of the iron on hot days. Isn't that amazing? <|endoftext|> USER: That's really cool! I didn't know that. Thanks for the fun facts. ASSISTANT: You're welcome! I'm glad you found them interesting. If you want to know more fun facts, just let me know! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_random_fact", "description": "Get a random fact", "parameters": {} } { "name": "generate_invoice", "description": "Generate an invoice for a product or service", "parameters": { "type": "object", "properties": { "customer_name": { "type": "string", "description": "The name of the customer" }, "items": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the item" }, "price": { "type": "number", "description": "The price of the item" }, "quantity": { "type": "integer", "description": "The quantity of the item" } }, "required": [ "name", "price", "quantity" ] } } }, "required": [ "customer_name", "items" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_random_fact\",\n \"description\": \"Get a random fact\",\n \"parameters\": {}\n}\n\n{\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice for a product or service\",\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 \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the item\"\n },\n \"price\": {\n \"type\": \"number\",\n \"description\": \"The price of the item\"\n },\n \"quantity\": {\n \"type\": \"integer\",\n \"description\": \"The quantity of the item\"\n }\n },\n \"required\": [\n \"name\",\n \"price\",\n \"quantity\"\n ]\n }\n }\n },\n \"required\": [\n \"customer_name\",\n \"items\"\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'm bored. Can you tell me something interesting?" }, { "from": "gpt", "value": "{\"name\": \"get_random_fact\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"fact\": \"Did you know that an octopus has three hearts?\"}" }, { "from": "gpt", "value": "Did you know that an octopus has three hearts? Isn't that fascinating? <|endoftext|>" }, { "from": "human", "value": "Wow, that's really interesting! Tell me another one." }, { "from": "gpt", "value": "{\"name\": \"get_random_fact\", \"arguments\": {}} <|endoftext|>" }, { "from": "tool", "value": "{\"fact\": \"The Eiffel Tower can be 15 cm taller during the summer due to the expansion of the iron on hot days.\"}" }, { "from": "gpt", "value": "Here's another one for you. The Eiffel Tower can be 15 cm taller during the summer due to the expansion of the iron on hot days. Isn't that amazing? <|endoftext|>" }, { "from": "human", "value": "That's really cool! I didn't know that. Thanks for the fun facts." }, { "from": "gpt", "value": "You're welcome! I'm glad you found them interesting. If you want to know more fun facts, just let me know! <|endoftext|>" } ]
USER: Hi, I need to translate a sentence from English to French. The sentence is "Hello, how are you?" ASSISTANT: <functioncall> {"name": "translate_text", "arguments": '{"text": "Hello, how are you?", "source_language": "English", "target_language": "French"}'} <|endoftext|> FUNCTION RESPONSE: {"translated_text": "Bonjour, comment ça va?"} ASSISTANT: The translation of "Hello, how are you?" from English to French is "Bonjour, comment ça va?". <|endoftext|> USER: Great! Now, can you translate "I am fine, thank you" from English to Spanish? ASSISTANT: <functioncall> {"name": "translate_text", "arguments": '{"text": "I am fine, thank you", "source_language": "English", "target_language": "Spanish"}'} <|endoftext|> FUNCTION RESPONSE: {"translated_text": "Estoy bien, gracias"} ASSISTANT: The translation of "I am fine, thank you" from English to Spanish is "Estoy bien, gracias". <|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 for translation" } }, "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 for translation\"\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": "Hi, I need to translate a sentence from English to French. The sentence is \"Hello, how are you?\"" }, { "from": "gpt", "value": "{\"name\": \"translate_text\", \"arguments\": '{\"text\": \"Hello, how are you?\", \"source_language\": \"English\", \"target_language\": \"French\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"translated_text\": \"Bonjour, comment ça va?\"}" }, { "from": "gpt", "value": "The translation of \"Hello, how are you?\" from English to French is \"Bonjour, comment ça va?\". <|endoftext|>" }, { "from": "human", "value": "Great! Now, can you translate \"I am fine, thank you\" from English to Spanish?" }, { "from": "gpt", "value": "{\"name\": \"translate_text\", \"arguments\": '{\"text\": \"I am fine, thank you\", \"source_language\": \"English\", \"target_language\": \"Spanish\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"translated_text\": \"Estoy bien, gracias\"}" }, { "from": "gpt", "value": "The translation of \"I am fine, thank you\" from English to Spanish is \"Estoy bien, gracias\". <|endoftext|>" } ]
USER: Can you tell me the latest news in sports? ASSISTANT: <functioncall> {"name": "get_news", "arguments": '{"category": "sports"}'} <|endoftext|> FUNCTION RESPONSE: {"news": [{"headline": "Olympics 2022: USA wins gold in women's hockey", "source": "ESPN"}, {"headline": "NBA: Lakers beat Celtics in a thrilling match", "source": "Sports Illustrated"}, {"headline": "Tennis: Nadal wins Australian Open", "source": "BBC Sports"}]} ASSISTANT: Here are the latest sports headlines: 1. "Olympics 2022: USA wins gold in women's hockey" - ESPN 2. "NBA: Lakers beat Celtics in a thrilling match" - Sports Illustrated 3. "Tennis: Nadal wins Australian Open" - BBC Sports <|endoftext|> USER: What about politics? ASSISTANT: <functioncall> {"name": "get_news", "arguments": '{"category": "politics"}'} <|endoftext|> FUNCTION RESPONSE: {"news": [{"headline": "President signs new climate change bill", "source": "CNN"}, {"headline": "Elections 2022: Polls predict a close race", "source": "The Guardian"}, {"headline": "Brexit: UK and EU reach new trade agreement", "source": "BBC News"}]} ASSISTANT: Here are the latest politics headlines: 1. "President signs new climate change bill" - CNN 2. "Elections 2022: Polls predict a close race" - The Guardian 3. "Brexit: UK and EU reach new trade agreement" - BBC News <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_news", "description": "Get the latest news headlines", "parameters": { "type": "object", "properties": { "category": { "type": "string", "description": "The news category (e.g. sports, politics, entertainment)" } } } } { "name": "generate_invoice", "description": "Generate an invoice with item details and total amount", "parameters": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "description": "The name of the item" }, "price": { "type": "number", "description": "The price of the item" }, "quantity": { "type": "integer", "description": "The quantity of the item" } }, "required": [ "name", "price", "quantity" ] } } }, "required": [ "items" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_news\",\n \"description\": \"Get the latest news headlines\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The news category (e.g. sports, politics, entertainment)\"\n }\n }\n }\n}\n\n{\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice with item details and total amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the item\"\n },\n \"price\": {\n \"type\": \"number\",\n \"description\": \"The price of the item\"\n },\n \"quantity\": {\n \"type\": \"integer\",\n \"description\": \"The quantity of the item\"\n }\n },\n \"required\": [\n \"name\",\n \"price\",\n \"quantity\"\n ]\n }\n }\n },\n \"required\": [\n \"items\"\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": "Can you tell me the latest news in sports?" }, { "from": "gpt", "value": "{\"name\": \"get_news\", \"arguments\": '{\"category\": \"sports\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"news\": [{\"headline\": \"Olympics 2022: USA wins gold in women's hockey\", \"source\": \"ESPN\"}, {\"headline\": \"NBA: Lakers beat Celtics in a thrilling match\", \"source\": \"Sports Illustrated\"}, {\"headline\": \"Tennis: Nadal wins Australian Open\", \"source\": \"BBC Sports\"}]}" }, { "from": "gpt", "value": "Here are the latest sports headlines:\n1. \"Olympics 2022: USA wins gold in women's hockey\" - ESPN\n2. \"NBA: Lakers beat Celtics in a thrilling match\" - Sports Illustrated\n3. \"Tennis: Nadal wins Australian Open\" - BBC Sports <|endoftext|>" }, { "from": "human", "value": "What about politics?" }, { "from": "gpt", "value": "{\"name\": \"get_news\", \"arguments\": '{\"category\": \"politics\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"news\": [{\"headline\": \"President signs new climate change bill\", \"source\": \"CNN\"}, {\"headline\": \"Elections 2022: Polls predict a close race\", \"source\": \"The Guardian\"}, {\"headline\": \"Brexit: UK and EU reach new trade agreement\", \"source\": \"BBC News\"}]}" }, { "from": "gpt", "value": "Here are the latest politics headlines:\n1. \"President signs new climate change bill\" - CNN\n2. \"Elections 2022: Polls predict a close race\" - The Guardian\n3. \"Brexit: UK and EU reach new trade agreement\" - BBC News <|endoftext|>" } ]
USER: Hi, I need to know the distance between New York and Los Angeles. ASSISTANT: <functioncall> {"name": "calculate_distance", "arguments": '{"location1": "New York", "location2": "Los Angeles"}'} <|endoftext|> FUNCTION RESPONSE: {"distance": 2448.5, "unit": "miles"} ASSISTANT: The distance between New York and Los Angeles is approximately 2448.5 miles. <|endoftext|> USER: That's quite a distance. What about the distance between London and Paris? ASSISTANT: <functioncall> {"name": "calculate_distance", "arguments": '{"location1": "London", "location2": "Paris"}'} <|endoftext|> FUNCTION RESPONSE: {"distance": 213.7, "unit": "miles"} ASSISTANT: The distance between London and Paris is approximately 213.7 miles. <|endoftext|> USER: Thanks for the information! 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_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "location1": { "type": "string", "description": "The first location" }, "location2": { "type": "string", "description": "The second location" } }, "required": [ "location1", "location2" ] } } { "name": "convert_currency", "description": "Convert 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\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location1\": {\n \"type\": \"string\",\n \"description\": \"The first location\"\n },\n \"location2\": {\n \"type\": \"string\",\n \"description\": \"The second location\"\n }\n },\n \"required\": [\n \"location1\",\n \"location2\"\n ]\n }\n}\n\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert one currency to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to 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 to know the distance between New York and Los Angeles." }, { "from": "gpt", "value": "{\"name\": \"calculate_distance\", \"arguments\": '{\"location1\": \"New York\", \"location2\": \"Los Angeles\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"distance\": 2448.5, \"unit\": \"miles\"}" }, { "from": "gpt", "value": "The distance between New York and Los Angeles is approximately 2448.5 miles. <|endoftext|>" }, { "from": "human", "value": "That's quite a distance. What about the distance between London and Paris?" }, { "from": "gpt", "value": "{\"name\": \"calculate_distance\", \"arguments\": '{\"location1\": \"London\", \"location2\": \"Paris\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"distance\": 213.7, \"unit\": \"miles\"}" }, { "from": "gpt", "value": "The distance between London and Paris is approximately 213.7 miles. <|endoftext|>" }, { "from": "human", "value": "Thanks for the information!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hi, I need to track my package. The tracking number is 123456789. ASSISTANT: <functioncall> {"name": "track_package", "arguments": '{"tracking_number": "123456789"}'} <|endoftext|> FUNCTION RESPONSE: {"status": "In transit", "location": "Chicago, IL", "expected_delivery": "2022-03-15"} ASSISTANT: Your package is currently in transit. It's last known location is Chicago, IL and it is expected to be delivered by 15th March 2022. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "track_package", "description": "Track the status of a package", "parameters": { "type": "object", "properties": { "tracking_number": { "type": "string", "description": "The tracking number of the package" } }, "required": [ "tracking_number" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"track_package\",\n \"description\": \"Track the status of a package\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"tracking_number\": {\n \"type\": \"string\",\n \"description\": \"The tracking number of the package\"\n }\n },\n \"required\": [\n \"tracking_number\"\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 track my package. The tracking number is 123456789." }, { "from": "gpt", "value": "{\"name\": \"track_package\", \"arguments\": '{\"tracking_number\": \"123456789\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"In transit\", \"location\": \"Chicago, IL\", \"expected_delivery\": \"2022-03-15\"}" }, { "from": "gpt", "value": "Your package is currently in transit. It's last known location is Chicago, IL and it is expected to be delivered by 15th March 2022. <|endoftext|>" } ]
USER: Hi, I was born on 1990-05-15. Can you tell me how old I am? ASSISTANT: <functioncall> {"name": "calculate_age", "arguments": '{"date_of_birth": "1990-05-15"}'} <|endoftext|> FUNCTION RESPONSE: {"age": 31} ASSISTANT: According to the date of birth you provided, you are 31 years old. <|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", "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 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, I was born on 1990-05-15. Can you tell me how old I am?" }, { "from": "gpt", "value": "{\"name\": \"calculate_age\", \"arguments\": '{\"date_of_birth\": \"1990-05-15\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"age\": 31}" }, { "from": "gpt", "value": "According to the date of birth you provided, you are 31 years old. <|endoftext|>" } ]
USER: Can you 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 search for recipes based on ingredients. If you need help with that, feel free to ask! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "search_recipes", "description": "Search for recipes based on 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 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": "Can you 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 search for recipes based on ingredients. If you need help with that, 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 don't have the capability to book flights. My functions are limited to calculating the Fibonacci sequence. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_fibonacci", "description": "Calculate the Fibonacci sequence", "parameters": { "type": "object", "properties": { "n": { "type": "integer", "description": "The number of terms in the Fibonacci sequence" } }, "required": [ "n" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_fibonacci\",\n \"description\": \"Calculate the Fibonacci sequence\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"n\": {\n \"type\": \"integer\",\n \"description\": \"The number of terms in the Fibonacci sequence\"\n }\n },\n \"required\": [\n \"n\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "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 functions are limited to calculating the Fibonacci sequence. <|endoftext|>" } ]
USER: Can you help me book a flight to New York? ASSISTANT: I'm sorry, but I don't have the capability to book flights. My current function allows me to calculate GPAs based on the grades and credit hours of your courses. If you need help with that, feel free to ask! <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_gpa", "description": "Calculate the GPA (Grade Point Average)", "parameters": { "type": "object", "properties": { "grades": { "type": "array", "items": { "type": "object", "properties": { "course": { "type": "string", "description": "The name of the course" }, "grade": { "type": "string", "description": "The grade received in the course" }, "credit_hours": { "type": "number", "description": "The number of credit hours for the course" } }, "required": [ "course", "grade", "credit_hours" ] } } }, "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 GPA (Grade Point Average)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"grades\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"course\": {\n \"type\": \"string\",\n \"description\": \"The name of the course\"\n },\n \"grade\": {\n \"type\": \"string\",\n \"description\": \"The grade received in the course\"\n },\n \"credit_hours\": {\n \"type\": \"number\",\n \"description\": \"The number of credit hours for the course\"\n }\n },\n \"required\": [\n \"course\",\n \"grade\",\n \"credit_hours\"\n ]\n }\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 book a flight to New York?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to book flights. My current function allows me to calculate GPAs based on the grades and credit hours of your courses. If you need help with that, feel free to ask! <|endoftext|>" } ]
USER: I saw a dress that I liked. It was originally priced at $100 but it's on a 20% discount. 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 if the discount was 30% instead? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 100, "discount_percentage": 30}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 70} ASSISTANT: If the discount was 30%, the dress would cost you $70. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price based on original price and discount percentage", "parameters": { "type": "object", "properties": { "original_price": { "type": "number", "description": "The original price of the item" }, "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 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 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 a 20% discount. 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 if the discount was 30% instead?" }, { "from": "gpt", "value": "{\"name\": \"calculate_discount\", \"arguments\": '{\"original_price\": 100, \"discount_percentage\": 30}'} <|endoftext|>" }, { "from": "tool", "value": "{\"discounted_price\": 70}" }, { "from": "gpt", "value": "If the discount was 30%, the dress would cost you $70. <|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 help you calculate the tip amount based on a bill total and tip percentage. <|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 the bill total and tip percentage", "parameters": { "type": "object", "properties": { "bill_total": { "type": "number", "description": "The total bill amount" }, "tip_percentage": { "type": "number", "description": "The percentage tip to be given" } }, "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 the bill total and tip percentage\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_total\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage tip to be given\"\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": "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 help you calculate the tip amount based on a bill total and tip percentage. <|endoftext|>" } ]
USER: Hi, I need to calculate my BMI. I weigh 70 kilograms 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 to be within the healthy weight range. <|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" ] } } { "name": "get_upcoming_events", "description": "Get the upcoming events in a specific location", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "The location for which upcoming events should be fetched" } }, "required": [ "location" ] } }
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\n{\n \"name\": \"get_upcoming_events\",\n \"description\": \"Get the upcoming events in a specific location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location for which upcoming events should be fetched\"\n }\n },\n \"required\": [\n \"location\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to calculate my BMI. I weigh 70 kilograms 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 to be within the healthy weight range. <|endoftext|>" } ]
USER: Hi, I need to convert 1000 USD 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.50, "from_currency": "USD", "to_currency": "EUR"} ASSISTANT: Sure, 1000 USD is approximately 850.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 type 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 type 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 1000 USD to Euros. Can you help me with that?" }, { "from": "gpt", "value": "{\"name\": \"convert_currency\", \"arguments\": '{\"amount\": 1000, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"converted_amount\": 850.50, \"from_currency\": \"USD\", \"to_currency\": \"EUR\"}" }, { "from": "gpt", "value": "Sure, 1000 USD is approximately 850.50 Euros. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with that. My current capabilities are limited to the functions provided to me. In this case, I can calculate age based on the date of birth. I don't have the ability to book flights or perform other external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_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 in the 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 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 in the 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 that. My current capabilities are limited to the functions provided to me. In this case, I can calculate age based on the date of birth. I don't have the ability to book flights or perform other external tasks. <|endoftext|>" } ]
USER: Can you send an email to [email protected] with the subject "Meeting Reminder" and message "Don't forget about our meeting tomorrow at 10am"? ASSISTANT: <functioncall> {"name": "send_email", "arguments": '{ "to": "[email protected]", "subject": "Meeting Reminder", "message": "Don't forget about our meeting tomorrow at 10am" }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully"} ASSISTANT: The email has been sent to [email protected] successfully. The subject of the email was "Meeting Reminder" and the message was "Don't forget about our meeting tomorrow at 10am". <|endoftext|> USER: Great! Can you also book a flight for me to New York tomorrow? ASSISTANT: I'm sorry, but I don't have the capability to book flights. My current functions only allow me to send emails. Is there anything else I can assist you 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", "parameters": { "type": "object", "properties": { "to": { "type": "string", "description": "The email address to send the email to" }, "subject": { "type": "string", "description": "The subject of the email" }, "message": { "type": "string", "description": "The body of the email" }, "attachments": { "type": "array", "items": { "type": "string" }, "description": "Attachments to include in the email" } }, "required": [ "to", "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\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The email address to send the email to\"\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 \"attachments\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Attachments to include in the email\"\n }\n },\n \"required\": [\n \"to\",\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": "Can you send an email to [email protected] with the subject \"Meeting Reminder\" and message \"Don't forget about our meeting tomorrow at 10am\"?" }, { "from": "gpt", "value": "{\"name\": \"send_email\", \"arguments\": '{\n \"to\": \"[email protected]\",\n \"subject\": \"Meeting Reminder\",\n \"message\": \"Don't forget about our meeting tomorrow at 10am\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}" }, { "from": "gpt", "value": "The email has been sent to [email protected] successfully. The subject of the email was \"Meeting Reminder\" and the message was \"Don't forget about our meeting tomorrow at 10am\". <|endoftext|>" }, { "from": "human", "value": "Great! Can you also book a flight for me to New York tomorrow?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to book flights. My current functions only allow me to send emails. Is there anything else I can assist you with? <|endoftext|>" } ]
USER: I want to watch a movie tonight but I'm not sure what to watch. Can you suggest something? ASSISTANT: Of course! To help you better, could you please tell me your preferred genre or any specific actor you like? <|endoftext|> USER: I like action movies and I'm a big fan of 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", "Rain Man", "A Few Good Men"]} ASSISTANT: Here are some action movies starring Tom Cruise that you might enjoy: "Mission: Impossible – Fallout", "Top Gun", "Edge of Tomorrow", "Rain Man", "A Few Good Men". <|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, genre, or actor", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the movie" }, "genre": { "type": "string", "description": "The genre 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 title, genre, or actor\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre 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 but I'm not sure what to watch. Can you suggest something?" }, { "from": "gpt", "value": "Of course! To help you better, could you please tell me your preferred genre or any specific actor you like? <|endoftext|>" }, { "from": "human", "value": "I like action movies and I'm a big fan of 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\", \"Rain Man\", \"A Few Good Men\"]}" }, { "from": "gpt", "value": "Here are some action movies starring Tom Cruise that you might enjoy: \"Mission: Impossible – Fallout\", \"Top Gun\", \"Edge of Tomorrow\", \"Rain Man\", \"A Few Good Men\". <|endoftext|>" } ]
USER: Hi, I need to calculate my tax. My income is $50000 and the tax rate is 20%. ASSISTANT: <functioncall> {"name": "calculate_tax", "arguments": '{"income": 50000, "tax_rate": 20}'} <|endoftext|> FUNCTION RESPONSE: {"tax_amount": 10000} ASSISTANT: Based on your income and the tax rate, your tax amount will be $10000. <|endoftext|> USER: That's quite a lot. What if my income was $40000? ASSISTANT: <functioncall> {"name": "calculate_tax", "arguments": '{"income": 40000, "tax_rate": 20}'} <|endoftext|> FUNCTION RESPONSE: {"tax_amount": 8000} ASSISTANT: If your income was $40000, your tax amount would be $8000. <|endoftext|> USER: Thanks for the information. 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_tax", "description": "Calculate the tax amount based on income and tax rate", "parameters": { "type": "object", "properties": { "income": { "type": "number", "description": "The income amount" }, "tax_rate": { "type": "number", "description": "The tax rate in percentage" } }, "required": [ "income", "tax_rate" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_tax\",\n \"description\": \"Calculate the tax amount based on income and tax rate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"income\": {\n \"type\": \"number\",\n \"description\": \"The income amount\"\n },\n \"tax_rate\": {\n \"type\": \"number\",\n \"description\": \"The tax rate in percentage\"\n }\n },\n \"required\": [\n \"income\",\n \"tax_rate\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need to calculate my tax. My income is $50000 and the tax rate is 20%." }, { "from": "gpt", "value": "{\"name\": \"calculate_tax\", \"arguments\": '{\"income\": 50000, \"tax_rate\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tax_amount\": 10000}" }, { "from": "gpt", "value": "Based on your income and the tax rate, your tax amount will be $10000. <|endoftext|>" }, { "from": "human", "value": "That's quite a lot. What if my income was $40000?" }, { "from": "gpt", "value": "{\"name\": \"calculate_tax\", \"arguments\": '{\"income\": 40000, \"tax_rate\": 20}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tax_amount\": 8000}" }, { "from": "gpt", "value": "If your income was $40000, your tax amount would be $8000. <|endoftext|>" }, { "from": "human", "value": "Thanks for the information." }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: I need to schedule a meeting with John, Sarah and Mike at 3pm tomorrow. ASSISTANT: <functioncall> {"name": "schedule_meeting", "arguments": '{ "participants": ["John", "Sarah", "Mike"], "time": "3pm tomorrow" }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Meeting scheduled successfully with John, Sarah and Mike at 3pm tomorrow."} ASSISTANT: The meeting has been scheduled successfully with John, Sarah, and Mike at 3pm tomorrow. <|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": "schedule_meeting", "description": "Schedule a meeting with participants and time", "parameters": { "type": "object", "properties": { "participants": { "type": "array", "items": { "type": "string" }, "description": "The participants of the meeting" }, "time": { "type": "string", "description": "The time of the meeting" } }, "required": [ "participants", "time" ] } } { "name": "calculate_calories_burned", "description": "Calculate the calories burned during a specific activity", "parameters": { "type": "object", "properties": { "activity": { "type": "string", "description": "The activity performed" }, "duration": { "type": "integer", "description": "The duration of the activity in minutes" } }, "required": [ "activity", "duration" ] } }
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 with participants and time\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"participants\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The participants of the meeting\"\n },\n \"time\": {\n \"type\": \"string\",\n \"description\": \"The time of the meeting\"\n }\n },\n \"required\": [\n \"participants\",\n \"time\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_calories_burned\",\n \"description\": \"Calculate the calories burned during a specific activity\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"activity\": {\n \"type\": \"string\",\n \"description\": \"The activity performed\"\n },\n \"duration\": {\n \"type\": \"integer\",\n \"description\": \"The duration of the activity in minutes\"\n }\n },\n \"required\": [\n \"activity\",\n \"duration\"\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 schedule a meeting with John, Sarah and Mike at 3pm tomorrow." }, { "from": "gpt", "value": "{\"name\": \"schedule_meeting\", \"arguments\": '{\n \"participants\": [\"John\", \"Sarah\", \"Mike\"],\n \"time\": \"3pm tomorrow\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Meeting scheduled successfully with John, Sarah and Mike at 3pm tomorrow.\"}" }, { "from": "gpt", "value": "The meeting has been scheduled successfully with John, Sarah, and Mike at 3pm tomorrow. <|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: Hi, I have an array of numbers that I need to sort in ascending order. Can you help me with that? ASSISTANT: Of course, I can help you with that. Could you please provide me with the array of numbers? <|endoftext|> USER: Sure, here it is: [5, 2, 9, 1, 5, 6, 7, 2, 0, 1] ASSISTANT: <functioncall> {"name": "sort_array", "arguments": '{"array": [5, 2, 9, 1, 5, 6, 7, 2, 0, 1], "order": "asc"}'} <|endoftext|> FUNCTION RESPONSE: {"sorted_array": [0, 1, 1, 2, 2, 5, 5, 6, 7, 9]} ASSISTANT: Here is your sorted array in ascending order: [0, 1, 1, 2, 2, 5, 5, 6, 7, 9] <|endoftext|> USER: Great, thank you! Now, can you sort the same array in descending order? ASSISTANT: <functioncall> {"name": "sort_array", "arguments": '{"array": [5, 2, 9, 1, 5, 6, 7, 2, 0, 1], "order": "desc"}'} <|endoftext|> FUNCTION RESPONSE: {"sorted_array": [9, 7, 6, 5, 5, 2, 2, 1, 1, 0]} ASSISTANT: Here is your sorted array in descending order: [9, 7, 6, 5, 5, 2, 2, 1, 1, 0] <|endoftext|> USER: Perfect, thank you for your help! 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": "sort_array", "description": "Sort an array in ascending or descending order", "parameters": { "type": "object", "properties": { "array": { "type": "array", "items": {}, "description": "The array to be sorted" }, "order": { "type": "string", "enum": [ "asc", "desc" ], "description": "The sorting order (ascending or descending)" } }, "required": [ "array", "order" ] } } { "name": "get_quotes", "description": "Get random motivational quotes", "parameters": {} }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"sort_array\",\n \"description\": \"Sort an array in ascending or descending order\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"array\": {\n \"type\": \"array\",\n \"items\": {},\n \"description\": \"The array to be sorted\"\n },\n \"order\": {\n \"type\": \"string\",\n \"enum\": [\n \"asc\",\n \"desc\"\n ],\n \"description\": \"The sorting order (ascending or descending)\"\n }\n },\n \"required\": [\n \"array\",\n \"order\"\n ]\n }\n}\n\n{\n \"name\": \"get_quotes\",\n \"description\": \"Get random motivational quotes\",\n \"parameters\": {}\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I have an array of numbers that I need to sort in ascending order. Can you help me with that?" }, { "from": "gpt", "value": "Of course, I can help you with that. Could you please provide me with the array of numbers? <|endoftext|>" }, { "from": "human", "value": "Sure, here it is: [5, 2, 9, 1, 5, 6, 7, 2, 0, 1]" }, { "from": "gpt", "value": "{\"name\": \"sort_array\", \"arguments\": '{\"array\": [5, 2, 9, 1, 5, 6, 7, 2, 0, 1], \"order\": \"asc\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"sorted_array\": [0, 1, 1, 2, 2, 5, 5, 6, 7, 9]}" }, { "from": "gpt", "value": "Here is your sorted array in ascending order: [0, 1, 1, 2, 2, 5, 5, 6, 7, 9] <|endoftext|>" }, { "from": "human", "value": "Great, thank you! Now, can you sort the same array in descending order?" }, { "from": "gpt", "value": "{\"name\": \"sort_array\", \"arguments\": '{\"array\": [5, 2, 9, 1, 5, 6, 7, 2, 0, 1], \"order\": \"desc\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"sorted_array\": [9, 7, 6, 5, 5, 2, 2, 1, 1, 0]}" }, { "from": "gpt", "value": "Here is your sorted array in descending order: [9, 7, 6, 5, 5, 2, 2, 1, 1, 0] <|endoftext|>" }, { "from": "human", "value": "Perfect, thank you for your help!" }, { "from": "gpt", "value": "You're welcome! If you have any other questions or need further assistance, feel free to ask. <|endoftext|>" } ]
USER: Hi, I was born on 1990-05-15. Can you tell me how old I am today? ASSISTANT: <functioncall> {"name": "calculate_age", "arguments": '{"birthdate": "1990-05-15"}'} <|endoftext|> FUNCTION RESPONSE: {"age": 31} ASSISTANT: According to my calculations, you are 31 years old today. <|endoftext|> USER: 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 birthdate", "parameters": { "type": "object", "properties": { "birthdate": { "type": "string", "description": "The birthdate in yyyy-mm-dd format" } }, "required": [ "birthdate" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"description\": \"The birthdate in yyyy-mm-dd format\"\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: Hey, can you order a pizza for me? ASSISTANT: I'm sorry, but I can't assist with that. My capabilities are currently limited to fetching the latest news based on category and country. I don't have the ability to place orders or perform external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "get_news", "description": "Get the latest news", "parameters": { "type": "object", "properties": { "category": { "type": "string", "description": "The category of news to retrieve" }, "country": { "type": "string", "description": "The country from where to fetch the news" } }, "required": [ "category" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"get_news\",\n \"description\": \"Get the latest news\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The category of news to retrieve\"\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country from where to fetch the news\"\n }\n },\n \"required\": [\n \"category\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hey, can you order a pizza for me?" }, { "from": "gpt", "value": "I'm sorry, but I can't assist with that. My capabilities are currently limited to fetching the latest news based on category and country. I don't have the ability to place orders or perform external tasks. <|endoftext|>" } ]
USER: Can you book a flight for me? ASSISTANT: I'm sorry, but I'm unable to assist with that. My current capabilities are limited to the functions provided to me, and booking a flight is an external task that I don't have a function for. However, I can help you calculate your BMI if you provide me with your height and weight. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_bmi", "description": "Calculate the Body Mass Index (BMI)", "parameters": { "type": "object", "properties": { "height": { "type": "number", "description": "The height in meters" }, "weight": { "type": "number", "description": "The weight in kilograms" } }, "required": [ "height", "weight" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n }\n },\n \"required\": [\n \"height\",\n \"weight\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you book a flight for me?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with that. My current capabilities are limited to the functions provided to me, and booking a flight is an external task that I don't have a function for. However, I can help you calculate your BMI if you provide me with your height and weight. <|endoftext|>" } ]
USER: Hi, I need to send an email to my boss. Can you help me with that? ASSISTANT: Of course, I can help you with that. Please provide me with the recipient's email address, the subject of the email, and the content of the email. <|endoftext|> USER: The recipient's email is [email protected], the subject is "Monthly Report", and the message is "Please find attached the monthly report for your review." ASSISTANT: <functioncall> {"name": "send_email", "arguments": '{"recipient": "[email protected]", "subject": "Monthly Report", "message": "Please find attached the monthly report for your review."}'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully"} ASSISTANT: The email has been sent successfully to your boss. <|endoftext|> USER: Great! Now, can you also book a flight for me to New York next week? ASSISTANT: I'm sorry, but I don't have the capability to book flights. My current function is to assist with sending emails. You might want to use a travel booking service for your request. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "send_email", "description": "Send an email to a recipient", "parameters": { "type": "object", "properties": { "recipient": { "type": "string", "description": "The email address of the recipient" }, "subject": { "type": "string", "description": "The subject of the email" }, "message": { "type": "string", "description": "The content of the email" } }, "required": [ "recipient", "subject", "message" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"message\": {\n \"type\": \"string\",\n \"description\": \"The content of the email\"\n }\n },\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, 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. Please provide me with the recipient's email address, the subject of the email, and the content of the email. <|endoftext|>" }, { "from": "human", "value": "The recipient's email is [email protected], the subject is \"Monthly Report\", and the message is \"Please find attached the monthly report for your review.\"" }, { "from": "gpt", "value": "{\"name\": \"send_email\", \"arguments\": '{\"recipient\": \"[email protected]\", \"subject\": \"Monthly Report\", \"message\": \"Please find attached the monthly report for your review.\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Email has been sent successfully\"}" }, { "from": "gpt", "value": "The email has been sent successfully to your boss. <|endoftext|>" }, { "from": "human", "value": "Great! Now, can you also book a flight for me to New York next week?" }, { "from": "gpt", "value": "I'm sorry, but I don't have the capability to book flights. My current function is to assist with sending emails. You might want to use a travel booking service for your request. <|endoftext|>" } ]
USER: I saw a dress that I liked. It was originally priced at $100 but there's a 20% discount on it. 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 were originally $75 but now have a 15% discount? ASSISTANT: <functioncall> {"name": "calculate_discount", "arguments": '{"original_price": 75, "discount_percentage": 15}'} <|endoftext|> FUNCTION RESPONSE: {"discounted_price": 63.75} ASSISTANT: The shoes will cost you $63.75 after the 15% discount. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_discount", "description": "Calculate the discounted price", "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" ] } } { "name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "origin": { "type": "string", "description": "The origin location" }, "destination": { "type": "string", "description": "The destination location" } }, "required": [ "origin", "destination" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_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 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\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"origin\": {\n \"type\": \"string\",\n \"description\": \"The origin location\"\n },\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n }\n },\n \"required\": [\n \"origin\",\n \"destination\"\n ]\n }\n}\n\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 there's a 20% discount on it. 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 were originally $75 but now have 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 shoes will cost you $63.75 after the 15% discount. <|endoftext|>" } ]
USER: Hi, I need help with a loan calculation. I have a loan amount of $50000, an annual interest rate of 5%, and a loan term of 60 months. Can you help me calculate the monthly payment? ASSISTANT: <functioncall> {"name": "calculate_loan_payment", "arguments": '{ "loan_amount": 50000, "interest_rate": 5, "loan_term": 60 }'} <|endoftext|> FUNCTION RESPONSE: {"monthly_payment": 943.56} ASSISTANT: Based on the details you provided, your monthly payment for the loan would be approximately $943.56. <|endoftext|> USER: That's great! Thank you for your help. ASSISTANT: You're welcome! If you have any other questions, feel free to ask. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_payment", "description": "Calculate the monthly payment for a loan", "parameters": { "type": "object", "properties": { "loan_amount": { "type": "number", "description": "The amount of the loan" }, "interest_rate": { "type": "number", "description": "The annual interest rate" }, "loan_term": { "type": "integer", "description": "The term of the loan in months" } }, "required": [ "loan_amount", "interest_rate", "loan_term" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly payment for a loan\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the loan\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in months\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with a loan calculation. I have a loan amount of $50000, an annual interest rate of 5%, and a loan term of 60 months. Can you help me calculate the monthly payment?" }, { "from": "gpt", "value": "{\"name\": \"calculate_loan_payment\", \"arguments\": '{\n \"loan_amount\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 60\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"monthly_payment\": 943.56}" }, { "from": "gpt", "value": "Based on the details you provided, your monthly payment for the loan would be approximately $943.56. <|endoftext|>" }, { "from": "human", "value": "That's great! Thank you for your help." }, { "from": "gpt", "value": "You're welcome! If you have any other questions, feel free to ask. <|endoftext|>" } ]
USER: Hi, I need some help with my investments. ASSISTANT: Of course! I'd be happy to help. What do you need assistance with? <|endoftext|> USER: I made an initial investment of $5000 and now it's worth $7000. Can you help me calculate the return on investment? ASSISTANT: <functioncall> {"name": "calculate_roi", "arguments": '{"initial_investment": 5000, "final_value": 7000}'} <|endoftext|> FUNCTION RESPONSE: {"roi": 0.4} ASSISTANT: The return on your investment is 40%. This means that for every dollar you initially invested, you have made a profit of 40 cents. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_roi", "description": "Calculate the return on investment (ROI)", "parameters": { "type": "object", "properties": { "initial_investment": { "type": "number", "description": "The initial investment amount" }, "final_value": { "type": "number", "description": "The final value of the investment" } }, "required": [ "initial_investment", "final_value" ] } } { "name": "find_nearest_gas_station", "description": "Find the nearest gas station", "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\": \"calculate_roi\",\n \"description\": \"Calculate the return on investment (ROI)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"initial_investment\": {\n \"type\": \"number\",\n \"description\": \"The initial investment amount\"\n },\n \"final_value\": {\n \"type\": \"number\",\n \"description\": \"The final value of the investment\"\n }\n },\n \"required\": [\n \"initial_investment\",\n \"final_value\"\n ]\n }\n}\n\n{\n \"name\": \"find_nearest_gas_station\",\n \"description\": \"Find the nearest gas station\",\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\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need some help with my investments." }, { "from": "gpt", "value": "Of course! I'd be happy to help. What do you need assistance with? <|endoftext|>" }, { "from": "human", "value": "I made an initial investment of $5000 and now it's worth $7000. Can you help me calculate the return on investment?" }, { "from": "gpt", "value": "{\"name\": \"calculate_roi\", \"arguments\": '{\"initial_investment\": 5000, \"final_value\": 7000}'} <|endoftext|>" }, { "from": "tool", "value": "{\"roi\": 0.4}" }, { "from": "gpt", "value": "The return on your investment is 40%. This means that for every dollar you initially invested, you have made a profit of 40 cents. <|endoftext|>" } ]
USER: Hi, I need a QR code for my website. ASSISTANT: Sure, I can help with that. Could you please provide me with the URL of your website? <|endoftext|> USER: Yes, it's www.mywebsite.com. ASSISTANT: <functioncall> {"name": "generate_qr_code", "arguments": '{"text": "www.mywebsite.com"}'} <|endoftext|> FUNCTION RESPONSE: {"qr_code": "QR_CODE_IMAGE_DATA"} ASSISTANT: I have generated the QR code for your website. You can download it using this link: [QR_CODE_IMAGE_DATA]. <|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 generate QR code for" } }, "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 generate QR code for\"\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." }, { "from": "gpt", "value": "Sure, I can help with that. Could you please provide me with the URL of your website? <|endoftext|>" }, { "from": "human", "value": "Yes, it's www.mywebsite.com." }, { "from": "gpt", "value": "{\"name\": \"generate_qr_code\", \"arguments\": '{\"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. You can download it using this link: [QR_CODE_IMAGE_DATA]. <|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. I can assist you with tasks related to the functions provided to me. For instance, I can help you convert currency from one unit to another. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "convert_currency", "description": "Convert currency from one unit to another", "parameters": { "type": "object", "properties": { "amount": { "type": "number", "description": "The amount to be converted" }, "from_currency": { "type": "string", "description": "The currency to convert from" }, "to_currency": { "type": "string", "description": "The currency to convert to" } }, "required": [ "amount", "from_currency", "to_currency" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "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. I can assist you with tasks related to the functions provided to me. For instance, I can help you convert currency from one unit to another. <|endoftext|>" } ]
USER: Can you please book a flight for me from New York to London? ASSISTANT: I'm sorry, but I'm unable to assist with that. My current capabilities are limited to calculating loan payments. I don't have the ability to book flights or perform other external tasks. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_loan_payment", "description": "Calculate the monthly loan payment", "parameters": { "type": "object", "properties": { "loan_amount": { "type": "number", "description": "The amount of the loan" }, "interest_rate": { "type": "number", "description": "The interest rate for the loan" }, "loan_term": { "type": "integer", "description": "The term of the loan in months" } }, "required": [ "loan_amount", "interest_rate", "loan_term" ] } }
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 \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the loan\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The interest rate for the loan\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in months\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you please book a flight for me from New York to London?" }, { "from": "gpt", "value": "I'm sorry, but I'm unable to assist with that. My current capabilities are limited to calculating loan payments. I don't have the ability to book flights or perform other external tasks. <|endoftext|>" } ]
USER: Hi, I need help with calculating the tip for my bill. The total amount is $50 and I want to leave a 15% tip. ASSISTANT: <functioncall> {"name": "calculate_tip", "arguments": '{"bill_amount": 50, "tip_percentage": 15}'} <|endoftext|> FUNCTION RESPONSE: {"tip_amount": 7.5} ASSISTANT: The tip amount for your bill should be $7.5. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "calculate_tip", "description": "Calculate the tip amount", "parameters": { "type": "object", "properties": { "bill_amount": { "type": "number", "description": "The bill amount" }, "tip_percentage": { "type": "number", "description": "The tip percentage" } }, "required": [ "bill_amount", "tip_percentage" ] } } { "name": "calculate_distance", "description": "Calculate the distance between two locations", "parameters": { "type": "object", "properties": { "origin": { "type": "string", "description": "The origin location" }, "destination": { "type": "string", "description": "The destination location" } }, "required": [ "origin", "destination" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The tip percentage\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n}\n\n{\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"origin\": {\n \"type\": \"string\",\n \"description\": \"The origin location\"\n },\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n }\n },\n \"required\": [\n \"origin\",\n \"destination\"\n ]\n }\n}\n\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Hi, I need help with calculating the tip for my bill. The total amount is $50 and I want to leave a 15% tip." }, { "from": "gpt", "value": "{\"name\": \"calculate_tip\", \"arguments\": '{\"bill_amount\": 50, \"tip_percentage\": 15}'} <|endoftext|>" }, { "from": "tool", "value": "{\"tip_amount\": 7.5}" }, { "from": "gpt", "value": "The tip amount for your bill should be $7.5. <|endoftext|>" } ]
USER: What's the current stock price of Apple? ASSISTANT: <functioncall> {"name": "get_stock_price", "arguments": '{"company": "Apple"}'} <|endoftext|> FUNCTION RESPONSE: {"stock_price": "$150"} ASSISTANT: The current stock price of Apple is $150. <|endoftext|> USER: What about Microsoft? ASSISTANT: <functioncall> {"name": "get_stock_price", "arguments": '{"company": "Microsoft"}'} <|endoftext|> FUNCTION RESPONSE: {"stock_price": "$280"} ASSISTANT: The current stock price of Microsoft is $280. <|endoftext|> USER: And Google? ASSISTANT: <functioncall> {"name": "get_stock_price", "arguments": '{"company": "Google"}'} <|endoftext|> FUNCTION RESPONSE: {"stock_price": "$2800"} ASSISTANT: The current stock price of Google is $2800. <|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": { "type": "string", "description": "The name of the company" } }, "required": [ "company" ] } } { "name": "search_movies", "description": "Search for movies based on user's preferences", "parameters": { "type": "object", "properties": { "genre": { "type": "string", "description": "The movie genre" }, "year": { "type": "integer", "description": "The release year of the movie" }, "actor": { "type": "string", "description": "The actor's name" } }, "required": [ "genre" ] } }
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\": {\n \"type\": \"string\",\n \"description\": \"The name of the company\"\n }\n },\n \"required\": [\n \"company\"\n ]\n }\n}\n\n{\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on user's preferences\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The movie genre\"\n },\n \"year\": {\n \"type\": \"integer\",\n \"description\": \"The release year of the movie\"\n },\n \"actor\": {\n \"type\": \"string\",\n \"description\": \"The actor's name\"\n }\n },\n \"required\": [\n \"genre\"\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": "What's the current stock price of Apple?" }, { "from": "gpt", "value": "{\"name\": \"get_stock_price\", \"arguments\": '{\"company\": \"Apple\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"stock_price\": \"$150\"}" }, { "from": "gpt", "value": "The current stock price of Apple is $150. <|endoftext|>" }, { "from": "human", "value": "What about Microsoft?" }, { "from": "gpt", "value": "{\"name\": \"get_stock_price\", \"arguments\": '{\"company\": \"Microsoft\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"stock_price\": \"$280\"}" }, { "from": "gpt", "value": "The current stock price of Microsoft is $280. <|endoftext|>" }, { "from": "human", "value": "And Google?" }, { "from": "gpt", "value": "{\"name\": \"get_stock_price\", \"arguments\": '{\"company\": \"Google\"}'} <|endoftext|>" }, { "from": "tool", "value": "{\"stock_price\": \"$2800\"}" }, { "from": "gpt", "value": "The current stock price of Google is $2800. <|endoftext|>" } ]
USER: Can you please order a pizza for me? ASSISTANT: I'm sorry, but as an AI, I don't have the ability to perform external tasks such as ordering a pizza. I can assist you with tasks related to the functions I have been provided, such as calculating your BMI. <|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 as an AI, I don't have the ability to perform external tasks such as ordering a pizza. I can assist you with tasks related to the functions I have been provided, such as calculating your BMI. <|endoftext|>" } ]
USER: Can you help me create a calendar event for a meeting next week? ASSISTANT: Of course! I can help with that. Could you please provide me with the title of the event, the start and end time, and the location? <|endoftext|> USER: The title is "Team Meeting", it will start at 10:00 AM and end at 11:00 AM on next Monday. The location is our office conference room. ASSISTANT: <functioncall> {"name": "create_calendar_event", "arguments": '{ "title": "Team Meeting", "start_time": "2022-05-16T10:00:00", "end_time": "2022-05-16T11:00:00", "location": "Office Conference Room" }'} <|endoftext|> FUNCTION RESPONSE: {"status": "success", "message": "Event 'Team Meeting' has been successfully created for 2022-05-16 from 10:00 to 11:00 at Office Conference Room."} ASSISTANT: The event "Team Meeting" has been successfully created for next Monday from 10:00 to 11:00 at the Office Conference Room. <|endoftext|> USER: Great! Can you also order lunch for the meeting? ASSISTANT: I'm sorry, but I can't assist with that. Ordering lunch is an external task and I don't have a function provided for that task. I recommend reaching out to a catering service or using a food delivery app. <|endoftext|>
SYSTEM: You are a helpful assistant with access to the following functions. Use them if required - { "name": "create_calendar_event", "description": "Create a new calendar event", "parameters": { "type": "object", "properties": { "title": { "type": "string", "description": "The title of the event" }, "start_time": { "type": "string", "format": "date-time", "description": "The start time of the event" }, "end_time": { "type": "string", "format": "date-time", "description": "The end time of the event" }, "location": { "type": "string", "description": "The location of the event" } }, "required": [ "title", "start_time", "end_time" ] } }
train
[ { "from": "system", "value": "You are a helpful assistant with access to the following functions. Use them if required -\n{\n \"name\": \"create_calendar_event\",\n \"description\": \"Create a new calendar event\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the event\"\n },\n \"start_time\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"description\": \"The start time of the event\"\n },\n \"end_time\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"description\": \"The end time of the event\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the event\"\n }\n },\n \"required\": [\n \"title\",\n \"start_time\",\n \"end_time\"\n ]\n }\n}\n\nYou are given a question and a set of possible functions. Based on the question, you will need to make one or more function calls to achieve the purpose.\nIf none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out." }, { "from": "human", "value": "Can you help me create a calendar event for a meeting next week?" }, { "from": "gpt", "value": "Of course! I can help with that. Could you please provide me with the title of the event, the start and end time, and the location? <|endoftext|>" }, { "from": "human", "value": "The title is \"Team Meeting\", it will start at 10:00 AM and end at 11:00 AM on next Monday. The location is our office conference room." }, { "from": "gpt", "value": "{\"name\": \"create_calendar_event\", \"arguments\": '{\n\"title\": \"Team Meeting\",\n\"start_time\": \"2022-05-16T10:00:00\",\n\"end_time\": \"2022-05-16T11:00:00\",\n\"location\": \"Office Conference Room\"\n}'} <|endoftext|>" }, { "from": "tool", "value": "{\"status\": \"success\", \"message\": \"Event 'Team Meeting' has been successfully created for 2022-05-16 from 10:00 to 11:00 at Office Conference Room.\"}" }, { "from": "gpt", "value": "The event \"Team Meeting\" has been successfully created for next Monday from 10:00 to 11:00 at the Office Conference Room. <|endoftext|>" }, { "from": "human", "value": "Great! Can you also order lunch for the meeting?" }, { "from": "gpt", "value": "I'm sorry, but I can't assist with that. Ordering lunch is an external task and I don't have a function provided for that task. I recommend reaching out to a catering service or using a food delivery app. <|endoftext|>" } ]