dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
77.6k
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n</Task>\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_recipes\",\n \"parameters\": {\n \"required\": [\n \"ingredients\"\n ],\n \"properties\": {\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type, e.g. Italian, Mexican\"\n },\n \"ingredients\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"description\": \"The ingredients to search for\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"Search for recipes based on ingredients\"\n }\n }\n]\n</tools>", "role": "system" }, { "content": "<query>\nCan you please book a table for two at the nearest Italian restaurant?\n</query>", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with booking tables at restaurants. My current capabilities are limited to searching for recipes based on ingredients and cuisine type. If you need help finding a recipe, feel free to ask!", "role": "gpt" } ]
101
glaive-function-calling-v2-extended
[ { "content": "You are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"task\",\n \"date\",\n \"time\"\n ],\n \"properties\": {\n \"time\": {\n \"type\": \"string\",\n \"format\": \"time\",\n \"description\": \"The time of the reminder in HH:MM format\"\n },\n \"date\": {\n \"description\": \"The date of the reminder in YYYY-MM-DD format\",\n \"type\": \"string\",\n \"format\": \"date\"\n },\n \"task\": {\n \"description\": \"The task for which the reminder is created\",\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Create a reminder for a specific task\",\n \"name\": \"create_reminder\"\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): I need to set a reminder for my doctor's appointment.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the date and time of your appointment?", "role": "gpt" }, { "content": "<query>\nYes, it's on the 15th of next month at 10:30 AM.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"create_reminder\",\n \"arguments\": {\n \"task\": \"Doctor's appointment\",\n \"date\": \"2022-05-15\",\n \"time\": \"10:30\"\n }\n }\n]", "role": "gpt" } ]
102
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\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 of a person\"\n }\n },\n \"required\": [\n \"date_of_birth\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\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 }\n]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Query: Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"date_of_birth\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: That's correct! Thank you.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
103
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_news_articles\",\n \"parameters\": {\n \"properties\": {\n \"topic\": {\n \"type\": \"string\",\n \"description\": \"The topic for which news articles are requested\"\n }\n },\n \"required\": [\n \"topic\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Get the latest news articles on a specified topic\"\n }\n }\n]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: Can you get me the latest news on climate change?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_news_articles\",\n \"arguments\": {\n \"topic\": \"climate change\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThank you, that's very helpful.\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions or need further information, feel free to ask.", "role": "gpt" } ]
104
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n\nHere List of functions in JSON format\n[\n {\n \"function\": {\n \"name\": \"convert_currency\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n },\n \"from_currency\": {\n \"description\": \"The currency to convert from\",\n \"type\": \"string\"\n },\n \"amount\": {\n \"description\": \"The amount to be converted\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n },\n \"description\": \"Convert one currency to another\"\n },\n \"type\": \"function\"\n }\n]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Hi, I need to convert 100 US dollars to Euros. Can you help me with that?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 100,\n \"from_currency\": \"USD\",\n \"to_currency\": \"EUR\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Great, thanks! Can you also book a flight for me from New York to Paris?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights or perform external tasks. I suggest using a trusted travel booking website or contacting your travel agent for assistance.", "role": "gpt" } ]
105
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n</Task>\n\n<format>\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\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]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "<query>\nCan you order a pizza for me?\n</query>", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My capabilities are currently limited to the functions provided to me, such as calculating the distance between two locations.", "role": "gpt" } ]
106
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"description\": \"Calculate the monthly mortgage payment based on loan amount, interest rate, and loan term\",\n \"parameters\": {\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ],\n \"properties\": {\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in years\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n },\n \"loan_amount\": {\n \"description\": \"The loan amount\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"calculate_mortgage_payment\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "Hi, I need help with calculating my mortgage payment.", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the loan amount, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "Sure, the loan amount is $350,000, the annual interest rate is 3.5%, and the loan term is 30 years.", "role": "human" }, { "content": "[calculate_mortgage_payment(loan_amount=350000, interest_rate=3.5, loan_term=30)]", "role": "gpt" } ]
107
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Create a new event or appointment\",\n \"name\": \"create_event\",\n \"parameters\": {\n \"required\": [\n \"title\",\n \"date\",\n \"time\",\n \"location\"\n ],\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the event\"\n },\n \"time\": {\n \"description\": \"The time of the event in HH:MM format\",\n \"type\": \"string\"\n },\n \"date\": {\n \"description\": \"The date of the event in YYYY-MM-DD format\",\n \"type\": \"string\"\n },\n \"title\": {\n \"description\": \"The title of the event\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n }\n }\n }\n]\n[AVAILABLE TOOLS END]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Hey, can you help me create an event?", "role": "human" }, { "content": "Of course! I can help with that. Could you please provide me with the title, date, time, and location of the event?", "role": "gpt" }, { "content": "Sure, the title is \"Team Meeting\", the date is 2022-03-15, the time is 10:00, and the location is \"Conference Room A\".", "role": "human" }, { "content": "[create_event(title='Team Meeting', date='2022-03-15', time='10:00', location='Conference Room A')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's great! Can you also order some snacks for the meeting?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering snacks. I suggest you contact your office's administrative assistant or use an online delivery service for that.", "role": "gpt" } ]
108
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price\",\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"properties\": {\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage to be applied\"\n },\n \"original_price\": {\n \"description\": \"The original price of the item\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\"\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you please book a flight for me from New York to London?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. My current function allows me to calculate discounts on prices. If you need help with that, feel free to ask!", "role": "gpt" } ]
109
glaive-function-calling-v2-extended
[ { "content": "You have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Get details of a specific movie\",\n \"name\": \"get_movie_details\",\n \"parameters\": {\n \"properties\": {\n \"movie_title\": {\n \"description\": \"The title of the movie\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"movie_title\"\n ],\n \"type\": \"object\"\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you please order a pizza for me?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks such as ordering a pizza. My current capabilities are limited to providing information on specific topics, like movie details.", "role": "gpt" } ]
110
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"required\": [\n \"stock_symbol\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"stock_symbol\": {\n \"type\": \"string\",\n \"description\": \"The symbol of the stock, e.g. AAPL\"\n }\n }\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"birth_date\": {\n \"description\": \"The birth date of the person\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"birth_date\"\n ]\n },\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age of a person\"\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "คำถาม (Question): Hey, can you tell me the current price of Apple's stock?", "role": "human" }, { "content": "[get_stock_price(stock_symbol='AAPL')]", "role": "gpt" }, { "content": "Query: That's great! Can you also tell me the current price of Microsoft's stock?", "role": "human" }, { "content": "[get_stock_price(stock_symbol='MSFT')]", "role": "gpt" }, { "content": "<query>\nThank you for the information!\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
111
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"location\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"description\": \"The location for restaurant search\",\n \"type\": \"string\"\n },\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type for restaurant search\"\n }\n }\n },\n \"name\": \"search_restaurants\",\n \"description\": \"Search for nearby restaurants\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "Query: I am in New York and I am craving for some Italian food. Can you help me find a restaurant?", "role": "human" }, { "content": "[\n {\n \"name\": \"search_restaurants\",\n \"arguments\": {\n \"location\": \"New York\",\n \"cuisine\": \"Italian\"\n }\n }\n]", "role": "gpt" }, { "content": "Thank you! That was really helpful.", "role": "human" }, { "content": "You're welcome! If you need any more help, feel free to ask.", "role": "gpt" } ]
112
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_mortgage_payment\",\n \"description\": \"Calculate the monthly mortgage payment\",\n \"parameters\": {\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The loan amount\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in years\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ],\n \"type\": \"object\"\n }\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need help with calculating my monthly mortgage payment.", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the loan amount, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nSure, the loan amount is $200,000, the annual interest rate is 3.5%, and the loan term is 30 years.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_mortgage_payment\",\n \"arguments\": {\n \"loan_amount\": 200000,\n \"interest_rate\": 3.5,\n \"loan_term\": 30\n }\n }\n]}", "role": "gpt" } ]
113
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[END OF TASK INSTRUCTION]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_images\",\n \"description\": \"Search for images based on keywords\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The keywords to search for images\"\n },\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The category of the images\"\n }\n }\n }\n }\n }\n]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need some images of cats for my project.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_images\",\n \"arguments\": {\n \"keywords\": [\n \"cats\"\n ],\n \"category\": \"animals\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great! Now I need some images of dogs.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_images\",\n \"arguments\": {\n \"keywords\": [\n \"dogs\"\n ],\n \"category\": \"animals\"\n }\n }\n]}", "role": "gpt" } ]
114
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n</Task>\n\nTools: [\n {\n \"function\": {\n \"name\": \"calculate_distance\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"point1\",\n \"point2\"\n ],\n \"properties\": {\n \"point2\": {\n \"required\": [\n \"latitude\",\n \"longitude\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"longitude\": {\n \"type\": \"number\",\n \"description\": \"The longitude of the second point\"\n },\n \"latitude\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the second point\"\n }\n }\n },\n \"point1\": {\n \"required\": [\n \"latitude\",\n \"longitude\"\n ],\n \"properties\": {\n \"latitude\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the first point\"\n },\n \"longitude\": {\n \"description\": \"The longitude of the first point\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\"\n }\n }\n },\n \"description\": \"Calculate the distance between two points\"\n },\n \"type\": \"function\"\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "Can you please book a flight for me from New York to Los Angeles?", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities are limited to calculating the distance between two geographical points.", "role": "gpt" } ]
115
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"grades\", \"credit_hours\"], \"properties\": {\"credit_hours\": {\"items\": {\"type\": \"number\"}, \"type\": \"array\", \"description\": \"The credit hours of each course\"}, \"grades\": {\"type\": \"array\", \"description\": \"The grades obtained in each course\", \"items\": {\"type\": \"string\"}}}}, \"description\": \"Calculate Grade Point Average (GPA) based on grades and credit hours\", \"name\": \"calculate_gpa\"}, \"type\": \"function\"}, {\"function\": {\"parameters\": {\"properties\": {\"query\": {\"description\": \"The topic or keyword to search for\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"query\"]}, \"description\": \"Search for news articles based on topic or keyword\", \"name\": \"search_news\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you find me some news on the latest technology trends?\n[END OF QUERY]", "role": "human" }, { "content": "[search_news(query='latest technology trends')]", "role": "gpt" }, { "content": "### Instruction: That's great! Can you find more articles on Virtual Reality?", "role": "human" }, { "content": "[search_news(query='Virtual Reality')]", "role": "gpt" } ]
116
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password with specified criteria\",\n \"parameters\": {\n \"required\": [\n \"length\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"include_special_characters\": {\n \"description\": \"Include special characters in the password\",\n \"type\": \"boolean\"\n },\n \"include_uppercase\": {\n \"type\": \"boolean\",\n \"description\": \"Include uppercase letters in the password\"\n },\n \"include_numbers\": {\n \"description\": \"Include numbers in the password\",\n \"type\": \"boolean\"\n },\n \"length\": {\n \"description\": \"The length of the password\",\n \"type\": \"integer\"\n }\n }\n }\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"height\",\n \"weight\"\n ],\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 },\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the BMI (Body Mass Index)\"\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "### Instruction: Hi, I would like to calculate my BMI. I am 1.75 meters tall and weigh 70 kilograms.", "role": "human" }, { "content": "[calculate_bmi(height=1.75, weight=70)]", "role": "gpt" } ]
117
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"recipient\",\n \"subject\",\n \"body\"\n ],\n \"properties\": {\n \"subject\": {\n \"description\": \"The subject of the email\",\n \"type\": \"string\"\n },\n \"recipient\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n },\n \"body\": {\n \"type\": \"string\",\n \"description\": \"The body of the email\"\n }\n }\n },\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): I need to send an email to my boss. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the body content?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe recipient's email is boss@company.com. The subject is \"Monthly Report\" and the body should say \"Dear Boss, Please find attached the monthly report for your review. Best, [User]\".\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"recipient\": \"boss@company.com\",\n \"subject\": \"Monthly Report\",\n \"body\": \"Dear Boss, Please find attached the monthly report for your review. Best, [User]\"\n }\n }\n]}", "role": "gpt" } ]
118
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"add_numbers\", \"description\": \"Add two numbers together\", \"parameters\": {\"type\": \"object\", \"properties\": {\"num2\": {\"description\": \"The second number to add\", \"type\": \"number\"}, \"num1\": {\"type\": \"number\", \"description\": \"The first number to add\"}}, \"required\": [\"num1\", \"num2\"]}}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "Query: Hi, I need help with some math. Can you add 5 and 7 for me?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"add_numbers\",\n \"arguments\": {\n \"num1\": 5,\n \"num2\": 7\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nGreat, can you now add 10 and 20?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"add_numbers\",\n \"arguments\": {\n \"num1\": 10,\n \"num2\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThank you for your help!\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
119
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discount amount\",\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\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 }\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "Query: I saw a dress that I liked. It was originally priced at $200 but it's on a 20% discount. How much will I save?", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" } ]
120
glaive-function-calling-v2-extended
[ { "content": "You are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the range\"\n },\n \"max\": {\n \"description\": \"The maximum value of the range\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"type\": \"object\"\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: Hi, can you help me generate a random number between 1 and 100?", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat! Now, can you help me book a flight to New York?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. My current function is to generate random numbers within a specified range. You may need to use a different service or application for booking flights.", "role": "gpt" } ]
121
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of discount\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n }\n }\n]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "<query>\nHi, I saw a jacket I liked in a store. It was originally priced at $200 but there's a 20% discount on it. Can you calculate how much it would cost after the discount?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: That's great! Can you also place an order for it online for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as placing an order online. I suggest you visit the store's website or app to place the order.", "role": "gpt" } ]
122
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount for a bill\",\n \"parameters\": {\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ],\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 }\n }\n }\n]", "role": "system" }, { "content": "Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. I can assist you with tasks related to the functions provided to me, like calculating the tip amount for a bill.", "role": "gpt" } ]
123
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[TASK INSTRUCTION END]\n\n<tools>\n[\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"title\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"description\": \"The title of the book\",\n \"type\": \"string\"\n },\n \"author\": {\n \"description\": \"The author of the book\",\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Search for books based on title or author\",\n \"name\": \"search_books\"\n },\n \"type\": \"function\"\n }\n]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you order a pizza for me?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My capabilities are currently limited to the functions provided to me. In this case, I can help you search for books based on title or author.", "role": "gpt" } ]
124
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"required\": [\n \"length\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"include_symbols\": {\n \"type\": \"boolean\",\n \"description\": \"Include symbols in the password\"\n },\n \"length\": {\n \"description\": \"The length of the password\",\n \"type\": \"integer\"\n }\n }\n }\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"properties\": {\n \"ticker\": {\n \"description\": \"The stock ticker symbol\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"ticker\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need a new password. Can you generate one for me?\n[END OF QUERY]", "role": "human" }, { "content": "Of course! How long would you like your password to be?", "role": "gpt" }, { "content": "### Instruction: I would like it to be 12 characters long.", "role": "human" }, { "content": "Would you like to include symbols in your password?", "role": "gpt" }, { "content": "Query: Yes, please include symbols.", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_password\",\n \"arguments\": {\n \"length\": 12,\n \"include_symbols\": true\n }\n }\n]", "role": "gpt" } ]
125
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\n### Tools: [{\"function\": {\"parameters\": {\"properties\": {\"stock_symbol\": {\"type\": \"string\", \"description\": \"The symbol of the stock, e.g. AAPL\"}}, \"required\": [\"stock_symbol\"], \"type\": \"object\"}, \"name\": \"get_stock_price\", \"description\": \"Get the current stock price\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Query: Hey, can you order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks such as ordering a pizza. My current capabilities are limited to the functions provided to me. For instance, I can help you get the current stock price.", "role": "gpt" } ]
126
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"from_currency\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to convert\", \"type\": \"number\"}, \"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}}}, \"name\": \"convert_currency\", \"description\": \"Convert an amount from one currency to another\"}}]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to convert 100 dollars to euros. Can you help me with that?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 100,\n \"from_currency\": \"USD\",\n \"to_currency\": \"EUR\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: That's great. Can you also book a flight for me from New York to Paris?", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with booking flights as it's an external task and I don't have a function provided for that task. However, I can help you with other tasks such as currency conversion.", "role": "gpt" } ]
127
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\nAPI Function: [{\"function\": {\"description\": \"Calculate the age based on the birthdate\", \"parameters\": {\"required\": [\"birthdate\"], \"type\": \"object\", \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate in format YYYY-MM-DD\"}}}, \"name\": \"calculate_age\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I was born on 1990-05-15. Can you tell me how old I am today?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_age(birthdate='1990-05-15')]", "role": "gpt" } ]
128
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"description\": \"Create a new todo item\",\n \"name\": \"create_todo\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"description\": \"The description of the todo item\",\n \"type\": \"string\"\n },\n \"priority\": {\n \"enum\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"type\": \"string\",\n \"description\": \"The priority of the todo item\"\n },\n \"title\": {\n \"description\": \"The title of the todo item\",\n \"type\": \"string\"\n },\n \"due_date\": {\n \"description\": \"The due date of the todo item (in YYYY-MM-DD format)\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"title\",\n \"due_date\",\n \"priority\"\n ]\n }\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to create a new todo item.\n[END OF QUERY]", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, description, due date, and priority of the todo item?", "role": "gpt" }, { "content": "คำถาม (Question): The title is \"Finish Project\", description is \"Complete the final report of the project\", due date is \"2022-12-31\", and priority is \"high\".", "role": "human" }, { "content": "[create_todo(title='Finish Project', description='Complete the final report of the project', due_date='2022-12-31', priority='high')]", "role": "gpt" }, { "content": "Great! Now, can you also book a flight for me to New York next week?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current functions only allow me to create todo items. I recommend using a trusted travel booking site or app for your flight booking needs.", "role": "gpt" } ]
129
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\nTools: [\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"weight\": {\n \"description\": \"The weight in kilograms\",\n \"type\": \"number\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n },\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI)\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "<query>\nHi, I need to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.\n</query>", "role": "human" }, { "content": "[calculate_bmi(weight=70, height=1.75)]", "role": "gpt" } ]
130
glaive-function-calling-v2-extended
[ { "content": "You are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n[\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"text\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"description\": \"The text to encode in the QR code\",\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Generate a QR code for a given text\",\n \"name\": \"generate_qr_code\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Hi, I need to generate a QR code for my website. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, my website URL is www.mywebsite.com.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" } ]
131
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n<tools>\n[\n {\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"birthdate\": {\n \"description\": \"The birthdate in YYYY-MM-DD format\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"birthdate\"\n ]\n },\n \"description\": \"Calculate the age based on the birthdate\",\n \"name\": \"calculate_age\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ],\n \"properties\": {\n \"tip_percentage\": {\n \"description\": \"The percentage of tip to be given\",\n \"type\": \"number\"\n },\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n }\n }\n },\n \"description\": \"Calculate the tip amount for a bill\"\n }\n }\n]\n</tools>", "role": "system" }, { "content": "<query>\nHi, I need help with calculating a tip. My bill amount is $50 and I want to give a 20% tip.\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 50,\n \"tip_percentage\": 20\n }\n }\n]}", "role": "gpt" } ]
132
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"parameters\": {\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"description\": \"The weight in kilograms\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"calculate_bmi\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"max\": {\n \"description\": \"The maximum value of the range\",\n \"type\": \"integer\"\n },\n \"min\": {\n \"type\": \"integer\",\n \"description\": \"The minimum value of the range\"\n }\n }\n },\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a given range\"\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): I need a random number between 1 and 100.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Can you generate another random number but this time between 200 and 300?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 200,\n \"max\": 300\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
133
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\n<tools>\n[{\"function\": {\"name\": \"calculate_discount\", \"description\": \"Calculate the discount amount\", \"parameters\": {\"type\": \"object\", \"properties\": {\"discount_percentage\": {\"type\": \"number\", \"description\": \"The percentage of discount\"}, \"original_price\": {\"description\": \"The original price of the item\", \"type\": \"number\"}}, \"required\": [\"original_price\", \"discount_percentage\"]}}, \"type\": \"function\"}]\n</tools>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI bought a dress for $200 and there's a 20% discount on it. How much will I save?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" } ]
134
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n</Task>\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"parameters\": {\n \"required\": [\n \"weight\",\n \"height\"\n ],\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 \"type\": \"object\"\n }\n }\n }\n]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "<query>\nHi, I would like to calculate my BMI. I weigh 75 kg and my height is 1.8 meters.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 75,\n \"height\": 1.8\n }\n }\n]", "role": "gpt" }, { "content": "คำถาม (Question): That's great to hear! Thank you for the information.", "role": "human" }, { "content": "You're welcome! If you have any other questions or need further assistance, feel free to ask.", "role": "gpt" } ]
135
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\nเครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"customer\": {\"description\": \"The customer's name\", \"type\": \"string\"}, \"items\": {\"type\": \"array\", \"items\": {\"required\": [\"product\", \"quantity\", \"price\"], \"properties\": {\"price\": {\"description\": \"The price per unit of the product\", \"type\": \"number\"}, \"quantity\": {\"type\": \"integer\", \"description\": \"The quantity of the product\"}, \"product\": {\"type\": \"string\", \"description\": \"The product name\"}}, \"type\": \"object\"}}}, \"required\": [\"customer\", \"items\"]}, \"name\": \"create_invoice\", \"description\": \"Create a new invoice\"}, \"type\": \"function\"}]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "### Instruction: Can you help me create an invoice for my customer, John Doe? He bought 5 units of Product A at $10 each.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"create_invoice\",\n \"arguments\": {\n \"customer\": \"John Doe\",\n \"items\": [\n {\n \"product\": \"Product A\",\n \"quantity\": 5,\n \"price\": 10\n }\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great! Can you also help me ship the product to John Doe?", "role": "human" }, { "content": "I'm sorry, but I am unable to assist with shipping tasks as I don't have a function for that. My capabilities are currently limited to creating invoices. You may want to use a shipping service or software for that task.", "role": "gpt" } ]
136
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\nTools: [\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"to\",\n \"subject\",\n \"body\"\n ],\n \"properties\": {\n \"subject\": {\n \"description\": \"The subject of the email\",\n \"type\": \"string\"\n },\n \"body\": {\n \"description\": \"The body of the email\",\n \"type\": \"string\"\n },\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The recipient's email address\"\n }\n }\n },\n \"name\": \"send_email\",\n \"description\": \"Send an email\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "### Instruction: Can you please order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to order a pizza as it's an external task. I can assist you with tasks such as sending emails.", "role": "gpt" } ]
137
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_qr_code\", \"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text for which the QR code will be generated\"}}, \"required\": [\"text\"]}, \"description\": \"Generate a QR code for a given text\"}}]\n[AVAILABLE TOOLS END]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need a QR code for my website.\n[END OF QUERY]", "role": "human" }, { "content": "Sure, could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "คำถาม (Question): Yes, it's www.mywebsite.com.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" } ]
138
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_currency\",\n \"parameters\": {\n \"properties\": {\n \"from_currency\": {\n \"description\": \"The currency to convert from\",\n \"type\": \"string\"\n },\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\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 \"type\": \"object\"\n },\n \"description\": \"Convert an amount from one currency to another\"\n }\n }\n]\n[END OF AVAILABLE TOOLS]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Query: Hi, I need to convert 500 USD to Euros. Can you help me with that?", "role": "human" }, { "content": "[convert_currency(amount=500, from_currency='USD', to_currency='EUR')]", "role": "gpt" }, { "content": "<query>\nGreat, thanks! Now, can you convert 1000 Euros back to USD?\n</query>", "role": "human" }, { "content": "[convert_currency(amount=1000, from_currency='EUR', to_currency='USD')]", "role": "gpt" } ]
139
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n</Task>\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on the birthdate\", \"parameters\": {\"properties\": {\"birthdate\": {\"format\": \"date\", \"description\": \"The birthdate in yyyy-mm-dd format\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"birthdate\"]}, \"name\": \"calculate_age\"}}, {\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"required\": [\"origin\", \"destination\"], \"type\": \"object\", \"properties\": {\"origin\": {\"description\": \"The origin location\", \"type\": \"string\"}, \"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}}}, \"description\": \"Calculate the distance between two locations\"}}]\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.", "role": "system" }, { "content": "### Instruction: Hi, I need to know the distance between New York and Los Angeles.", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "Query: That's quite a distance! What about the distance between London and Paris?", "role": "human" }, { "content": "[calculate_distance(origin='London', destination='Paris')]", "role": "gpt" }, { "content": "Thank you for the information!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
140
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[END OF TASK INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the tip amount for a given bill\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"description\": \"The total bill amount\",\n \"type\": \"number\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip to give\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n },\n \"name\": \"calculate_tip\"\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients to search for in recipes\",\n \"type\": \"array\"\n }\n },\n \"required\": [\n \"ingredients\"\n ]\n },\n \"description\": \"Search for recipes based on ingredients\",\n \"name\": \"search_recipes\"\n }\n }\n]\n[AVAILABLE TOOLS END]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "I have some chicken and broccoli. Can you find me a recipe?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"broccoli\"\n ]\n }\n }\n]}", "role": "gpt" } ]
141
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_shipping_cost\", \"parameters\": {\"required\": [\"weight\", \"destination\"], \"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight of the package in kilograms\"}, \"destination\": {\"description\": \"The destination of the package\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Calculate the shipping cost\"}}, {\"function\": {\"parameters\": {\"properties\": {\"songs\": {\"type\": \"array\", \"description\": \"List of songs to add to the playlist\", \"items\": {\"type\": \"string\"}}, \"playlist_name\": {\"type\": \"string\", \"description\": \"The name of the playlist\"}}, \"type\": \"object\", \"required\": [\"playlist_name\", \"songs\"]}, \"name\": \"create_playlist\", \"description\": \"Create a music playlist\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Hi, I need to ship a package to New York. It weighs about 5 kilograms. Can you tell me how much it will cost?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_shipping_cost\",\n \"arguments\": {\n \"weight\": 5,\n \"destination\": \"New York\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great, thanks for the information. Now, I have another package that weighs 10 kilograms and it needs to be shipped to Los Angeles. Can you calculate the cost for this one as well?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_shipping_cost\",\n \"arguments\": {\n \"weight\": 10,\n \"destination\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
142
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n</Task>\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one 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 }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current function allows me to convert currency from one to another. If you need help with currency conversion, feel free to ask!", "role": "gpt" } ]
143
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\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]", "role": "system" }, { "content": "### Instruction: 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?", "role": "human" }, { "content": "[calculate_discount(original_price=100, discount_percentage=20)]", "role": "gpt" } ]
144
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[TASK INSTRUCTION END]\n\n<tools>\n[{\"function\": {\"name\": \"translate_text\", \"description\": \"Translate text from one language to another\", \"parameters\": {\"type\": \"object\", \"properties\": {\"target_language\": {\"description\": \"The target language to translate the text to\", \"type\": \"string\"}, \"text\": {\"type\": \"string\", \"description\": \"The text to be translated\"}, \"source_language\": {\"description\": \"The source language of the text\", \"type\": \"string\"}}, \"required\": [\"text\", \"source_language\", \"target_language\"]}}, \"type\": \"function\"}, {\"function\": {\"description\": \"Calculate the distance between two locations\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location2\": {\"type\": \"string\", \"description\": \"The second location\"}, \"location1\": {\"description\": \"The first location\", \"type\": \"string\"}}, \"required\": [\"location1\", \"location2\"]}, \"name\": \"calculate_distance\"}, \"type\": \"function\"}]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "Hi, I need to know the distance between New York and Los Angeles.", "role": "human" }, { "content": "[calculate_distance(location1='New York', location2='Los Angeles')]", "role": "gpt" }, { "content": "<query>\nThat's quite a distance. What about the distance between London and Paris?\n</query>", "role": "human" }, { "content": "[calculate_distance(location1='London', location2='Paris')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThank you for the information.\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
145
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI) based on weight and height\",\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[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to calculate my BMI. My weight is 70 kg and my height is 1.75 m.", "role": "human" }, { "content": "[calculate_bmi(weight=70, height=1.75)]", "role": "gpt" }, { "content": "คำถาม (Question): That's great to hear! Can you also book a table for me at a restaurant tonight?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking a table at a restaurant. My functions are currently limited to the ones provided to me.", "role": "gpt" } ]
146
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_currency\",\n \"parameters\": {\n \"properties\": {\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n },\n \"from\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n }\n },\n \"required\": [\n \"amount\",\n \"from\",\n \"to\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Convert one currency to another\"\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"to_currency\": {\n \"description\": \"The target currency\",\n \"type\": \"string\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The source currency\"\n },\n \"amount\": {\n \"description\": \"The amount to be converted\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Convert an amount from one currency to another\",\n \"name\": \"convert_currency\"\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Query: Hi, I need to convert 1000 US dollars to Euros. Can you help me with that?", "role": "human" }, { "content": "[convert_currency(amount=1000, from_currency='USD', to_currency='EUR')]", "role": "gpt" }, { "content": "คำถาม (Question): Great, thanks! Now, can you convert 500 Euros back to US dollars?", "role": "human" }, { "content": "[convert_currency(amount=500, from_currency='EUR', to_currency='USD')]", "role": "gpt" } ]
147
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_exchange_rate\",\n \"description\": \"Get the exchange rate between two currencies\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\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 \"from_currency\",\n \"to_currency\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\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 }\n]\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to know the exchange rate from USD to EUR.\n[END OF QUERY]", "role": "human" }, { "content": "[get_exchange_rate(from_currency='USD', to_currency='EUR')]", "role": "gpt" }, { "content": "Great, thanks! Now, what's the exchange rate from GBP to USD?", "role": "human" }, { "content": "[get_exchange_rate(from_currency='GBP', to_currency='USD')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThank you for the information!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
148
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"max\": {\"type\": \"number\", \"description\": \"The maximum value of the range\"}, \"min\": {\"description\": \"The minimum value of the range\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"min\", \"max\"]}, \"name\": \"generate_random_number\", \"description\": \"Generate a random number within a specified range\"}}, {\"function\": {\"name\": \"send_email\", \"parameters\": {\"type\": \"object\", \"required\": [\"recipient\", \"subject\", \"message\"], \"properties\": {\"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}, \"message\": {\"type\": \"string\", \"description\": \"The content of the email\"}, \"recipient\": {\"type\": \"string\", \"description\": \"The email address of the recipient\"}}}, \"description\": \"Send an email to a recipient\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "I need a random number between 1 and 100.", "role": "human" }, { "content": "[generate_random_number(min=1, max=100)]", "role": "gpt" }, { "content": "<query>\nCan you generate another random number but this time between 200 and 300?\n</query>", "role": "human" }, { "content": "[generate_random_number(min=200, max=300)]", "role": "gpt" }, { "content": "<query>\nThank you, that's all I needed.\n</query>", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
149
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n</Task>\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_event\",\n \"description\": \"Create a new event in the calendar\",\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 },\n \"required\": [\n \"title\",\n \"start_time\",\n \"end_time\"\n ]\n }\n }\n }\n]\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.", "role": "system" }, { "content": "I need to schedule a meeting for tomorrow.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, start time, and end time for the meeting?", "role": "gpt" }, { "content": "คำถาม (Question): The meeting is titled \"Project Discussion\". It should start at 10:00 AM and end at 11:30 AM.", "role": "human" }, { "content": "[create_event(title='Project Discussion', start_time='2022-04-15T10:00:00', end_time='2022-04-15T11:30:00')]", "role": "gpt" } ]
150
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[TASK INSTRUCTION END]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Create a new user\", \"name\": \"create_user\", \"parameters\": {\"type\": \"object\", \"required\": [\"name\", \"email\", \"password\"], \"properties\": {\"email\": {\"type\": \"string\", \"description\": \"The email address of the user\"}, \"name\": {\"type\": \"string\", \"description\": \"The name of the user\"}, \"password\": {\"description\": \"The password for the user\", \"type\": \"string\"}}}}}]", "role": "system" }, { "content": "<query>\nHi, I need to create a new user account.\n</query>", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide the name, email address, and password for the new user?", "role": "gpt" }, { "content": "<query>\nThe name is John Doe, email is johndoe@example.com, and password is mypassword123.\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"create_user\",\n \"arguments\": {\n \"name\": \"John Doe\",\n \"email\": \"johndoe@example.com\",\n \"password\": \"mypassword123\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great! Now, can you also book a flight for John Doe from New York to Paris?", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with that. Booking a flight is an external task and I don't have a function provided for that task. I recommend using a trusted travel booking site or contacting your airline directly.", "role": "gpt" } ]
151
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n</Task>\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_movie_details\",\n \"parameters\": {\n \"properties\": {\n \"year\": {\n \"description\": \"The release year of the movie\",\n \"type\": \"integer\"\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n }\n },\n \"required\": [\n \"title\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Get details about a movie\"\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "Query: Can you book a ticket for me for the movie \"Inception\"?", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to book movie tickets. My current function allows me to provide details about a movie, such as its title and release year. If you need information about \"Inception\", I can certainly help with that.", "role": "gpt" } ]
152
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n### Tools: [\n {\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"properties\": {\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage discount\"\n },\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I have a product that originally costs $200. I want to apply a 20% discount on it. Can you calculate the discounted price for me?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" }, { "content": "คำถาม (Question): Great, thank you! Can you also place an order for this product for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as placing orders. I suggest you place the order through the appropriate platform or service.", "role": "gpt" } ]
153
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n</Task>\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discount on a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"product_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the product\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of discount to be applied\"\n }\n },\n \"required\": [\n \"product_price\",\n \"discount_percentage\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "<query>\nHi, I want to know how much discount I will get on a product if it's original price is $500 and the discount offered is 20%.\n</query>", "role": "human" }, { "content": "[calculate_discount(product_price=500, discount_percentage=20)]", "role": "gpt" }, { "content": "### Instruction: That's great! Can you also book a cab for me to the nearest shopping mall?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book cabs or perform external tasks. My primary function is to assist you with information and calculations. Is there anything else you would like to know?", "role": "gpt" } ]
154
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[TASK INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n },\n \"message\": {\n \"description\": \"The content of the email\",\n \"type\": \"string\"\n },\n \"subject\": {\n \"description\": \"The subject of the email\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ]\n },\n \"name\": \"send_email\"\n }\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to send an email to my boss. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?", "role": "gpt" }, { "content": "### Instruction: The recipient's email is boss@company.com. The subject is \"Project Update\". And the message is \"Dear Boss, I have completed the project as per the given deadline. I have attached the final report for your review. Regards, [User's Name]\".", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Project Update', message=\"Dear Boss, I have completed the project as per the given deadline. I have attached the final report for your review. Regards, [User's Name]\")]", "role": "gpt" } ]
155
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[TASK INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {}, \"name\": \"get_random_fact\", \"description\": \"Get a random fact\"}}]\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.", "role": "system" }, { "content": "Hey, can you order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the ability to perform external tasks such as ordering a pizza. My current function allows me to provide you with a random fact. Would you like to hear one?", "role": "gpt" } ]
156
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice for a transaction\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the transaction\"\n }\n },\n \"required\": [\n \"customer_name\",\n \"amount\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "### Instruction: Hi, I need to generate an invoice for a transaction I just made.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the name of the customer and the amount of the transaction?", "role": "gpt" }, { "content": "Query: The customer's name is John Doe and the transaction amount is $500.", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_invoice\",\n \"arguments\": {\n \"customer_name\": \"John Doe\",\n \"amount\": 500\n }\n }\n]", "role": "gpt" } ]
157
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Create a calendar event with given details\",\n \"parameters\": {\n \"required\": [\n \"title\",\n \"date\",\n \"start_time\",\n \"end_time\"\n ],\n \"properties\": {\n \"end_time\": {\n \"description\": \"The end time of the event\",\n \"type\": \"string\"\n },\n \"location\": {\n \"description\": \"The location of the event\",\n \"type\": \"string\"\n },\n \"start_time\": {\n \"type\": \"string\",\n \"description\": \"The start time of the event\"\n },\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of the event\"\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the event\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"create_calendar_event\"\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The book title to search for\"\n },\n \"author\": {\n \"description\": \"The author name to search for\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"search_books\",\n \"description\": \"Search for books based on title or author\"\n }\n }\n]", "role": "system" }, { "content": "### Instruction: I am looking for a book but I can't remember the full title. It has the word \"Sun\" in it and it's written by Arthur C. Clarke.", "role": "human" }, { "content": "[\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"title\": \"Sun\",\n \"author\": \"Arthur C. Clarke\"\n }\n }\n]", "role": "gpt" } ]
158
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_recipe\",\n \"description\": \"Search for a recipe by ingredients\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The list of ingredients\"\n }\n },\n \"required\": [\n \"ingredients\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "Query: I have some chicken, tomatoes, and garlic. What can I cook with these?", "role": "human" }, { "content": "[search_recipe(ingredients=['chicken', 'tomatoes', 'garlic'])]", "role": "gpt" } ]
159
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\n[\n {\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum value of the range\"\n },\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the range\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"min\",\n \"max\"\n ]\n },\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\"\n },\n \"type\": \"function\"\n }\n]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Hi, I need a random number between 1 and 100.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nGreat, now I need another random number but this time between 200 and 300.\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 200,\n \"max\": 300\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Thank you for your help.", "role": "human" }, { "content": "You're welcome! If you need any more random numbers, just let me know.", "role": "gpt" } ]
160
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n</Task>\n\n### Tools: [\n {\n \"function\": {\n \"name\": \"convert_currency\",\n \"parameters\": {\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"description\": \"The amount to be converted\",\n \"type\": \"number\"\n },\n \"from_currency\": {\n \"description\": \"The currency to convert from\",\n \"type\": \"string\"\n },\n \"to_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n }\n },\n \"description\": \"Convert the amount from one currency to another\"\n },\n \"type\": \"function\"\n }\n]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "<query>\nHi, I need to convert 1000 USD to Euros. Can you help me with that?\n</query>", "role": "human" }, { "content": "[convert_currency(amount=1000, from_currency='USD', to_currency='EUR')]", "role": "gpt" } ]
161
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n[END OF TASK INSTRUCTION]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Generate a random number within a specified range\",\n \"name\": \"generate_random_number\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"description\": \"The minimum value of the range\",\n \"type\": \"number\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum value of the range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "### Instruction: Can you please order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me, such as generating a random number within a specified range.", "role": "gpt" } ]
162
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[END OF TASK INSTRUCTION]\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"required\": [\"input\"], \"type\": \"object\", \"properties\": {\"input\": {\"type\": \"string\", \"description\": \"The word or phrase to check\"}}}, \"description\": \"Check if a word or phrase is a palindrome\", \"name\": \"check_palindrome\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): Hi, can you check if 'racecar' is a palindrome?", "role": "human" }, { "content": "[check_palindrome(input='racecar')]", "role": "gpt" }, { "content": "Query: Interesting! How about 'palindrome'?", "role": "human" }, { "content": "[check_palindrome(input='palindrome')]", "role": "gpt" }, { "content": "Query: Okay, let's try 'madam'.", "role": "human" }, { "content": "[check_palindrome(input='madam')]", "role": "gpt" }, { "content": "คำถาม (Question): Great! Thanks for the help.", "role": "human" }, { "content": "You're welcome! If you have any other words or phrases you want to check, feel free to ask.", "role": "gpt" } ]
163
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[TASK INSTRUCTION END]\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tax\",\n \"description\": \"Calculate the tax amount based on income and tax rate\",\n \"parameters\": {\n \"required\": [\n \"income\",\n \"tax_rate\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"tax_rate\": {\n \"description\": \"The tax rate in percentage\",\n \"type\": \"number\"\n },\n \"income\": {\n \"description\": \"The income amount\",\n \"type\": \"number\"\n }\n }\n }\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nHi, I need to calculate my tax for this year. My income is $75,000 and the tax rate is 25%.\n</query>", "role": "human" }, { "content": "[calculate_tax(income=75000, tax_rate=25)]", "role": "gpt" }, { "content": "Query: That's great. Can you also help me file my tax returns online?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as filing tax returns online. I recommend seeking assistance from a tax professional or using an online tax filing service.", "role": "gpt" } ]
164
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_color\",\n \"description\": \"Generate a random color code\",\n \"parameters\": {}\n }\n }\n]", "role": "system" }, { "content": "<query>\nHi, I need a random color for my website's background. Can you help?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_color\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
165
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[TASK INSTRUCTION END]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a shape\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"description\": \"The type of shape\",\n \"enum\": [\n \"rectangle\",\n \"circle\",\n \"triangle\"\n ]\n },\n \"dimensions\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"number\",\n \"description\": \"The length of the shape\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the shape\"\n },\n \"radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the shape\"\n },\n \"base\": {\n \"type\": \"number\",\n \"description\": \"The base of the shape\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the shape\"\n }\n },\n \"required\": [\n \"length\",\n \"width\",\n \"radius\",\n \"base\",\n \"height\"\n ],\n \"dependencies\": {\n \"shape\": [\n \"rectangle\",\n \"circle\",\n \"triangle\"\n ]\n }\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the BMI (Body Mass Index)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คำถาม (Question): I need to calculate the area of a rectangle. The length is 5 and the width is 3.", "role": "human" }, { "content": "[calculate_area(shape='rectangle', dimensions={'length': 5, 'width': 3})]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nNow, I want to calculate the area of a circle with a radius of 4.\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_area(shape='circle', dimensions={'radius': 4})]", "role": "gpt" }, { "content": "Query: Lastly, I want to calculate the area of a triangle. The base is 6 and the height is 7.", "role": "human" }, { "content": "[calculate_area(shape='triangle', dimensions={'base': 6, 'height': 7})]", "role": "gpt" } ]
166
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"translate_text\",\n \"description\": \"Translate text to another language\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be translated\"\n },\n \"target_language\": {\n \"type\": \"string\",\n \"description\": \"The target language\"\n }\n }\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\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\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "<query>\nHi, I need to translate a sentence to French. The sentence is \"Hello, how are you?\"\n</query>", "role": "human" }, { "content": "[translate_text(text='Hello, how are you?', target_language='French')]", "role": "gpt" }, { "content": "Great! Now, can you translate \"I am fine, thank you\" into Spanish?", "role": "human" }, { "content": "[translate_text(text='I am fine, thank you', target_language='Spanish')]", "role": "gpt" }, { "content": "คำถาม (Question): Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other sentences to translate, feel free to ask.", "role": "gpt" } ]
167
glaive-function-calling-v2-extended
[ { "content": "You are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Generate a random password\", \"parameters\": {\"properties\": {\"include_symbols\": {\"type\": \"boolean\", \"description\": \"Flag to include symbols in the password\"}, \"include_digits\": {\"description\": \"Flag to include digits in the password\", \"type\": \"boolean\"}, \"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"required\": [\"length\"], \"type\": \"object\"}, \"name\": \"generate_password\"}}]", "role": "system" }, { "content": "<query>\nHi, I need a new password for my account. Can you generate one for me?\n</query>", "role": "human" }, { "content": "Of course, I can help with that. Could you please specify the length of the password you want and whether you want it to include digits and symbols?", "role": "gpt" }, { "content": "<query>\nI would like a 12 character password with both digits and symbols.\n</query>", "role": "human" }, { "content": "[generate_password(length=12, include_digits=True, include_symbols=True)]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, thank you. Can you also book a flight for me to New York next week?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights or perform other external tasks. I suggest using a trusted travel booking site or contacting your travel agent for assistance.", "role": "gpt" } ]
168
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[TASK INSTRUCTION END]\n\n<tools>\n[\n {\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"message\": {\n \"description\": \"The content of the email\",\n \"type\": \"string\"\n },\n \"recipient_email\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"recipient_email\",\n \"subject\",\n \"message\"\n ]\n },\n \"name\": \"send_email\",\n \"description\": \"Send an email to a recipient\"\n },\n \"type\": \"function\"\n }\n]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to send an email to my boss. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with your boss's email address, the subject of the email, and the content you wish to send?", "role": "gpt" }, { "content": "### Instruction: Sure, the email address is boss@company.com. The subject is \"Project Update\" and the message is \"Dear Boss, The project is on track and we are set to complete it by the end of this month. Regards, [User's Name]\".", "role": "human" }, { "content": "[send_email(recipient_email='boss@company.com', subject='Project Update', message=\"Dear Boss, The project is on track and we are set to complete it by the end of this month. Regards, [User's Name]\")]", "role": "gpt" } ]
169
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n },\n \"include_symbols\": {\n \"type\": \"boolean\",\n \"description\": \"Whether to include symbols in the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "### Instruction: Hi, I need a new password. Can you generate one for me?", "role": "human" }, { "content": "Of course, I can help with that. How long would you like your password to be?", "role": "gpt" }, { "content": "<query>\nI want it to be 12 characters long.\n</query>", "role": "human" }, { "content": "Would you like to include symbols in your password?", "role": "gpt" }, { "content": "### Instruction: Yes, please include symbols.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_password\",\n \"arguments\": {\n \"length\": 12,\n \"include_symbols\": true\n }\n }\n]}", "role": "gpt" } ]
170
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text or URL\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"content\": {\n \"type\": \"string\",\n \"description\": \"The text or URL to be encoded in the QR code\"\n }\n },\n \"required\": [\n \"content\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, can you help me generate a QR code for my website?", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "### Instruction: Sure, it's www.mywebsite.com.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"content\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: That's great! Can you also help me design a logo for my website?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to design logos. My current function is to generate QR codes. I recommend seeking the help of a professional designer for your logo needs.", "role": "gpt" } ]
171
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ],\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The tip percentage\"\n }\n }\n },\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "Query: Hi, I need help with calculating the tip for my bill. The total bill amount is $50 and I want to leave a 20% tip.", "role": "human" }, { "content": "[calculate_tip(bill_amount=50, tip_percentage=20)]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, thanks! Can you also book a table for two at my favorite restaurant for tonight?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking tables at restaurants. I suggest using a restaurant reservation app or website for this task.", "role": "gpt" } ]
172
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n</Task>\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The loan principal amount\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n },\n \"term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in months\"\n }\n },\n \"required\": [\n \"principal\",\n \"interest_rate\",\n \"term\"\n ]\n }\n }\n }\n]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>", "role": "system" }, { "content": "คำถาม (Question): Hi, I need help with calculating my loan payment. I have a loan of $50000 with an annual interest rate of 5% and a term of 60 months.", "role": "human" }, { "content": "[calculate_loan_payment(principal=50000, interest_rate=5, term=60)]", "role": "gpt" }, { "content": "That's a bit higher than I expected. What if I extend the term to 72 months?", "role": "human" }, { "content": "[calculate_loan_payment(principal=50000, interest_rate=5, term=72)]", "role": "gpt" }, { "content": "That sounds more manageable. Thank you for your help.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
173
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[END OF TASK INSTRUCTION]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"weight\",\n \"destination\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination of the package\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight of the package in kilograms\"\n }\n }\n },\n \"name\": \"calculate_shipping_cost\",\n \"description\": \"Calculate the shipping cost for a package\"\n }\n },\n {\n \"function\": {\n \"description\": \"Calculate the tip amount for a bill\",\n \"name\": \"calculate_tip\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip to give\"\n },\n \"bill_amount\": {\n \"description\": \"The total amount of the bill\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n },\n \"type\": \"function\"\n }\n]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Hi, I need help with calculating a tip. My bill is $50 and I want to leave a 20% tip.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 50,\n \"tip_percentage\": 20\n }\n }\n]}", "role": "gpt" } ]
174
glaive-function-calling-v2-extended
[ { "content": "You are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_age_in_months\",\n \"description\": \"Calculate the age in months 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 in YYYY-MM-DD format\"\n }\n },\n \"required\": [\n \"date_of_birth\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_fahrenheit_to_celsius\",\n \"description\": \"Convert temperature from Fahrenheit to Celsius\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"fahrenheit\": {\n \"type\": \"number\",\n \"description\": \"The temperature in Fahrenheit\"\n }\n },\n \"required\": [\n \"fahrenheit\"\n ]\n }\n }\n }\n]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Query: Hi, I was born on 1990-05-15. Can you tell me how old I am in months?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_age_in_months\",\n \"arguments\": {\n \"date_of_birth\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" } ]
175
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_random_joke\",\n \"description\": \"Get a random joke from a joke API\",\n \"parameters\": {}\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): I'm feeling a bit down. Can you tell me a joke to cheer me up?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_random_joke\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
176
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"source_language\": {\n \"description\": \"The source language of the text\",\n \"type\": \"string\"\n },\n \"target_language\": {\n \"type\": \"string\",\n \"description\": \"The target language for translation\"\n },\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be translated\"\n }\n },\n \"required\": [\n \"text\",\n \"source_language\",\n \"target_language\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Translate text from one language to another\",\n \"name\": \"translate_text\"\n }\n },\n {\n \"function\": {\n \"description\": \"Get details of a movie\",\n \"name\": \"get_movie_details\",\n \"parameters\": {\n \"required\": [\n \"title\"\n ],\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Query: Can you tell me more about the movie \"Inception\"?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Inception\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That sounds interesting. Can you tell me about the movie \"The Dark Knight\"?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"The Dark Knight\"\n }\n }\n]}", "role": "gpt" } ]
177
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n</Task>\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"source_location\": {\n \"type\": \"string\",\n \"description\": \"The source location\"\n },\n \"destination_location\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n }\n },\n \"required\": [\n \"source_location\",\n \"destination_location\"\n ]\n }\n }\n }\n]\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```", "role": "system" }, { "content": "Can you book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to book flights. My current function allows me to calculate the distance between two locations. If you need to know the distance between New York and London, I can certainly help with that.", "role": "gpt" } ]
178
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n</Task>\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"income\",\n \"tax_rate\"\n ],\n \"properties\": {\n \"tax_rate\": {\n \"type\": \"number\",\n \"description\": \"The tax rate in percentage\"\n },\n \"income\": {\n \"description\": \"The income amount\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"calculate_tax\",\n \"description\": \"Calculate the tax amount based on income\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to calculate my tax. My income is $50000 and the tax rate is 20%.\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_tax\",\n \"arguments\": {\n \"income\": 50000,\n \"tax_rate\": 20\n }\n }\n]", "role": "gpt" }, { "content": "Query: Thank you for the information. What if my income increases to $60000?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_tax\",\n \"arguments\": {\n \"income\": 60000,\n \"tax_rate\": 20\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: That's helpful. Thanks!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
179
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Search for a product in the inventory\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"description\": \"The category to filter\",\n \"type\": \"string\"\n },\n \"keyword\": {\n \"type\": \"string\",\n \"description\": \"The keyword to search\"\n },\n \"price_range\": {\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum price\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum price\"\n }\n }\n }\n }\n },\n \"name\": \"search_product\"\n }\n },\n {\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"length\": {\n \"description\": \"The length of the password\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"length\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"generate_password\",\n \"description\": \"Generate a random password with specified length\"\n },\n \"type\": \"function\"\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "I am looking for a laptop under $1000.", "role": "human" }, { "content": "[search_product(keyword='laptop', category='electronics', price_range={'min': 0, 'max': 1000})]", "role": "gpt" }, { "content": "คำถาม (Question): That's great! Can you find any smartphones under $500?", "role": "human" }, { "content": "[search_product(keyword='smartphone', category='electronics', price_range={'min': 0, 'max': 500})]", "role": "gpt" } ]
180
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\n### Tools: [\n {\n \"function\": {\n \"description\": \"Search for recipes based on ingredients\",\n \"name\": \"search_recipes\",\n \"parameters\": {\n \"required\": [\n \"ingredients\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"description\": \"The ingredients to search for\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Query: I have some chicken, broccoli, and cheese. What can I make with these?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'broccoli', 'cheese'])]", "role": "gpt" } ]
181
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[END OF TASK INSTRUCTION]\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code from given data\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": {\n \"type\": \"string\",\n \"description\": \"The data to be encoded in the QR code\"\n }\n },\n \"required\": [\n \"data\"\n ]\n }\n }\n }\n]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to generate a QR code for my website. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "### Instruction: Sure, my website URL is www.mywebsite.com.", "role": "human" }, { "content": "[generate_qr_code(data='www.mywebsite.com')]", "role": "gpt" } ]
182
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[END OF TASK INSTRUCTION]\n\nTools: [\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"length\"\n ],\n \"properties\": {\n \"include_symbols\": {\n \"description\": \"Include symbols in the password\",\n \"type\": \"boolean\"\n },\n \"include_numbers\": {\n \"type\": \"boolean\",\n \"description\": \"Include numbers in the password\"\n },\n \"length\": {\n \"description\": \"The length of the password\",\n \"type\": \"integer\"\n }\n }\n },\n \"description\": \"Generate a random password\",\n \"name\": \"generate_password\"\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"title\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"year\": {\n \"description\": \"The release year of the movie\",\n \"type\": \"integer\"\n },\n \"title\": {\n \"description\": \"The title of the movie\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"get_movie_details\",\n \"description\": \"Get details about a movie\"\n },\n \"type\": \"function\"\n }\n]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "คำถาม (Question): Can you tell me about the movie \"Inception\"?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Inception\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nWhat about the movie \"The Dark Knight\"?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"The Dark Knight\"\n }\n }\n]}", "role": "gpt" } ]
183
glaive-function-calling-v2-extended
[ { "content": "You have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address of the contact\"\n },\n \"name\": {\n \"description\": \"The name of the contact\",\n \"type\": \"string\"\n },\n \"phone_number\": {\n \"description\": \"The phone number of the contact\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"name\"\n ]\n },\n \"description\": \"Create a new contact\",\n \"name\": \"create_contact\"\n }\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to create a new contact for my friend John Doe.\n[END OF QUERY]", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with John Doe's phone number and email address?", "role": "gpt" }, { "content": "Yes, his phone number is 123-456-7890 and his email is johndoe@example.com.", "role": "human" }, { "content": "[\n {\n \"name\": \"create_contact\",\n \"arguments\": {\n \"name\": \"John Doe\",\n \"phone_number\": \"123-456-7890\",\n \"email\": \"johndoe@example.com\"\n }\n }\n]", "role": "gpt" } ]
184
glaive-function-calling-v2-extended
[ { "content": "You are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a random number within a specified range\", \"parameters\": {\"required\": [\"min\", \"max\"], \"properties\": {\"max\": {\"type\": \"integer\", \"description\": \"The maximum value of the range\"}, \"min\": {\"description\": \"The minimum value of the range\", \"type\": \"integer\"}}, \"type\": \"object\"}, \"name\": \"generate_random_number\"}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: I need a random number between 1 and 100.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nCan you generate another random number but this time between 200 and 300?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 200,\n \"max\": 300\n }\n }\n]}", "role": "gpt" } ]
185
glaive-function-calling-v2-extended
[ { "content": "You are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\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 }\n]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to send an email to my boss. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?", "role": "gpt" }, { "content": "The recipient's email is boss@company.com. The subject is \"Project Update\". And the message is \"Dear Boss, I have completed the project as per the given deadline. Please review it at your earliest convenience. Regards, [User's Name]\".", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Project Update', message=\"Dear Boss, I have completed the project as per the given deadline. Please review it at your earliest convenience. Regards, [User's Name]\")]", "role": "gpt" } ]
186
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\nAPI Function: [{\"function\": {\"name\": \"calculate_discount\", \"parameters\": {\"type\": \"object\", \"properties\": {\"discount_percentage\": {\"description\": \"The percentage of the discount\", \"type\": \"number\"}, \"original_price\": {\"description\": \"The original price of the product\", \"type\": \"number\"}}, \"required\": [\"original_price\", \"discount_percentage\"]}, \"description\": \"Calculate the discounted price of a product\"}, \"type\": \"function\"}, {\"function\": {\"name\": \"calculate_fuel_efficiency\", \"description\": \"Calculate the fuel efficiency of a vehicle\", \"parameters\": {\"required\": [\"distance\", \"fuel_consumed\"], \"properties\": {\"fuel_consumed\": {\"type\": \"number\", \"description\": \"The amount of fuel consumed in liters\"}, \"distance\": {\"type\": \"number\", \"description\": \"The distance traveled in kilometers\"}}, \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "Hi, I recently went on a road trip and I want to calculate the fuel efficiency of my car. I traveled 500 kilometers and consumed 25 liters of fuel.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_fuel_efficiency\",\n \"arguments\": {\n \"distance\": 500,\n \"fuel_consumed\": 25\n }\n }\n]}", "role": "gpt" } ]
187
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_temperature\",\n \"description\": \"Convert a temperature from one unit to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"temperature\": {\n \"type\": \"number\",\n \"description\": \"The temperature to be converted\"\n },\n \"from_unit\": {\n \"type\": \"string\",\n \"description\": \"The unit of the temperature to convert from\"\n },\n \"to_unit\": {\n \"type\": \"string\",\n \"description\": \"The unit of the temperature to convert to\"\n }\n },\n \"required\": [\n \"temperature\",\n \"from_unit\",\n \"to_unit\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "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 assist with tasks such as converting temperatures between different units.", "role": "gpt" } ]
188
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"program_name\"\n ],\n \"properties\": {\n \"arguments\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The arguments to pass to the program\",\n \"type\": \"array\"\n },\n \"program_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the program or script to execute\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"execute_program\",\n \"description\": \"Execute a program or script\"\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"dietary_requirements\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The dietary requirements to consider\"\n },\n \"ingredients\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients to search for\",\n \"type\": \"array\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"ingredients\"\n ]\n },\n \"name\": \"search_recipes\",\n \"description\": \"Search for recipes based on ingredients\"\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "Query: I need to run a program called \"DataAnalysis\" with arguments \"file1.csv\" and \"file2.csv\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"execute_program\",\n \"arguments\": {\n \"program_name\": \"DataAnalysis\",\n \"arguments\": [\n \"file1.csv\",\n \"file2.csv\"\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great! Now, I need to run another program \"DataMerge\" with arguments \"file1.csv\", \"file2.csv\" and \"output.csv\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"execute_program\",\n \"arguments\": {\n \"program_name\": \"DataMerge\",\n \"arguments\": [\n \"file1.csv\",\n \"file2.csv\",\n \"output.csv\"\n ]\n }\n }\n]}", "role": "gpt" } ]
189
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n### Tools: [{\"type\": \"function\", \"function\": {\"name\": \"add_contacts\", \"parameters\": {\"properties\": {\"contacts\": {\"items\": {\"properties\": {\"phone_number\": {\"description\": \"The phone number of the contact\", \"type\": \"string\"}, \"email\": {\"type\": \"string\", \"description\": \"The email address of the contact\"}, \"name\": {\"type\": \"string\", \"description\": \"The name of the contact\"}}, \"required\": [\"name\", \"phone_number\", \"email\"], \"type\": \"object\"}, \"type\": \"array\"}}, \"required\": [\"contacts\"], \"type\": \"object\"}, \"description\": \"Add new contacts to the address book\"}}]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>", "role": "system" }, { "content": "Can you please order a pizza for me?", "role": "human" }, { "content": "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 add new contacts to your address book.", "role": "gpt" } ]
190
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}, \"include_numbers\": {\"description\": \"Include numbers in the password\", \"type\": \"boolean\"}, \"include_symbols\": {\"type\": \"boolean\", \"description\": \"Include symbols in the password\"}}, \"required\": [\"length\"], \"type\": \"object\"}, \"name\": \"generate_password\", \"description\": \"Generate a random password\"}}]\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```", "role": "system" }, { "content": "### Instruction: Hi, I need a new password. Can you generate one for me?", "role": "human" }, { "content": "Of course, I can help with that. How long would you like your password to be? And would you like it to include numbers and symbols?", "role": "gpt" }, { "content": "Query: I would like it to be 12 characters long and yes, please include numbers and symbols.", "role": "human" }, { "content": "[generate_password(length=12, include_numbers=True, include_symbols=True)]", "role": "gpt" } ]
191
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[END OF FORMAT INSTRUCTION]\n\nAPI Function: [{\"function\": {\"parameters\": {}, \"description\": \"Get a random fact\", \"name\": \"get_random_fact\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHey, can you order a pizza for me?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to order a pizza as it's an external task. My current function allows me to provide you with a random fact. Would you like to hear one?", "role": "gpt" } ]
192
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[TASK INSTRUCTION END]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "Query: Hi, I need a new password. Can you generate a random one for me?", "role": "human" }, { "content": "Of course, I can help with that. How long would you like your password to be?", "role": "gpt" }, { "content": "I would like it to be 12 characters long.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_password\",\n \"arguments\": {\n \"length\": 12\n }\n }\n]}", "role": "gpt" }, { "content": "Great, thanks! Now, can you also book a flight for me to New York next week?", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with booking flights as I don't have access to any function that can perform this task. I recommend using a trusted travel booking site or contacting your preferred airline directly.", "role": "gpt" } ]
193
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n[END OF TASK INSTRUCTION]\n\n### Tools: [{\"function\": {\"name\": \"convert_temperature\", \"description\": \"Convert temperature from one unit to another\", \"parameters\": {\"properties\": {\"from_unit\": {\"type\": \"string\", \"description\": \"The unit to convert from\"}, \"to_unit\": {\"description\": \"The unit to convert to\", \"type\": \"string\"}, \"temperature\": {\"description\": \"The temperature to convert\", \"type\": \"number\"}}, \"required\": [\"temperature\", \"from_unit\", \"to_unit\"], \"type\": \"object\"}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Calculate the discounted price\", \"parameters\": {\"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\", \"properties\": {\"discount_percentage\": {\"type\": \"number\", \"description\": \"The percentage of discount\"}, \"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}}}, \"name\": \"calculate_discount\"}}]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "### Instruction: Hi, I need to convert a temperature from Fahrenheit to Celsius. The temperature is 98.6 degrees Fahrenheit.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_temperature\",\n \"arguments\": {\n \"temperature\": 98.6,\n \"from_unit\": \"Fahrenheit\",\n \"to_unit\": \"Celsius\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Great, thanks! Now, can you convert 0 degrees Celsius to Fahrenheit?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_temperature\",\n \"arguments\": {\n \"temperature\": 0,\n \"from_unit\": \"Celsius\",\n \"to_unit\": \"Fahrenheit\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Perfect, thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
194
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\nAPI Function: [\n {\n \"function\": {\n \"description\": \"Search for books based on title, author, or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query\"\n },\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The book category to filter by\"\n }\n },\n \"required\": [\n \"query\"\n ]\n },\n \"name\": \"search_books\"\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"message\": {\n \"description\": \"The content of the email\",\n \"type\": \"string\"\n },\n \"recipient\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n }\n }\n },\n \"description\": \"Send an email to a recipient\",\n \"name\": \"send_email\"\n },\n \"type\": \"function\"\n }\n]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "คำถาม (Question): I am looking for a book, but I can't remember the full title. It's something like \"To Kill a...\". Can you help me find it?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"query\": \"To Kill a\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nYes, that's the one! Can you also recommend me some books in the same genre?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"category\": \"Fiction\"\n }\n }\n]}", "role": "gpt" } ]
195
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"properties\": {\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage discount to be applied\"\n },\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the final price after applying a discount\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Query: I saw a dress that I liked in a store. It was originally priced at $200 but there's a 20% discount on it. Can you tell me how much it will cost after the discount?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]", "role": "gpt" } ]
196
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_quote\",\n \"description\": \"Generate a random inspirational quote\",\n \"parameters\": {}\n }\n }\n]", "role": "system" }, { "content": "Query: I'm feeling a bit down today. Can you share something inspiring?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_quote\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
197
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n</Task>\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"properties\": {\n \"symbol\": {\n \"type\": \"string\",\n \"description\": \"The stock symbol\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"symbol\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nWhat's the current price of Apple stock?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"AAPL\"\n }\n }\n]", "role": "gpt" }, { "content": "Query: And what about Microsoft?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"MSFT\"\n }\n }\n]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, thanks for the information.\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
198
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n</Task>\n\n<tools>\n[\n {\n \"function\": {\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"properties\": {\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n },\n \"origin\": {\n \"description\": \"The origin location\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"origin\",\n \"destination\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"calculate_distance\"\n },\n \"type\": \"function\"\n }\n]\n</tools>\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you please book a flight for me from New York to London?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I am unable to book flights. My capabilities are currently limited to calculating the distance between two locations. If you need to know the distance between New York and London, I can certainly help with that.", "role": "gpt" } ]
199
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on specific criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n },\n \"actor\": {\n \"type\": \"string\",\n \"description\": \"The actor in the movie\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the movie\"\n }\n },\n \"required\": [\n \"title\",\n \"actor\",\n \"genre\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI am looking for a movie but I can't remember the title. I know it's a comedy and Jim Carrey is in it.\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"search_movies\",\n \"arguments\": {\n \"actor\": \"Jim Carrey\",\n \"genre\": \"comedy\"\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: Yes, it was \"Liar Liar\". Thank you!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
200