dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
77.6k
glaive-function-calling-v2-extended
[ { "content": "You are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\nเครื่องมือ (Tools): [{\"function\": {\"description\": \"Send an email to a recipient\", \"parameters\": {\"properties\": {\"recipient\": {\"description\": \"The email address of the recipient\", \"type\": \"string\"}, \"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}, \"message\": {\"description\": \"The body of the email message\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"recipient\", \"subject\", \"message\"]}, \"name\": \"send_email\"}, \"type\": \"function\"}]\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]\nI need to send an email to my boss. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the recipient's email address, the subject of the email, and the message you want to send?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nSure, the recipient's email is boss@company.com. The subject is \"Project Update\" and the message is \"Dear Boss, I have completed the project as per the given deadline. I have attached the final report for your review. Regards, [User's Name]\".\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"recipient\": \"boss@company.com\",\n \"subject\": \"Project Update\",\n \"message\": \"Dear Boss, I have completed the project as per the given deadline. I have attached the final report for your review. Regards, [User's Name]\"\n }\n }\n]}", "role": "gpt" } ]
1
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): [{\"type\": \"function\", \"function\": {\"name\": \"calculate_loan_payment\", \"description\": \"Calculate the monthly loan payment\", \"parameters\": {\"properties\": {\"principal_amount\": {\"type\": \"number\", \"description\": \"The principal amount of the loan\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}, \"loan_term\": {\"description\": \"The loan term in months\", \"type\": \"integer\"}}, \"required\": [\"principal_amount\", \"interest_rate\", \"loan_term\"], \"type\": \"object\"}}}]\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nHi, I need some help with calculating my loan payment.\n</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 months?", "role": "gpt" }, { "content": "Sure, the principal 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 \"principal_amount\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 60\n }\n }\n]}", "role": "gpt" } ]
2
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n</Task>\n\n<format>\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"body\": {\"type\": \"string\", \"description\": \"The content of the email\"}, \"to\": {\"type\": \"string\", \"description\": \"The email address of the recipient\"}, \"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"to\", \"subject\", \"body\"]}, \"description\": \"Send an email\", \"name\": \"send_email\"}}]\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 email address of your boss, the subject of the email, and the content you want to include in the email?", "role": "gpt" }, { "content": "### Instruction: Sure, the email address is boss@company.com. The subject is \"Monthly Report\" and the content is \"Dear Boss, Please find attached the monthly report for your review. Best, [Your Name]\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"to\": \"boss@company.com\",\n \"subject\": \"Monthly Report\",\n \"body\": \"Dear Boss, Please find attached the monthly report for your review. Best, [Your Name]\"\n }\n }\n]}", "role": "gpt" } ]
3
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\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_tip\", \"parameters\": {\"type\": \"object\", \"properties\": {\"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage tip to give\"}, \"bill_amount\": {\"type\": \"number\", \"description\": \"The total bill amount\"}}, \"required\": [\"bill_amount\", \"tip_percentage\"]}, \"description\": \"Calculate the tip amount for a bill\"}}]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "<query>\nHi, I need help with calculating a tip. My bill is $50 and I want to leave a 20% tip.\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 50,\n \"tip_percentage\": 20\n }\n }\n]}", "role": "gpt" } ]
4
glaive-function-calling-v2-extended
[ { "content": "You are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"username\", \"password\", \"email\", \"age\"], \"properties\": {\"username\": {\"description\": \"The username of the user\", \"type\": \"string\"}, \"age\": {\"description\": \"The age of the user\", \"type\": \"integer\"}, \"email\": {\"description\": \"The email address of the user\", \"type\": \"string\"}, \"password\": {\"type\": \"string\", \"description\": \"The password of the user\"}}}, \"description\": \"Create a user account\", \"name\": \"create_account\"}, \"type\": \"function\"}]\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.", "role": "system" }, { "content": "Can you help me book a flight to New York?", "role": "human" }, { "content": "I'm sorry, but I don't have the ability to book flights. My current function is to assist with creating user accounts. If you need help with that, feel free to ask.", "role": "gpt" } ]
5
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"name\": \"analyze_product_reviews\", \"parameters\": {\"required\": [\"product_id\", \"reviews\"], \"properties\": {\"reviews\": {\"description\": \"The product reviews\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, \"product_id\": {\"type\": \"string\", \"description\": \"The ID of the product\"}}, \"type\": \"object\"}, \"description\": \"Analyze the reviews of a product\"}}]", "role": "system" }, { "content": "คำถาม (Question): Can you please order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to analyzing product reviews. If you need help with that, feel free to ask!", "role": "gpt" } ]
6
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\nTools: [{\"function\": {\"description\": \"Calculate the tip amount\", \"parameters\": {\"properties\": {\"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}, \"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage tip to leave\"}}, \"type\": \"object\", \"required\": [\"bill_amount\", \"tip_percentage\"]}, \"name\": \"calculate_tip\"}, \"type\": \"function\"}]\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 help with calculating a tip. My bill amount is $50 and I want to leave a 15% tip.", "role": "human" }, { "content": "{\"tool_calls\": [\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, thank you! What if I want to leave a 20% tip instead?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 50,\n \"tip_percentage\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nPerfect, thanks for the help!\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
7
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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"get_stock_price\", \"description\": \"Get the current stock price\", \"parameters\": {\"required\": [\"symbol\"], \"properties\": {\"symbol\": {\"type\": \"string\", \"description\": \"The stock symbol\"}}, \"type\": \"object\"}}}]\n[AVAILABLE TOOLS 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]", "role": "system" }, { "content": "Hi, can you tell me the current price of Apple stock?", "role": "human" }, { "content": "[get_stock_price(symbol='AAPL')]", "role": "gpt" }, { "content": "### Instruction: What about Microsoft?", "role": "human" }, { "content": "[get_stock_price(symbol='MSFT')]", "role": "gpt" }, { "content": "### Instruction: Thank you for the information.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
8
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"name\": \"generate_password\", \"description\": \"Generate a random password\", \"parameters\": {\"properties\": {\"include_symbols\": {\"type\": \"boolean\", \"description\": \"Include symbols in the password\"}, \"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"type\": \"object\", \"required\": [\"length\"]}}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "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": "Let's make it 12 characters long.", "role": "human" }, { "content": "Would you like to include symbols in your password?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nYes, please include symbols.\n[END OF QUERY]", "role": "human" }, { "content": "[generate_password(length=12, include_symbols=True)]", "role": "gpt" } ]
9
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]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Add a new contact to the address book\", \"parameters\": {\"properties\": {\"email\": {\"description\": \"The email address of the contact\", \"type\": \"string\"}, \"phone_number\": {\"description\": \"The phone number of the contact\", \"type\": \"string\"}, \"name\": {\"description\": \"The name of the contact\", \"type\": \"string\"}}, \"required\": [\"name\"], \"type\": \"object\"}, \"name\": \"add_contact\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you order a pizza for me?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform that task. My current capabilities are limited to adding contacts to the address book. I don't have a function to order food or perform other external tasks.", "role": "gpt" } ]
10
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n\nเครื่องมือ (Tools): [{\"function\": {\"name\": \"get_random_quote\", \"description\": \"Get a random quote from a database\", \"parameters\": {}}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "### Instruction: Hi, can you help me with something?", "role": "human" }, { "content": "Of course! I'm here to assist you. What do you need help with?", "role": "gpt" }, { "content": "### Instruction: Can you book a flight for me?", "role": "human" }, { "content": "I'm sorry, but I'm currently unable to assist with booking flights as I don't have a function for that specific task. However, I can provide you with a random quote if you'd like.", "role": "gpt" }, { "content": "<query>\nSure, I'd love to hear a quote.\n</query>", "role": "human" }, { "content": "[get_random_quote()]", "role": "gpt" }, { "content": "คำถาม (Question): That's a great quote! Thanks for sharing.", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
11
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:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nเครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"properties\": {\"mood\": {\"description\": \"The mood of the music\", \"type\": \"string\"}, \"genre\": {\"description\": \"The music genre\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"genre\"]}, \"name\": \"play_music\", \"description\": \"Play music based on user's preferences\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "I'm in the mood for some music. Can you play something for me?", "role": "human" }, { "content": "Of course! Could you please tell me your preferred genre and mood for the music?", "role": "gpt" }, { "content": "Query: I would like to listen to some jazz music. And I'm feeling quite relaxed.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"play_music\",\n \"arguments\": {\n \"genre\": \"jazz\",\n \"mood\": \"relaxed\"\n }\n }\n]}", "role": "gpt" } ]
12
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\nTools: [{\"function\": {\"name\": \"calculate_tip\", \"parameters\": {\"properties\": {\"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}, \"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage of tip to be given\"}}, \"required\": [\"bill_amount\", \"tip_percentage\"], \"type\": \"object\"}, \"description\": \"Calculate the tip amount\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "Query: Hi, I need help with calculating a tip. My bill amount is $50 and I want to leave a 15% tip.", "role": "human" }, { "content": "[calculate_tip(bill_amount=50, tip_percentage=15)]", "role": "gpt" }, { "content": "Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
13
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### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on birthdate\", \"name\": \"calculate_age\", \"parameters\": {\"properties\": {\"birthdate\": {\"description\": \"The birthdate in YYYY-MM-DD format\", \"type\": \"string\"}}, \"type\": \"object\"}}}]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "<query>\nHi, I was born on 1990-05-15. Can you tell me how old I am today?\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birthdate\": \"1990-05-15\"\n }\n }\n]", "role": "gpt" } ]
14
glaive-function-calling-v2-extended
[ { "content": "You are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"weight\", \"height\"], \"properties\": {\"weight\": {\"description\": \"The weight in kilograms\", \"type\": \"number\"}, \"height\": {\"description\": \"The height in meters\", \"type\": \"number\"}}, \"type\": \"object\"}, \"description\": \"Calculate the Body Mass Index (BMI)\", \"name\": \"calculate_bmi\"}}]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I would like to calculate my BMI. I weigh 70 kilograms and my height is 1.75 meters.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 70,\n \"height\": 1.75\n }\n }\n]}", "role": "gpt" } ]
15
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[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\nTools: [{\"function\": {\"name\": \"create_user\", \"parameters\": {\"type\": \"object\", \"required\": [\"name\", \"email\", \"password\"], \"properties\": {\"name\": {\"description\": \"The name of the user\", \"type\": \"string\"}, \"password\": {\"description\": \"The password for the user\", \"type\": \"string\"}, \"email\": {\"type\": \"string\", \"description\": \"The email address of the user\"}}}, \"description\": \"Create a new user\"}, \"type\": \"function\"}, {\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"transaction_id\", \"amount\", \"customer_name\"], \"properties\": {\"customer_name\": {\"description\": \"The name of the customer\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount of the transaction\", \"type\": \"number\"}, \"transaction_id\": {\"type\": \"string\", \"description\": \"The ID of the transaction\"}}}, \"description\": \"Create an invoice for a specific transaction\", \"name\": \"create_invoice\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to create an invoice for a transaction.\n[END OF QUERY]", "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's name?", "role": "gpt" }, { "content": "### Instruction: The transaction ID is 12345, the amount is $500, and the customer's name is John Doe.", "role": "human" }, { "content": "[create_invoice(transaction_id='12345', amount=500, customer_name='John Doe')]", "role": "gpt" } ]
16
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[{\"function\": {\"name\": \"create_contact\", \"description\": \"Create a new contact\", \"parameters\": {\"properties\": {\"phone\": {\"description\": \"The phone number of the contact\", \"type\": \"string\"}, \"email\": {\"format\": \"email\", \"description\": \"The email address of the contact\", \"type\": \"string\"}, \"name\": {\"description\": \"The name of the contact\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"name\", \"phone\"]}}, \"type\": \"function\"}]\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]\nCan you order a pizza for me?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My capabilities are currently limited to the functions provided to me, such as creating a new contact.", "role": "gpt" } ]
17
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to the following functions. You must determine when it's necessary to use function or tool calls to achieve the goal and when it's better not to use them. Just use them if required.\n[TASK INSTRUCTION END]\n\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_mortgage_payment\", \"description\": \"Calculate the monthly mortgage payment amount\", \"parameters\": {\"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"type\": \"object\", \"properties\": {\"loan_amount\": {\"description\": \"The amount of the loan\", \"type\": \"number\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}}}}}]\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": "### 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": "<query>\nSure, the loan amount is $200,000, the annual interest rate is 3.5%, and the loan term is 30 years.\n</query>", "role": "human" }, { "content": "[calculate_mortgage_payment(loan_amount=200000, interest_rate=3.5, loan_term=30)]", "role": "gpt" } ]
18
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\n[{\"function\": {\"parameters\": {\"properties\": {\"size\": {\"type\": \"integer\", \"description\": \"The size of the QR code image\"}, \"data\": {\"type\": \"string\", \"description\": \"The data to be encoded in the QR code\"}}, \"required\": [\"data\", \"size\"], \"type\": \"object\"}, \"description\": \"Generate a QR code image\", \"name\": \"generate_qr_code\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Generate an invoice\", \"name\": \"generate_invoice\", \"parameters\": {\"properties\": {\"customer_name\": {\"description\": \"The name of the customer\", \"type\": \"string\"}, \"invoice_items\": {\"description\": \"The list of items in the invoice\", \"type\": \"array\", \"items\": {\"required\": [\"item_name\", \"quantity\", \"price\"], \"properties\": {\"price\": {\"type\": \"number\", \"description\": \"The price of the item\"}, \"item_name\": {\"type\": \"string\", \"description\": \"The name of the item\"}, \"quantity\": {\"description\": \"The quantity of the item\", \"type\": \"integer\"}}, \"type\": \"object\"}}, \"tax_rate\": {\"type\": \"number\", \"description\": \"The applicable tax rate\"}}, \"required\": [\"customer_name\", \"invoice_items\"], \"type\": \"object\"}}}]", "role": "system" }, { "content": "Query: I need to generate an invoice for a customer named John Doe. He bought 2 apples for $1 each and 3 bananas for $0.5 each. The tax rate is 10%.", "role": "human" }, { "content": "[generate_invoice(customer_name='John Doe', invoice_items=[{'item_name': 'apple', 'quantity': 2, 'price': 1}, {'item_name': 'banana', 'quantity': 3, 'price': 0.5}], tax_rate=10)]", "role": "gpt" } ]
19
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\nAPI Function: [{\"function\": {\"parameters\": {\"required\": [\"query\"], \"type\": \"object\", \"properties\": {\"query\": {\"description\": \"The search term or topic to be searched on Wikipedia\", \"type\": \"string\"}}}, \"description\": \"Search for a specific topic on Wikipedia\", \"name\": \"search_wikipedia\"}, \"type\": \"function\"}]\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: Can you tell me about the Eiffel Tower?", "role": "human" }, { "content": "[search_wikipedia(query='Eiffel Tower')]", "role": "gpt" }, { "content": "### Instruction: That's interesting. Can you tell me about Gustave Eiffel?", "role": "human" }, { "content": "[search_wikipedia(query='Gustave Eiffel')]", "role": "gpt" } ]
20
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 INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the Body Mass Index (BMI)\", \"name\": \"calculate_bmi\", \"parameters\": {\"properties\": {\"height\": {\"description\": \"The height in meters\", \"type\": \"number\"}, \"weight\": {\"type\": \"number\", \"description\": \"The weight in kilograms\"}}, \"required\": [\"weight\", \"height\"], \"type\": \"object\"}}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "Query: Can you book a flight for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current function allows me to calculate Body Mass Index (BMI) based on the weight and height you provide. Is there anything else I can assist you with?", "role": "gpt" } ]
21
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[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"properties\": {\"input_data\": {\"description\": \"The data to be encoded in the QR code\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"input_data\"]}, \"name\": \"generate_qr_code\", \"description\": \"Generate a QR code for a given input\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\n\n<format>\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need a QR code for my website. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "Of course, I can help you with that. Could you please provide me with the URL of your website?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, it's www.mywebsite.com.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"input_data\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" } ]
22
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\n<tools>\n[{\"function\": {\"parameters\": {\"properties\": {\"keywords\": {\"type\": \"string\", \"description\": \"The keywords to search for in movie titles or actors\"}}, \"type\": \"object\", \"required\": [\"keywords\"]}, \"name\": \"search_movies\", \"description\": \"Search for movies based on keywords\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Check visa requirements for a specific country\", \"parameters\": {\"type\": \"object\", \"properties\": {\"country\": {\"type\": \"string\", \"description\": \"The country to check visa requirements for\"}}, \"required\": [\"country\"]}, \"name\": \"check_visa_requirements\"}}]\n</tools>", "role": "system" }, { "content": "Query: Hi, I am planning to travel to Japan. Can you tell me if I need a visa?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"check_visa_requirements\",\n \"arguments\": {\n \"country\": \"Japan\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Okay, thank you for the information. What about France? Do I need a visa for France?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"check_visa_requirements\",\n \"arguments\": {\n \"country\": \"France\"\n }\n }\n]}", "role": "gpt" } ]
23
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>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nเครื่องมือ (Tools): [{\"function\": {\"description\": \"Generate a QR code for a given string\", \"parameters\": {\"type\": \"object\", \"required\": [\"text\"], \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to encode in the QR code\"}}}, \"name\": \"generate_qr_code\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "<query>\nHey, I need a QR code for my website. Can you generate one for me?\n</query>", "role": "human" }, { "content": "Of course, I can help with that. Please provide me with the URL of your website.", "role": "gpt" }, { "content": "<query>\nSure, it's www.mywebsite.com.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\"\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: That's great! Now, can you also help me to post this QR code on my social media accounts?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks such as posting on social media. I suggest you download the QR code and post it manually on your social media accounts.", "role": "gpt" } ]
24
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[{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"end_point\": {\"description\": \"The end point\", \"type\": \"string\"}, \"start_point\": {\"type\": \"string\", \"description\": \"The starting point\"}}, \"required\": [\"start_point\", \"end_point\"]}, \"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two points on the map\"}, \"type\": \"function\"}]\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>", "role": "system" }, { "content": "<query>\nHi, I need to know the distance between New York and Los Angeles.\n</query>", "role": "human" }, { "content": "[calculate_distance(start_point='New York', end_point='Los Angeles')]", "role": "gpt" }, { "content": "คำถาม (Question): That's quite a distance! What about the distance from London to Paris?", "role": "human" }, { "content": "[calculate_distance(start_point='London', end_point='Paris')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThanks 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" } ]
25
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{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\nAPI Function: [{\"function\": {\"name\": \"calculate_area\", \"description\": \"Calculate area of a geometric shape\", \"parameters\": {\"type\": \"object\", \"properties\": {\"shape\": {\"type\": \"string\", \"description\": \"The shape type (e.g. square, rectangle, circle)\"}, \"dimensions\": {\"type\": \"object\", \"required\": [\"length\", \"width\", \"radius\"], \"properties\": {\"width\": {\"description\": \"The width of the shape\", \"type\": \"number\"}, \"length\": {\"type\": \"number\", \"description\": \"The length of the shape\"}, \"radius\": {\"type\": \"number\", \"description\": \"The radius of the shape\"}}}}, \"required\": [\"shape\", \"dimensions\"]}}, \"type\": \"function\"}, {\"function\": {\"name\": \"create_user_account\", \"description\": \"Create a new user account\", \"parameters\": {\"properties\": {\"username\": {\"description\": \"The username for the new account\", \"type\": \"string\"}, \"email\": {\"type\": \"string\", \"description\": \"The email address for the new account\"}, \"password\": {\"type\": \"string\", \"description\": \"The password for the new account\"}}, \"required\": [\"username\", \"password\", \"email\"], \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "<query>\nI want to create a new account.\n</query>", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with a username, password, and email address that you'd like to use for your new account?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, I want the username to be \"JohnDoe\", password to be \"password123\" and email to be \"johndoe@example.com\".", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"create_user_account\",\n \"arguments\": {\n \"username\": \"JohnDoe\",\n \"password\": \"password123\",\n \"email\": \"johndoe@example.com\"\n }\n }\n]}", "role": "gpt" } ]
26
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เครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"name\": \"get_definition\", \"description\": \"Get the definition of a word\", \"parameters\": {\"type\": \"object\", \"required\": [\"word\"], \"properties\": {\"word\": {\"type\": \"string\", \"description\": \"The word for which to get the definition\"}}}}}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nWhat does the word 'serendipity' mean?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"serendipity\"\n }\n }\n]", "role": "gpt" }, { "content": "คำถาม (Question): Interesting! What about 'ephemeral'?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"ephemeral\"\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: Thank you, that was helpful!", "role": "human" }, { "content": "You're welcome! If you have any other words you'd like to know the definition of, feel free to ask.", "role": "gpt" } ]
27
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\nTools: [{\"function\": {\"name\": \"search_wikipedia\", \"description\": \"Search for a topic on Wikipedia\", \"parameters\": {\"properties\": {\"language\": {\"description\": \"The language of the Wikipedia page\", \"type\": \"string\"}, \"query\": {\"description\": \"The topic to search for\", \"type\": \"string\"}}, \"required\": [\"query\"], \"type\": \"object\"}}, \"type\": \"function\"}, {\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"word\"], \"properties\": {\"language\": {\"type\": \"string\", \"description\": \"The language of the word\"}, \"word\": {\"type\": \"string\", \"description\": \"The word to get the definition for\"}}}, \"name\": \"get_definition\", \"description\": \"Get the definition of a word\"}, \"type\": \"function\"}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "### Instruction: Can you find information about the Eiffel Tower in French?", "role": "human" }, { "content": "[\n {\n \"name\": \"search_wikipedia\",\n \"arguments\": {\n \"query\": \"Eiffel Tower\",\n \"language\": \"French\"\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: That's interesting. Can you find more information about its construction?", "role": "human" }, { "content": "[\n {\n \"name\": \"search_wikipedia\",\n \"arguments\": {\n \"query\": \"Eiffel Tower construction\",\n \"language\": \"French\"\n }\n }\n]", "role": "gpt" } ]
28
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 INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nเครื่องมือ (Tools): [{\"function\": {\"name\": \"calculate_loan_payment\", \"description\": \"Calculate the monthly payment for a loan\", \"parameters\": {\"properties\": {\"loan_term\": {\"description\": \"The term of the loan in years\", \"type\": \"integer\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate for the loan\"}, \"loan_amount\": {\"type\": \"number\", \"description\": \"The amount of the loan\"}}, \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): Can you please book a flight for me from New York to London?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights or perform external tasks. My current function allows me to calculate loan payments. If you need help with that, I'd be more than happy to assist you.", "role": "gpt" } ]
29
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_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_age\", \"parameters\": {\"required\": [\"date_of_birth\"], \"properties\": {\"date_of_birth\": {\"type\": \"string\", \"description\": \"The date of birth in format YYYY-MM-DD\"}}, \"type\": \"object\"}, \"description\": \"Calculate the age based on date of birth\"}}]\n</tools>", "role": "system" }, { "content": "<query>\nHello, can you help me calculate my age? I was born on 1990-05-15.\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"date_of_birth\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Great, thanks! Can you also book a table for two at my favourite restaurant for tonight?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to perform external tasks like booking a table at a restaurant. My current functions are limited to calculating age based on date of birth. I recommend using a restaurant reservation app or website for your request.", "role": "gpt" } ]
30
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the tip amount\", \"name\": \"calculate_tip\", \"parameters\": {\"properties\": {\"tip_percentage\": {\"type\": \"number\", \"description\": \"The tip percentage\"}, \"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}}, \"required\": [\"bill_amount\", \"tip_percentage\"], \"type\": \"object\"}}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "Hi, I need help with calculating a tip. My bill amount is $50 and I want to leave a 15% tip.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 50,\n \"tip_percentage\": 15\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Great, thanks for the help!", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
31
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n[FORMAT INSTRUCTION START]\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: [{\"function\": {\"parameters\": {\"required\": [\"word\", \"language\"], \"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\", \"description\": \"The word to be translated\"}, \"language\": {\"description\": \"The target language of the translation\", \"type\": \"string\"}}}, \"description\": \"Get the translation of a word\", \"name\": \"get_translation\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "<query>\nCan you order a pizza for me?\n</query>", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me, such as translating words. If you need help with translations, feel free to ask!", "role": "gpt" } ]
32
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\n[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"price_range\": {\"type\": \"string\", \"description\": \"The price range to filter the results\"}, \"location\": {\"type\": \"string\", \"description\": \"The location to search for restaurants\"}, \"cuisine\": {\"type\": \"string\", \"description\": \"The type of cuisine to filter the results\"}}}, \"name\": \"find_nearby_restaurants\", \"description\": \"Find nearby restaurants based on location\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คำถาม (Question): I am in New York and I am looking for Italian restaurants. Can you help?", "role": "human" }, { "content": "[find_nearby_restaurants(location='New York', cuisine='Italian')]", "role": "gpt" }, { "content": "Query: What about some budget-friendly options?", "role": "human" }, { "content": "[find_nearby_restaurants(location='New York', cuisine='Italian', price_range='$')]", "role": "gpt" } ]
33
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[{\"function\": {\"name\": \"play_music\", \"description\": \"Play music based on user's preference\", \"parameters\": {\"properties\": {\"genre\": {\"description\": \"The genre of music to play\", \"type\": \"string\"}, \"playlist\": {\"description\": \"The specific playlist to play\", \"type\": \"string\"}}, \"type\": \"object\"}}, \"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": "<query>\nHey, can you play some jazz music for me?\n</query>", "role": "human" }, { "content": "Sure, I can help with that. Do you have a specific playlist in mind or should I choose one for you?", "role": "gpt" }, { "content": "Query: You can choose one for me.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"play_music\",\n \"arguments\": {\n \"genre\": \"jazz\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): Thanks! Can you also order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the ability to perform external tasks like ordering a pizza. I can play music based on your preference, but for tasks outside of this, you'll need to use the appropriate service or application.", "role": "gpt" } ]
34
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"keywords\"], \"type\": \"object\", \"properties\": {\"keywords\": {\"items\": {\"type\": \"string\"}, \"type\": \"array\", \"description\": \"The keywords to search for\"}}}, \"name\": \"search_books\", \"description\": \"Search for books based on keywords\"}}]", "role": "system" }, { "content": "<query>\nI am looking for some books on artificial intelligence. Can you help me find some?\n</query>", "role": "human" }, { "content": "[search_books(keywords=['artificial intelligence'])]", "role": "gpt" }, { "content": "Query: That's great! Can you also find some books on machine learning?", "role": "human" }, { "content": "[search_books(keywords=['machine learning'])]", "role": "gpt" } ]
35
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```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\n[{\"function\": {\"description\": \"Get details of a specific movie\", \"name\": \"get_movie_details\", \"parameters\": {\"type\": \"object\", \"required\": [\"title\", \"year\"], \"properties\": {\"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}, \"year\": {\"description\": \"The release year of the movie\", \"type\": \"integer\"}}}}, \"type\": \"function\"}, {\"function\": {\"description\": \"Calculate Body Mass Index (BMI)\", \"parameters\": {\"properties\": {\"height\": {\"description\": \"The height in meters\", \"type\": \"number\"}, \"weight\": {\"type\": \"number\", \"description\": \"The weight in kilograms\"}}, \"type\": \"object\", \"required\": [\"weight\", \"height\"]}, \"name\": \"calculate_bmi\"}, \"type\": \"function\"}]", "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" } ]
36
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]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\n### Tools: [{\"function\": {\"description\": \"Calculate monthly loan payment\", \"parameters\": {\"required\": [\"principal_amount\", \"interest_rate\", \"loan_term\"], \"properties\": {\"interest_rate\": {\"description\": \"The annual interest rate of the loan\", \"type\": \"number\"}, \"principal_amount\": {\"type\": \"number\", \"description\": \"The principal amount of the loan\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}}, \"type\": \"object\"}, \"name\": \"calculate_loan_payment\"}, \"type\": \"function\"}]", "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 principal amount of the loan, the annual interest rate, and the loan term in years?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nSure, the principal 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": "[\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"principal_amount\": 200000,\n \"interest_rate\": 3.5,\n \"loan_term\": 30\n }\n }\n]", "role": "gpt" } ]
37
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"type\": \"object\", \"properties\": {\"lat2\": {\"type\": \"number\", \"description\": \"The latitude of point 2\"}, \"lat1\": {\"type\": \"number\", \"description\": \"The latitude of point 1\"}, \"lon2\": {\"type\": \"number\", \"description\": \"The longitude of point 2\"}, \"lon1\": {\"type\": \"number\", \"description\": \"The longitude of point 1\"}}, \"required\": [\"lat1\", \"lon1\", \"lat2\", \"lon2\"]}, \"description\": \"Calculate the distance between two points\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"genre\", \"artist\"], \"properties\": {\"genre\": {\"description\": \"The genre of music to play\", \"type\": \"string\"}, \"artist\": {\"type\": \"string\", \"description\": \"The artist whose music to play\"}}, \"type\": \"object\"}, \"name\": \"play_music\", \"description\": \"Play music from a specific genre or artist\"}}]\n\n[FORMAT INSTRUCTION START]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to know the distance between New York and Los Angeles. Can you help me with that?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"lat1\": 40.7128,\n \"lon1\": -74.006,\n \"lat2\": 34.0522,\n \"lon2\": -118.2437\n }\n }\n]}", "role": "gpt" } ]
38
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"name\": \"create_playlist\", \"parameters\": {\"type\": \"object\", \"required\": [\"name\", \"songs\"], \"properties\": {\"songs\": {\"items\": {\"type\": \"string\"}, \"type\": \"array\", \"description\": \"The songs to include in the playlist\"}, \"name\": {\"description\": \"The name of the playlist\", \"type\": \"string\"}}}, \"description\": \"Create a new music playlist\"}}]\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): Can you help me book a flight to New York?", "role": "human" }, { "content": "I'm sorry, but I currently don't have the capability to book flights. My available function is to create a music playlist. If you need help with that, feel free to ask!", "role": "gpt" } ]
39
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"company\"], \"properties\": {\"company\": {\"description\": \"The name of the company\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"get_stock_price\", \"description\": \"Get the current stock price of a company\"}}, {\"type\": \"function\", \"function\": {\"description\": \"Generate a random password with specified length\", \"name\": \"generate_password\", \"parameters\": {\"type\": \"object\", \"required\": [\"length\"], \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}}}}]\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```", "role": "system" }, { "content": "### Instruction: Hey, can you tell me the current stock price of Apple?", "role": "human" }, { "content": "[get_stock_price(company='Apple')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat's great! Can you also tell me the stock price of Microsoft?\n[END OF QUERY]", "role": "human" }, { "content": "[get_stock_price(company='Microsoft')]", "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" } ]
40
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nAPI Function: [{\"function\": {\"description\": \"Calculate the tax amount based on income and tax rate\", \"parameters\": {\"required\": [\"income\", \"tax_rate\"], \"type\": \"object\", \"properties\": {\"tax_rate\": {\"description\": \"The tax rate in percentage\", \"type\": \"number\"}, \"income\": {\"description\": \"The annual income\", \"type\": \"number\"}}}, \"name\": \"calculate_tax\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "<query>\nHi, I need to calculate my tax. My annual income is $50000 and the tax rate is 20%.\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_tax\",\n \"arguments\": {\n \"income\": 50000,\n \"tax_rate\": 20\n }\n }\n]", "role": "gpt" } ]
41
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\nTools: [{\"function\": {\"parameters\": {\"required\": [\"query\"], \"type\": \"object\", \"properties\": {\"query\": {\"type\": \"string\", \"description\": \"The search query (title or genre)\"}}}, \"name\": \"search_movies\", \"description\": \"Search for movies based on title or genre\"}, \"type\": \"function\"}]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI'm in the mood for a comedy movie. Can you suggest some?\n[END OF QUERY]", "role": "human" }, { "content": "[search_movies(query='comedy')]", "role": "gpt" }, { "content": "Query: I've seen all of those. Can you suggest something else?", "role": "human" }, { "content": "[search_movies(query='comedy')]", "role": "gpt" } ]
42
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[{\"type\": \"function\", \"function\": {\"description\": \"Calculate BMI (Body Mass Index)\", \"parameters\": {\"type\": \"object\", \"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight of the person in kilograms\"}, \"height\": {\"type\": \"number\", \"description\": \"The height of the person in meters\"}}, \"required\": [\"weight\", \"height\"]}, \"name\": \"calculate_bmi\"}}]\n</tools>\n\n<format>\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "Hi, I need to calculate my BMI. I weigh 70 kg 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" }, { "content": "<query>\nThat's great to hear! I've been working out regularly. Thanks for the information.\n</query>", "role": "human" }, { "content": "You're welcome! Keep up the good work. Regular exercise is key to maintaining a healthy BMI. If you have any other questions, feel free to ask.", "role": "gpt" } ]
43
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n</Task>\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Generate a random quote\", \"parameters\": {}, \"name\": \"generate_random_quote\"}}]\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]\nCan you 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 book flights. My current function allows me to generate random quotes. Is there anything else I can assist you with?", "role": "gpt" } ]
44
glaive-function-calling-v2-extended
[ { "content": "You are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Create a new todo item\", \"name\": \"create_todo\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"string\", \"description\": \"The title of the todo item\"}, \"priority\": {\"type\": \"string\", \"description\": \"The priority of the todo item\"}, \"due_date\": {\"description\": \"The due date of the todo item\", \"type\": \"string\", \"format\": \"date\"}}, \"required\": [\"title\", \"due_date\", \"priority\"]}}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "### Instruction: I need to create a new todo item.", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, due date, and priority of the todo item?", "role": "gpt" }, { "content": "The title is \"Buy groceries\", the due date is \"2022-04-30\", and the priority is \"High\".", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_todo\",\n \"arguments\": {\n \"title\": \"Buy groceries\",\n \"due_date\": \"2022-04-30\",\n \"priority\": \"High\"\n }\n }\n]}", "role": "gpt" } ]
45
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:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\nAPI Function: [{\"function\": {\"description\": \"Search for news articles based on given keywords\", \"parameters\": {\"properties\": {\"language\": {\"type\": \"string\", \"description\": \"The language of the news articles\"}, \"date_range\": {\"type\": \"object\", \"required\": [\"start_date\", \"end_date\"], \"properties\": {\"start_date\": {\"description\": \"The start date of the news articles (YYYY-MM-DD)\", \"type\": \"string\"}, \"end_date\": {\"description\": \"The end date of the news articles (YYYY-MM-DD)\", \"type\": \"string\"}}}, \"keywords\": {\"type\": \"array\", \"description\": \"The keywords to search for news articles\", \"items\": {\"type\": \"string\"}}}, \"required\": [\"keywords\"], \"type\": \"object\"}, \"name\": \"search_news\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): Can you find me some news articles about the recent Mars Rover landing?", "role": "human" }, { "content": "[search_news(keywords=['Mars Rover landing'], language='English', date_range={'start_date': '2021-01-01', 'end_date': '2021-12-31'})]", "role": "gpt" }, { "content": "That's great! Can you find more articles but this time in French?", "role": "human" }, { "content": "[search_news(keywords=['Mars Rover landing'], language='French', date_range={'start_date': '2021-01-01', 'end_date': '2021-12-31'})]", "role": "gpt" } ]
46
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\n### Tools: [{\"function\": {\"description\": \"Check the timing of a movie in a theater\", \"name\": \"check_movie_timing\", \"parameters\": {\"properties\": {\"date\": {\"format\": \"date\", \"description\": \"The date to check for movie timing\", \"type\": \"string\"}, \"movie_title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}, \"theater_location\": {\"type\": \"string\", \"description\": \"The location of the theater\"}}, \"type\": \"object\", \"required\": [\"movie_title\", \"theater_location\", \"date\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I want to watch the movie \"Inception\" tomorrow at the AMC theater in New York. Can you check the timings for me?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"check_movie_timing\",\n \"arguments\": {\n \"movie_title\": \"Inception\",\n \"theater_location\": \"AMC theater in New York\",\n \"date\": \"tomorrow\"\n }\n }\n]", "role": "gpt" } ]
47
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n</Task>\n\n[FORMAT INSTRUCTION START]\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: [{\"type\": \"function\", \"function\": {\"name\": \"search_books\", \"parameters\": {\"type\": \"object\", \"properties\": {\"author\": {\"type\": \"string\", \"description\": \"The author of the book\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of the book\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the book\"}}}, \"description\": \"Search for books based on title, author, or genre\"}}, {\"function\": {\"description\": \"Calculate the area of a shape\", \"parameters\": {\"properties\": {\"shape\": {\"description\": \"The shape for which area needs to be calculated\", \"type\": \"string\"}, \"dimensions\": {\"properties\": {\"length\": {\"type\": \"number\", \"description\": \"The length of the shape\"}, \"radius\": {\"description\": \"The radius of the shape (for circle)\", \"type\": \"number\"}, \"width\": {\"type\": \"number\", \"description\": \"The width of the shape\"}}, \"type\": \"object\"}}, \"type\": \"object\", \"required\": [\"shape\"]}, \"name\": \"calculate_area\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คำถาม (Question): I am looking for a book but I can't remember the title. The author's name is George Orwell.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"author\": \"George Orwell\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nOh yes, I was looking for Animal Farm. Can you also find books in the same genre?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"genre\": \"Allegorical novella\"\n }\n }\n]}", "role": "gpt" } ]
48
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_loan_payment\", \"parameters\": {\"type\": \"object\", \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"properties\": {\"interest_rate\": {\"type\": \"number\", \"description\": \"The interest rate per year\"}, \"loan_amount\": {\"description\": \"The loan amount\", \"type\": \"number\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}}}, \"description\": \"Calculate the monthly loan payment\"}}]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "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 loan amount, the interest rate per year, and the loan term in years?", "role": "gpt" }, { "content": "คำถาม (Question): Sure, the loan amount is $50000, the interest rate is 5% per year, and the loan term is 10 years.", "role": "human" }, { "content": "[\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" } ]
49
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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on date of birth\", \"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"required\": [\"date_of_birth\"], \"properties\": {\"date_of_birth\": {\"type\": \"string\", \"description\": \"The date of birth in the format 'YYYY-MM-DD'\"}}}}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"event_title\", \"start_time\", \"end_time\"], \"properties\": {\"event_title\": {\"type\": \"string\", \"description\": \"The title of the event\"}, \"start_time\": {\"description\": \"The start time of the event\", \"type\": \"string\"}, \"end_time\": {\"description\": \"The end time of the event\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"update_calendar\", \"description\": \"Update a calendar with an event\"}}]\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": "### Instruction: Hey, I need to add an event to my calendar. It's a meeting with my team on 15th March from 10 AM to 12 PM. The title should be \"Team Meeting\".", "role": "human" }, { "content": "[update_calendar(event_title='Team Meeting', start_time='15th March, 10 AM', end_time='15th March, 12 PM')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nGreat, thanks for your help!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other events to schedule, feel free to ask.", "role": "gpt" } ]
50
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:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\nAPI Function: [{\"function\": {\"name\": \"generate_password\", \"description\": \"Generate a random password\", \"parameters\": {\"properties\": {\"include_symbols\": {\"description\": \"Include symbols in the password\", \"type\": \"boolean\"}, \"include_numbers\": {\"description\": \"Include numbers in the password\", \"type\": \"boolean\"}, \"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"required\": [\"length\"], \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "<query>\nI need a new password. Can you generate one for me?\n</query>", "role": "human" }, { "content": "Of course! How long would you like your password to be? And would you like it to include numbers and symbols?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nI want it to be 12 characters long and it should include both numbers and symbols.\n[END OF QUERY]", "role": "human" }, { "content": "[generate_password(length=12, include_numbers=True, include_symbols=True)]", "role": "gpt" } ]
51
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"required\": [\"location\", \"check_in_date\", \"check_out_date\"], \"type\": \"object\", \"properties\": {\"check_in_date\": {\"description\": \"The check-in date\", \"type\": \"string\"}, \"location\": {\"type\": \"string\", \"description\": \"The location to search for hotels\"}, \"check_out_date\": {\"type\": \"string\", \"description\": \"The check-out date\"}}}, \"name\": \"search_hotels\", \"description\": \"Search for hotels in a specific location\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to find a hotel in New York from 1st May to 7th May.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_hotels\",\n \"arguments\": {\n \"location\": \"New York\",\n \"check_in_date\": \"2022-05-01\",\n \"check_out_date\": \"2022-05-07\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nThat's great! I'll go with Hotel B.\n</query>", "role": "human" }, { "content": "Excellent choice! I hope you have a wonderful stay at Hotel B.", "role": "gpt" } ]
52
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\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"required\": [\"date_of_birth\"], \"properties\": {\"date_of_birth\": {\"type\": \"string\", \"description\": \"The date of birth in YYYY-MM-DD format\"}}}, \"description\": \"Calculate the age based on date of birth\"}, \"type\": \"function\"}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "<query>\nHi, I was born on 1990-05-15. Can you tell me how old I am today?\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"date_of_birth\": \"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" } ]
53
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\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): [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"include_lowercase\": {\"type\": \"boolean\", \"description\": \"Whether to include lowercase characters in the password\"}, \"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}, \"include_uppercase\": {\"description\": \"Whether to include uppercase characters in the password\", \"type\": \"boolean\"}, \"include_symbols\": {\"type\": \"boolean\", \"description\": \"Whether to include symbols in the password\"}, \"include_numbers\": {\"description\": \"Whether to include numbers in the password\", \"type\": \"boolean\"}}, \"required\": [\"length\", \"include_lowercase\", \"include_uppercase\", \"include_numbers\", \"include_symbols\"]}, \"description\": \"Generate a random password with specified length and complexity\", \"name\": \"generate_random_password\"}}]", "role": "system" }, { "content": "คำถาม (Question): Can you order a pizza for me?", "role": "human" }, { "content": "I'm sorry, but I'm unable to perform external tasks like ordering a pizza. My current capabilities are limited to the functions provided to me. In this case, I can help you generate a random password with specified length and complexity.", "role": "gpt" } ]
54
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[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on birthdate\", \"name\": \"calculate_age\", \"parameters\": {\"required\": [\"birthdate\"], \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate of the person\"}}, \"type\": \"object\"}}}]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "### Instruction: Hi, can you tell me how old I am? My birthdate is 1990-05-15.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birthdate\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" } ]
55
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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"convert_currency\", \"parameters\": {\"properties\": {\"from_currency\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}, \"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}, \"description\": \"Convert an amount from one currency to another\"}}]\n[AVAILABLE TOOLS END]", "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, thanks! Now, can you convert 500 Euros back to USD?", "role": "human" }, { "content": "[convert_currency(amount=500, from_currency='EUR', to_currency='USD')]", "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" } ]
56
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\nAPI Function: [{\"function\": {\"parameters\": {\"required\": [\"text\", \"source_language\", \"target_language\"], \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to be translated\"}, \"target_language\": {\"description\": \"The target language for translation\", \"type\": \"string\"}, \"source_language\": {\"description\": \"The source language of the text\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Translate text from one language to another\", \"name\": \"translate_text\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I have a sentence in French that I need translated to English.\n[END OF QUERY]", "role": "human" }, { "content": "Sure, I can help with that. Please provide me with the sentence.", "role": "gpt" }, { "content": "### Instruction: The sentence is \"Je suis très heureux de vous rencontrer\".", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"translate_text\",\n \"arguments\": {\n \"text\": \"Je suis tr\\u00e8s heureux de vous rencontrer\",\n \"source_language\": \"fr\",\n \"target_language\": \"en\"\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great, thanks! Can you also book a table for two at a French restaurant for tonight?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the ability to perform external tasks such as booking tables at restaurants. My capabilities are limited to the functions provided to me. Currently, I can only translate text from one language to another.", "role": "gpt" } ]
57
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]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the tax amount based on the income and tax rate\", \"name\": \"calculate_tax\", \"parameters\": {\"required\": [\"income\", \"tax_rate\"], \"properties\": {\"income\": {\"type\": \"number\", \"description\": \"The income amount\"}, \"tax_rate\": {\"type\": \"number\", \"description\": \"The tax rate in percentage\"}}, \"type\": \"object\"}}}]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need help with calculating my tax. My income is $50000 and the tax rate is 20%.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tax\",\n \"arguments\": {\n \"income\": 50000,\n \"tax_rate\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nOh, I see. What if my income is $60000 with the same tax rate?\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tax\",\n \"arguments\": {\n \"income\": 60000,\n \"tax_rate\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "### Instruction: Thank you for the information.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
58
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 INSTRUCTION START]\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_password\", \"description\": \"Generate a random password with specified length\", \"parameters\": {\"required\": [\"length\"], \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"type\": \"object\"}}}, {\"type\": \"function\", \"function\": {\"name\": \"calculate_shipping_cost\", \"description\": \"Calculate the shipping cost for a package\", \"parameters\": {\"type\": \"object\", \"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight of the package in kilograms\"}, \"dimensions\": {\"required\": [\"length\", \"width\", \"height\"], \"properties\": {\"height\": {\"description\": \"The height of the package in centimeters\", \"type\": \"number\"}, \"length\": {\"type\": \"number\", \"description\": \"The length of the package in centimeters\"}, \"width\": {\"type\": \"number\", \"description\": \"The width of the package in centimeters\"}}, \"type\": \"object\"}}, \"required\": [\"weight\", \"dimensions\"]}}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "### Instruction: Hi, I need to ship a package. Can you help me calculate the cost?", "role": "human" }, { "content": "Of course! I can help with that. Could you please provide me with the weight of the package in kilograms and its dimensions in centimeters (length, width, and height)?", "role": "gpt" }, { "content": "### Instruction: The package weighs 5 kilograms. The length is 30 centimeters, the width is 20 centimeters, and the height is 15 centimeters.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_shipping_cost\",\n \"arguments\": {\n \"weight\": 5,\n \"dimensions\": {\n \"length\": 30,\n \"width\": 20,\n \"height\": 15\n }\n }\n }\n]}", "role": "gpt" } ]
59
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\nAPI Function: [{\"function\": {\"name\": \"calculate_shipping_cost\", \"description\": \"Calculate the shipping cost of a package\", \"parameters\": {\"properties\": {\"weight\": {\"description\": \"The weight of the package in kilograms\", \"type\": \"number\"}, \"destination\": {\"description\": \"The destination of the package\", \"type\": \"string\"}, \"shipping_method\": {\"description\": \"The shipping method to be used\", \"type\": \"string\"}}, \"required\": [\"weight\", \"destination\", \"shipping_method\"], \"type\": \"object\"}}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to ship a package to New York. It weighs around 5 kilograms. Can you tell me how much it would cost if I use express shipping?", "role": "human" }, { "content": "[calculate_shipping_cost(weight=5, destination='New York', shipping_method='express')]", "role": "gpt" }, { "content": "That's a bit expensive. What if I use standard shipping?", "role": "human" }, { "content": "[calculate_shipping_cost(weight=5, destination='New York', shipping_method='standard')]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat sounds more reasonable. Thank you for your help!\n[END OF QUERY]", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
60
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>\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the monthly payment for a loan\", \"parameters\": {\"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"properties\": {\"loan_amount\": {\"description\": \"The total amount of the loan\", \"type\": \"number\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate on the loan\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The term of the loan in months\"}}, \"type\": \"object\"}, \"name\": \"calculate_loan_payment\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "<query>\nHi, I need some help with a loan I'm considering.\n</query>", "role": "human" }, { "content": "Of course, I'd be happy to help. Could you please provide me with the total amount of the loan, the annual interest rate, and the term of the loan in months?", "role": "gpt" }, { "content": "### Instruction: Sure, the total amount of the loan is $50000, the annual interest rate is 5%, and the term of the loan 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" } ]
61
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[{\"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"type\": \"object\", \"properties\": {\"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}, \"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}}, \"required\": [\"origin\", \"destination\"]}, \"description\": \"Calculate the distance between two locations\"}, \"type\": \"function\"}, {\"function\": {\"description\": \"Create a new todo item\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"description\": \"The title of the todo item\", \"type\": \"string\"}, \"description\": {\"type\": \"string\", \"description\": \"The description of the todo item\"}, \"due_date\": {\"description\": \"The due date of the todo item\", \"format\": \"date\", \"type\": \"string\"}}, \"required\": [\"title\", \"description\", \"due_date\"]}, \"name\": \"create_todo\"}, \"type\": \"function\"}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to create a new todo item.\n[END OF QUERY]", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title, description, and due date for the todo item?", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThe title is \"Grocery Shopping\", the description is \"Buy groceries for the week\", and the due date is \"2022-05-15\".\n[END OF QUERY]", "role": "human" }, { "content": "[create_todo(title='Grocery Shopping', description='Buy groceries for the week', due_date='2022-05-15')]", "role": "gpt" }, { "content": "<query>\nNo, that's all for now. Thank you!\n</query>", "role": "human" }, { "content": "You're welcome! Don't hesitate to ask if you need any more help. Have a great day!", "role": "gpt" } ]
62
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[{\"type\": \"function\", \"function\": {\"name\": \"convert_currency\", \"description\": \"Convert currency from one type to another\", \"parameters\": {\"properties\": {\"from\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}, \"to\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"amount\": {\"description\": \"The amount of currency to convert\", \"type\": \"number\"}}, \"required\": [\"amount\", \"from\", \"to\"], \"type\": \"object\"}}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to convert 1000 USD to Euros. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "[convert_currency(amount=1000, from='USD', to='EUR')]", "role": "gpt" }, { "content": "Query: That's great. Now, can you book a flight for me from New York to Paris?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My functions are limited to the ones provided to me. Currently, I can only assist with currency conversion. I recommend using a trusted travel agency or website to book your flight.", "role": "gpt" } ]
63
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[{\"type\": \"function\", \"function\": {\"description\": \"Get details of a movie\", \"name\": \"get_movie_details\", \"parameters\": {\"type\": \"object\", \"required\": [\"title\", \"year\"], \"properties\": {\"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}, \"year\": {\"type\": \"integer\", \"description\": \"The release year of the movie\"}}}}}]\n</tools>\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "คำถาม (Question): Hi, can you help me find some information about a movie?", "role": "human" }, { "content": "Of course! I can help you with that. Please provide me with the title and the release year of the movie.", "role": "gpt" }, { "content": "Query: The movie is \"Inception\" and it was released in 2010.", "role": "human" }, { "content": "[\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Inception\",\n \"year\": 2010\n }\n }\n]", "role": "gpt" }, { "content": "<query>\nThat's great! Can you also book a ticket for me to watch this movie in the 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 ticket booking app or website for this task.", "role": "gpt" } ]
64
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[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"origin\", \"destination\"], \"properties\": {\"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}, \"origin\": {\"description\": \"The origin location\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\"}}]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "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 booking flights. My current capabilities allow me to calculate the distance between two locations. However, I don't have the ability to perform external tasks such as booking flights.", "role": "gpt" } ]
65
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:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\nTools: [{\"function\": {\"description\": \"Calculate the distance between two locations\", \"name\": \"calculate_distance\", \"parameters\": {\"required\": [\"origin\", \"destination\"], \"properties\": {\"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}, \"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}}, \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "Query: Hi, I need to know the distance between New York and Los Angeles.", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "Query: That's quite far. What about the distance from New York to Chicago?", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Chicago')]", "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" } ]
66
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]\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[{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}, \"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}, \"name\": \"convert_currency\", \"description\": \"Convert currency from one type to another\"}, \"type\": \"function\"}]\n</tools>", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHi, I need to convert 1000 US dollars to Euros. Can you help me with that?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 1000,\n \"from_currency\": \"USD\",\n \"to_currency\": \"EUR\"\n }\n }\n]}", "role": "gpt" }, { "content": "That's great! Can you also book a flight for me from New York to Paris?", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current function is to assist with currency conversion. You might want to use a travel booking website or app for your flight booking needs.", "role": "gpt" } ]
67
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 AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"properties\": {\"query\": {\"type\": \"string\", \"description\": \"The title or author to search for\"}}, \"type\": \"object\", \"required\": [\"query\"]}, \"name\": \"search_books\", \"description\": \"Search for books based on title or author\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Hi, I'm looking for books by J.K. Rowling. Can you help me find them?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"query\": \"J.K. Rowling\"\n }\n }\n]}", "role": "gpt" }, { "content": "That's great! Can you also find books by George R.R. Martin?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"query\": \"George R.R. Martin\"\n }\n }\n]}", "role": "gpt" } ]
68
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\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on birthdate\", \"parameters\": {\"required\": [\"birthdate\"], \"type\": \"object\", \"properties\": {\"birthdate\": {\"description\": \"The birthdate in YYYY-MM-DD format\", \"type\": \"string\"}}}, \"name\": \"calculate_age\"}}]\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": "[BEGIN OF QUERY]\nHi, I was born on 1990-05-15. Can you tell me how old I am today?\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birthdate\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" } ]
69
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n[TASK INSTRUCTION END]\n\n<format>\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: [{\"type\": \"function\", \"function\": {\"name\": \"search_books\", \"parameters\": {\"properties\": {\"author\": {\"description\": \"The author of the book\", \"type\": \"string\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the book\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of the book\"}}, \"type\": \"object\"}, \"description\": \"Search for books based on given criteria\"}}]", "role": "system" }, { "content": "คำถาม (Question): I am looking for a book but I can't remember the title. I know it's a mystery novel by Agatha Christie.", "role": "human" }, { "content": "[search_books(author='Agatha Christie', genre='mystery')]", "role": "gpt" }, { "content": "<query>\nYes, it's \"And Then There Were None\". Thank you!\n</query>", "role": "human" }, { "content": "You're welcome! If you need help with anything else, feel free to ask.", "role": "gpt" } ]
70
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\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_rectangle_area\", \"parameters\": {\"type\": \"object\", \"properties\": {\"length\": {\"description\": \"The length of the rectangle\", \"type\": \"number\"}, \"width\": {\"type\": \"number\", \"description\": \"The width of the rectangle\"}}, \"required\": [\"length\", \"width\"]}, \"description\": \"Calculate the area of a rectangle\"}}]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "Hi, I need to calculate the area of a rectangle. The length is 5 and the width is 3.", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_rectangle_area\",\n \"arguments\": {\n \"length\": 5,\n \"width\": 3\n }\n }\n]}", "role": "gpt" }, { "content": "Thank you! That was helpful.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
71
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n<tools>\n[{\"function\": {\"name\": \"calculate_gross_salary\", \"description\": \"Calculate the gross salary based on the hourly rate and number of hours worked\", \"parameters\": {\"properties\": {\"hourly_rate\": {\"type\": \"number\", \"description\": \"Hourly rate of pay\"}, \"hours_worked\": {\"type\": \"number\", \"description\": \"Number of hours worked\"}}, \"type\": \"object\", \"required\": [\"hourly_rate\", \"hours_worked\"]}}, \"type\": \"function\"}]\n</tools>", "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 can't assist with that. My current capabilities are limited to calculating gross salary based on the hourly rate and number of hours worked. I don't have the ability to book flights or perform other external tasks.", "role": "gpt" } ]
72
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"description\": \"Get the current stock price of a company\", \"name\": \"get_stock_price\", \"parameters\": {\"required\": [\"company\"], \"properties\": {\"company\": {\"description\": \"The name of the company\", \"type\": \"string\"}}, \"type\": \"object\"}}, \"type\": \"function\"}, {\"function\": {\"name\": \"make_note\", \"parameters\": {\"required\": [\"title\", \"content\"], \"properties\": {\"content\": {\"type\": \"string\", \"description\": \"The content of the note\"}, \"title\": {\"description\": \"The title of the note\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Create a note with a title and content\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\n\n<format>\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n</format>", "role": "system" }, { "content": "<query>\nHi, can you tell me the current stock price of Apple?\n</query>", "role": "human" }, { "content": "[get_stock_price(company='Apple')]", "role": "gpt" }, { "content": "### Instruction: That's great. Can you also tell me the stock price of Microsoft?", "role": "human" }, { "content": "[get_stock_price(company='Microsoft')]", "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" } ]
73
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"description\": \"Get the current price of a stock\", \"parameters\": {\"properties\": {\"stock_symbol\": {\"description\": \"The symbol of the stock\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"stock_symbol\"]}, \"name\": \"get_stock_price\"}}]\n</tools>", "role": "system" }, { "content": "Query: Hi, can you tell me the current price of Apple's stock?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"stock_symbol\": \"AAPL\"\n }\n }\n]}", "role": "gpt" }, { "content": "คำถาม (Question): That's great. Can you also tell me the price of Microsoft's stock?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"stock_symbol\": \"MSFT\"\n }\n }\n]}", "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" } ]
74
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\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age difference between two people\", \"name\": \"calculate_age_difference\", \"parameters\": {\"properties\": {\"birth_date2\": {\"description\": \"The birth date of the second person\", \"type\": \"string\"}, \"birth_date1\": {\"description\": \"The birth date of the first person\", \"type\": \"string\"}}, \"required\": [\"birth_date1\", \"birth_date2\"], \"type\": \"object\"}}}]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "### Instruction: Hi, I want to know the age difference between my brother and me. My birth date is 1995-06-15 and my brother's birth date is 2000-08-20.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_age_difference\",\n \"arguments\": {\n \"birth_date1\": \"1995-06-15\",\n \"birth_date2\": \"2000-08-20\"\n }\n }\n]}", "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" } ]
75
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: [{\"function\": {\"description\": \"Calculate the monthly payment for a loan\", \"name\": \"calculate_loan_payment\", \"parameters\": {\"type\": \"object\", \"required\": [\"principal\", \"interest_rate\", \"loan_term\"], \"properties\": {\"loan_term\": {\"type\": \"integer\", \"description\": \"The term of the loan in months\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate of the loan\"}, \"principal\": {\"description\": \"The principal amount of the loan\", \"type\": \"number\"}}}}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you help me book a flight to New York?\n[END OF QUERY]", "role": "human" }, { "content": "I'm sorry, but as an AI, I don't have the capability to book flights. My current function is to calculate loan payments. If you need help with that, feel free to ask!", "role": "gpt" } ]
76
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เครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the discounted price based on original price and discount percentage\", \"parameters\": {\"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\", \"properties\": {\"original_price\": {\"description\": \"The original price\", \"type\": \"number\"}, \"discount_percentage\": {\"type\": \"number\", \"description\": \"The discount percentage\"}}}, \"name\": \"calculate_discount\"}}, {\"function\": {\"name\": \"search_articles\", \"parameters\": {\"required\": [\"keywords\"], \"type\": \"object\", \"properties\": {\"keywords\": {\"description\": \"The keywords to search for\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}}}, \"description\": \"Search for articles based on keywords\"}, \"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": "คำถาม (Question): I need to find articles on climate change.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_articles\",\n \"arguments\": {\n \"keywords\": [\n \"climate change\"\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "Great, can you also find articles on renewable energy?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_articles\",\n \"arguments\": {\n \"keywords\": [\n \"renewable energy\"\n ]\n }\n }\n]}", "role": "gpt" } ]
77
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\n### Tools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"customer_name\", \"total_amount\", \"items\"], \"type\": \"object\", \"properties\": {\"items\": {\"type\": \"array\", \"items\": {\"type\": \"object\", \"properties\": {\"price\": {\"description\": \"The price of the item\", \"type\": \"number\"}, \"quantity\": {\"description\": \"The quantity of the item\", \"type\": \"integer\"}, \"name\": {\"type\": \"string\", \"description\": \"The name of the item\"}}, \"required\": [\"name\", \"quantity\", \"price\"]}, \"description\": \"The list of items in the transaction\"}, \"customer_name\": {\"type\": \"string\", \"description\": \"The name of the customer\"}, \"total_amount\": {\"description\": \"The total amount of the transaction\", \"type\": \"number\"}}}, \"name\": \"generate_invoice\", \"description\": \"Generate an invoice for a transaction\"}}]\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>\nI need to generate an invoice for a customer named John Doe. The total amount is $200. The items are a book for $50, a pen for $10, and a notebook for $140.\n</query>", "role": "human" }, { "content": "[generate_invoice(customer_name='John Doe', total_amount=200, items=[{'name': 'book', 'quantity': 1, 'price': 50}, {'name': 'pen', 'quantity': 1, 'price': 10}, {'name': 'notebook', 'quantity': 1, 'price': 140}])]", "role": "gpt" } ]
78
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n\n<tools>\n[{\"function\": {\"description\": \"Calculate the monthly payment amount for a loan\", \"name\": \"calculate_loan_payment\", \"parameters\": {\"properties\": {\"loan_amount\": {\"description\": \"The total amount of the loan\", \"type\": \"number\"}, \"loan_term\": {\"description\": \"The duration of the loan in years\", \"type\": \"integer\"}, \"interest_rate\": {\"description\": \"The annual interest rate for the loan\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"]}}, \"type\": \"function\"}]\n</tools>\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "Query: Hi, I need help with calculating my loan payment. I have a loan of $50000 with an annual interest rate of 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" }, { "content": "Query: That's great. Thank you for the help.", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
79
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<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_route_distance\", \"parameters\": {\"type\": \"object\", \"properties\": {\"origin\": {\"description\": \"The starting location\", \"type\": \"string\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}, \"required\": [\"origin\", \"destination\"]}, \"description\": \"Calculate the distance between two locations\"}}]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to know the distance between New York and Los Angeles.", "role": "human" }, { "content": "[calculate_route_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "### Instruction: That's quite far. What about the distance from New York to Chicago?", "role": "human" }, { "content": "[calculate_route_distance(origin='New York', destination='Chicago')]", "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" } ]
80
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions.\n\n[BEGIN OF FORMAT INSTRUCTION]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[END OF FORMAT INSTRUCTION]\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"name\": \"convert_currency\", \"parameters\": {\"required\": [\"amount\", \"source_currency\", \"target_currency\"], \"type\": \"object\", \"properties\": {\"target_currency\": {\"type\": \"string\", \"description\": \"The currency to be converted to\"}, \"source_currency\": {\"description\": \"The currency to be converted from\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}}}, \"description\": \"Convert currency from one unit to another\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nCan you 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 are limited to the functions provided to me, such as converting currency. If you need help with that or any other function I'm equipped with, feel free to ask.", "role": "gpt" } ]
81
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[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\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"convert_currency\", \"parameters\": {\"properties\": {\"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}, \"description\": \"Convert currency from one type to another\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "Query: 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 500 GBP to USD.", "role": "human" }, { "content": "[convert_currency(amount=500, from_currency='GBP', to_currency='USD')]", "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" } ]
82
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:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"name\": \"get_definition\", \"parameters\": {\"type\": \"object\", \"required\": [\"word\"], \"properties\": {\"word\": {\"description\": \"The word to get the definition\", \"type\": \"string\"}}}, \"description\": \"Get the definition of a word\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "### Instruction: What does the word 'serendipity' mean?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"serendipity\"\n }\n }\n]}", "role": "gpt" }, { "content": "<query>\nWhat about 'ephemeral'?\n</query>", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"ephemeral\"\n }\n }\n]}", "role": "gpt" }, { "content": "And 'quintessential'?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"quintessential\"\n }\n }\n]}", "role": "gpt" } ]
83
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 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\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Get the definition of a word\", \"name\": \"get_definition\", \"parameters\": {\"required\": [\"word\"], \"type\": \"object\", \"properties\": {\"word\": {\"description\": \"The word to get the definition for\", \"type\": \"string\"}}}}}]", "role": "system" }, { "content": "<query>\nCan you please order a pizza for me?\n</query>", "role": "human" }, { "content": "I'm sorry, but I don't have the capability to perform external tasks like ordering a pizza. My current function allows me to provide definitions of words. If you need a definition for a specific word, feel free to ask!", "role": "gpt" } ]
84
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"find_recipe\", \"description\": \"Find a recipe based on ingredients\", \"parameters\": {\"properties\": {\"ingredients\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"The ingredients available\"}}, \"required\": [\"ingredients\"], \"type\": \"object\"}}}]", "role": "system" }, { "content": "I have some chicken, bell peppers, and rice. What can I make with these?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"find_recipe\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"bell peppers\",\n \"rice\"\n ]\n }\n }\n]}", "role": "gpt" } ]
85
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are a function calling AI model. You may call one or more functions if possible or not to use them to assist with the user query. When you think you require function/tool calls, but you cannot call any tool function, Please point it out. Don't make assumptions about what values to plug into functions.\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"description\": \"Convert one currency to another\", \"parameters\": {\"properties\": {\"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}, \"from\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}, \"to\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}}, \"type\": \"object\", \"required\": [\"amount\", \"from\", \"to\"]}, \"name\": \"convert_currency\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Schedule a meeting with multiple participants\", \"parameters\": {\"properties\": {\"meeting_details\": {\"required\": [\"title\", \"datetime\", \"participants\"], \"properties\": {\"datetime\": {\"type\": \"string\", \"format\": \"date-time\", \"description\": \"The date and time of the meeting\"}, \"participants\": {\"items\": {\"type\": \"string\"}, \"type\": \"array\", \"description\": \"The email addresses of the meeting participants\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the meeting\"}}, \"type\": \"object\"}}, \"required\": [\"meeting_details\"], \"type\": \"object\"}, \"name\": \"schedule_meeting\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI need to schedule a meeting with my team.\n[END OF QUERY]", "role": "human" }, { "content": "Sure, I can help with that. Could you please provide me with the title of the meeting, the date and time, and the email addresses of the participants?", "role": "gpt" }, { "content": "<query>\nThe title of the meeting is \"Project Update\", it should be on 10th of next month at 10 AM. The participants are john@example.com, mary@example.com, and peter@example.com.\n</query>", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"schedule_meeting\",\n \"arguments\": {\n \"meeting_details\": {\n \"title\": \"Project Update\",\n \"datetime\": \"2022-10-10T10:00:00\",\n \"participants\": [\n \"john@example.com\",\n \"mary@example.com\",\n \"peter@example.com\"\n ]\n }\n }\n }\n]}", "role": "gpt" } ]
86
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:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight in kilograms\"}, \"height\": {\"type\": \"number\", \"description\": \"The height in meters\"}}, \"required\": [\"weight\", \"height\"]}, \"description\": \"Calculate the Body Mass Index (BMI)\", \"name\": \"calculate_bmi\"}}]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to calculate my BMI. I weigh 75 kilograms and my height is 1.8 meters.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 75,\n \"height\": 1.8\n }\n }\n]}", "role": "gpt" }, { "content": "Query: Great, thanks! Can you also book a table for me at a nearby restaurant?", "role": "human" }, { "content": "I'm sorry, but I'm unable to assist with that. My current capabilities are limited to the functions provided to me, and booking a table at a restaurant is not one of them. I recommend using a restaurant reservation app for this task.", "role": "gpt" } ]
87
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:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n\nAPI Function: [{\"function\": {\"name\": \"calculate_age\", \"description\": \"Calculate the age based on the birthdate\", \"parameters\": {\"required\": [\"birthdate\"], \"type\": \"object\", \"properties\": {\"birthdate\": {\"description\": \"The birthdate in format YYYY-MM-DD\", \"type\": \"string\"}}}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Convert currency from one currency to another\", \"parameters\": {\"type\": \"object\", \"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}, \"amount\": {\"description\": \"The amount to convert\", \"type\": \"number\"}, \"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}}}, \"name\": \"convert_currency\"}}]", "role": "system" }, { "content": "Hi, can you help me calculate my age? I was born on 1990-05-15.", "role": "human" }, { "content": "[calculate_age(birthdate='1990-05-15')]", "role": "gpt" } ]
88
glaive-function-calling-v2-extended
[ { "content": "You are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"cost_price\": {\"description\": \"The cost price of the product\", \"type\": \"number\"}, \"selling_price\": {\"type\": \"number\", \"description\": \"The selling price of the product\"}}, \"required\": [\"cost_price\", \"selling_price\"], \"type\": \"object\"}, \"description\": \"Calculate the profit margin based on the cost price and selling price\", \"name\": \"calculate_profit_margin\"}}, {\"function\": {\"description\": \"Search for a book based on title or author\", \"parameters\": {\"type\": \"object\", \"properties\": {\"title\": {\"description\": \"The title of the book\", \"type\": \"string\"}, \"author\": {\"type\": \"string\", \"description\": \"The author of the book\"}}}, \"name\": \"search_book\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "Hi, I need some help with calculating profit margin. I sold a product for $150 which I had bought for $100. Can you help me calculate the profit margin?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_profit_margin\",\n \"arguments\": {\n \"cost_price\": 100,\n \"selling_price\": 150\n }\n }\n]}", "role": "gpt" } ]
89
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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"principal\", \"interest_rate\", \"loan_term\"], \"properties\": {\"interest_rate\": {\"description\": \"The annual interest rate\", \"type\": \"number\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}, \"principal\": {\"type\": \"number\", \"description\": \"The principal amount of the loan\"}}, \"type\": \"object\"}, \"description\": \"Calculate the monthly loan payment\", \"name\": \"calculate_loan_payment\"}}]\n[AVAILABLE TOOLS END]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "คำถาม (Question): Hi, I need help with calculating my monthly loan payment.", "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": "[BEGIN OF QUERY]\nSure, the principal amount is $200,000, the annual interest rate is 5%, and the loan term is 30 years.\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"principal\": 200000,\n \"interest_rate\": 5,\n \"loan_term\": 30\n }\n }\n]}", "role": "gpt" } ]
90
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[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"max\": {\"type\": \"number\", \"description\": \"The maximum value of the range\"}, \"min\": {\"description\": \"The minimum value of the range\", \"type\": \"number\"}}, \"required\": [\"min\", \"max\"]}, \"name\": \"generate_random_number\", \"description\": \"Generate a random number between a specified range\"}}]\n</tools>", "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": "[BEGIN OF QUERY]\nCan you generate another random number but this time between 200 and 300?\n[END OF QUERY]", "role": "human" }, { "content": "[generate_random_number(min=200, max=300)]", "role": "gpt" }, { "content": "<query>\nThank you, that's all I needed.\n</query>", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
91
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: [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [], \"properties\": {\"mood\": {\"type\": \"string\", \"description\": \"The desired mood for the music\"}, \"genre\": {\"description\": \"The preferred music genre\", \"type\": \"string\"}}}, \"description\": \"Play music based on user's preferences\", \"name\": \"play_music\"}}]\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": "### Instruction: I'm feeling a bit down. Can you play some music that might cheer me up?", "role": "human" }, { "content": "[play_music(genre='pop', mood='happy')]", "role": "gpt" }, { "content": "### Instruction: That's perfect, thank you!", "role": "human" }, { "content": "You're welcome! If you need anything else, just let me know.", "role": "gpt" } ]
92
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</format>\n\n<tools>\n[{\"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"properties\": {\"origin\": {\"type\": \"string\", \"description\": \"The starting location\"}, \"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"origin\", \"destination\"]}, \"description\": \"Calculate the distance between two locations\"}, \"type\": \"function\"}]\n</tools>", "role": "system" }, { "content": "Hi, I am planning a road trip. Can you tell me the distance between New York and Los Angeles?", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "### Instruction: That's quite a distance! What about the distance from Los Angeles to San Francisco?", "role": "human" }, { "content": "[calculate_distance(origin='Los Angeles', destination='San Francisco')]", "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" } ]
93
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out.\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\nเครื่องมือ (Tools): [{\"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"type\": \"object\", \"properties\": {\"latitude2\": {\"description\": \"The latitude of the second point\", \"type\": \"number\"}, \"latitude1\": {\"type\": \"number\", \"description\": \"The latitude of the first point\"}, \"longitude1\": {\"type\": \"number\", \"description\": \"The longitude of the first point\"}, \"longitude2\": {\"description\": \"The longitude of the second point\", \"type\": \"number\"}}, \"required\": [\"latitude1\", \"longitude1\", \"latitude2\", \"longitude2\"]}, \"description\": \"Calculate the distance between two points\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"bill_total\", \"tip_percentage\"], \"properties\": {\"bill_total\": {\"type\": \"number\", \"description\": \"The total amount of the bill\"}, \"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage of the tip\"}}}, \"name\": \"calculate_tip\", \"description\": \"Calculate the tip amount based on the bill total and tip percentage\"}}]", "role": "system" }, { "content": "คำถาม (Question): Hi, I need to know the distance between New York and Los Angeles. Can you help me with that?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"latitude1\": 40.7128,\n \"longitude1\": -74.006,\n \"latitude2\": 34.0522,\n \"longitude2\": -118.2437\n }\n }\n]}", "role": "gpt" } ]
94
glaive-function-calling-v2-extended
[ { "content": "<Task>\nYou are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it.\n</Task>\n\nTools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"shape\": {\"type\": \"string\", \"description\": \"The shape (e.g. circle, rectangle, triangle)\"}, \"dimensions\": {\"properties\": {\"height\": {\"type\": \"number\", \"description\": \"The height of the triangle (if shape is triangle)\"}, \"length\": {\"type\": \"number\", \"description\": \"The length of the rectangle (if shape is rectangle)\"}, \"base\": {\"type\": \"number\", \"description\": \"The base of the triangle (if shape is triangle)\"}, \"width\": {\"description\": \"The width of the rectangle (if shape is rectangle)\", \"type\": \"number\"}, \"radius\": {\"type\": \"number\", \"description\": \"The radius of the circle (if shape is circle)\"}}, \"type\": \"object\"}}, \"type\": \"object\", \"required\": [\"shape\", \"dimensions\"]}, \"description\": \"Calculate the area of a shape\", \"name\": \"calculate_area\"}}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "I need to calculate the area of a rectangle. The length is 10 units and the width is 5 units.", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"shape\": \"rectangle\",\n \"dimensions\": {\n \"length\": 10,\n \"width\": 5\n }\n }\n }\n]", "role": "gpt" }, { "content": "### Instruction: Now, I have a circle with a radius of 7 units. Can you calculate the area for this one too?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"shape\": \"circle\",\n \"dimensions\": {\n \"radius\": 7\n }\n }\n }\n]", "role": "gpt" }, { "content": "<query>\nThank you for your help!\n</query>", "role": "human" }, { "content": "You're welcome! If you have any other questions, feel free to ask.", "role": "gpt" } ]
95
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: [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"min\": {\"description\": \"The minimum value of the range\", \"type\": \"integer\"}, \"max\": {\"description\": \"The maximum value of the range\", \"type\": \"integer\"}}, \"required\": [\"min\", \"max\"], \"type\": \"object\"}, \"name\": \"generate_random_number\", \"description\": \"Generate a random number within a range\"}}]\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 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": "<query>\nCan you generate another random number but this time between 200 and 300?\n</query>", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 200,\n \"max\": 300\n }\n }\n]", "role": "gpt" }, { "content": "<query>\nThank you, that's all I needed.\n</query>", "role": "human" }, { "content": "You're welcome! If you need anything else, feel free to ask.", "role": "gpt" } ]
96
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary.\n[TASK INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_area\", \"parameters\": {\"properties\": {\"shape\": {\"type\": \"string\", \"description\": \"The shape for which the area will be calculated\"}, \"dimensions\": {\"type\": \"array\", \"description\": \"The dimensions of the shape\", \"items\": {\"type\": \"number\"}}}, \"required\": [\"shape\", \"dimensions\"], \"type\": \"object\"}, \"description\": \"Calculate the area of a shape\"}}]\n\n### Format:\nThe output MUST strictly adhere to the following JSON format, and NO other text MUST be included. The example format is as follows. Please make sure the parameter type is correct.\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Hi, I need to calculate the area of a rectangle. The length is 5 units and the width is 3 units.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"shape\": \"rectangle\",\n \"dimensions\": [\n 5,\n 3\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "Great! Now, I have a circle with a radius of 4 units. Can you help me calculate the area?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_area\",\n \"arguments\": {\n \"shape\": \"circle\",\n \"dimensions\": [\n 4\n ]\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" } ]
97
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 INSTRUCTION START]\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] You SHOULD NOT include any other text in the response.\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"name\": \"generate_password\", \"parameters\": {\"type\": \"object\", \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"required\": [\"length\"]}, \"description\": \"Generate a random password\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "<query>\nHi, I 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 your password to be?", "role": "gpt" }, { "content": "### Instruction: I would like it to be 12 characters long.", "role": "human" }, { "content": "[generate_password(length=12)]", "role": "gpt" } ]
98
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:\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\nTools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"text\"], \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to be analyzed\"}}, \"type\": \"object\"}, \"description\": \"Analyze the sentiment of a text\", \"name\": \"analyze_sentiment\"}}]", "role": "system" }, { "content": "[BEGIN OF QUERY]\nHey, I wrote a poem and I want to know if it has a positive or negative sentiment. Here it is: \"The sun rises, casting a golden glow. Birds chirp, a melody only they know. Flowers bloom, a sight to behold. Life's beauty, never gets old.\"\n[END OF QUERY]", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"analyze_sentiment\",\n \"arguments\": {\n \"text\": \"The sun rises, casting a golden glow. Birds chirp, a melody only they know. Flowers bloom, a sight to behold. Life's beauty, never gets old.\"\n }\n }\n]}", "role": "gpt" } ]
99
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance.\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"description\": \"Search for recipes based on given ingredients\", \"name\": \"search_recipes\", \"parameters\": {\"properties\": {\"cuisine\": {\"description\": \"The cuisine type of the recipe\", \"type\": \"string\"}, \"ingredients\": {\"description\": \"Ingredients to include in the recipe\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}}, \"type\": \"object\"}}}]\n</tools>\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```", "role": "system" }, { "content": "[BEGIN OF QUERY]\nI have some chicken, bell peppers and onions. Can you find me a recipe?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"bell peppers\",\n \"onions\"\n ]\n }\n }\n]", "role": "gpt" }, { "content": "[BEGIN OF QUERY]\nThat sounds delicious! Can you find me an Italian recipe with the same ingredients?\n[END OF QUERY]", "role": "human" }, { "content": "[\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"bell peppers\",\n \"onions\"\n ],\n \"cuisine\": \"Italian\"\n }\n }\n]", "role": "gpt" } ]
100
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
8
Edit dataset card