dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
77.6k
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_calendar_event\",\n \"description\": \"Create a calendar event with date, time, and description\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"date\": {\n \"type\": \"string\",\n \"description\": \"The date of the event\"\n },\n \"time\": {\n \"type\": \"string\",\n \"description\": \"The time of the event\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"The description of the event\"\n }\n },\n \"required\": [\n \"date\",\n \"time\",\n \"description\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_todo\",\n \"description\": \"Create a new todo item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"task\": {\n \"type\": \"string\",\n \"description\": \"The task description\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The due date of the task\"\n }\n },\n \"required\": [\n \"task\",\n \"due_date\"\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: I need to create a calendar event for my meeting next week.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the date, time, and a brief description of the meeting?", "role": "gpt" }, { "content": "Query: The meeting is on 15th of next month at 10 AM. It's a project review meeting.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"create_calendar_event\",\n \"arguments\": {\n \"date\": \"15th of next month\",\n \"time\": \"10 AM\",\n \"description\": \"Project review meeting\"\n }\n }\n]}", "role": "gpt" } ]
77,501
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\nTools: [\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"num1\",\n \"num2\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"num2\": {\n \"description\": \"The second number\",\n \"type\": \"integer\"\n },\n \"num1\": {\n \"description\": \"The first number\",\n \"type\": \"integer\"\n }\n }\n },\n \"name\": \"add_numbers\",\n \"description\": \"Add two numbers\"\n },\n \"type\": \"function\"\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": "Hi, I need some help with a math problem.", "role": "human" }, { "content": "Of course! I'd be happy to help. What's the problem?", "role": "gpt" }, { "content": "### Instruction: I need to add 45 and 67. Can you do that?", "role": "human" }, { "content": "[add_numbers(num1=45, num2=67)]", "role": "gpt" } ]
77,502
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\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\": \"Title of the note\"\n },\n \"content\": {\n \"type\": \"string\",\n \"description\": \"Content of the note\"\n }\n },\n \"required\": [\n \"title\",\n \"content\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate 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[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: 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": "คำถาม (Question): The title should be \"Team Meeting\" and the content should be \"Discuss project updates, budget allocation, and next steps.\"", "role": "human" }, { "content": "[create_note(title='Team Meeting', content='Discuss project updates, budget allocation, and next steps.')]", "role": "gpt" } ]
77,503
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nAPI Function: [\n {\n \"function\": {\n \"name\": \"search_movie\",\n \"description\": \"Search for a movie and get details\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"title\"\n ],\n \"properties\": {\n \"year\": {\n \"description\": \"The year of release of the movie\",\n \"type\": \"integer\"\n },\n \"title\": {\n \"description\": \"The title of the movie\",\n \"type\": \"string\"\n }\n }\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hey, can you find me some information about the movie \"Inception\"?", "role": "human" }, { "content": "[\n {\n \"name\": \"search_movie\",\n \"arguments\": {\n \"title\": \"Inception\"\n }\n }\n]", "role": "gpt" }, { "content": "<query>\nThat's great! Can you also book a ticket for the same movie at my nearest cinema?\n</query>", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking movie tickets. I suggest using a movie ticket booking app or website for this task.", "role": "gpt" } ]
77,504
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[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 \"include_symbols\": {\n \"type\": \"boolean\",\n \"description\": \"Include symbols in the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS 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]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need a new password. Can you generate one for me?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help with that. How long would you like your password to be?", "role": "gpt" }, { "content": "### Instruction: Make it 12 characters long.", "role": "human" }, { "content": "Would you like to include symbols in your password?", "role": "gpt" }, { "content": "Yes, include symbols.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_password\",\n \"arguments\": {\n \"length\": 12,\n \"include_symbols\": true\n }\n }\n]}", "role": "gpt" } ]
77,505
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### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"required\": [\"location1\", \"location2\"], \"properties\": {\"location2\": {\"type\": \"string\", \"description\": \"The second location\"}, \"location1\": {\"description\": \"The first location\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Calculate the distance between two locations\"}}]", "role": "system" }, { "content": "### Instruction: Can you tell me the distance between New York and Los Angeles?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"New York\",\n \"location2\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: What about the distance from London to Paris?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"London\",\n \"location2\": \"Paris\"\n }\n }\n]}", "role": "gpt" }, { "content": "And from Tokyo to Sydney?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"Tokyo\",\n \"location2\": \"Sydney\"\n }\n }\n]}", "role": "gpt" } ]
77,506
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"date_of_birth\"\n ],\n \"properties\": {\n \"date_of_birth\": {\n \"type\": \"string\",\n \"description\": \"The date of birth in format YYYY-MM-DD\"\n }\n }\n },\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on date of birth\"\n }\n }\n]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "<query>\nCan you please book a flight for me from New York to London?\n</query>", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with that. My current capabilities are limited to the functions provided to me. In this case, I can calculate age based on a date of birth. Unfortunately, I don't have the ability to book flights as it's an external task and no function for that task has been provided to me.", "role": "gpt" } ]
77,507
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{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\nAPI Function: [\n {\n \"function\": {\n \"name\": \"analyze_sentiment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"description\": \"The text to be analyzed\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"text\"\n ]\n },\n \"description\": \"Analyze sentiment of a text\"\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": "{\"tool_functions\": [\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": "### Instruction: That's correct! How about this one? \"I am really upset because I lost my wallet.\"", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"analyze_sentiment\",\n \"arguments\": {\n \"text\": \"I am really upset because I lost my wallet.\"\n }\n }\n]}", "role": "gpt" } ]
77,508
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 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 {\n \"function\": {\n \"description\": \"Generate an invoice for a transaction\",\n \"name\": \"generate_invoice\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"amount\": {\n \"description\": \"The amount of the transaction\",\n \"type\": \"number\"\n },\n \"customer_name\": {\n \"description\": \"The name of the customer\",\n \"type\": \"string\"\n },\n \"transaction_id\": {\n \"type\": \"string\",\n \"description\": \"The ID of the transaction\"\n }\n },\n \"required\": [\n \"transaction_id\",\n \"amount\",\n \"customer_name\"\n ]\n }\n },\n \"type\": \"function\"\n }\n]\n</tools>", "role": "system" }, { "content": "Hi, I need to generate an invoice for a transaction I just made.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the transaction ID, the amount of the transaction, and the customer name?", "role": "gpt" }, { "content": "Query: Yes, the transaction ID is TXN1234, the amount is $500, and the customer name is John Doe.", "role": "human" }, { "content": "[generate_invoice(transaction_id='TXN1234', amount=500, customer_name='John Doe')]", "role": "gpt" }, { "content": "### Instruction: Great, thank you. Can you also arrange for a courier to deliver this invoice?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to arrange for a courier. I suggest you contact a local courier service for this task.", "role": "gpt" } ]
77,509
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"title\",\n \"start_time\",\n \"end_time\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"start_time\": {\n \"description\": \"The start time of the event\",\n \"type\": \"string\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the event\"\n },\n \"title\": {\n \"description\": \"The title of the event\",\n \"type\": \"string\"\n },\n \"end_time\": {\n \"description\": \"The end time of the event\",\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Create a new calendar event\",\n \"name\": \"create_calendar_event\"\n }\n }\n]", "role": "system" }, { "content": "Hey, 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 title, start time, end time, and location of the event?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe title is \"Project Meeting\", it will start at 10:00 AM and end at 11:30 AM tomorrow. The location is the conference room.\n[END OF QUERY]", "role": "human" }, { "content": "[create_calendar_event(title='Project Meeting', start_time='10:00 AM', end_time='11:30 AM', location='conference room')]", "role": "gpt" } ]
77,510
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[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[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"description\": \"Calculate the average of a list of numbers\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"numbers\"\n ],\n \"properties\": {\n \"numbers\": {\n \"items\": {\n \"type\": \"number\"\n },\n \"type\": \"array\",\n \"description\": \"The list of numbers\"\n }\n }\n },\n \"name\": \"calculate_average\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "<query>\nHi, I have a list of numbers and I need to find the average. Can you help me with that?\n</query>", "role": "human" }, { "content": "Of course, I can help you with that. Please provide me with the list of numbers.", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe numbers are 5, 10, 15, 20, 25.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_average\",\n \"arguments\": {\n \"numbers\": [\n 5,\n 10,\n 15,\n 20,\n 25\n ]\n }\n }\n]}", "role": "gpt" } ]
77,511
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n```{\"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_discount\",\n \"description\": \"Calculate the discounted price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: Can you please order a pizza for me from the nearby restaurant?", "role": "human" }, { "content": "I'm sorry, but I'm not able to perform external tasks like ordering food. My current capabilities are limited to the functions provided to me. In this case, I can help you calculate a discount on a given price.", "role": "gpt" } ]
77,512
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```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a rectangle\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"number\",\n \"description\": \"The length of the rectangle\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"The width of the rectangle\"\n }\n },\n \"required\": [\n \"length\",\n \"width\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to calculate the area of a rectangle. The length is 10 units and the width is 5 units.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"length\": 10,\n \"width\": 5\n }\n }\n]}", "role": "gpt" } ]
77,513
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[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_jobs\",\n \"description\": \"Search for job openings based on title and location\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The job title\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the job\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "Hi, I am looking for a job as a software engineer in New York. Can you help me find some openings?", "role": "human" }, { "content": "[search_jobs(title='software engineer', location='New York')]", "role": "gpt" }, { "content": "Yes, please tell me more about the position at Google.", "role": "human" }, { "content": "[get_job_details(job_id='1')]", "role": "gpt" } ]
77,514
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\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two coordinates\", \"parameters\": {\"required\": [\"coordinates\"], \"properties\": {\"coordinates\": {\"description\": \"The coordinates of the two points\", \"maxItems\": 2, \"type\": \"array\", \"minItems\": 2, \"items\": {\"required\": [\"latitude\", \"longitude\"], \"properties\": {\"latitude\": {\"type\": \"number\", \"description\": \"The latitude of the coordinate\"}, \"longitude\": {\"description\": \"The longitude of the coordinate\", \"type\": \"number\"}}, \"type\": \"object\"}}}, \"type\": \"object\"}}}]\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you tell me the distance between New York and Los Angeles?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_distance(coordinates=[{'latitude': 40.7128, 'longitude': -74.006}, {'latitude': 34.0522, 'longitude': -118.2437}])]", "role": "gpt" } ]
77,515
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The birthdate in YYYY-MM-DD format\"\n }\n },\n \"required\": [\n \"birthdate\"\n ]\n }\n }\n }\n]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "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. In this case, I can help calculate age based on a birthdate. If you need help with that or any other information related to that function, feel free to ask.", "role": "gpt" } ]
77,516
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_news\",\n \"description\": \"Get the latest news\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"description\": \"The category of news, e.g. sports, politics\"\n }\n },\n \"required\": [\n \"category\"\n ]\n }\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 area needs to be calculated\"\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 },\n \"required\": [\n \"length\",\n \"width\"\n ]\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n }\n }\n]\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]", "role": "system" }, { "content": "### Instruction: Can you get me the latest news in sports?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_news\",\n \"arguments\": {\n \"category\": \"sports\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThat's great! Can you also get me the latest news in politics?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_news\",\n \"arguments\": {\n \"category\": \"politics\"\n }\n }\n]}", "role": "gpt" } ]
77,517
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]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [\n {\n \"function\": {\n \"name\": \"search_recipes\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The ingredients to search for\",\n \"type\": \"array\"\n }\n },\n \"required\": [\n \"ingredients\"\n ]\n },\n \"description\": \"Search recipes based on ingredients\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "<query>\nHi, I have some ingredients in my fridge and I don't know what to cook with them. Can you help me?\n</query>", "role": "human" }, { "content": "Of course! I can help you find a recipe. Could you please tell me what ingredients you have?", "role": "gpt" }, { "content": "<query>\nI have chicken, bell peppers, and rice.\n</query>", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'bell peppers', 'rice'])]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's great! Can you also order these ingredients for me from the grocery store?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks such as ordering groceries. My current capabilities are limited to the functions provided to me. I recommend using a grocery delivery service or app for your request.", "role": "gpt" } ]
77,518
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\nTools: [\n {\n \"function\": {\n \"name\": \"get_movie_details\",\n \"parameters\": {\n \"properties\": {\n \"movie_name\": {\n \"description\": \"The name of the movie\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"movie_name\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Get details of a movie\"\n },\n \"type\": \"function\"\n }\n]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Query: Can you tell me about the movie Inception?", "role": "human" }, { "content": "[get_movie_details(movie_name='Inception')]", "role": "gpt" }, { "content": "<query>\nThat's interesting. Can you tell me about the movie Titanic?\n</query>", "role": "human" }, { "content": "[get_movie_details(movie_name='Titanic')]", "role": "gpt" } ]
77,519
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 INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\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 \"type\": \"object\",\n \"required\": [\n \"length\",\n \"width\",\n \"radius\"\n ],\n \"properties\": {\n \"radius\": {\n \"description\": \"The radius of the shape\",\n \"type\": \"number\"\n },\n \"width\": {\n \"description\": \"The width of the shape\",\n \"type\": \"number\"\n },\n \"length\": {\n \"description\": \"The length of the shape\",\n \"type\": \"number\"\n }\n }\n },\n \"shape\": {\n \"type\": \"string\",\n \"description\": \"The shape to calculate the area for\"\n }\n }\n }\n }\n },\n {\n \"function\": {\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two coordinates\",\n \"parameters\": {\n \"properties\": {\n \"latitude1\": {\n \"type\": \"number\",\n \"description\": \"The latitude of the first coordinate\"\n },\n \"longitude2\": {\n \"description\": \"The longitude of the second coordinate\",\n \"type\": \"number\"\n },\n \"longitude1\": {\n \"description\": \"The longitude of the first coordinate\",\n \"type\": \"number\"\n },\n \"latitude2\": {\n \"description\": \"The latitude of the second coordinate\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"latitude1\",\n \"longitude1\",\n \"latitude2\",\n \"longitude2\"\n ]\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Can you tell me the distance between New York and Los Angeles?", "role": "human" }, { "content": "[calculate_distance(latitude1=40.7128, longitude1=-74.006, latitude2=34.0522, longitude2=-118.2437)]", "role": "gpt" } ]
77,520
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[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the random number range\"\n },\n \"max\": {\n \"type\": \"number\",\n \"description\": \"The maximum value of the random number range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n }\n }\n]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "คำถาม (Question): I need a random number between 1 and 100.", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]", "role": "gpt" }, { "content": "คำถาม (Question): Can you generate another random number but this time between 50 and 75?", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 50,\n \"max\": 75\n }\n }\n]", "role": "gpt" } ]
77,521
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\nAPI Function: [\n {\n \"function\": {\n \"description\": \"Calculate the discounted price of a product\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"description\": \"The original price of the product\",\n \"type\": \"number\"\n },\n \"discount_percentage\": {\n \"description\": \"The percentage of discount to be applied\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n },\n \"name\": \"calculate_discount\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "### Instruction: I saw a jacket I liked in a store. It was originally priced at $200 but there's 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\": 200,\n \"discount_percentage\": 20\n }\n }\n]", "role": "gpt" }, { "content": "That's a good deal. What about a pair of shoes that was originally $120 and now has a 15% discount?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 120,\n \"discount_percentage\": 15\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,522
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: [{\"function\": {\"parameters\": {\"properties\": {\"location2\": {\"description\": \"The second location\", \"type\": \"string\"}, \"location1\": {\"description\": \"The first location\", \"type\": \"string\"}}, \"required\": [\"location1\", \"location2\"], \"type\": \"object\"}, \"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\"}, \"type\": \"function\"}]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "Query: Hi, I need to know the distance between New York and Los Angeles. Can you help?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"New York\",\n \"location2\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "That's quite a distance. What about the distance between London and Paris?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"London\",\n \"location2\": \"Paris\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Thanks for the information!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,523
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_mortgage_payment\",\n \"description\": \"Calculate the monthly mortgage payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The loan amount\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate of the mortgage\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in years\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: Hi, I need help with calculating my mortgage payment.", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the loan amount, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nSure, the loan amount is $200,000, the annual interest rate is 3.5%, and the loan term is 30 years.\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_mortgage_payment(loan_amount=200000, interest_rate=3.5, loan_term=30)]", "role": "gpt" } ]
77,524
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\n### Tools: [\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"weight\",\n \"height\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight of the person in kilograms\"\n },\n \"height\": {\n \"description\": \"The height of the person in meters\",\n \"type\": \"number\"\n }\n }\n },\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"name\": \"calculate_bmi\"\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: Hi, I would like to know 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" } ]
77,525
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_number\",\n \"description\": \"Generate a random number within a specified range\",\n \"parameters\": {\n \"properties\": {\n \"max\": {\n \"type\": \"integer\",\n \"description\": \"The maximum value of the range\"\n },\n \"min\": {\n \"description\": \"The minimum value of the range\",\n \"type\": \"integer\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"type\": \"object\"\n }\n }\n },\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"number\",\n \"percentage\"\n ],\n \"properties\": {\n \"percentage\": {\n \"description\": \"The percentage to calculate\",\n \"type\": \"number\"\n },\n \"number\": {\n \"type\": \"number\",\n \"description\": \"The number to calculate the percentage of\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"Calculate the percentage of a number\",\n \"name\": \"calculate_percentage\"\n },\n \"type\": \"function\"\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": "Query: Hi, I need to calculate 20% of 500. Can you help me with that?", "role": "human" }, { "content": "[calculate_percentage(number=500, percentage=20)]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, now I need to calculate 15% of 1200.\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_percentage(number=1200, percentage=15)]", "role": "gpt" }, { "content": "คำถาม (Question): Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other calculations or questions, feel free to ask.", "role": "gpt" } ]
77,526
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[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"grades\": {\n \"type\": \"array\",\n \"items\": {\n \"properties\": {\n \"grade\": {\n \"type\": \"string\",\n \"description\": \"The grade obtained\"\n },\n \"credit\": {\n \"type\": \"integer\",\n \"description\": \"The credit hours of the course\"\n },\n \"course\": {\n \"description\": \"The name of the course\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"course\",\n \"grade\",\n \"credit\"\n ]\n }\n }\n },\n \"required\": [\n \"grades\"\n ]\n },\n \"name\": \"calculate_gpa\",\n \"description\": \"Calculate the Grade Point Average (GPA)\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "<query>\nHi, I need help calculating my GPA. I have the grades for my courses.\n</query>", "role": "human" }, { "content": "Sure, I can help with that. Please provide the name of each course, the grade you obtained, and the credit hours for the course.", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nOkay, here they are. I took Mathematics and got an A, it was a 3 credit course. I also took English and got a B, it was a 4 credit course. Lastly, I took History and got a C, it was a 2 credit course.\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_gpa\",\n \"arguments\": {\n \"grades\": [\n {\n \"course\": \"Mathematics\",\n \"grade\": \"A\",\n \"credit\": 3\n },\n {\n \"course\": \"English\",\n \"grade\": \"B\",\n \"credit\": 4\n },\n {\n \"course\": \"History\",\n \"grade\": \"C\",\n \"credit\": 2\n }\n ]\n }\n }\n]", "role": "gpt" } ]
77,527
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Generate a random number within a range\",\n \"name\": \"generate_random_number\",\n \"parameters\": {\n \"properties\": {\n \"min\": {\n \"description\": \"The minimum value of the range\",\n \"type\": \"integer\"\n },\n \"max\": {\n \"type\": \"integer\",\n \"description\": \"The maximum value of the range\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"min\",\n \"max\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need a random number between 1 and 100.\n[END OF QUERY]", "role": "human" }, { "content": "[generate_random_number(min=1, max=100)]", "role": "gpt" }, { "content": "<query>\nGreat, can you generate another one but this time between 200 and 300?\n</query>", "role": "human" }, { "content": "[generate_random_number(min=200, max=300)]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThanks for your help!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you need any more random numbers, just let me know.", "role": "gpt" } ]
77,528
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_task\",\n \"description\": \"Create a new task\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the task\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The due date of the task\"\n },\n \"priority\": {\n \"type\": \"string\",\n \"enum\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"description\": \"The priority of the task\"\n }\n },\n \"required\": [\n \"title\"\n ]\n }\n }\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: I need to create a task for my project.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title of the task, the due date, and the priority level?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe title is \"Complete Project Report\", the due date is 2022-05-15, and the priority is high.\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"create_task\",\n \"arguments\": {\n \"title\": \"Complete Project Report\",\n \"due_date\": \"2022-05-15\",\n \"priority\": \"high\"\n }\n }\n]", "role": "gpt" }, { "content": "Great, thank you for your help.", "role": "human" }, { "content": "You're welcome! If you have any other tasks to create or any other questions, feel free to ask.", "role": "gpt" } ]
77,529
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"start_location\": {\n \"type\": \"string\",\n \"description\": \"The starting location\"\n },\n \"end_location\": {\n \"type\": \"string\",\n \"description\": \"The ending location\"\n }\n },\n \"required\": [\n \"start_location\",\n \"end_location\"\n ]\n }\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nHi, can you tell me the distance between New York and Los Angeles?\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"start_location\": \"New York\",\n \"end_location\": \"Los Angeles\"\n }\n }\n]", "role": "gpt" }, { "content": "Great! Can you also 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 functions are limited to the ones provided to me. Currently, I can only calculate distances between two locations. I recommend using a trusted travel website or app to book your flight.", "role": "gpt" } ]
77,530
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): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_movies\",\n \"description\": \"Search for movies based on title, genre, or release year\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query\"\n }\n },\n \"required\": [\n \"query\"\n ]\n }\n }\n }\n]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "Query: I'm looking for a movie to watch tonight. Can you suggest something?", "role": "human" }, { "content": "Of course! Could you please tell me your preferred genre or any specific movie title you have in mind?", "role": "gpt" }, { "content": "### Instruction: I'm in the mood for a comedy movie.", "role": "human" }, { "content": "[search_movies(query='comedy')]", "role": "gpt" } ]
77,531
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\nTools: [\n {\n \"function\": {\n \"name\": \"calculate_interest\",\n \"parameters\": {\n \"properties\": {\n \"time\": {\n \"description\": \"The time period in years\",\n \"type\": \"number\"\n },\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The principal amount\"\n },\n \"rate\": {\n \"description\": \"The interest rate\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"principal\",\n \"rate\",\n \"time\"\n ]\n },\n \"description\": \"Calculate simple interest\"\n },\n \"type\": \"function\"\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": "คำถาม (Question): Hi, I need to calculate the interest on a loan. The principal amount is $5000, the interest rate is 5% and the loan period is 3 years. Can you help me with this?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_interest\",\n \"arguments\": {\n \"principal\": 5000,\n \"rate\": 5,\n \"time\": 3\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThat's great. Can you also help me book a flight to New York?\n</query>", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights or perform other external tasks. My primary function is to assist with tasks that can be performed within this platform. For booking a flight, I recommend using a trusted travel booking website or contacting your travel agent.", "role": "gpt" } ]
77,532
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]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [\n {\n \"function\": {\n \"name\": \"calculate_mortgage_payment\",\n \"parameters\": {\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"description\": \"The loan amount\",\n \"type\": \"number\"\n },\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 }\n },\n \"description\": \"Calculate the monthly mortgage payment\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_news\",\n \"parameters\": {\n \"required\": [\n \"category\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"category\": {\n \"description\": \"The category of news articles to retrieve\",\n \"type\": \"string\"\n }\n }\n },\n \"description\": \"Retrieve the latest news articles\"\n }\n }\n]", "role": "system" }, { "content": "Can you get me the latest news on technology?", "role": "human" }, { "content": "[get_news(category='technology')]", "role": "gpt" } ]
77,533
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[BEGIN OF 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 \"function\": {\n \"parameters\": {\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to search for hospitals\"\n },\n \"specialty\": {\n \"description\": \"The specialty of hospitals, e.g. cardiology, pediatrics\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"location\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"find_nearby_hospitals\",\n \"description\": \"Find nearby hospitals based on location\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "I am in New York and I need to find a hospital that specializes in cardiology. Can you help me?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"find_nearby_hospitals\",\n \"arguments\": {\n \"location\": \"New York\",\n \"specialty\": \"cardiology\"\n }\n }\n]}", "role": "gpt" } ]
77,534
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the tax amount for a given income\", \"parameters\": {\"required\": [\"income\", \"tax_rate\"], \"properties\": {\"income\": {\"type\": \"number\", \"description\": \"The income amount\"}, \"tax_rate\": {\"description\": \"The tax rate in percentage\", \"type\": \"number\"}}, \"type\": \"object\"}, \"name\": \"calculate_tax\"}}]", "role": "system" }, { "content": "คำถาม (Question): Hey, I need to calculate my tax for this year. My income was $70,000 and the tax rate is 20%.", "role": "human" }, { "content": "[calculate_tax(income=70000, tax_rate=20)]", "role": "gpt" }, { "content": "<query>\nThat's helpful. Can you also help me file my tax returns online?\n</query>", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as filing tax returns online. I recommend you to consult with a tax professional or use an online tax filing service.", "role": "gpt" } ]
77,535
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\nAPI Function: [\n {\n \"function\": {\n \"description\": \"Search for recipes based on ingredients\",\n \"parameters\": {\n \"required\": [\n \"ingredients\"\n ],\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 },\n \"name\": \"search_recipes\"\n },\n \"type\": \"function\"\n }\n]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>", "role": "system" }, { "content": "คำถาม (Question): I have some chicken, broccoli, and cheese. What can I make with these?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'broccoli', 'cheese'])]", "role": "gpt" } ]
77,536
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:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"name\": \"calculate_bmi\",\n \"parameters\": {\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"description\": \"The weight in kilograms\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"weight\",\n \"height\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "Hi, I would like to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.", "role": "human" }, { "content": "[calculate_bmi(weight=70, height=1.75)]", "role": "gpt" }, { "content": "### Instruction: That's great to hear! Thank you for your help.", "role": "human" }, { "content": "You're welcome! If you have any other questions or need further assistance, feel free to ask.", "role": "gpt" } ]
77,537
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n</Task>\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"website_url\"\n ],\n \"properties\": {\n \"website_url\": {\n \"description\": \"The URL of the website to check\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"check_website_availability\",\n \"description\": \"Check if a website is currently accessible\"\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nHi, can you check if www.google.com is accessible right now?\n</query>", "role": "human" }, { "content": "[check_website_availability(website_url='www.google.com')]", "role": "gpt" }, { "content": "<query>\nGreat, can you also check www.example.com?\n</query>", "role": "human" }, { "content": "[check_website_availability(website_url='www.example.com')]", "role": "gpt" } ]
77,538
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 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 \"function\": {\n \"description\": \"Create a new user account\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"password\": {\n \"type\": \"string\",\n \"description\": \"The password for the new account\"\n },\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address for the new account\"\n },\n \"username\": {\n \"description\": \"The username for the new account\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"username\",\n \"password\",\n \"email\"\n ]\n },\n \"name\": \"create_user\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hey, I need to create a new user account. My username should be 'JohnDoe', password '123456' and email 'johndoe@example.com'.", "role": "human" }, { "content": "[create_user(username='JohnDoe', password='123456', email='johndoe@example.com')]", "role": "gpt" }, { "content": "### Instruction: That's great! Now, can you also book a flight for me from New York to Paris?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the ability to book flights. My current functions only allow me to create user accounts. You might want to use a travel booking website or app for your flight booking needs.", "role": "gpt" } ]
77,539
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_color\",\n \"description\": \"Generate a random color code\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"format\": {\n \"type\": \"string\",\n \"enum\": [\n \"hex\",\n \"rgb\"\n ],\n \"description\": \"The format of the color code\"\n }\n },\n \"required\": [\n \"format\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "<query>\nHi, can you help me with something?\n</query>", "role": "human" }, { "content": "Of course! That's what I'm here for. What do you need help with?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nI need a random color code for my website's background. Can you generate one in RGB format?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_color\",\n \"arguments\": {\n \"format\": \"rgb\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That's great! Now, can you also code the CSS file for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as coding a CSS file. However, I can provide guidance and tips on how to do it.", "role": "gpt" } ]
77,540
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the age based on birthdate\",\n \"name\": \"calculate_age\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"birthdate\"\n ],\n \"properties\": {\n \"birthdate\": {\n \"description\": \"The birthdate in format yyyy-mm-dd\",\n \"type\": \"string\"\n }\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": "### 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" }, { "content": "Wow, time flies! Thank you for the information.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,541
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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"analyze_image\",\n \"description\": \"Analyze the content of an image\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"image_url\": {\n \"type\": \"string\",\n \"format\": \"uri\",\n \"description\": \"The URL of the image\"\n },\n \"features\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The features to analyze in the image\"\n }\n },\n \"required\": [\n \"image_url\"\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": "คำถาม (Question): Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but I am unable to book flights as it's an external task and I don't have a function provided for that task. I can assist you with analyzing images.", "role": "gpt" } ]
77,542
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### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\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 \"description\": \"The author of the book\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"title\",\n \"author\",\n \"genre\"\n ]\n },\n \"description\": \"Search for books based on specific criteria\",\n \"name\": \"search_books\"\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]\nHi, I am looking for a book but I can't remember the full title or author's name. I know it's a mystery novel and the title has the word \"Moon\" in it.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"title\": \"Moon\",\n \"author\": \"\",\n \"genre\": \"mystery\"\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nYes, it's \"Moonlight Mystery\". Thank you!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you need help with anything else, feel free to ask.", "role": "gpt" } ]
77,543
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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_books\",\n \"description\": \"Search for books based on certain criteria\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the book\"\n },\n \"author\": {\n \"type\": \"string\",\n \"description\": \"The author of the book\"\n },\n \"genre\": {\n \"type\": \"string\",\n \"description\": \"The genre of the book\"\n }\n }\n }\n }\n }\n]\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": "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 capabilities are currently limited to the functions provided to me, such as searching for books.", "role": "gpt" } ]
77,544
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[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The initial loan amount\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n },\n \"term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in years\"\n }\n },\n \"required\": [\n \"principal\",\n \"interest_rate\",\n \"term\"\n ]\n }\n }\n }\n]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "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 initial loan amount, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, the initial loan amount is $20000, the annual interest rate is 5%, and the loan term is 5 years.", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"principal\": 20000,\n \"interest_rate\": 5,\n \"term\": 5\n }\n }\n]", "role": "gpt" } ]
77,545
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_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 tip percentage to calculate\"\n }\n },\n \"required\": [\n \"bill_amount\",\n \"tip_percentage\"\n ]\n }\n }\n }\n]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "### Instruction: Hi, I need help with calculating the tip for my bill. The total bill amount is $50 and I want to leave a 15% tip.", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 50,\n \"tip_percentage\": 15\n }\n }\n]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, thanks for the help!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,546
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"from\": {\n \"description\": \"The currency to convert from\",\n \"type\": \"string\"\n },\n \"amount\": {\n \"description\": \"The amount to convert\",\n \"type\": \"number\"\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 \"description\": \"Convert currency from one type to another\",\n \"name\": \"convert_currency\"\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to convert 1000 US dollars to Euros. Can you help me with that?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 1000,\n \"from\": \"USD\",\n \"to\": \"EUR\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nGreat, thanks! Now, can you convert 500 Euros to British Pounds?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 500,\n \"from\": \"EUR\",\n \"to\": \"GBP\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,547
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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"type\": \"object\",\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 product\",\n \"type\": \"number\"\n }\n }\n },\n \"name\": \"calculate_discounted_price\",\n \"description\": \"Calculate the discounted price of a product\"\n }\n }\n]\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>", "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. Can you tell me how much it will cost after the discount?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_discounted_price(original_price=100, discount_percentage=20)]", "role": "gpt" }, { "content": "That's a good deal! What about a pair of shoes that were originally $75 but now have a 15% discount?", "role": "human" }, { "content": "[calculate_discounted_price(original_price=75, discount_percentage=15)]", "role": "gpt" } ]
77,548
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\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 \"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_numbers\": {\n \"type\": \"boolean\",\n \"description\": \"Include numbers in the password\"\n },\n \"include_symbols\": {\n \"type\": \"boolean\",\n \"description\": \"Include symbols in the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "<query>\nI need a new password. Can you generate one for me?\n</query>", "role": "human" }, { "content": "Of course, I can help with that. How long would you like the password to be? And would you like it to include numbers and symbols?", "role": "gpt" }, { "content": "<query>\nI would like it to be 12 characters long and yes, include both numbers and symbols.\n</query>", "role": "human" }, { "content": "[generate_password(length=12, include_numbers=True, include_symbols=True)]", "role": "gpt" } ]
77,549
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[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<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"original_price\": {\n \"description\": \"The original price\",\n \"type\": \"number\"\n },\n \"discount_percentage\": {\n \"description\": \"The discount percentage\",\n \"type\": \"number\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price based on the original price\"\n }\n }\n]\n</tools>", "role": "system" }, { "content": "คำถาม (Question): Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to book flights as it's an external task. My current function allows me to calculate discounts on prices. If you need help with that, feel free to ask!", "role": "gpt" } ]
77,550
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_square_root\",\n \"description\": \"Calculate the square root of a number\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"number\": {\n \"type\": \"number\",\n \"description\": \"The number to calculate square root\"\n }\n },\n \"required\": [\n \"number\"\n ]\n }\n }\n }\n]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "### Instruction: Hi, I need to find the square root of 81. Can you help me with that?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_square_root\",\n \"arguments\": {\n \"number\": 81\n }\n }\n]", "role": "gpt" }, { "content": "Query: That's great! Can you also find the square root of 256?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_square_root\",\n \"arguments\": {\n \"number\": 256\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" } ]
77,551
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on the date of birth\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"date_of_birth\": {\n \"type\": \"string\",\n \"description\": \"The date of birth in format YYYY-MM-DD\"\n }\n },\n \"required\": [\n \"date_of_birth\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount based on total bill and tip percentage\",\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[AVAILABLE TOOLS 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>", "role": "system" }, { "content": "### Instruction: Hi, I was born on 1990-05-15. Can you tell me how old I am today?", "role": "human" }, { "content": "[calculate_age(date_of_birth='1990-05-15')]", "role": "gpt" } ]
77,552
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\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"loan_amount\": {\n \"type\": \"number\",\n \"description\": \"The total loan amount\"\n },\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The annual interest rate\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The loan term in years\"\n }\n },\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ]\n }\n }\n }\n]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "### Instruction: Hi, I need help with calculating my loan payment.", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the total loan amount, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "### Instruction: Sure, the loan amount is $50000, the 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" } ]
77,553
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n[BEGIN OF FORMAT INSTRUCTION]\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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"properties\": {\n \"location2\": {\n \"type\": \"string\",\n \"description\": \"The second location\"\n },\n \"location1\": {\n \"type\": \"string\",\n \"description\": \"The first location\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"location1\",\n \"location2\"\n ]\n },\n \"name\": \"calculate_distance\"\n }\n }\n]", "role": "system" }, { "content": "Hi, I need to know the distance between New York and Los Angeles.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"New York\",\n \"location2\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That's quite a distance! Now, can you tell me the distance between London and Paris?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"location1\": \"London\",\n \"location2\": \"Paris\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThank you for the information!\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,554
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 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): [{\"function\": {\"parameters\": {\"properties\": {\"email\": {\"description\": \"The email address of the user\", \"type\": \"string\"}, \"password\": {\"type\": \"string\", \"description\": \"The password for the user account\"}, \"name\": {\"description\": \"The name of the user\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"name\", \"email\", \"password\"]}, \"description\": \"Create a new user account\", \"name\": \"create_user_account\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): I want to create a new account.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with your name, email address, and a password?", "role": "gpt" }, { "content": "My name is John Doe, my email is johndoe@example.com, and I want my password to be \"password123\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_user_account\",\n \"arguments\": {\n \"name\": \"John Doe\",\n \"email\": \"johndoe@example.com\",\n \"password\": \"password123\"\n }\n }\n]}", "role": "gpt" } ]
77,555
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[TASK INSTRUCTION END]\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\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>\nCan you order a pizza for me?\n</query>", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks such as ordering a pizza. My capabilities are currently limited to the functions provided to me. In this case, I can help calculate a discount on an item given its original price and the discount percentage.", "role": "gpt" } ]
77,556
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 AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_random_password\",\n \"description\": \"Generate a random password with specified length\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"length\": {\n \"type\": \"integer\",\n \"description\": \"The length of the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\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": "I need a new password. Can you generate one for me?", "role": "human" }, { "content": "Of course, I can help with that. How long would you like your password to be?", "role": "gpt" }, { "content": "Query: I want it to be 12 characters long.", "role": "human" }, { "content": "[generate_random_password(length=12)]", "role": "gpt" } ]
77,557
glaive-function-calling-v2-extended
[ { "content": "You are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"symbol\": {\n \"description\": \"The stock symbol, e.g. AAPL\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"symbol\"\n ]\n },\n \"description\": \"Get the current stock price\",\n \"name\": \"get_stock_price\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คำถาม (Question): What's the current price of Apple's stock?", "role": "human" }, { "content": "[get_stock_price(symbol='AAPL')]", "role": "gpt" }, { "content": "<query>\nAnd what about Microsoft?\n</query>", "role": "human" }, { "content": "[get_stock_price(symbol='MSFT')]", "role": "gpt" } ]
77,558
glaive-function-calling-v2-extended
[ { "content": "You are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"send_email\", \"parameters\": {\"required\": [\"recipient\", \"subject\", \"message\"], \"properties\": {\"subject\": {\"type\": \"string\", \"description\": \"The subject of the email\"}, \"message\": {\"description\": \"The content of the email\", \"type\": \"string\"}, \"recipient\": {\"description\": \"The email address of the recipient\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Send an email\"}}]\n</tools>", "role": "system" }, { "content": "Hi, I need to send an email to my colleague. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you want to send?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, the recipient's email is john.doe@example.com, the subject is \"Meeting Agenda\", and the message is \"Hi John, Please find the attached meeting agenda for tomorrow. Regards, Alex\".", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"recipient\": \"john.doe@example.com\",\n \"subject\": \"Meeting Agenda\",\n \"message\": \"Hi John, Please find the attached meeting agenda for tomorrow. Regards, Alex\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Great! Can you also book a flight for me to New York next week?", "role": "human" }, { "content": "I'm sorry, but I currently don't have the capability to book flights. My functions are limited to the tasks defined by the system. Is there anything else I can assist you with?", "role": "gpt" } ]
77,559
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[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [\n {\n \"function\": {\n \"name\": \"get_news_headlines\",\n \"description\": \"Get the latest news headlines\",\n \"parameters\": {\n \"required\": [\n \"country\"\n ],\n \"properties\": {\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The country code for which news headlines are required\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"required\": [\n \"symbol\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"symbol\": {\n \"description\": \"The stock symbol\",\n \"type\": \"string\"\n }\n }\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you tell me the latest news headlines for the United States?\n[END OF QUERY]", "role": "human" }, { "content": "[get_news_headlines(country='US')]", "role": "gpt" }, { "content": "Query: That's interesting. What about the news in France?", "role": "human" }, { "content": "[get_news_headlines(country='FR')]", "role": "gpt" } ]
77,560
glaive-function-calling-v2-extended
[ { "content": "You are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the tax amount based on income\",\n \"name\": \"calculate_tax\",\n \"parameters\": {\n \"required\": [\n \"income\",\n \"tax_rate\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"income\": {\n \"type\": \"number\",\n \"description\": \"The total income\"\n },\n \"tax_rate\": {\n \"description\": \"The tax rate percentage\",\n \"type\": \"number\"\n }\n }\n }\n }\n }\n]\n\n### Format:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.", "role": "system" }, { "content": "<query>\nHi, I need to calculate my tax. My income is $50000 and the tax rate is 20%.\n</query>", "role": "human" }, { "content": "[calculate_tax(income=50000, tax_rate=20)]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nOh, I see. Thank you for the information.\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,561
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]\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\nAPI Function: [{\"function\": {\"name\": \"search_movies\", \"parameters\": {\"required\": [\"query\"], \"properties\": {\"query\": {\"description\": \"The title or genre to search for\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Search for movies based on title or genre\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "I'm in the mood for a comedy movie. Can you suggest some?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_movies\",\n \"arguments\": {\n \"query\": \"comedy\"\n }\n }\n]}", "role": "gpt" }, { "content": "I've seen all of those. Can you suggest some romantic comedies?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_movies\",\n \"arguments\": {\n \"query\": \"romantic comedy\"\n }\n }\n]}", "role": "gpt" } ]
77,562
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[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_invoice\",\n \"description\": \"Create a new invoice\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"items\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"description\": {\n \"type\": \"string\",\n \"description\": \"The description of the item\"\n },\n \"quantity\": {\n \"type\": \"integer\",\n \"description\": \"The quantity of the item\"\n },\n \"price\": {\n \"type\": \"number\",\n \"description\": \"The price of the item\"\n }\n },\n \"required\": [\n \"description\",\n \"quantity\",\n \"price\"\n ]\n }\n }\n },\n \"required\": [\n \"customer_name\",\n \"items\"\n ]\n }\n }\n }\n]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "<query>\nI need to create an invoice for a customer named John Doe. He bought 2 laptops for $1000 each and 3 mice for $20 each.\n</query>", "role": "human" }, { "content": "[create_invoice(customer_name='John Doe', items=[{'description': 'laptop', 'quantity': 2, 'price': 1000}, {'description': 'mouse', 'quantity': 3, 'price': 20}])]", "role": "gpt" } ]
77,563
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"convert_currency\", \"parameters\": {\"properties\": {\"target_currency\": {\"type\": \"string\", \"description\": \"The target currency\"}, \"source_currency\": {\"description\": \"The source currency\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"amount\", \"source_currency\", \"target_currency\"]}, \"description\": \"Convert an amount from one currency to another\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to convert 500 USD to EUR. Can you help me with that?", "role": "human" }, { "content": "[convert_currency(amount=500, source_currency='USD', target_currency='EUR')]", "role": "gpt" }, { "content": "That's great! Now, can you convert 1000 EUR to GBP?", "role": "human" }, { "content": "[convert_currency(amount=1000, source_currency='EUR', target_currency='GBP')]", "role": "gpt" }, { "content": "คำถาม (Question): Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,564
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_gpa\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"grades\",\n \"credits\"\n ],\n \"properties\": {\n \"credits\": {\n \"items\": {\n \"type\": \"number\"\n },\n \"type\": \"array\",\n \"description\": \"The credits associated with each course\"\n },\n \"grades\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The grades received\"\n }\n }\n },\n \"description\": \"Calculate the GPA (Grade Point Average)\"\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"send_email\",\n \"parameters\": {\n \"properties\": {\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 \"recipient_email\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"recipient_email\",\n \"subject\",\n \"message\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Send an email to a recipient\"\n }\n }\n]\n[AVAILABLE TOOLS 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]", "role": "system" }, { "content": "Query: Hi, I need help calculating my GPA. I have the grades and the credits for each course.", "role": "human" }, { "content": "Sure, I can help with that. Please provide me with the grades and the corresponding credits for each course.", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nOkay, here they are. Grades: [\"A\", \"B\", \"A-\", \"B+\", \"A\"], Credits: [3, 4, 3, 2, 3].\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_gpa(grades=['A', 'B', 'A-', 'B+', 'A'], credits=[3, 4, 3, 2, 3])]", "role": "gpt" } ]
77,565
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [], \"properties\": {\"actor\": {\"description\": \"The actor to search for\", \"type\": \"string\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of movies to search in\"}, \"query\": {\"type\": \"string\", \"description\": \"The search query\"}}, \"type\": \"object\"}, \"description\": \"Search for movies based on title, genre, or actor\", \"name\": \"search_movies\"}}]\n</tools>\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "<query>\nI want to watch a movie tonight but I'm not sure what. Can you suggest me something?\n</query>", "role": "human" }, { "content": "Of course! To help you better, could you tell me your favorite genre or actor?", "role": "gpt" }, { "content": "### Instruction: I like action movies and my favorite actor is Tom Cruise.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_movies\",\n \"arguments\": {\n \"query\": \"action\",\n \"actor\": \"Tom Cruise\"\n }\n }\n]}", "role": "gpt" } ]
77,566
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<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[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a shape (e.g. circle, rectangle, triangle)\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"description\": \"The shape for which the area needs to be calculated\"\n },\n \"dimensions\": {\n \"type\": \"object\",\n \"properties\": {},\n \"required\": []\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to calculate the area of a rectangle. The length is 10 units and the breadth is 5 units.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"shape\": \"rectangle\",\n \"dimensions\": {\n \"length\": 10,\n \"breadth\": 5\n }\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Great! Now, I have a circle with a radius of 7 units. Can you calculate the area for this as well?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"shape\": \"circle\",\n \"dimensions\": {\n \"radius\": 7\n }\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" } ]
77,567
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[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"to_unit\": {\n \"description\": \"The unit to convert to\",\n \"type\": \"string\"\n },\n \"temperature\": {\n \"type\": \"number\",\n \"description\": \"The temperature value\"\n },\n \"from_unit\": {\n \"type\": \"string\",\n \"description\": \"The unit to convert from\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"temperature\",\n \"from_unit\",\n \"to_unit\"\n ]\n },\n \"name\": \"convert_temperature\",\n \"description\": \"Convert temperature from one unit to another\"\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: Hi, I need to convert a temperature from Celsius to Fahrenheit. The temperature is 30 degrees Celsius.", "role": "human" }, { "content": "[\n {\n \"name\": \"convert_temperature\",\n \"arguments\": {\n \"temperature\": 30,\n \"from_unit\": \"Celsius\",\n \"to_unit\": \"Fahrenheit\"\n }\n }\n]", "role": "gpt" } ]
77,568
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_age\",\n \"description\": \"Calculate the age based on birthdate\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birthdate\": {\n \"type\": \"string\",\n \"format\": \"date\",\n \"description\": \"The birthdate of the person\"\n }\n },\n \"required\": [\n \"birthdate\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_images\",\n \"description\": \"Search for images based on keywords\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"keywords\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The keywords to search for\"\n },\n \"color\": {\n \"type\": \"string\",\n \"description\": \"The color of the images (optional)\"\n }\n },\n \"required\": [\n \"keywords\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: Hi, I was born on 1990-05-15. Can you tell me how old I am?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birthdate\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Oh, time flies! Thank you for the information.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,569
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:\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[{\"function\": {\"description\": \"Calculate the distance between two locations\", \"parameters\": {\"properties\": {\"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}, \"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}}, \"required\": [\"origin\", \"destination\"], \"type\": \"object\"}, \"name\": \"calculate_distance\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "### Instruction: Hey, can you tell me the distance between New York and Los Angeles?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"origin\": \"New York\",\n \"destination\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "Great, thanks! Can you also 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 ability to perform external tasks such as booking flights. I recommend using a trusted travel website or contacting your preferred airline directly to book your flight.", "role": "gpt" } ]
77,570
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[AVAILABLE TOOLS START]\n[{\"function\": {\"description\": \"Calculate the discounted price\", \"name\": \"calculate_discount\", \"parameters\": {\"properties\": {\"original_price\": {\"description\": \"The original price\", \"type\": \"number\"}, \"discount_percentage\": {\"description\": \"The discount percentage\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"original_price\", \"discount_percentage\"]}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Generate a random username\", \"name\": \"generate_username\", \"parameters\": {\"type\": \"object\", \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the username\"}}, \"required\": [\"length\"]}}}]\n[AVAILABLE TOOLS 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]", "role": "system" }, { "content": "Query: I saw a dress that I really liked. It was originally priced at $200 but it's on a 20% discount. How much will it cost now?", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" } ]
77,571
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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a unique identifier (UUID)\", \"parameters\": {}, \"name\": \"generate_uuid\"}}]\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": "คำถาม (Question): Can you 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 generating unique identifiers (UUIDs).", "role": "gpt" } ]
77,572
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"create_todo\",\n \"description\": \"Create a new todo item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"The title of the todo item\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"The description of the todo item\"\n },\n \"due_date\": {\n \"type\": \"string\",\n \"description\": \"The due date of the todo item in YYYY-MM-DD format\"\n }\n },\n \"required\": [\n \"title\",\n \"description\",\n \"due_date\"\n ]\n }\n }\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คำถาม (Question): 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": "The title is \"Grocery Shopping\", the description is \"Buy fruits, vegetables, and dairy products\", and the due date is \"2022-05-15\".", "role": "human" }, { "content": "[create_todo(title='Grocery Shopping', description='Buy fruits, vegetables, and dairy products', due_date='2022-05-15')]", "role": "gpt" } ]
77,573
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[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"encrypt_text\",\n \"description\": \"Encrypt a given text using a specified encryption algorithm\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to encrypt\"\n },\n \"algorithm\": {\n \"type\": \"string\",\n \"description\": \"The encryption algorithm to use\"\n }\n },\n \"required\": [\n \"text\",\n \"algorithm\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "<query>\nCan you order a pizza for me?\n</query>", "role": "human" }, { "content": "I'm sorry, but I can't assist with that. My current capabilities are limited to the functions provided to me, and ordering a pizza is an external task that I don't have a function for. I can help with encrypting text using a specified encryption algorithm.", "role": "gpt" } ]
77,574
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): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"play_music\",\n \"description\": \"Play music from a specified playlist or artist\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"playlist\": {\n \"type\": \"string\",\n \"description\": \"The name of the playlist\"\n },\n \"artist\": {\n \"type\": \"string\",\n \"description\": \"The name of the artist\"\n }\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": "คำถาม (Question): Can you 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. My current functions only allow me to play music from a specified playlist or artist.", "role": "gpt" } ]
77,575
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[TASK INSTRUCTION END]\n\n[BEGIN OF FORMAT INSTRUCTION]\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[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the area of a shape\", \"name\": \"calculate_area\", \"parameters\": {\"properties\": {\"parameters\": {\"type\": \"object\", \"description\": \"The dimensions required to calculate the area\"}, \"shape\": {\"description\": \"The name of the shape\", \"type\": \"string\"}}, \"required\": [\"shape\", \"parameters\"], \"type\": \"object\"}}}]", "role": "system" }, { "content": "Query: Hi, I need to calculate the area of a rectangle. The length is 5 units and the breadth is 3 units.", "role": "human" }, { "content": "[calculate_area(shape='rectangle', parameters={'length': 5, 'breadth': 3})]", "role": "gpt" }, { "content": "### Instruction: Great! Now, can you please paint my house?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform physical tasks like painting a house. I suggest contacting a professional painter for this task.", "role": "gpt" } ]
77,576
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 FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\nเครื่องมือ (Tools): [{\"function\": {\"description\": \"Play music from a specific genre or artist\", \"parameters\": {\"type\": \"object\", \"properties\": {\"artist\": {\"description\": \"The specific artist to play\", \"type\": \"string\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of music to play\"}}}, \"name\": \"play_music\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "Query: I want to listen to some music.", "role": "human" }, { "content": "Sure, do you have a specific genre or artist in mind?", "role": "gpt" }, { "content": "<query>\nYes, I would like to listen to some rock music.\n</query>", "role": "human" }, { "content": "[play_music(genre='rock')]", "role": "gpt" }, { "content": "คำถาม (Question): Can we switch to some music by The Beatles?", "role": "human" }, { "content": "[play_music(artist='The Beatles')]", "role": "gpt" } ]
77,577
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[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the average of a list of numbers\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"numbers\"\n ],\n \"properties\": {\n \"numbers\": {\n \"items\": {\n \"type\": \"number\"\n },\n \"type\": \"array\",\n \"description\": \"The list of numbers\"\n }\n }\n },\n \"name\": \"calculate_average\"\n }\n }\n]\n[AVAILABLE TOOLS END]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "คำถาม (Question): Hi, I have a list of numbers and I need to find the average. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Please provide me with the list of numbers.", "role": "gpt" }, { "content": "Query: The numbers are 5, 10, 15, 20, 25.", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_average\",\n \"arguments\": {\n \"numbers\": [\n 5,\n 10,\n 15,\n 20,\n 25\n ]\n }\n }\n]", "role": "gpt" } ]
77,578
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[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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Schedule a meeting with participants and location\",\n \"parameters\": {\n \"properties\": {\n \"time\": {\n \"format\": \"time\",\n \"type\": \"string\",\n \"description\": \"The time of the meeting\"\n },\n \"participants\": {\n \"description\": \"The list of meeting participants\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"date\": {\n \"format\": \"date\",\n \"type\": \"string\",\n \"description\": \"The date of the meeting\"\n },\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location of the meeting\"\n }\n },\n \"required\": [\n \"participants\",\n \"location\",\n \"date\",\n \"time\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"schedule_meeting\"\n }\n }\n]", "role": "system" }, { "content": "Can you schedule a meeting for me with John and Sarah at the conference room on 2022-03-01 at 10:00?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"schedule_meeting\",\n \"arguments\": {\n \"participants\": [\n \"John\",\n \"Sarah\"\n ],\n \"location\": \"conference room\",\n \"date\": \"2022-03-01\",\n \"time\": \"10:00\"\n }\n }\n]}", "role": "gpt" }, { "content": "Great! Can you also book a flight for me to New York on the same day?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current functions only allow me to schedule meetings. You might want to use a travel booking service for that.", "role": "gpt" } ]
77,579
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>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Create a new event in a calendar\",\n \"parameters\": {\n \"required\": [\n \"title\",\n \"start_time\",\n \"end_time\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"end_time\": {\n \"description\": \"The end time of the event\",\n \"type\": \"string\"\n },\n \"start_time\": {\n \"type\": \"string\",\n \"description\": \"The start time of the event\"\n },\n \"title\": {\n \"description\": \"The title of the event\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"create_event\"\n }\n }\n]", "role": "system" }, { "content": "Query: I need to create an event in my calendar.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, start time, and end time of the event?", "role": "gpt" }, { "content": "คำถาม (Question): The title is \"Team Meeting\", the start time is \"2022-04-01T10:00:00\", and the end time is \"2022-04-01T11:00:00\".", "role": "human" }, { "content": "[create_event(title='Team Meeting', start_time='2022-04-01T10:00:00', end_time='2022-04-01T11:00:00')]", "role": "gpt" } ]
77,580
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>\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\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_distance\",\n \"description\": \"Calculate the distance between two locations\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"origin\": {\n \"type\": \"string\",\n \"description\": \"The origin location\"\n },\n \"destination\": {\n \"type\": \"string\",\n \"description\": \"The destination location\"\n }\n },\n \"required\": [\n \"origin\",\n \"destination\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you please book a flight for me from New York to London?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. I can only provide information based on the functions I have, like calculating the distance between two locations.", "role": "gpt" } ]
77,581
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[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\", \"parameters\": {\"required\": [\"origin\", \"destination\"], \"type\": \"object\", \"properties\": {\"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}, \"origin\": {\"description\": \"The origin location\", \"type\": \"string\"}}}}}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you please book a flight for me from New York to London?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with booking flights. My current capabilities allow me to calculate the distance between two locations. If you need that information, I'd be happy to help.", "role": "gpt" } ]
77,582
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[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"start_location\": {\n \"type\": \"string\",\n \"description\": \"The starting location\"\n },\n \"end_location\": {\n \"type\": \"string\",\n \"description\": \"The ending location\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"start_location\",\n \"end_location\"\n ]\n },\n \"description\": \"Calculate the distance between two locations\",\n \"name\": \"calculate_distance\"\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"total_bill\",\n \"tip_percentage\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip to be given\"\n },\n \"total_bill\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\n }\n }\n },\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the amount of tip based on total bill\"\n }\n }\n]", "role": "system" }, { "content": "Query: Hi, I need to know the distance between New York and Los Angeles.", "role": "human" }, { "content": "[calculate_distance(start_location='New York', end_location='Los Angeles')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's quite a distance! How about the distance from London to Paris?\n[END OF QUERY]", "role": "human" }, { "content": "[calculate_distance(start_location='London', end_location='Paris')]", "role": "gpt" }, { "content": "คำถาม (Question): Thank you for the information!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,583
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:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\n<tools>\n[\n {\n \"function\": {\n \"description\": \"Calculate the square root of a number\",\n \"name\": \"calculate_square_root\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"number\"\n ],\n \"properties\": {\n \"number\": {\n \"description\": \"The number to calculate the square root of\",\n \"type\": \"number\"\n }\n }\n }\n },\n \"type\": \"function\"\n }\n]\n</tools>", "role": "system" }, { "content": "<query>\nHi, I need to find the square root of 81. Can you help?\n</query>", "role": "human" }, { "content": "[calculate_square_root(number=81)]", "role": "gpt" }, { "content": "คำถาม (Question): That's great! Now, can you find the square root of 256?", "role": "human" }, { "content": "[calculate_square_root(number=256)]", "role": "gpt" }, { "content": "Query: Thank you for your help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,584
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\nAPI Function: [\n {\n \"function\": {\n \"description\": \"Create a reminder\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"title\",\n \"date\"\n ],\n \"properties\": {\n \"title\": {\n \"description\": \"The title of the reminder\",\n \"type\": \"string\"\n },\n \"date\": {\n \"description\": \"The date of the reminder\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"create_reminder\"\n },\n \"type\": \"function\"\n }\n]\n\n[BEGIN OF FORMAT INSTRUCTION]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "คำถาม (Question): Can you 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. My current function allows me to create reminders for you. If you need a reminder to order a pizza, I can certainly help with that.", "role": "gpt" } ]
77,585
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_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_password\",\n \"parameters\": {\n \"properties\": {\n \"length\": {\n \"description\": \"The length of the password\",\n \"type\": \"integer\"\n },\n \"complexity\": {\n \"type\": \"string\",\n \"enum\": [\n \"low\",\n \"medium\",\n \"high\"\n ],\n \"description\": \"The complexity level of the password\"\n }\n },\n \"required\": [\n \"length\",\n \"complexity\"\n ],\n \"type\": \"object\"\n },\n \"description\": \"Generate a random password with specified length and complexity\"\n }\n }\n]", "role": "system" }, { "content": "<query>\nCan you please order a pizza for me from the nearest pizza place?\n</query>", "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. In this case, I can assist you in generating a password.", "role": "gpt" } ]
77,586
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to encode in the QR code\"\n },\n \"size\": {\n \"type\": \"integer\",\n \"description\": \"The size of the QR code in pixels\"\n }\n },\n \"required\": [\n \"text\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "<query>\nHi, I need a QR code for my website. Can you help me with that?\n</query>", "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": "Query: Sure, it's www.mywebsite.com.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\",\n \"size\": 500\n }\n }\n]}", "role": "gpt" } ]
77,587
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:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\nAPI Function: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_stock_price\",\n \"description\": \"Get the current stock price\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"symbol\": {\n \"type\": \"string\",\n \"description\": \"The stock symbol\"\n }\n },\n \"required\": [\n \"symbol\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "Query: Hey, can you tell me the current stock price of Apple?", "role": "human" }, { "content": "[get_stock_price(symbol='AAPL')]", "role": "gpt" }, { "content": "<query>\nGreat, thanks! Can you also book a table for two at my favorite restaurant for tonight?\n</query>", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking a table at a restaurant. I suggest you use a suitable app or website for this task. I'm here to provide information based on the functions I have access to. Is there anything else you would like to know?", "role": "gpt" } ]
77,588
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เครื่องมือ (Tools): [{\"function\": {\"name\": \"get_movie_details\", \"parameters\": {\"properties\": {\"movie_title\": {\"type\": \"string\", \"description\": \"The title of the movie\"}}, \"required\": [\"movie_title\"], \"type\": \"object\"}, \"description\": \"Get details about a specific movie\"}, \"type\": \"function\"}]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "คำถาม (Question): Can you order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I'm not able to perform external tasks like ordering a pizza. My capabilities are currently limited to the functions provided to me. In this case, I can provide details about a specific movie if you provide me with the title.", "role": "gpt" } ]
77,589
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>\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 \"name\": \"calculate_discount\",\n \"description\": \"Calculate the discounted price of an item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The discount percentage\"\n }\n },\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ]\n }\n }\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_restaurants\",\n \"description\": \"Search for restaurants based on location and cuisine\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"location\": {\n \"type\": \"string\",\n \"description\": \"The location to search for restaurants\"\n },\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The desired cuisine type\"\n }\n },\n \"required\": [\n \"location\",\n \"cuisine\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "คำถาม (Question): I saw a jacket I liked in a store. It was priced at $200 but there's a 20% discount. Can you tell me how much it would cost after the discount?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: That's a good deal. What if the discount was 30% instead?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 30\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,590
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[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"description\": \"Calculate the discounted price\",\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"original_price\": {\n \"type\": \"number\",\n \"description\": \"The original price of the item\"\n },\n \"discount_percentage\": {\n \"description\": \"The percentage of discount\",\n \"type\": \"number\"\n }\n }\n },\n \"name\": \"calculate_discount\"\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I saw a dress that I really liked. It was originally priced at $200 but it's on a 20% discount. Can you tell me how much it will cost after the discount?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" } ]
77,591
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n### Tools: [{\"function\": {\"parameters\": {\"required\": [\"min\", \"max\"], \"type\": \"object\", \"properties\": {\"max\": {\"type\": \"integer\", \"description\": \"The maximum value of the range\"}, \"min\": {\"description\": \"The minimum value of the range\", \"type\": \"integer\"}}}, \"description\": \"Generate a random number within a specified range\", \"name\": \"generate_random_number\"}, \"type\": \"function\"}]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "<query>\nI need a random number between 1 and 100.\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Can you generate another random number but this time between 200 and 300?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 200,\n \"max\": 300\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great, thank you!", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
77,592
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>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"name\": \"search_recipes\",\n \"description\": \"Search for recipes based on ingredients\",\n \"parameters\": {\n \"required\": [\n \"ingredients\"\n ],\n \"properties\": {\n \"cuisine\": {\n \"type\": \"string\",\n \"description\": \"The cuisine type to filter the recipes\"\n },\n \"ingredients\": {\n \"description\": \"The list of ingredients to search for\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I have some ingredients and I want to cook something. Can you help me find a recipe?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help you with that. Please tell me the ingredients you have and if you prefer a specific cuisine.", "role": "gpt" }, { "content": "<query>\nI have chicken, tomatoes, and garlic. And I prefer Italian cuisine.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"tomatoes\",\n \"garlic\"\n ],\n \"cuisine\": \"Italian\"\n }\n }\n]", "role": "gpt" }, { "content": "คำถาม (Question): That sounds great! Can you also order these ingredients for me from the supermarket?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as placing orders. I recommend using a grocery delivery service or app for that.", "role": "gpt" } ]
77,593
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[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"description\": \"Search for news articles\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"source\": {\n \"type\": \"string\",\n \"description\": \"The source of the news articles\"\n },\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query for news articles\"\n },\n \"language\": {\n \"description\": \"The language of the news articles\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"search_news\"\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": "Hi, can you find me some news articles about the recent Mars Rover landing?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_news\",\n \"arguments\": {\n \"query\": \"Mars Rover landing\",\n \"source\": \"NASA\",\n \"language\": \"English\"\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's great! Can you also book a table for two at my favorite restaurant for tonight?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book tables at restaurants. My current functions allow me to search for news articles. I recommend using a restaurant reservation app or website for your request.", "role": "gpt" } ]
77,594
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\nAPI Function: [\n {\n \"function\": {\n \"description\": \"Search for recipes based on ingredients\",\n \"name\": \"search_recipes\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"ingredients\"\n ],\n \"properties\": {\n \"ingredients\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The list of ingredients\"\n }\n }\n }\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"generate_invoice\",\n \"description\": \"Generate an invoice for a customer\",\n \"parameters\": {\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"total_amount\": {\n \"type\": \"number\",\n \"description\": \"The total amount of the order\"\n },\n \"order_items\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The items included in the order\",\n \"type\": \"array\"\n }\n },\n \"required\": [\n \"customer_name\",\n \"order_items\",\n \"total_amount\"\n ],\n \"type\": \"object\"\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: I have some leftover chicken and broccoli. Can you find me a recipe that uses these ingredients?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'broccoli'])]", "role": "gpt" } ]
77,595
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\nHere List of functions in JSON format\n[\n {\n \"function\": {\n \"description\": \"Calculate the Body Mass Index (BMI)\",\n \"parameters\": {\n \"required\": [\n \"weight\",\n \"height\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the person in meters\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight of the person in kilograms\"\n }\n }\n },\n \"name\": \"calculate_bmi\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"symbol\": {\n \"description\": \"The stock symbol\",\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"symbol\"\n ]\n },\n \"description\": \"Get the current stock price\",\n \"name\": \"get_stock_price\"\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)]}```\n</format>", "role": "system" }, { "content": "### Instruction: Hi, can you tell me the current stock price of Apple?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"AAPL\"\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: What about Microsoft?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"MSFT\"\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThank you for the information.\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,596
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[TASK INSTRUCTION END]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\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 \"include_symbols\": {\n \"type\": \"boolean\",\n \"description\": \"Whether to include symbols in the password\"\n }\n },\n \"required\": [\n \"length\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "Query: Can you please order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I am 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 password.", "role": "gpt" } ]
77,597
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_area\",\n \"description\": \"Calculate the area of a shape\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"shape\": {\n \"type\": \"string\",\n \"description\": \"The type of shape (e.g., circle, square, triangle)\"\n },\n \"dimensions\": {\n \"type\": \"object\",\n \"properties\": {\n \"radius\": {\n \"type\": \"number\",\n \"description\": \"The radius of the circle (if applicable)\"\n },\n \"side_length\": {\n \"type\": \"number\",\n \"description\": \"The length of the side (if applicable)\"\n },\n \"base\": {\n \"type\": \"number\",\n \"description\": \"The base of the triangle (if applicable)\"\n },\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height of the triangle (if applicable)\"\n }\n },\n \"required\": [\n \"radius\",\n \"side_length\",\n \"base\",\n \"height\"\n ]\n }\n },\n \"required\": [\n \"shape\",\n \"dimensions\"\n ]\n }\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คำถาม (Question): Can you please 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. My current function is to calculate the area of a shape given its dimensions. Is there anything else I can assist you with within my capabilities?", "role": "gpt" } ]
77,598
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[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\n<tools>\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_movie_reviews\",\n \"description\": \"Get reviews of a specific movie\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"movie_id\": {\n \"type\": \"integer\",\n \"description\": \"The ID of the movie\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"The maximum number of reviews to retrieve\"\n }\n },\n \"required\": [\n \"movie_id\"\n ]\n }\n }\n }\n]\n</tools>", "role": "system" }, { "content": "### Instruction: Hi, I want to know the reviews of the movie with ID 12345. Can you get me the top 5 reviews?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_movie_reviews\",\n \"arguments\": {\n \"movie_id\": 12345,\n \"limit\": 5\n }\n }\n]", "role": "gpt" }, { "content": "Thanks for the information.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,599
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```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_bmi\",\n \"description\": \"Calculate the Body Mass Index (BMI) given height and weight\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"height\": {\n \"type\": \"number\",\n \"description\": \"The height in meters\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n }\n },\n \"required\": [\n \"height\",\n \"weight\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you please book a flight for me from New York to London?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm currently unable to perform external tasks like booking flights. My capabilities are limited to the functions provided to me. In this case, I can help you calculate your Body Mass Index (BMI) if you provide me with your height and weight.", "role": "gpt" } ]
77,600