dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
77.6k
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to 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\": \"send_email\",\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"message\": {\n \"type\": \"string\",\n \"description\": \"The content of the email\"\n },\n \"recipient\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n },\n \"subject\": {\n \"description\": \"The subject of the email\",\n \"type\": \"string\"\n }\n }\n }\n }\n }\n]\n[AVAILABLE TOOLS END]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "I need to send an email to my boss. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you want to send?", "role": "gpt" }, { "content": "<query>\nThe recipient's email is boss@company.com. The subject is \"Monthly Report\" and the message is \"Dear Boss, Please find attached the monthly report for your review. Best, [User]\".\n</query>", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Monthly Report', message='Dear Boss, Please find attached the monthly report for your review. Best, [User]')]", "role": "gpt" } ]
77,601
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n</Task>\n\n### Tools: [{\"function\": {\"name\": \"generate_random_number\", \"description\": \"Generate a random number within a specified range\", \"parameters\": {\"properties\": {\"max\": {\"type\": \"number\", \"description\": \"The maximum value of the range\"}, \"min\": {\"description\": \"The minimum value of the range\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"min\", \"max\"]}}, \"type\": \"function\"}]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "I need a random number between 1 and 100.", "role": "human" }, { "content": "[generate_random_number(min=1, max=100)]", "role": "gpt" }, { "content": "### Instruction: Can you generate another random number but this time between 200 and 300?", "role": "human" }, { "content": "[generate_random_number(min=200, max=300)]", "role": "gpt" }, { "content": "### Instruction: Thank you, that's all I needed.", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
77,602
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\nHere List of functions in JSON format\n[\n {\n \"function\": {\n \"description\": \"Convert currency from one type to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"amount\",\n \"from_currency\",\n \"to_currency\"\n ],\n \"properties\": {\n \"from_currency\": {\n \"description\": \"The currency to convert from\",\n \"type\": \"string\"\n },\n \"amount\": {\n \"type\": \"number\",\n \"description\": \"The amount to be converted\"\n },\n \"to_currency\": {\n \"description\": \"The currency to convert to\",\n \"type\": \"string\"\n }\n }\n },\n \"name\": \"convert_currency\"\n },\n \"type\": \"function\"\n },\n {\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"terms\": {\n \"type\": \"integer\",\n \"description\": \"The number of terms in the Fibonacci sequence\"\n }\n },\n \"required\": [\n \"terms\"\n ],\n \"type\": \"object\"\n },\n \"name\": \"calculate_fibonacci_sequence\",\n \"description\": \"Calculate the Fibonacci sequence up to a specified number of terms\"\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): Hi, I need to convert 1000 USD to Euros. Can you help me with that?", "role": "human" }, { "content": "[convert_currency(amount=1000, from_currency='USD', to_currency='EUR')]", "role": "gpt" }, { "content": "Great, now I need to convert 5000 Japanese Yen to British Pounds. Can you do that?", "role": "human" }, { "content": "[convert_currency(amount=5000, from_currency='JPY', to_currency='GBP')]", "role": "gpt" } ]
77,603
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\n[{\"function\": {\"parameters\": {\"properties\": {\"date\": {\"description\": \"The date of the task\", \"type\": \"string\"}, \"task\": {\"type\": \"string\", \"description\": \"The task to be scheduled\"}, \"time\": {\"description\": \"The time of the task\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"task\", \"date\", \"time\"]}, \"name\": \"schedule_task\", \"description\": \"Schedule a task for a specific date and time\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "### Instruction: I need to schedule a task.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the details of the task, the date, and the time you want it scheduled?", "role": "gpt" }, { "content": "คำถาม (Question): Yes, I need to schedule a meeting with my team on 15th March at 10 AM.", "role": "human" }, { "content": "[schedule_task(task='Meeting with team', date='15th March', time='10 AM')]", "role": "gpt" }, { "content": "### Instruction: No, that's all for now. Thank you.", "role": "human" }, { "content": "You're welcome! Don't hesitate to ask if you need any more help. Have a great day!", "role": "gpt" } ]
77,604
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:\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"name\": \"calculate_area\", \"description\": \"Calculate the area of a geometric shape\", \"parameters\": {\"properties\": {\"dimensions\": {\"required\": [\"length\", \"width\"], \"properties\": {\"length\": {\"description\": \"The length of the shape\", \"type\": \"number\"}, \"width\": {\"type\": \"number\", \"description\": \"The width of the shape\"}, \"radius\": {\"description\": \"The radius of the shape\", \"type\": \"number\"}}, \"type\": \"object\"}, \"shape\": {\"type\": \"string\", \"description\": \"The shape (e.g. square, rectangle, circle)\"}}, \"required\": [\"shape\", \"dimensions\"], \"type\": \"object\"}}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "Can you calculate the area of a rectangle with length 5 and width 3?", "role": "human" }, { "content": "[calculate_area(shape='rectangle', dimensions={'length': 5, 'width': 3})]", "role": "gpt" }, { "content": "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 that. Booking a flight is an external task and I don't currently have a function provided for that task. I suggest using a trusted travel website or contacting your preferred airline directly to book your flight.", "role": "gpt" } ]
77,605
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): [{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"origin\", \"destination\"], \"properties\": {\"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}, \"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}}}, \"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Hi, 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": "That's quite far. What about the distance from London to Paris?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"origin\": \"London\",\n \"destination\": \"Paris\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Thanks for the information!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
77,606
glaive-function-calling-v2-extended
[ { "content": "You are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\n[\n {\n \"function\": {\n \"name\": \"get_note\",\n \"description\": \"Get a specific note\",\n \"parameters\": {\n \"required\": [\n \"note_id\"\n ],\n \"properties\": {\n \"note_id\": {\n \"type\": \"string\",\n \"description\": \"The unique identifier of the note\"\n }\n },\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "Query: Hi, I need to retrieve a note. The note id is \"123ABC\".", "role": "human" }, { "content": "[get_note(note_id='123ABC')]", "role": "gpt" } ]
77,607
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\n[AVAILABLE TOOLS START]\n[\n {\n \"function\": {\n \"description\": \"Send an email to a recipient\",\n \"parameters\": {\n \"required\": [\n \"recipient\",\n \"subject\",\n \"content\"\n ],\n \"properties\": {\n \"subject\": {\n \"type\": \"string\",\n \"description\": \"The subject of the email\"\n },\n \"content\": {\n \"description\": \"The content of the email\",\n \"type\": \"string\"\n },\n \"recipient\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n },\n \"attachments\": {\n \"description\": \"Attachments to include in the email\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"type\": \"object\"\n },\n \"name\": \"send_email\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\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 \"description\": \"Generate a random number within a specified range\",\n \"name\": \"generate_random_number\"\n }\n }\n]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "I need a random number between 1 and 100.", "role": "human" }, { "content": "[generate_random_number(min=1, max=100)]", "role": "gpt" }, { "content": "<query>\nCan you generate another random number but this time between 200 and 300?\n</query>", "role": "human" }, { "content": "[generate_random_number(min=200, max=300)]", "role": "gpt" }, { "content": "### Instruction: Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
77,608
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 \"name\": \"calculate_tip\",\n \"parameters\": {\n \"required\": [\n \"bill_total\",\n \"tip_percentage\"\n ],\n \"properties\": {\n \"bill_total\": {\n \"type\": \"number\",\n \"description\": \"The total amount of the bill\"\n },\n \"tip_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of tip to be given\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"Calculate the amount of tip based on bill total and percentage\"\n }\n }\n]", "role": "system" }, { "content": "Query: Hi, I need help with calculating a tip. My bill total is $50 and I want to leave a 20% tip.", "role": "human" }, { "content": "[calculate_tip(bill_total=50, tip_percentage=20)]", "role": "gpt" } ]
77,609
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[TASK INSTRUCTION END]\n\n[\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_loan_payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"principal\",\n \"interest_rate\",\n \"loan_term\"\n ],\n \"properties\": {\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The principal amount of the loan\"\n },\n \"interest_rate\": {\n \"description\": \"The annual interest rate\",\n \"type\": \"number\"\n },\n \"loan_term\": {\n \"description\": \"The loan term in years\",\n \"type\": \"integer\"\n }\n }\n },\n \"description\": \"Calculate the monthly loan payment\"\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": "[BEGIN OF QUERY]\nHi, I need some help with calculating my loan payment.\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the principal amount of the loan, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "### Instruction: Sure, the principal amount is $50000, the annual interest rate is 5%, and the loan term is 10 years.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"principal\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 10\n }\n }\n]}", "role": "gpt" } ]
77,610
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"interest_rate\": {\n \"type\": \"number\",\n \"description\": \"The interest rate on the loan\"\n },\n \"loan_amount\": {\n \"description\": \"The amount of the loan\",\n \"type\": \"number\"\n },\n \"loan_term\": {\n \"type\": \"integer\",\n \"description\": \"The term of the loan in years\"\n }\n }\n },\n \"name\": \"calculate_mortgage_payment\",\n \"description\": \"Calculate the monthly mortgage payment\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need help with calculating my mortgage payment.\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help with that. Could you please provide me with the amount of the loan, the interest rate, and the term of the loan in years?", "role": "gpt" }, { "content": "### Instruction: Sure, the loan amount is $200,000, the interest rate is 3.5%, and the loan term is 30 years.", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_mortgage_payment\",\n \"arguments\": {\n \"loan_amount\": 200000,\n \"interest_rate\": 3.5,\n \"loan_term\": 30\n }\n }\n]", "role": "gpt" } ]
77,611
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n</Task>\n\n### Tools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_random_joke\",\n \"description\": \"Get a random joke\",\n \"parameters\": {}\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI'm feeling a bit down. Can you tell me a joke to cheer me up?\n[END OF QUERY]", "role": "human" }, { "content": "[get_random_joke()]", "role": "gpt" } ]
77,612
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 \"function\": {\n \"parameters\": {\n \"required\": [\n \"original_price\",\n \"discount_percentage\"\n ],\n \"properties\": {\n \"discount_percentage\": {\n \"type\": \"number\",\n \"description\": \"The percentage of discount\"\n },\n \"original_price\": {\n \"description\": \"The original price of an item\",\n \"type\": \"number\"\n }\n },\n \"type\": \"object\"\n },\n \"description\": \"Calculate the discount amount\",\n \"name\": \"calculate_discount\"\n },\n \"type\": \"function\"\n },\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"loan_amount\",\n \"interest_rate\",\n \"loan_term\"\n ],\n \"properties\": {\n \"loan_term\": {\n \"description\": \"The loan term in months\",\n \"type\": \"integer\"\n },\n \"loan_amount\": {\n \"description\": \"The loan amount\",\n \"type\": \"number\"\n },\n \"interest_rate\": {\n \"description\": \"The annual interest rate\",\n \"type\": \"number\"\n }\n }\n },\n \"description\": \"Calculate the monthly payment for a loan\",\n \"name\": \"calculate_loan_payment\"\n }\n }\n]\n[END OF AVAILABLE TOOLS]\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": "<query>\nHi, I need help with calculating my loan payment.\n</query>", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the loan amount, the annual interest rate, and the loan term in months?", "role": "gpt" }, { "content": "The loan amount is $50000, the annual interest rate is 5%, and the loan term is 60 months.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"loan_amount\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 60\n }\n }\n]}", "role": "gpt" } ]
77,613
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"name\": \"generate_qr_code\",\n \"description\": \"Generate a QR code for a given text\",\n \"parameters\": {\n \"properties\": {\n \"text\": {\n \"description\": \"The text to encode\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"text\"\n ]\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need a QR code for my website. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "Query: Sure, it's www.mywebsite.com.", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\"\n }\n }\n]", "role": "gpt" } ]
77,614
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n</Task>\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"translate_text\",\n \"description\": \"Translate text from one language to another\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"The text to be translated\"\n },\n \"sourceLanguage\": {\n \"type\": \"string\",\n \"description\": \"The source language of the text\"\n },\n \"targetLanguage\": {\n \"type\": \"string\",\n \"description\": \"The target language for the translation\"\n }\n },\n \"required\": [\n \"text\",\n \"targetLanguage\"\n ]\n }\n }\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to translate a sentence from English to French. The sentence is \"Hello, how are you?\"", "role": "human" }, { "content": "[translate_text(text='Hello, how are you?', sourceLanguage='English', targetLanguage='French')]", "role": "gpt" }, { "content": "Query: That's great! Now, can you translate \"I am fine, thank you\" from English to Spanish?", "role": "human" }, { "content": "[translate_text(text='I am fine, thank you', sourceLanguage='English', targetLanguage='Spanish')]", "role": "gpt" } ]
77,615
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 \"name\": \"get_random_joke\",\n \"description\": \"Get a random joke from a joke API\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {},\n \"required\": []\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": "คำถาม (Question): I'm feeling a bit down. Can you tell me a joke to cheer me up?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_random_joke\",\n \"arguments\": {}\n }\n]", "role": "gpt" } ]
77,616
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[END OF TASK INSTRUCTION]\n\nเครื่องมือ (Tools): [\n {\n \"function\": {\n \"name\": \"calculate_age\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"birth_date\": {\n \"type\": \"string\",\n \"description\": \"The birth date in format yyyy-mm-dd\"\n }\n },\n \"required\": [\n \"birth_date\"\n ]\n },\n \"description\": \"Calculate the age based on birth date\"\n },\n \"type\": \"function\"\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>\nCan you book a flight for me from New York to London?\n</query>", "role": "human" }, { "content": "I'm sorry, but I can't assist with that. My current capabilities allow me to calculate age based on birth date. I don't have the ability to book flights or perform other external tasks.", "role": "gpt" } ]
77,617
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n</Task>\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"birthdate\": {\"description\": \"The birthdate in YYYY-MM-DD format\", \"type\": \"string\"}}, \"required\": [\"birthdate\"]}, \"description\": \"Calculate the age based on birthdate\", \"name\": \"calculate_age\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "### 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": "<query>\nWow, time flies! Thank 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,618
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[END OF TASK INSTRUCTION]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"properties\": {\n \"credit_hours\": {\n \"description\": \"The credit hours of each course\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n }\n },\n \"grades\": {\n \"items\": {\n \"enum\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"F\"\n ],\n \"type\": \"string\"\n },\n \"type\": \"array\",\n \"description\": \"The grades obtained in each course\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"grades\",\n \"credit_hours\"\n ]\n },\n \"name\": \"calculate_gpa\",\n \"description\": \"Calculate the Grade Point Average (GPA) based on the grades and credit hours\"\n }\n }\n]", "role": "system" }, { "content": "Hi, I need help calculating my GPA. I have the grades and credit hours for each of my courses.", "role": "human" }, { "content": "Of course, I can help with that. Please provide me with the grades and the corresponding credit hours for each of your courses.", "role": "gpt" }, { "content": "คำถาม (Question): Sure, here they are. Grades: [\"A\", \"B\", \"A\", \"C\", \"B\"] and Credit Hours: [3, 4, 3, 2, 3].", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_gpa\",\n \"arguments\": {\n \"grades\": [\n \"A\",\n \"B\",\n \"A\",\n \"C\",\n \"B\"\n ],\n \"credit_hours\": [\n 3,\n 4,\n 3,\n 2,\n 3\n ]\n }\n }\n]}", "role": "gpt" } ]
77,619
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF FORMAT INSTRUCTION]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the monthly mortgage payment\", \"parameters\": {\"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"properties\": {\"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}, \"interest_rate\": {\"description\": \"The annual interest rate\", \"type\": \"number\"}, \"loan_amount\": {\"description\": \"The loan amount\", \"type\": \"number\"}}, \"type\": \"object\"}, \"name\": \"calculate_mortgage_payment\"}}]", "role": "system" }, { "content": "คำถาม (Question): 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": "Query: Sure, the loan amount is $200,000, the annual interest rate is 3.5%, and the loan term is 30 years.", "role": "human" }, { "content": "[calculate_mortgage_payment(loan_amount=200000, interest_rate=3.5, loan_term=30)]", "role": "gpt" } ]
77,620
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\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"name\": \"get_definition\", \"description\": \"Get the definition of a word\", \"parameters\": {\"properties\": {\"word\": {\"type\": \"string\", \"description\": \"The word to get the definition of\"}}, \"required\": [\"word\"], \"type\": \"object\"}}}, {\"function\": {\"description\": \"Calculate the tax amount based on income and tax rate\", \"parameters\": {\"type\": \"object\", \"properties\": {\"income\": {\"description\": \"The income amount\", \"type\": \"number\"}, \"tax_rate\": {\"description\": \"The tax rate in percentage\", \"type\": \"number\"}}, \"required\": [\"income\", \"tax_rate\"]}, \"name\": \"calculate_tax\"}, \"type\": \"function\"}]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "[BEGIN OF QUERY]\nWhat is the definition of the word 'serendipity'?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"serendipity\"\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: What about 'ephemeral'?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"ephemeral\"\n }\n }\n]", "role": "gpt" }, { "content": "<query>\nInteresting, how about 'quintessential'?\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"quintessential\"\n }\n }\n]", "role": "gpt" } ]
77,621
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[TASK INSTRUCTION END]\n\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"parameters\": {\n \"required\": [\n \"ingredients\"\n ],\n \"type\": \"object\",\n \"properties\": {\n \"ingredients\": {\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"The list of ingredients\",\n \"type\": \"array\"\n }\n }\n },\n \"description\": \"Search for a recipe based on ingredients\",\n \"name\": \"search_recipe\"\n }\n }\n]\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "### Instruction: I have some chicken, tomatoes and cheese. What can I cook with these?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_recipe\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"tomatoes\",\n \"cheese\"\n ]\n }\n }\n]}", "role": "gpt" } ]
77,622
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: [{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"to_currency\": {\"type\": \"string\", \"description\": \"The unit of currency to convert to\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount of currency to convert\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The unit of currency to convert from\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}, \"description\": \"Convert currency from one unit to another\", \"name\": \"convert_currency\"}, \"type\": \"function\"}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: Can you 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 as it's an external task and I don't have a function provided for that specific task. I can help with currency conversion if you need that.", "role": "gpt" } ]
77,623
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 AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"description\": \"Create an invoice for a customer\",\n \"parameters\": {\n \"type\": \"object\",\n \"required\": [\n \"customer_name\",\n \"items\"\n ],\n \"properties\": {\n \"customer_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the customer\"\n },\n \"items\": {\n \"items\": {\n \"required\": [\n \"name\",\n \"price\",\n \"quantity\"\n ],\n \"properties\": {\n \"name\": {\n \"description\": \"The name of the item\",\n \"type\": \"string\"\n },\n \"price\": {\n \"description\": \"The price of the item\",\n \"type\": \"number\"\n },\n \"quantity\": {\n \"description\": \"The quantity of the item\",\n \"type\": \"integer\"\n }\n },\n \"type\": \"object\"\n },\n \"type\": \"array\"\n }\n }\n },\n \"name\": \"create_invoice\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "คำถาม (Question): Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with that. The function I have available is for creating invoices. I don't have the capability to book flights as it's an external task and no function has been provided for it.", "role": "gpt" } ]
77,624
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_loan_payment\",\n \"description\": \"Calculate the monthly loan payment\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"principal\": {\n \"type\": \"number\",\n \"description\": \"The loan 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]", "role": "system" }, { "content": "Hi, I need help with calculating my monthly loan payment.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the principal loan amount, the annual interest rate, and the term of the loan in years?", "role": "gpt" }, { "content": "<query>\nThe principal loan amount is $200,000. The annual interest rate is 5% and the term of the loan is 30 years.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"principal\": 200000,\n \"interest_rate\": 5,\n \"term\": 30\n }\n }\n]", "role": "gpt" } ]
77,625
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n[TASK INSTRUCTION END]\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [\n {\n \"function\": {\n \"description\": \"Calculate the Body Mass Index (BMI) based on weight and height\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"height\": {\n \"description\": \"The height in meters\",\n \"type\": \"number\"\n },\n \"weight\": {\n \"type\": \"number\",\n \"description\": \"The weight in kilograms\"\n }\n },\n \"required\": [\n \"weight\",\n \"height\"\n ]\n },\n \"name\": \"calculate_bmi\"\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "คำถาม (Question): Hi, I would like to know my BMI. I weigh 70 kg and my height is 1.75 m.", "role": "human" }, { "content": "[calculate_bmi(weight=70, height=1.75)]", "role": "gpt" } ]
77,626
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n[END OF TASK INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"convert_currency\", \"description\": \"Convert between currencies\", \"parameters\": {\"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The currency code to convert from\"}, \"to_currency\": {\"description\": \"The currency code to convert to\", \"type\": \"string\"}}, \"type\": \"object\"}}}]\n[AVAILABLE TOOLS END]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "### Instruction: 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 the functions provided to me, such as converting currencies. If you need help with that or any other function I'm equipped with, feel free to ask!", "role": "gpt" } ]
77,627
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\nเครื่องมือ (Tools): [\n {\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\": \"number\",\n \"description\": \"The maximum value of the range\"\n },\n \"min\": {\n \"type\": \"number\",\n \"description\": \"The minimum value of the range\"\n }\n },\n \"required\": [\n \"min\",\n \"max\"\n ],\n \"type\": \"object\"\n }\n },\n \"type\": \"function\"\n }\n]", "role": "system" }, { "content": "<query>\nHi, I need a random number between 1 and 100.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]", "role": "gpt" }, { "content": "Great! Now, 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. I can assist you with tasks that involve the functions provided to me.", "role": "gpt" } ]
77,628
glaive-function-calling-v2-extended
[ { "content": "You are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[\n {\n \"function\": {\n \"description\": \"Send an email\",\n \"parameters\": {\n \"properties\": {\n \"subject\": {\n \"description\": \"The subject of the email\",\n \"type\": \"string\"\n },\n \"message\": {\n \"type\": \"string\",\n \"description\": \"The content of the email\"\n },\n \"recipient\": {\n \"description\": \"The email address of the recipient\",\n \"type\": \"string\"\n }\n },\n \"type\": \"object\",\n \"required\": [\n \"recipient\",\n \"subject\",\n \"message\"\n ]\n },\n \"name\": \"send_email\"\n },\n \"type\": \"function\"\n }\n]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "I need to send an email to my boss. Can you help me with that?", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the content you wish to send?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, the recipient's email is boss@company.com. The subject is \"Project Update\" and the message is \"Dear Boss, The project is on track and we are set to complete it by the end of this week. Regards, [User's Name]\".", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Project Update', message=\"Dear Boss, The project is on track and we are set to complete it by the end of this week. Regards, [User's Name]\")]", "role": "gpt" } ]
77,629
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n</Task>\n\n### Tools: [{\"function\": {\"parameters\": {}, \"description\": \"Generate a random inspirational quote\", \"name\": \"generate_random_quote\"}, \"type\": \"function\"}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "Query: Hi, can you help me with something?", "role": "human" }, { "content": "Of course! That's what I'm here for. What do you need help with?", "role": "gpt" }, { "content": "Query: I need to book a flight to New York. Can you do that for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks like booking flights. My current function allows me to generate random inspirational quotes. Is there anything else you would like assistance with?", "role": "gpt" }, { "content": "Oh, I see. Well, in that case, can you generate a random inspirational quote for me?", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_quote\",\n \"arguments\": {}\n }\n]", "role": "gpt" } ]
77,630
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\nTools: [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"calculate_tip\",\n \"description\": \"Calculate the tip amount\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"tip_percentage\": {\n \"description\": \"The tip percentage\",\n \"type\": \"number\"\n },\n \"bill_amount\": {\n \"type\": \"number\",\n \"description\": \"The total bill amount\"\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\"}}, ...]```", "role": "system" }, { "content": "คำถาม (Question): 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" } ]
77,631
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n[TASK INSTRUCTION END]\n\nTools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"type\": \"object\", \"properties\": {\"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}, \"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}}}, \"name\": \"convert_currency\", \"description\": \"Convert an amount from one currency to another\"}}]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Can you book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as booking flights. My current function allows me to convert currency amounts. If you need help with that, feel free to ask!", "role": "gpt" } ]
77,632
glaive-function-calling-v2-extended
[ { "content": "You are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\nเครื่องมือ (Tools): [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"search_books\",\n \"description\": \"Search for books based on title, author, or genre\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"query\": {\n \"type\": \"string\",\n \"description\": \"The search query\"\n }\n },\n \"required\": [\n \"query\"\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": "คำถาม (Question): I am looking for a book but I can't remember the full title. It had the word \"Sun\" in it.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"query\": \"Sun\"\n }\n }\n]}", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe second one sounds familiar. Can you find more books by Peter Christen Asbjørnsen?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"query\": \"Peter Christen Asbj\\u00f8rnsen\"\n }\n }\n]}", "role": "gpt" } ]
77,633