dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
77.6k
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the tip amount for a bill\", \"name\": \"calculate_tip\", \"parameters\": {\"type\": \"object\", \"required\": [\"bill_amount\", \"tip_percentage\"], \"properties\": {\"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}, \"tip_percentage\": {\"description\": \"The percentage of tip to be given\", \"type\": \"number\"}}}}}]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need help with calculating a tip. My bill is $50 and I want to leave a 15% tip.", "role": "human" }, { "content": "[calculate_tip(bill_amount=50, tip_percentage=15)]", "role": "gpt" } ]
201
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[{\"function\": {\"description\": \"Generate a random password with specified length\", \"name\": \"generate_random_password\", \"parameters\": {\"type\": \"object\", \"required\": [\"length\"], \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}}}, \"type\": \"function\"}]\n</tools>\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>", "role": "system" }, { "content": "### Instruction: Hi, I need a new password. Can you generate one for me?", "role": "human" }, { "content": "Sure, I can help with that. How long would you like your password to be?", "role": "gpt" }, { "content": "I want it to be 10 characters long.", "role": "human" }, { "content": "[generate_random_password(length=10)]", "role": "gpt" }, { "content": "### Instruction: Great, thanks! Now, can you also install a new software on my computer?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to install software on your computer. You'll need to do that manually or ask a human assistant for help.", "role": "gpt" } ]
202
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<tools>\n[{\"function\": {\"description\": \"Calculate the tip amount for a bill\", \"name\": \"calculate_tip\", \"parameters\": {\"required\": [\"bill_amount\", \"tip_percentage\"], \"type\": \"object\", \"properties\": {\"bill_amount\": {\"description\": \"The total amount of the bill\", \"type\": \"number\"}, \"tip_percentage\": {\"description\": \"The percentage of the tip to be given\", \"type\": \"number\"}}}}, \"type\": \"function\"}]\n</tools>\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": "<query>\nHey, I need help with calculating the tip for my bill. The total amount is $50 and I want to give a 15% tip.\n</query>", "role": "human" }, { "content": "[calculate_tip(bill_amount=50, tip_percentage=15)]", "role": "gpt" }, { "content": "Query: Great, thanks! Can you also order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks like ordering a pizza. My functions are limited to the ones provided to me.", "role": "gpt" } ]
203
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\": \"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\": \"Include symbols in the password\"\n },\n \"include_numbers\": {\n \"type\": \"boolean\",\n \"description\": \"Include numbers in the password\"\n }\n },\n \"required\": [\n \"length\"\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": "Query: I need a new password. Can you generate one for me?", "role": "human" }, { "content": "Of course! How long would you like your password to be? And would you like it to include symbols and numbers?", "role": "gpt" }, { "content": "### Instruction: I want it to be 12 characters long and yes, include both symbols and numbers.", "role": "human" }, { "content": "[generate_password(length=12, include_symbols=True, include_numbers=True)]", "role": "gpt" }, { "content": "Thank you, that was quick and easy!", "role": "human" }, { "content": "You're welcome! If you need any more assistance, feel free to ask.", "role": "gpt" } ]
204
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[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount based on the total bill\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"total_bill\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The tip percentage\"\n }\n },\n \"required\": [\n \"total_bill\",\n \"tip_percentage\"\n ]\n }\n }\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": "### Instruction: 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 booking flights. My current capabilities are limited to the functions provided to me, such as calculating the tip amount based on a total bill. If you need help with that or similar tasks, feel free to ask!", "role": "gpt" } ]
205
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### Tools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"cuisine\": {\"type\": \"string\", \"description\": \"The cuisine type, e.g. Italian, Chinese\"}, \"ingredients\": {\"items\": {\"type\": \"string\"}, \"description\": \"The ingredients to search for\", \"type\": \"array\"}}, \"type\": \"object\", \"required\": [\"ingredients\"]}, \"description\": \"Search for a recipe based on ingredients\", \"name\": \"search_recipe\"}}]\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": "<query>\nI have some chicken and broccoli. Can you find me a recipe?\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_recipe\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"broccoli\"\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThat sounds delicious! Can you find me an Italian recipe with the same ingredients?\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_recipe\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"broccoli\"\n ],\n \"cuisine\": \"Italian\"\n }\n }\n]}", "role": "gpt" } ]
206
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\n### Tools: [\n {\n \"function\": {\n \"description\": \"Calculate the discounted price\",\n \"name\": \"calculate_discount\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"properties\": {\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of discount\"\n },\n \"original_price\": {\n \"description\": \"The original price of the item\",\n \"type\": \"number\"\n }\n }\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "คำถาม (Question): 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": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 100,\n \"discount_percentage\": 20\n }\n }\n]", "role": "gpt" }, { "content": "Query: That's a good deal! What about a pair of shoes that was originally $150 and now has a 30% discount?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 150,\n \"discount_percentage\": 30\n }\n }\n]", "role": "gpt" }, { "content": "Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
207
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: [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight in kilograms\"}, \"height\": {\"description\": \"The height in meters\", \"type\": \"number\"}}, \"required\": [\"weight\", \"height\"], \"type\": \"object\"}, \"name\": \"calculate_bmi\", \"description\": \"Calculate the Body Mass Index (BMI)\"}}]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Hi, I would like to calculate my BMI. My weight is 70 kg and my height is 1.75 m.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 70,\n \"height\": 1.75\n }\n }\n]}", "role": "gpt" } ]
208
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เครื่องมือ (Tools): [\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 INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Query: Hi, I would like to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 70,\n \"height\": 1.75\n }\n }\n]", "role": "gpt" } ]
209
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\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"get_movie_details\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}}, \"required\": [\"title\"]}, \"description\": \"Get the details of a movie based on its title\"}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"title\"], \"properties\": {\"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}}}, \"description\": \"Search for a movie by title\", \"name\": \"search_movie\"}}]\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]", "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": "คำถาม (Question): That's interesting. Can you tell me about \"The Dark Knight\"?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"The Dark Knight\"\n }\n }\n]}", "role": "gpt" } ]
210
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"destination\": {\n \"description\": \"The destination location\",\n \"type\": \"string\"\n },\n \"origin\": {\n \"type\": \"string\",\n \"description\": \"The starting location\"\n }\n },\n \"required\": [\n \"origin\",\n \"destination\"\n ]\n },\n \"description\": \"Calculate the distance between two locations\",\n \"name\": \"calculate_distance\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "คำถาม (Question): 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 calculate the distance between two locations.", "role": "gpt" } ]
211
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:\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\": {\"properties\": {\"discount_amount\": {\"type\": \"number\", \"description\": \"The discount amount\"}, \"original_price\": {\"description\": \"The original price of the item\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"original_price\", \"discount_amount\"]}, \"name\": \"calculate_discounted_price\", \"description\": \"Calculate the final price after applying discount\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "Query: I saw a jacket I liked in a store. It was originally priced at $200 but they are offering a discount of $50. Can you tell me how much I will have to pay after the discount?", "role": "human" }, { "content": "[calculate_discounted_price(original_price=200, discount_amount=50)]", "role": "gpt" } ]
212
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 FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"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 \"name\": \"search_movies\",\n \"description\": \"Search for movies based on given criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n },\n \"year\": {\n \"type\": \"integer\",\n \"description\": \"The release year of the movie\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the movie\"\n }\n },\n \"required\": []\n }\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I am looking for a movie to watch. Can you help me find one?", "role": "human" }, { "content": "Of course! I can help you with that. Could you please provide me with the title, year, or genre of the movie you're interested in?", "role": "gpt" }, { "content": "Query: I am interested in a comedy movie from 2015.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_movies\",\n \"arguments\": {\n \"title\": \"\",\n \"year\": 2015,\n \"genre\": \"comedy\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great! Can you also book a ticket for me for the movie \"Trainwreck\"?", "role": "human" }, { "content": "I'm sorry, but I am unable to book movie tickets as it is an external task and I don't have a function provided for that task. I recommend using a movie ticket booking platform for this purpose.", "role": "gpt" } ]
213
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_restaurant\",\n \"description\": \"Search for a restaurant based on specified criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the restaurant\"\n },\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type of the restaurant\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the restaurant\"\n }\n }\n }\n }\n }\n]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "คำถาม (Question): Can you book a flight for me to New York?", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to book flights. My current function allows me to search for restaurants based on specified criteria. Is there anything else you would like assistance with that is within my capabilities?", "role": "gpt" } ]
214
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>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"required\": [\n \"origin\",\n \"destination\"\n ],\n \"properties\": {\n \"destination\": {\n \"description\": \"The destination location\",\n \"type\": \"string\"\n },\n \"origin\": {\n \"description\": \"The origin location\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to know the distance between New York and Los Angeles.\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "That's quite far. What about the distance from New York to Miami?", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Miami')]", "role": "gpt" }, { "content": "<query>\nThanks for the information!\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
215
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\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_interest\",\n \"description\": \"Calculate the interest on a loan or investment\",\n \"parameters\": {\n \"properties\": {\n \"principal\": {\n \"description\": \"The principal amount\",\n \"type\": \"number\"\n },\n \"time\": {\n \"type\": \"number\",\n \"description\": \"The time period in years\"\n },\n \"rate\": {\n \"description\": \"The interest rate\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"principal\",\n \"rate\",\n \"time\"\n ],\n \"type\": \"object\"\n }\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nHi, I need to calculate the interest on my loan. The principal amount is $5000, the interest rate is 5% and the time period is 3 years.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_interest\",\n \"arguments\": {\n \"principal\": 5000,\n \"rate\": 5,\n \"time\": 3\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: That's great. Can you also help me book a flight to New York?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights or perform external tasks. My main function is to assist with information and calculations. I recommend using a trusted travel website or app to book your flight.", "role": "gpt" } ]
216
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\nAPI Function: [{\"function\": {\"name\": \"calculate_rectangle_perimeter\", \"parameters\": {\"type\": \"object\", \"required\": [\"length\", \"width\"], \"properties\": {\"length\": {\"description\": \"The length of the rectangle\", \"type\": \"number\"}, \"width\": {\"description\": \"The width of the rectangle\", \"type\": \"number\"}}}, \"description\": \"Calculate the perimeter of a rectangle\"}, \"type\": \"function\"}]\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": "### Instruction: Hi, I need to calculate the perimeter of a rectangle. The length is 10 units and the width is 5 units.", "role": "human" }, { "content": "[calculate_rectangle_perimeter(length=10, width=5)]", "role": "gpt" }, { "content": "คำถาม (Question): That's great! Now, I have another rectangle with length 15 units and width 7 units. Can you calculate the perimeter for this one too?", "role": "human" }, { "content": "[calculate_rectangle_perimeter(length=15, width=7)]", "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" } ]
217
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\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"name\": \"generate_qr_code\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"description\": \"The text to be encoded in the QR code\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"text\"\n ]\n },\n \"description\": \"Generate a QR code for a given text\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Query: Hi, I need 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": "Sure, it's www.mywebsite.com.", "role": "human" }, { "content": "[generate_qr_code(text='www.mywebsite.com')]", "role": "gpt" } ]
218
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"to\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert to\"\n }\n },\n \"required\": [\n \"amount\",\n \"from\",\n \"to\"\n ]\n }\n }\n }\n]\n[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": "Query: 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. I can assist with tasks related to the functions provided to me. For instance, I can help you convert currencies.", "role": "gpt" } ]
219
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[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\": \"calculate_age\",\n \"description\": \"Calculate the age based on the birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"description\": \"The birthdate in YYYY-MM-DD format\"\n }\n },\n \"required\": [\n \"birthdate\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"send_email\",\n \"description\": \"Send an email\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"recipient\": {\n \"type\": \"string\",\n \"description\": \"The email address of the recipient\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"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]", "role": "system" }, { "content": "### Instruction: 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 \"birthdate\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" } ]
220
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 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 \"description\": \"Search for a book based on title and author\",\n \"name\": \"search_book\",\n \"parameters\": {\n \"required\": [\n \"title\"\n ],\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the book\"\n },\n \"author\": {\n \"description\": \"The author of the book\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คำถาม (Question): I am looking for a book but I can't remember the author. The title is \"To Kill a Mockingbird\".", "role": "human" }, { "content": "[\n {\n \"name\": \"search_book\",\n \"arguments\": {\n \"title\": \"To Kill a Mockingbird\"\n }\n }\n]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThank you! That's the one I was looking for. Can you also find \"The Great Gatsby\"?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"search_book\",\n \"arguments\": {\n \"title\": \"The Great Gatsby\"\n }\n }\n]", "role": "gpt" } ]
221
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\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_note\",\n \"description\": \"Create a new note\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the note\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"The content of the note\"\n }\n },\n \"required\": [\n \"title\",\n \"content\"\n ]\n }\n }\n }\n]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "คำถาม (Question): I need to create a note for my meeting tomorrow.", "role": "human" }, { "content": "Sure, I can help with that. What would you like the title and content of the note to be?", "role": "gpt" }, { "content": "The title should be \"Team Meeting\" and the content should be \"Discuss project updates, assign new tasks, and review deadlines.\"", "role": "human" }, { "content": "[\n {\n \"name\": \"create_note\",\n \"arguments\": {\n \"title\": \"Team Meeting\",\n \"content\": \"Discuss project updates, assign new tasks, and review deadlines.\"\n }\n }\n]", "role": "gpt" } ]
222
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### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"name\": \"create_todo\",\n \"parameters\": {\n \"properties\": {\n \"description\": {\n \"type\": \"string\",\n \"description\": \"The description of the todo item\"\n },\n \"title\": {\n \"description\": \"The title of the todo item\",\n \"type\": \"string\"\n },\n \"due_date\": {\n \"format\": \"date\",\n \"type\": \"string\",\n \"description\": \"The due date of the todo item\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"title\",\n \"due_date\"\n ]\n },\n \"description\": \"Create a new todo item\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "I need to create a new todo item.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, description, and due date for the todo item?", "role": "gpt" }, { "content": "Query: The title is \"Buy groceries\", description is \"Buy milk, eggs, and bread\", and the due date is \"2022-05-01\".", "role": "human" }, { "content": "[create_todo(title='Buy groceries', description='Buy milk, eggs, and bread', due_date='2022-05-01')]", "role": "gpt" }, { "content": "<query>\nNo, that's all for now. Thank you.\n</query>", "role": "human" }, { "content": "You're welcome! Don't hesitate to ask if you need any more help. Have a great day!", "role": "gpt" } ]
223
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>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_restaurants\",\n \"parameters\": {\n \"required\": [\n \"location\"\n ],\n \"properties\": {\n \"location\": {\n \"description\": \"The location of the restaurant\",\n \"type\": \"string\"\n },\n \"rating\": {\n \"description\": \"The minimum rating of the restaurant\",\n \"type\": \"number\"\n },\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"Search for restaurants based on specified criteria\"\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI'm in New York and I'm craving for some Italian food. Can you find a good restaurant for me?\n[END OF QUERY]", "role": "human" }, { "content": "[search_restaurants(location='New York', cuisine='Italian')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's great! Can you also find a restaurant with a minimum rating of 4.5 in Los Angeles?\n[END OF QUERY]", "role": "human" }, { "content": "[search_restaurants(location='Los Angeles', rating=4.5)]", "role": "gpt" } ]
224
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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"analyze_sentiment\",\n \"description\": \"Analyze the sentiment of a given text\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be analyzed\"\n }\n },\n \"required\": [\n \"text\"\n ]\n }\n }\n }\n]\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": "<query>\nHey, can you analyze the sentiment of this text for me? \"I am feeling really happy today!\"\n</query>", "role": "human" }, { "content": "[analyze_sentiment(text='I am feeling really happy today!')]", "role": "gpt" }, { "content": "### Instruction: That's cool! Can you also order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as ordering a pizza. I can assist you with tasks related to the functions provided to me, such as analyzing sentiment of a text.", "role": "gpt" } ]
225
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>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"description\": \"Text to analyze\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"text\"\n ]\n },\n \"description\": \"Analyze sentiment of a text\",\n \"name\": \"analyze_sentiment\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "### Instruction: Can you analyze the sentiment of this text for me? \"I am feeling really happy today because I got a promotion at work.\"", "role": "human" }, { "content": "[\n {\n \"name\": \"analyze_sentiment\",\n \"arguments\": {\n \"text\": \"I am feeling really happy today because I got a promotion at work.\"\n }\n }\n]", "role": "gpt" }, { "content": "คำถาม (Question): What about this one? \"I am really upset because my favorite team lost the match.\"", "role": "human" }, { "content": "[\n {\n \"name\": \"analyze_sentiment\",\n \"arguments\": {\n \"text\": \"I am really upset because my favorite team lost the match.\"\n }\n }\n]", "role": "gpt" } ]
226
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{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount for a given bill\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage tip to be given\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n }\n }\n]", "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 like ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate the tip amount for a given bill.", "role": "gpt" } ]
227
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text\",\n \"parameters\": {\n \"properties\": {\n \"text\": {\n \"description\": \"The text to encode in the QR code\",\n \"type\": \"string\"\n },\n \"size\": {\n \"type\": \"integer\",\n \"description\": \"The size of the QR code\"\n }\n },\n \"required\": [\n \"text\"\n ],\n \"type\": \"object\"\n }\n }\n }\n]\n[AVAILABLE TOOLS END]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "<query>\nHi, I need a QR code for my website.\n</query>", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "### Instruction: Yes, it's www.mywebsite.com.", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\"\n }\n }\n]", "role": "gpt" } ]
228
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[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly payment for a loan\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the loan\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The interest rate for the loan\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in years\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_todo\",\n \"description\": \"Create a todo item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the todo item\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The due date of the todo item\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```", "role": "system" }, { "content": "Query: Hi, I need help with calculating my loan payment.", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the amount of the loan, the interest rate, and the term of the loan in years?", "role": "gpt" }, { "content": "### Instruction: Sure, the loan amount is $200,000, the interest rate is 3.5%, and the loan term is 30 years.", "role": "human" }, { "content": "[calculate_loan_payment(loan_amount=200000, interest_rate=3.5, loan_term=30)]", "role": "gpt" } ]
229
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>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"event_name\", \"event_date\", \"event_time\"], \"type\": \"object\", \"properties\": {\"event_date\": {\"type\": \"string\", \"description\": \"The date of the event in YYYY-MM-DD format\"}, \"event_name\": {\"description\": \"The name of the event\", \"type\": \"string\"}, \"event_time\": {\"description\": \"The time of the event in HH:MM format\", \"type\": \"string\"}}}, \"name\": \"create_calendar_event\", \"description\": \"Create a new event in the calendar\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): I need to create a new event in my calendar.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the name, date, and time of the event?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe event is called \"Team Meeting\". It's on 2022-04-15 at 10:00.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"create_calendar_event\",\n \"arguments\": {\n \"event_name\": \"Team Meeting\",\n \"event_date\": \"2022-04-15\",\n \"event_time\": \"10:00\"\n }\n }\n]}", "role": "gpt" } ]
230
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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_number\",\n \"parameters\": {\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"properties\": {\n \"max\": {\n \"description\": \"The maximum value of the range\",\n \"type\": \"number\"\n },\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the range\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"Generate a random number within a specified range\"\n }\n }\n]\n</tools>\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: 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" }, { "content": "### Instruction: Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
231
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{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"items\"\n ],\n \"properties\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"quantity\",\n \"price\"\n ],\n \"properties\": {\n \"name\": {\n \"description\": \"The name of the item\",\n \"type\": \"string\"\n },\n \"price\": {\n \"description\": \"The price per unit of the item\",\n \"type\": \"number\"\n },\n \"quantity\": {\n \"description\": \"The quantity of the item\",\n \"type\": \"integer\"\n }\n }\n }\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice with item details and total amount\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "I need to generate an invoice for my customer. I sold 5 units of Product A at $10 each and 3 units of Product B at $20 each.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_invoice\",\n \"arguments\": {\n \"items\": [\n {\n \"name\": \"Product A\",\n \"quantity\": 5,\n \"price\": 10\n },\n {\n \"name\": \"Product B\",\n \"quantity\": 3,\n \"price\": 20\n }\n ]\n }\n }\n]}", "role": "gpt" } ]
232
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[\n {\n \"function\": {\n \"name\": \"translate_text\",\n \"description\": \"Translate text to another language\",\n \"parameters\": {\n \"required\": [\n \"text\",\n \"language\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"language\": {\n \"type\": \"string\",\n \"description\": \"The target language code, e.g. 'en' for English\"\n },\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be translated\"\n }\n }\n }\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"description\": \"Calculate the split tip amount for a bill\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\",\n \"party_size\"\n ],\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of the bill\"\n },\n \"party_size\": {\n \"description\": \"The number of people in the party\",\n \"type\": \"integer\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage tip to give\"\n }\n }\n },\n \"name\": \"calculate_tip_split\"\n },\n \"type\": \"function\"\n }\n]\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": "Query: Hi, I need to translate a sentence to French. The sentence is \"Hello, how are you?\"", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"Hello, how are you?\",\n \"language\": \"fr\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great, now can you translate \"I am fine, thank you\" into Spanish?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"I am fine, thank you\",\n \"language\": \"es\"\n }\n }\n]}", "role": "gpt" } ]
233
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### 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เครื่องมือ (Tools): [\n {\n \"function\": {\n \"description\": \"Calculate the monthly loan payment\",\n \"name\": \"calculate_loan_payment\",\n \"parameters\": {\n \"properties\": {\n \"loan_term\": {\n \"description\": \"The loan term in years\",\n \"type\": \"integer\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n },\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The loan amount\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need some help with calculating my loan payment.\n[END OF QUERY]", "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 $50000, the annual interest rate is 5% and the loan term is 10 years.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"loan_amount\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 10\n }\n }\n]}", "role": "gpt" } ]
234
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[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\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 shape for which to calculate the area (e.g., square, circle, triangle)\"\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 }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on various criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n },\n \"year\": {\n \"type\": \"integer\",\n \"description\": \"The year the movie was released\"\n },\n \"genre\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The genre(s) of the movie\"\n }\n },\n \"required\": []\n }\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): I need to calculate the area of a rectangle. The length is 5 units and the width is 3 units.", "role": "human" }, { "content": "[calculate_area(shape='rectangle', dimensions={'length': 5, 'width': 3})]", "role": "gpt" }, { "content": "คำถาม (Question): Now, I want to calculate the area of a circle with a radius of 4 units.", "role": "human" }, { "content": "[calculate_area(shape='circle', dimensions={'radius': 4})]", "role": "gpt" }, { "content": "คำถาม (Question): Lastly, I need to calculate the area of a triangle with a base of 6 units and height of 2 units.", "role": "human" }, { "content": "[calculate_area(shape='triangle', dimensions={'base': 6, 'height': 2})]", "role": "gpt" } ]
235
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\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 INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\n<tools>\n[\n {\n \"function\": {\n \"name\": \"search_recipes\",\n \"parameters\": {\n \"properties\": {\n \"ingredients\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients to search for\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"ingredients\"\n ]\n },\n \"description\": \"Search for recipes based on specified ingredients\"\n },\n \"type\": \"function\"\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: I have some chicken, broccoli, and cheese. What can I make with these?", "role": "human" }, { "content": "[\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"broccoli\",\n \"cheese\"\n ]\n }\n }\n]", "role": "gpt" } ]
236
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_movie\",\n \"description\": \"Search for a movie based on title\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the movie\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on the birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"description\": \"The birthdate of a person in yyyy-mm-dd format\"\n },\n \"current_date\": {\n \"type\": \"string\",\n \"description\": \"The current date in yyyy-mm-dd format\"\n }\n },\n \"required\": [\n \"birthdate\",\n \"current_date\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]\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": "Can you find a movie for me?", "role": "human" }, { "content": "Of course! Could you please provide me with the title of the movie?", "role": "gpt" }, { "content": "คำถาม (Question): The movie is called \"Inception\".", "role": "human" }, { "content": "[search_movie(title='Inception')]", "role": "gpt" } ]
237
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_name\",\n \"description\": \"Generate a random name\",\n \"parameters\": {}\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Search for news articles based on keywords\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"description\": \"The keywords to search for\",\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n }\n },\n \"required\": [\n \"keywords\"\n ]\n },\n \"name\": \"search_news_articles\"\n }\n }\n]\n[AVAILABLE TOOLS END]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "I need a random name for my new character in the novel I'm writing. Can you help?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_name\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
238
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 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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"send_email\",\n \"description\": \"Send an email\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"to\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Recipients of the email\"\n },\n \"cc\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"CC recipients of the email\"\n },\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"Subject of the email\"\n },\n \"body\": {\n \"type\": \"string\",\n \"description\": \"Body of the email\"\n }\n },\n \"required\": [\n \"to\",\n \"subject\",\n \"body\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount based on bill total and tip percentage\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_total\": {\n \"type\": \"number\",\n \"description\": \"The total amount of the bill\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of the tip to be given\"\n }\n },\n \"required\": [\n \"bill_total\",\n \"tip_percentage\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "I need to send an email to my team about the meeting tomorrow. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the email addresses of your team members, the subject of the email, and the content you want to include in the body of the email?", "role": "gpt" }, { "content": "### Instruction: Sure, the email addresses are team@company.com and manager@company.com. The subject should be \"Team Meeting Tomorrow\". And for the body, write \"Dear Team, Just a reminder about our meeting scheduled for tomorrow at 10 AM. Please be prepared with your weekly updates. Regards, [User's Name]\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"to\": [\n \"team@company.com\",\n \"manager@company.com\"\n ],\n \"subject\": \"Team Meeting Tomorrow\",\n \"body\": \"Dear Team, Just a reminder about our meeting scheduled for tomorrow at 10 AM. Please be prepared with your weekly updates. Regards, [User's Name]\"\n }\n }\n]}", "role": "gpt" } ]
239
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"to_currency\": {\"type\": \"string\", \"description\": \"The target currency\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The source currency\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"type\": \"object\"}, \"name\": \"convert_currency\", \"description\": \"Convert an amount from one currency to another\"}}]", "role": "system" }, { "content": "Hi, I have 100 Euros and I want to know how much it would be in US dollars.", "role": "human" }, { "content": "[\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 100,\n \"from_currency\": \"EUR\",\n \"to_currency\": \"USD\"\n }\n }\n]", "role": "gpt" }, { "content": "That's great. Can you also book a flight for me from Paris to New York?", "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 site or contacting your travel agent for assistance.", "role": "gpt" } ]
240
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[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"name\": \"send_email\", \"description\": \"Send an email to a recipient\", \"parameters\": {\"properties\": {\"recipient\": {\"description\": \"The email address of the recipient\", \"type\": \"string\"}, \"message\": {\"description\": \"The contents of the email\", \"type\": \"string\"}, \"subject\": {\"type\": \"string\", \"description\": \"The subject of the email\"}}, \"type\": \"object\", \"required\": [\"recipient\", \"subject\", \"message\"]}}}]\n[END OF AVAILABLE TOOLS]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "คำถาม (Question): I need to send an email to my boss. The recipient is boss@company.com. The subject should be \"Project Update\" and the message should be \"The project is on track and will be completed by the end of this week.\"", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Project Update', message='The project is on track and will be completed by the end of this week.')]", "role": "gpt" } ]
241
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 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\": \"Get a random joke\",\n \"parameters\": {},\n \"name\": \"get_joke\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Query: Can you 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 share a random joke with you. Would you like to hear one?", "role": "gpt" } ]
242
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]\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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"description\": \"The tip percentage\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n },\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount\"\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Can you please book a flight for me from New York to Los Angeles?", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to book flights. My current function is to calculate the tip amount based on the total bill amount and the tip percentage. Is there anything else I can assist you with?", "role": "gpt" } ]
243
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[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the area of a square or rectangle\",\n \"name\": \"calculate_area\",\n \"parameters\": {\n \"required\": [\n \"length\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"number\",\n \"description\": \"The length of the square or rectangle\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the rectangle (optional for square)\"\n }\n }\n }\n }\n }\n]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "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 the functions provided to me, which in this case is calculating the area of a square or rectangle.", "role": "gpt" } ]
244
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:\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 \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"principal\",\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 \"description\": \"The annual interest rate\",\n \"type\": \"number\"\n },\n \"principal\": {\n \"description\": \"The principal amount of the loan\",\n \"type\": \"number\"\n }\n }\n },\n \"name\": \"calculate_loan_payment\"\n }\n }\n]\n[AVAILABLE TOOLS END]", "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 loan term of 10 years.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"principal\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 10\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That's great. Thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
245
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[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\nHere List of functions in JSON format\n[\n {\n \"function\": {\n \"name\": \"calculate_volume\",\n \"parameters\": {\n \"required\": [\n \"object\",\n \"dimensions\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"object\": {\n \"description\": \"The type of 3D object (e.g. cube, sphere, cylinder)\",\n \"type\": \"string\"\n },\n \"dimensions\": {\n \"properties\": {},\n \"type\": \"object\"\n }\n }\n },\n \"description\": \"Calculate the volume of a 3D object\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"limit\": {\n \"description\": \"The maximum value in the Fibonacci sequence\",\n \"type\": \"integer\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"limit\"\n ]\n },\n \"name\": \"calculate_fibonacci_sequence\",\n \"description\": \"Calculate the Fibonacci sequence up to a given number\"\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to calculate the volume of a cube. The side length is 5 units.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_volume\",\n \"arguments\": {\n \"object\": \"cube\",\n \"dimensions\": {\n \"side\": 5\n }\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great, now I need to calculate the volume of a sphere with a radius of 3 units.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_volume\",\n \"arguments\": {\n \"object\": \"sphere\",\n \"dimensions\": {\n \"radius\": 3\n }\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other calculations or questions, feel free to ask.", "role": "gpt" } ]
246
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[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_contact\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"description\": \"The name of the contact\",\n \"type\": \"string\"\n },\n \"phone\": {\n \"description\": \"The phone number of the contact\",\n \"type\": \"string\"\n },\n \"email\": {\n \"description\": \"The email address of the contact\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"name\",\n \"phone\"\n ]\n },\n \"description\": \"Create a new contact\"\n }\n }\n]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "<query>\nI need to create a new contact for my friend John Doe. His phone number is 123-456-7890 and his email is johndoe@email.com.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"create_contact\",\n \"arguments\": {\n \"name\": \"John Doe\",\n \"phone\": \"123-456-7890\",\n \"email\": \"johndoe@email.com\"\n }\n }\n]", "role": "gpt" } ]
247
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount of money to 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]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to convert 500 US dollars to Euros. Can you help me with that?", "role": "human" }, { "content": "[convert_currency(amount=500, from_currency='USD', to_currency='EUR')]", "role": "gpt" } ]
248
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 \"function\": {\n \"description\": \"Calculate the area of a shape\",\n \"name\": \"calculate_area\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"shape\",\n \"dimensions\"\n ],\n \"properties\": {\n \"dimensions\": {\n \"required\": [\n \"length\",\n \"width\",\n \"radius\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the shape\"\n },\n \"length\": {\n \"type\": \"number\",\n \"description\": \"The length of the shape\"\n },\n \"radius\": {\n \"description\": \"The radius of the shape\",\n \"type\": \"number\"\n }\n }\n },\n \"shape\": {\n \"description\": \"The shape type (e.g. square, rectangle, circle)\",\n \"type\": \"string\"\n }\n }\n }\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"query\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"description\": \"The search query\",\n \"type\": \"string\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book (optional)\"\n }\n }\n },\n \"name\": \"search_book\",\n \"description\": \"Search for books based on title or author\"\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)]}```\n</format>", "role": "system" }, { "content": "### Instruction: I am looking for a book but I can't remember the exact title. It's something like \"The Old Man and the Sea\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_book\",\n \"arguments\": {\n \"query\": \"The Old Man and the Sea\"\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's the one! Can you also find books by the same author?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_book\",\n \"arguments\": {\n \"author\": \"Ernest Hemingway\"\n }\n }\n]}", "role": "gpt" } ]
249
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### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_age\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"birthdate\"\n ],\n \"properties\": {\n \"birthdate\": {\n \"description\": \"The birthdate of the person\",\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Calculate the age based on the birthdate\"\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]\nCan you book a flight for me?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with that. My current capabilities allow me to calculate ages based on birthdates. I don't have the ability to book flights or perform other external tasks.", "role": "gpt" } ]
250
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<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"description\": \"The length of the username\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"length\"\n ]\n },\n \"description\": \"Create a random username\",\n \"name\": \"create_random_username\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "### Instruction: Hi, I need a new username. Can you help me create one?", "role": "human" }, { "content": "Of course! How long would you like your username to be?", "role": "gpt" }, { "content": "Query: I would like it to be 10 characters long.", "role": "human" }, { "content": "[\n {\n \"name\": \"create_random_username\",\n \"arguments\": {\n \"length\": 10\n }\n }\n]", "role": "gpt" } ]
251
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>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"create_todo\", \"description\": \"Create a new todo item\", \"parameters\": {\"type\": \"object\", \"properties\": {\"due_date\": {\"description\": \"The due date of the todo item\", \"format\": \"date\", \"type\": \"string\"}, \"priority\": {\"enum\": [\"High\", \"Medium\", \"Low\"], \"description\": \"The priority of the todo item\", \"type\": \"string\"}, \"title\": {\"description\": \"The title of the todo item\", \"type\": \"string\"}, \"completed\": {\"description\": \"Indicates whether the todo item is completed\", \"default\": false, \"type\": \"boolean\"}}, \"required\": [\"title\", \"due_date\", \"priority\"]}}}]", "role": "system" }, { "content": "Query: I need to create a new todo item.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, due date, and priority of the todo item?", "role": "gpt" }, { "content": "<query>\nThe title is \"Finish Project\", the due date is \"2022-12-31\", and the priority is \"High\".\n</query>", "role": "human" }, { "content": "[create_todo(title='Finish Project', due_date='2022-12-31', priority='High')]", "role": "gpt" } ]
252
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\nAPI Function: [\n {\n \"function\": {\n \"name\": \"get_next_prime\",\n \"parameters\": {\n \"properties\": {\n \"number\": {\n \"type\": \"integer\",\n \"description\": \"The starting number\"\n }\n },\n \"required\": [\n \"number\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Get the next prime number after a given number\"\n },\n \"type\": \"function\"\n }\n]\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: What is the next prime number after 10?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_next_prime\",\n \"arguments\": {\n \"number\": 10\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nWhat about after 20?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_next_prime\",\n \"arguments\": {\n \"number\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: And after 100?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_next_prime\",\n \"arguments\": {\n \"number\": 100\n }\n }\n]}", "role": "gpt" } ]
253
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### Tools: [{\"function\": {\"parameters\": {\"required\": [\"grades\"], \"properties\": {\"grades\": {\"items\": {\"type\": \"object\", \"properties\": {\"credit_hours\": {\"description\": \"The credit hours for the course\", \"type\": \"integer\"}, \"course\": {\"type\": \"string\", \"description\": \"The course name\"}, \"grade\": {\"type\": \"string\", \"description\": \"The grade received in the course\"}}, \"required\": [\"course\", \"credit_hours\", \"grade\"]}, \"type\": \"array\"}}, \"type\": \"object\"}, \"description\": \"Calculate the Grade Point Average (GPA)\", \"name\": \"calculate_gpa\"}, \"type\": \"function\"}]\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: 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 calculating Grade Point Averages (GPA) based on the information provided. I don't have the ability to book flights or perform other external tasks.", "role": "gpt" } ]
254
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: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the final price after applying discount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage discount to be applied\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n }\n }\n]\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]\nI found a dress that I really like. It's originally priced at $200 but there's a 20% discount. Can you tell me how much it will cost after the discount?\n[END OF 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" } ]
255
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```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a token for password reset\", \"name\": \"generate_password_reset_token\", \"parameters\": {\"properties\": {\"user_id\": {\"type\": \"string\", \"description\": \"The user ID\"}}, \"required\": [\"user_id\"], \"type\": \"object\"}}}]", "role": "system" }, { "content": "### Instruction: Hi, I forgot my password and need to reset it. Can you help me?", "role": "human" }, { "content": "Of course, I can help you with that. I will generate a password reset token for you. Could you please provide me with your user ID?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nSure, my user ID is 12345.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_password_reset_token\",\n \"arguments\": {\n \"user_id\": \"12345\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great, thanks! Can you also help me book a flight to New York?", "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 suggest you use a trusted travel booking website or app for that.", "role": "gpt" } ]
256
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\nTools: [{\"function\": {\"description\": \"Generate a QR code for a given text\", \"parameters\": {\"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to be encoded in the QR code\"}}, \"type\": \"object\", \"required\": [\"text\"]}, \"name\": \"generate_qr_code\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need 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": "Sure, my website URL is www.mywebsite.com.", "role": "human" }, { "content": "[generate_qr_code(text='www.mywebsite.com')]", "role": "gpt" } ]
257
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[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"description\": \"Search for a product in the inventory\", \"name\": \"search_product\", \"parameters\": {\"required\": [\"product_name\"], \"properties\": {\"price_range\": {\"type\": \"object\", \"required\": [\"min_price\", \"max_price\"], \"properties\": {\"min_price\": {\"description\": \"The minimum price of the product\", \"type\": \"number\"}, \"max_price\": {\"type\": \"number\", \"description\": \"The maximum price of the product\"}}}, \"product_name\": {\"type\": \"string\", \"description\": \"The name of the product\"}, \"category\": {\"type\": \"string\", \"description\": \"The category of the product\"}}, \"type\": \"object\"}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"content\": {\"type\": \"string\", \"description\": \"The content of the note\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the note\"}}, \"type\": \"object\", \"required\": [\"title\", \"content\"]}, \"description\": \"Create a new note\", \"name\": \"create_note\"}}]\n[END OF AVAILABLE TOOLS]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "### Instruction: I need to create a note for my meeting tomorrow.", "role": "human" }, { "content": "Sure, I can help with that. What would you like the title and content of the note to be?", "role": "gpt" }, { "content": "Query: The title should be \"Team Meeting\" and the content should be \"Discuss project updates, assign new tasks, and review deadlines.\"", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_note\",\n \"arguments\": {\n \"title\": \"Team Meeting\",\n \"content\": \"Discuss project updates, assign new tasks, and review deadlines.\"\n }\n }\n]}", "role": "gpt" } ]
258
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[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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_books\",\n \"description\": \"Search for books based on title or author\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the book\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "Query: I am looking for a book but I can't remember the full title. I think it had the word \"Sun\" in it and it was written by an author named Ernest.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"title\": \"Sun\",\n \"author\": \"Ernest\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Yes, that's the one! Thank you.", "role": "human" }, { "content": "You're welcome! If you need help with anything else, feel free to ask.", "role": "gpt" } ]
259
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Get the current stock price for a given company\",\n \"name\": \"get_stock_price\",\n \"parameters\": {\n \"properties\": {\n \"company\": {\n \"description\": \"The name of the company\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"company\"\n ]\n }\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": "<query>\nHi, can you tell me the current stock price for Apple?\n</query>", "role": "human" }, { "content": "[get_stock_price(company='Apple')]", "role": "gpt" }, { "content": "That's great. Can you also tell me the stock price for Microsoft?", "role": "human" }, { "content": "[get_stock_price(company='Microsoft')]", "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" } ]
260
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```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[AVAILABLE TOOLS START]\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 of the person in kilograms\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the person in meters\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "Query: Hi, I would like to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 70,\n \"height\": 1.75\n }\n }\n]}", "role": "gpt" } ]
261
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### 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 \"text\": {\n \"description\": \"The text to be translated\",\n \"type\": \"string\"\n },\n \"target_language\": {\n \"description\": \"The target language for the translation\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"text\",\n \"source_language\",\n \"target_language\"\n ]\n },\n \"description\": \"Translate text from one language to another\",\n \"name\": \"translate_text\"\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": "[BEGIN OF QUERY]\nI have a sentence in French that I need translated to English. The sentence is \"Je suis très heureux de vous rencontrer.\"\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"Je suis tr\\u00e8s heureux de vous rencontrer.\",\n \"source_language\": \"fr\",\n \"target_language\": \"en\"\n }\n }\n]}", "role": "gpt" }, { "content": "Thank you! Now, can you translate \"I love learning new languages\" from English to Spanish?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"I love learning new languages\",\n \"source_language\": \"en\",\n \"target_language\": \"es\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThat's great! Thanks for your help.\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other sentences you need translated, feel free to ask.", "role": "gpt" } ]
262
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[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: [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"query\",\n \"type\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"description\": \"The type of search (ingredients or cuisine)\",\n \"type\": \"string\"\n },\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query\"\n }\n }\n },\n \"name\": \"search_recipes\",\n \"description\": \"Search for recipes based on ingredients or cuisine\"\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you order a pizza for me from the nearest pizza place?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to perform external tasks like ordering food. My current function allows me to search for recipes based on ingredients or cuisine. If you need help with that, feel free to ask!", "role": "gpt" } ]
263
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\n[\n {\n \"function\": {\n \"description\": \"Calculate the distance between two points\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"point2\": {\n \"required\": [\n \"latitude\",\n \"longitude\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"latitude\": {\n \"description\": \"The latitude of point 2\",\n \"type\": \"number\"\n },\n \"longitude\": {\n \"type\": \"number\",\n \"description\": \"The longitude of point 2\"\n }\n }\n },\n \"point1\": {\n \"properties\": {\n \"longitude\": {\n \"description\": \"The longitude of point 1\",\n \"type\": \"number\"\n },\n \"latitude\": {\n \"description\": \"The latitude of point 1\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"latitude\",\n \"longitude\"\n ]\n }\n },\n \"required\": [\n \"point1\",\n \"point2\"\n ]\n },\n \"name\": \"calculate_distance\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "<query>\nHi, I need to know the distance between New York and Los Angeles. Can you help me with that?\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"point1\": {\n \"latitude\": 40.7128,\n \"longitude\": -74.006\n },\n \"point2\": {\n \"latitude\": 34.0522,\n \"longitude\": -118.2437\n }\n }\n }\n]", "role": "gpt" } ]
264
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[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The tip percentage\"\n },\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n }\n }\n },\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount for a bill\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS 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]", "role": "system" }, { "content": "### Instruction: Can you please book a flight for me from New York to Los Angeles?", "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 calculate the tip amount for a bill. If you need help with that, feel free to ask!", "role": "gpt" } ]
265
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>\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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_news\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"category\"\n ],\n \"properties\": {\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country for news sources\"\n },\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The news category\"\n }\n }\n },\n \"description\": \"Get the latest news articles\"\n }\n }\n]", "role": "system" }, { "content": "Query: Can you get me the latest news on technology from the United States?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_news\",\n \"arguments\": {\n \"category\": \"technology\",\n \"country\": \"United States\"\n }\n }\n]}", "role": "gpt" }, { "content": "That's great! Can you now get me the latest news on sports from the United Kingdom?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_news\",\n \"arguments\": {\n \"category\": \"sports\",\n \"country\": \"United Kingdom\"\n }\n }\n]}", "role": "gpt" } ]
266
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### Tools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location of the hotel\"}, \"price_range\": {\"type\": \"string\", \"description\": \"The price range of the hotel (optional)\"}}}, \"description\": \"Find a hotel based on location and price range\", \"name\": \"find_hotel\"}}]\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```", "role": "system" }, { "content": "I need a hotel in New York within a moderate price range.", "role": "human" }, { "content": "[find_hotel(location='New York', price_range='moderate')]", "role": "gpt" }, { "content": "Query: That sounds great! Can you find another option just in case?", "role": "human" }, { "content": "[find_hotel(location='New York', price_range='moderate')]", "role": "gpt" } ]
267
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<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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate age based on birthdate\",\n \"name\": \"calculate_age\",\n \"parameters\": {\n \"properties\": {\n \"birthdate\": {\n \"description\": \"Birthdate in format 'YYYY-MM-DD'\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"birthdate\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: Hi, can you help me calculate my age? I was born on 1990-05-15.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birthdate\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" }, { "content": "Great, thanks! Can you also help me book a flight to New York?", "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 limited to calculating ages based on birthdates. I recommend using a trusted travel website or app to book your flight.", "role": "gpt" } ]
268
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เครื่องมือ (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 discount applied to the product\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI saw a dress that I liked. It was originally priced at $100 but it's on a 20% discount. How much will it cost now?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_discount(original_price=100, discount_percentage=20)]", "role": "gpt" } ]
269
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[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\": \"Translate text from one language to another\",\n \"name\": \"translate_text\",\n \"parameters\": {\n \"properties\": {\n \"source_language\": {\n \"type\": \"string\",\n \"description\": \"The source language of the text\"\n },\n \"text\": {\n \"description\": \"The text to be translated\",\n \"type\": \"string\"\n },\n \"target_language\": {\n \"description\": \"The target language for translation\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"text\",\n \"source_language\",\n \"target_language\"\n ]\n }\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the BMI (Body Mass Index)\",\n \"parameters\": {\n \"required\": [\n \"weight\",\n \"height\"\n ],\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to calculate my BMI. I weigh 70 kg and my height is 1.75 m.", "role": "human" }, { "content": "[calculate_bmi(weight=70, height=1.75)]", "role": "gpt" } ]
270
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เครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_news\",\n \"description\": \"Search for news articles\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Keywords to search for\"\n },\n \"from_date\": {\n \"type\": \"string\",\n \"description\": \"The starting date for the search\"\n },\n \"to_date\": {\n \"type\": \"string\",\n \"description\": \"The ending date for the search\"\n }\n }\n }\n }\n }\n]\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]", "role": "system" }, { "content": "Query: Can you find me some news articles about the Mars Rover from the last week?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_news\",\n \"arguments\": {\n \"keywords\": [\n \"Mars Rover\"\n ],\n \"from_date\": \"2022-03-01\",\n \"to_date\": \"2022-03-08\"\n }\n }\n]}", "role": "gpt" } ]
271
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>\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### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in years\"\n },\n \"interest_rate\": {\n \"description\": \"The annual interest rate of the loan\",\n \"type\": \"number\"\n },\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The principal amount of the loan\"\n }\n },\n \"required\": [\n \"principal\",\n \"interest_rate\",\n \"term\"\n ]\n },\n \"name\": \"calculate_loan_payment\"\n }\n }\n]", "role": "system" }, { "content": "<query>\nHi, I need some help with a loan I'm considering.\n</query>", "role": "human" }, { "content": "Of course, I'd be happy to help. Could you please provide me with the principal amount of the loan, the annual interest rate, and the term of the loan in years?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nSure, the principal is $200,000, the interest rate is 3.5%, and the term is 30 years.\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_loan_payment(principal=200000, interest_rate=3.5, term=30)]", "role": "gpt" }, { "content": "### Instruction: That's great. Could you also help me find a good real estate agent in my area?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the ability to perform external tasks such as finding a real estate agent. I recommend doing a local search or asking for recommendations from friends or family.", "role": "gpt" } ]
272
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### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_todo\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"task\"\n ],\n \"properties\": {\n \"due_date\": {\n \"format\": \"date\",\n \"type\": \"string\",\n \"description\": \"The due date of the task\"\n },\n \"task\": {\n \"type\": \"string\",\n \"description\": \"The task description\"\n }\n }\n },\n \"description\": \"Create a new todo item\"\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": "I need to create a new todo item.", "role": "human" }, { "content": "Sure, I can help with that. Could you please tell me the task description and the due date?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe task is to buy groceries and the due date is 2022-03-15.\n[END OF QUERY]", "role": "human" }, { "content": "[create_todo(task='buy groceries', due_date='2022-03-15')]", "role": "gpt" } ]
273
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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Search for books based on criteria\",\n \"name\": \"search_books\",\n \"parameters\": {\n \"properties\": {\n \"title\": {\n \"description\": \"The title of the book\",\n \"type\": \"string\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the book\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book\"\n }\n },\n \"type\": \"object\"\n }\n }\n }\n]\n</tools>\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI am looking for a book but I can't remember the title. The author's name is George Orwell and it's a dystopian novel.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"author\": \"George Orwell\",\n \"genre\": \"dystopian\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Yes, it was 1984. Thank you!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
274
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:\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[\n {\n \"function\": {\n \"description\": \"Calculate the monthly payment for a mortgage\",\n \"parameters\": {\n \"properties\": {\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate of the mortgage\"\n },\n \"loan_term\": {\n \"description\": \"The loan term in years\",\n \"type\": \"integer\"\n },\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The loan amount\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n },\n \"name\": \"calculate_mortgage_payment\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need help with calculating my mortgage payment. I have a loan amount of $200,000, an annual interest rate of 3.5%, and a loan term of 30 years.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\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" }, { "content": "### Instruction: That's great! Can you help me calculate the payment if I change the loan term to 15 years?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_mortgage_payment\",\n \"arguments\": {\n \"loan_amount\": 200000,\n \"interest_rate\": 3.5,\n \"loan_term\": 15\n }\n }\n]}", "role": "gpt" } ]
275
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:\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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Get details about a specific movie\",\n \"parameters\": {\n \"required\": [\n \"title\",\n \"year\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"year\": {\n \"type\": \"integer\",\n \"description\": \"The release year of the movie\"\n },\n \"title\": {\n \"description\": \"The title of the movie\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"get_movie_details\"\n }\n }\n]", "role": "system" }, { "content": "<query>\nCan you tell me about the movie \"Inception\" released in 2010?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Inception\",\n \"year\": 2010\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That sounds interesting. Can you tell me about \"The Dark Knight\" from 2008?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"The Dark Knight\",\n \"year\": 2008\n }\n }\n]}", "role": "gpt" } ]
276
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:\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### Tools: [\n {\n \"function\": {\n \"description\": \"Translate text from one language to another\",\n \"parameters\": {\n \"required\": [\n \"text\",\n \"source_language\",\n \"target_language\"\n ],\n \"properties\": {\n \"source_language\": {\n \"description\": \"The source language code\",\n \"type\": \"string\"\n },\n \"target_language\": {\n \"type\": \"string\",\n \"description\": \"The target language code\"\n },\n \"text\": {\n \"description\": \"The text to translate\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"translate_text\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI have a sentence in French that I need translated to English. The sentence is \"Je suis très heureux de vous rencontrer.\"\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"Je suis tr\\u00e8s heureux de vous rencontrer.\",\n \"source_language\": \"fr\",\n \"target_language\": \"en\"\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThank you! Now, can you translate \"I love learning new languages\" from English to Spanish?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"I love learning new languages\",\n \"source_language\": \"en\",\n \"target_language\": \"es\"\n }\n }\n]}", "role": "gpt" } ]
277
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 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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount for a bill\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip to be given\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: Hi, I need help with calculating the tip for my bill. The total amount is $100 and I want to leave a 15% tip.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 100,\n \"tip_percentage\": 15\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great, thanks! Can you also book a taxi for me to the airport?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking a taxi. However, I can assist you with information and calculations. Is there anything else you need help with?", "role": "gpt" } ]
278
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 \"name\": \"create_todo\",\n \"parameters\": {\n \"required\": [\n \"title\",\n \"due_date\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"due_date\": {\n \"description\": \"The due date of the todo item\",\n \"type\": \"string\",\n \"format\": \"date\"\n },\n \"description\": {\n \"description\": \"The description of the todo item\",\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the todo item\"\n },\n \"priority\": {\n \"type\": \"integer\",\n \"description\": \"The priority of the todo item\"\n }\n }\n },\n \"description\": \"Create a new todo item\"\n },\n \"type\": \"function\"\n }\n]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>", "role": "system" }, { "content": "I need to create a new todo item.", "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": "### Instruction: The title is \"Buy groceries\", description is \"Buy milk, eggs, and bread\", due date is \"2022-04-30\", and priority is 1.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"create_todo\",\n \"arguments\": {\n \"title\": \"Buy groceries\",\n \"description\": \"Buy milk, eggs, and bread\",\n \"due_date\": \"2022-04-30\",\n \"priority\": 1\n }\n }\n]}", "role": "gpt" } ]
279
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_factorial\",\n \"description\": \"Calculate the factorial of a number\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"number\": {\n \"type\": \"integer\",\n \"description\": \"The number to calculate the factorial of\"\n }\n },\n \"required\": [\n \"number\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]\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": "Query: Hi, I need to calculate the factorial of 5. Can you help me with that?", "role": "human" }, { "content": "[calculate_factorial(number=5)]", "role": "gpt" } ]
280
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"convert_currency\",\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ],\n \"properties\": {\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The source currency\"\n },\n \"to_currency\": {\n \"description\": \"The target currency\",\n \"type\": \"string\"\n }\n }\n }\n }\n }\n]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to convert 500 US dollars to Euros. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 500,\n \"from_currency\": \"USD\",\n \"to_currency\": \"EUR\"\n }\n }\n]}", "role": "gpt" } ]
281
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[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"encrypt_text\", \"description\": \"Encrypt a given text using a specific algorithm\", \"parameters\": {\"properties\": {\"algorithm\": {\"description\": \"The encryption algorithm to be used\", \"type\": \"string\"}, \"text\": {\"type\": \"string\", \"description\": \"The text to be encrypted\"}}, \"type\": \"object\", \"required\": [\"text\", \"algorithm\"]}}}]", "role": "system" }, { "content": "Query: Can you please order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I'm not equipped to perform external tasks such as ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can help you encrypt a text using a specific algorithm.", "role": "gpt" } ]
282
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[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the random number\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum value of the random number\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]\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": "### Instruction: I need a random number between 1 and 100.", "role": "human" }, { "content": "[generate_random_number(min=1, max=100)]", "role": "gpt" }, { "content": "Can you generate another random number but this time between 200 and 300?", "role": "human" }, { "content": "[generate_random_number(min=200, max=300)]", "role": "gpt" }, { "content": "Great, thanks for your help!", "role": "human" }, { "content": "You're welcome! If you need any more random numbers, just let me know.", "role": "gpt" } ]
283
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 \"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]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nI have some chicken, broccoli, and cheese. What can I make with these?\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"broccoli\",\n \"cheese\"\n ]\n }\n }\n]}", "role": "gpt" } ]
284
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\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 INSTRUCTION END]\n\n### Tools: [{\"function\": {\"parameters\": {\"required\": [\"amount\", \"tax_rate\"], \"type\": \"object\", \"properties\": {\"tax_rate\": {\"type\": \"number\", \"description\": \"The tax rate in percentage\"}, \"amount\": {\"description\": \"The total amount\", \"type\": \"number\"}}}, \"description\": \"Calculate the sales tax for a given amount\", \"name\": \"calculate_sales_tax\"}, \"type\": \"function\"}]\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]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to calculate the sales tax for an amount of $500 with a tax rate of 7%.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_sales_tax\",\n \"arguments\": {\n \"amount\": 500,\n \"tax_rate\": 7\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, thanks! Now, what would be the sales tax for $1000 at the same rate?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_sales_tax\",\n \"arguments\": {\n \"amount\": 1000,\n \"tax_rate\": 7\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThank you for your help!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
285
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\n[{\"function\": {\"description\": \"Calculate the discount amount based on the original price\", \"name\": \"calculate_discount\", \"parameters\": {\"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"type\": \"integer\", \"description\": \"The percentage of discount to be applied\"}}, \"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): Hi, 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 I will save?", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" } ]
286
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]\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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title, genre, or actor\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"search_query\": {\n \"type\": \"string\",\n \"description\": \"The search query for movies\"\n },\n \"search_by\": {\n \"type\": \"string\",\n \"description\": \"The field to search by (e.g. 'title', 'genre', 'actor')\"\n }\n },\n \"required\": [\n \"search_query\",\n \"search_by\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "### Instruction: I'm looking for movies with Tom Hanks.", "role": "human" }, { "content": "[search_movies(search_query='Tom Hanks', search_by='actor')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat! Now, can you find movies in the genre of comedy?\n[END OF QUERY]", "role": "human" }, { "content": "[search_movies(search_query='comedy', search_by='genre')]", "role": "gpt" } ]
287
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>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"description\": \"Convert one currency to another\",\n \"name\": \"convert_currency\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of conversion (optional)\"\n },\n \"from_currency\": {\n \"type\": \"string\",\n \"description\": \"The currency to convert from\"\n },\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to convert\"\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 \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"query\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The movie title or keyword\"\n }\n }\n },\n \"name\": \"search_movie\",\n \"description\": \"Search for a movie based on title or keyword\"\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I'm looking for a movie but I can't remember the full title. It has the word \"star\" in it.", "role": "human" }, { "content": "[\n {\n \"name\": \"search_movie\",\n \"arguments\": {\n \"query\": \"star\"\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: Yes, it was \"A Star is Born\". Thank you!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
288
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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_random_fact\",\n \"description\": \"Get a random fact\",\n \"parameters\": {}\n }\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": "คำถาม (Question): I'm bored. Can you tell me something interesting?", "role": "human" }, { "content": "[get_random_fact()]", "role": "gpt" } ]
289
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 AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the area of a geometric shape\",\n \"name\": \"calculate_area\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"dimensions\": {\n \"properties\": {\n \"length\": {\n \"description\": \"The length of the shape\",\n \"type\": \"number\"\n },\n \"radius\": {\n \"description\": \"The radius of the shape\",\n \"type\": \"number\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the shape\"\n }\n },\n \"type\": \"object\",\n \"description\": \"The dimensions of the shape\"\n },\n \"shape\": {\n \"type\": \"string\",\n \"description\": \"The type of shape, e.g. square, circle\"\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI have a rectangle and I want to know its area. The length is 5 units and the width is 3 units.\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_area(shape='rectangle', dimensions={'length': 5, 'width': 3})]", "role": "gpt" }, { "content": "<query>\nThat's great! Now, I have a circle with a radius of 4 units. Can you calculate its area?\n</query>", "role": "human" }, { "content": "[calculate_area(shape='circle', dimensions={'radius': 4})]", "role": "gpt" } ]
290
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 \"description\": \"Generate a random number within a range\",\n \"parameters\": {\n \"properties\": {\n \"min\": {\n \"description\": \"The minimum value of the range\",\n \"type\": \"integer\"\n },\n \"max\": {\n \"description\": \"The maximum value of the range\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"generate_random_number\"\n }\n }\n]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "Can you 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" } ]
291
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[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\n[AVAILABLE TOOLS START]\n[\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 },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "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. In this case, I can help you generate a random password.", "role": "gpt" } ]
292
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>\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[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"n\": {\n \"description\": \"The number of terms in the sequence\",\n \"type\": \"integer\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"n\"\n ]\n },\n \"name\": \"calculate_fibonacci\",\n \"description\": \"Calculate the Fibonacci sequence\"\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need help with the Fibonacci sequence.", "role": "human" }, { "content": "Of course! I can help you calculate the Fibonacci sequence. How many terms would you like to calculate?", "role": "gpt" }, { "content": "คำถาม (Question): I would like to calculate the first 10 terms.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_fibonacci\",\n \"arguments\": {\n \"n\": 10\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's great! Now, can you calculate the first 15 terms?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_fibonacci\",\n \"arguments\": {\n \"n\": 15\n }\n }\n]}", "role": "gpt" }, { "content": "Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
293
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:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\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 the birth date\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birth_date\": {\n \"type\": \"string\",\n \"description\": \"The birth date in yyyy-mm-dd format\"\n }\n },\n \"required\": [\n \"birth_date\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_contact\",\n \"description\": \"Create a new contact in the address book\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the contact\"\n },\n \"phone\": {\n \"type\": \"string\",\n \"description\": \"The phone number of the contact\"\n },\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address of the contact\"\n }\n },\n \"required\": [\n \"name\",\n \"phone\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birth_date\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" } ]
294
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### Tools: [\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 },\n \"required\": [\n \"length\"\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": "[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 the functions provided to me. In this case, I can help you generate a random password.", "role": "gpt" } ]
295
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เครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"name\": \"generate_random_quote\", \"description\": \"Generate a random quote\", \"parameters\": {}}}]\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 need some inspiration. Can you give me a quote?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_quote\",\n \"arguments\": {}\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That's a great quote! Can you give me another one?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_quote\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
296
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>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\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 \"description\": \"The currency to convert to\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ]\n },\n \"name\": \"convert_currency\",\n \"description\": \"Convert an amount from one currency to another\"\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 as an AI, I don't have the capability to book flights or perform external tasks. My current function allows me to convert currency amounts. If you need help with that, feel free to ask!", "role": "gpt" } ]
297
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\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 with specified length and complexity\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n },\n \"complexity\": {\n \"type\": \"string\",\n \"description\": \"The complexity level of the password (low, medium, high)\"\n }\n },\n \"required\": [\n \"length\",\n \"complexity\"\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": "คำถาม (Question): 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 what level of complexity do you prefer: low, medium, or high?", "role": "gpt" }, { "content": "Query: I would like a password that is 12 characters long and has high complexity.", "role": "human" }, { "content": "[generate_random_password(length=12, complexity='high')]", "role": "gpt" } ]
298
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>\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\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Create a new todo item\", \"name\": \"create_todo\", \"parameters\": {\"required\": [\"task\", \"category\", \"due_date\"], \"type\": \"object\", \"properties\": {\"category\": {\"description\": \"The category of the todo\", \"type\": \"string\"}, \"task\": {\"description\": \"The task description\", \"type\": \"string\"}, \"due_date\": {\"type\": \"string\", \"description\": \"The due date of the todo\", \"format\": \"date\"}}}}}]", "role": "system" }, { "content": "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 in creating a to-do list item to order a pizza if you'd like.", "role": "gpt" } ]
299
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[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"bill_amount\", \"tip_percentage\"], \"properties\": {\"tip_percentage\": {\"description\": \"The tip percentage to apply\", \"type\": \"number\"}, \"bill_amount\": {\"type\": \"number\", \"description\": \"The total bill amount\"}}, \"type\": \"object\"}, \"description\": \"Calculate the tip amount\", \"name\": \"calculate_tip\"}}]\n[END OF AVAILABLE TOOLS]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "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 such as ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate the tip amount for a given bill.", "role": "gpt" } ]
300