dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
38.9k
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the monthly payment for a loan\", \"name\": \"calculate_loan_payment\", \"parameters\": {\"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"type\": \"object\", \"properties\": {\"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}, \"loan_amount\": {\"description\": \"The total loan amount\", \"type\": \"number\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}}}}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณการชำระคืนเงินกู้ของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาให้จำนวนเงินกู้ทั้งหมด อัตราดอกเบี้ยรายปี และระยะเวลาเงินกู้เป็นจำนวนปีให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "แน่นอนว่าจำนวนเงินกู้คือ 200,000 ดอลลาร์ อัตราดอกเบี้ยอยู่ที่ 3.5% และระยะเวลาการกู้ยืมคือ 30 ปี", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"loan_amount\": 200000,\n \"interest_rate\": 3.5,\n \"loan_term\": 30\n }\n }\n]", "role": "gpt" } ]
1
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Translate text from one language to another\", \"name\": \"translate_text\", \"parameters\": {\"type\": \"object\", \"properties\": {\"source_language\": {\"type\": \"string\", \"description\": \"The source language of the text\"}, \"text\": {\"type\": \"string\", \"description\": \"The text to be translated\"}, \"target_language\": {\"description\": \"The target language for the translation\", \"type\": \"string\"}}, \"required\": [\"text\", \"source_language\", \"target_language\"]}}}]\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": "สวัสดี ฉันมีประโยคภาษาฝรั่งเศสที่ต้องแปลเป็นภาษาอังกฤษ ประโยคนี้คือ \"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": "เยี่ยมมาก! คุณช่วยจองโต๊ะสำหรับสองคนที่ร้านอาหารฝรั่งเศสคืนนี้ได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองโต๊ะที่ร้านอาหารได้ ฟังก์ชันปัจจุบันของฉันจำกัดอยู่เพียงการแปลข้อความจากภาษาหนึ่งเป็นอีกภาษาหนึ่ง ฉันแนะนำให้ใช้บริการจองร้านอาหารสำหรับคำขอของคุณ", "role": "gpt" } ]
2
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\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\": {\"description\": \"Check if an email address is available\", \"parameters\": {\"type\": \"object\", \"required\": [\"email\"], \"properties\": {\"email\": {\"description\": \"The email address to be checked\", \"type\": \"string\"}}}, \"name\": \"check_email_availability\"}}]\n</tools>", "role": "system" }, { "content": "สวัสดี ฉันต้องการสร้างที่อยู่อีเมลใหม่ คุณสามารถตรวจสอบว่า john.doe@gmail.com พร้อมใช้งานหรือไม่", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"check_email_availability\",\n \"arguments\": {\n \"email\": \"john.doe@gmail.com\"\n }\n }\n]}", "role": "gpt" }, { "content": "โอเค แล้ว john.doe123@gmail.com ล่ะ?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"check_email_availability\",\n \"arguments\": {\n \"email\": \"john.doe123@gmail.com\"\n }\n }\n]}", "role": "gpt" } ]
3
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. Please answer in Thai.\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[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"date_of_birth\"], \"properties\": {\"date_of_birth\": {\"type\": \"string\", \"description\": \"The date of birth\", \"format\": \"date\"}}}, \"name\": \"calculate_age\", \"description\": \"Calculate the age based on date of birth\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี ฉันเกิดเมื่อวันที่ 15/5/2533 คุณบอกฉันได้ไหมว่าฉันอายุเท่าไหร่?", "role": "human" }, { "content": "[calculate_age(date_of_birth='1990-05-15')]", "role": "gpt" } ]
4
glaive-function-calling-v2-extended
[ { "content": "คุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\n### Format:\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n[{\"function\": {\"parameters\": {\"required\": [\"keywords\"], \"properties\": {\"dietary_restrictions\": {\"type\": \"array\", \"description\": \"Dietary restrictions for the recipe\", \"items\": {\"type\": \"string\"}}, \"cuisine\": {\"description\": \"The cuisine type of the recipe\", \"type\": \"string\"}, \"keywords\": {\"description\": \"Keywords related to the recipe\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}}, \"type\": \"object\"}, \"description\": \"Search for a recipe based on given criteria\", \"name\": \"search_recipe\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันกำลังมองหาสูตรอาหารอิตาเลี่ยนวีแก้นที่มีมะเขือเทศและโหระพา", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_recipe\",\n \"arguments\": {\n \"keywords\": [\n \"tomatoes\",\n \"basil\"\n ],\n \"cuisine\": \"Italian\",\n \"dietary_restrictions\": [\n \"vegan\"\n ]\n }\n }\n]}", "role": "gpt" } ]
5
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the Body Mass Index (BMI)\", \"name\": \"calculate_bmi\", \"parameters\": {\"required\": [\"weight\", \"height\"], \"properties\": {\"height\": {\"description\": \"The height in meters\", \"type\": \"number\"}, \"weight\": {\"description\": \"The weight in kilograms\", \"type\": \"number\"}}, \"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": "สวัสดี ฉันต้องคำนวณค่าดัชนีมวลกายของฉัน ฉันหนัก 75 กิโลกรัม ส่วนสูง 1.8 เมตร", "role": "human" }, { "content": "[calculate_bmi(weight=75, height=1.8)]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! คุณช่วยจองการตรวจหมอให้ฉันได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองการนัดหมายหรือทำงานภายนอกได้ หน้าที่ปัจจุบันของฉันจำกัดอยู่เพียงการคำนวณค่าดัชนีมวลกาย คุณอาจต้องการใช้บริการหรือแอปพลิเคชันอื่นสำหรับการจองการนัดหมาย", "role": "gpt" } ]
6
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_password\", \"parameters\": {\"required\": [\"length\"], \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"type\": \"object\"}, \"description\": \"Generate a random password\"}}]\n</tools>", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันได้ไหม?", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยในเรื่องนั้นได้ ความสามารถในปัจจุบันของฉันถูกจำกัดไว้เฉพาะฟังก์ชันที่มอบให้แก่ฉัน และการสั่งพิซซ่าเป็นงานภายนอกที่ฉันไม่มีฟังก์ชั่นสำหรับ ฉันสามารถช่วยสร้างรหัสผ่านให้คุณได้หากคุณต้องการ", "role": "gpt" } ]
7
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n[TASK INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"discount_percentage\": {\"description\": \"The percentage discount to be applied\", \"type\": \"number\"}, \"product_name\": {\"description\": \"The name of the product\", \"type\": \"string\"}, \"original_price\": {\"description\": \"The original price of the product\", \"type\": \"number\"}}, \"required\": [\"product_name\", \"original_price\", \"discount_percentage\"]}, \"name\": \"calculate_discounted_price\", \"description\": \"Calculate the discounted price of a product\"}}]\n[END OF AVAILABLE TOOLS]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "ฉันต้องการซื้อแล็ปท็อปเครื่องใหม่ ราคาเดิมคือ 1,000 ดอลลาร์ หากฉันได้รับส่วนลด 20% ฉันจะต้องจ่ายเท่าไร?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discounted_price\",\n \"arguments\": {\n \"product_name\": \"laptop\",\n \"original_price\": 1000,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "ยอดเยี่ยม! คุณช่วยสั่งซื้อให้ฉันได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น การสั่งซื้อได้ คุณจะต้องทำด้วยตนเอง", "role": "gpt" } ]
8
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. Please respond in Thai.\n</Task>\n\n<format>\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n</format>\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Get the current stock price\", \"parameters\": {\"type\": \"object\", \"properties\": {\"stock_code\": {\"type\": \"string\", \"description\": \"The code of the stock to check the price of\"}}, \"required\": [\"stock_code\"]}, \"name\": \"get_stock_price\"}}]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันจากร้านพิซซ่าที่ใกล้ที่สุดได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถในปัจจุบันของฉันถูกจำกัดไว้เฉพาะฟังก์ชันที่มอบให้แก่ฉัน ตัวอย่างเช่น ฉันสามารถช่วยคุณดูราคาหุ้นปัจจุบันได้หากคุณระบุรหัสหุ้นให้ฉัน", "role": "gpt" } ]
9
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n[END OF TASK INSTRUCTION]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n[{\"function\": {\"name\": \"calculate_bmi\", \"description\": \"Calculate the Body Mass Index (BMI)\", \"parameters\": {\"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight in kilograms\"}, \"height\": {\"description\": \"The height in meters\", \"type\": \"number\"}}, \"required\": [\"weight\", \"height\"], \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการคำนวณค่าดัชนีมวลกายของฉัน ฉันหนัก 70 กิโลกรัม ส่วนสูง 1.75 เมตร", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 70,\n \"height\": 1.75\n }\n }\n]}", "role": "gpt" }, { "content": "ดีใจที่ได้ยินเช่นนี้! ขอบคุณสำหรับความช่วยเหลือ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ หรือต้องการความช่วยเหลือเพิ่มเติม โปรดสอบถามได้", "role": "gpt" } ]
10
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n\n<tools>\n[{\"function\": {\"description\": \"Create a new todo item\", \"name\": \"create_todo\", \"parameters\": {\"type\": \"object\", \"properties\": {\"task\": {\"type\": \"string\", \"description\": \"The task description\"}, \"due_date\": {\"type\": \"string\", \"description\": \"The due date of the task\", \"format\": \"date\"}}, \"required\": [\"task\", \"due_date\"]}}, \"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": "ฉันต้องสร้างรายการสิ่งที่ต้องทำใหม่", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาให้รายละเอียดงานและกำหนดเวลาครบกำหนดแก่ฉันได้ไหม", "role": "gpt" }, { "content": "ภารกิจคือการซื้อของชำและครบกำหนดชำระหนี้ในวันพรุ่งนี้", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_todo\",\n \"arguments\": {\n \"task\": \"buy groceries\",\n \"due_date\": \"tomorrow\"\n }\n }\n]}", "role": "gpt" } ]
11
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n[{\"type\": \"function\", \"function\": {\"name\": \"convert_currency\", \"description\": \"Convert an amount from one currency to another\", \"parameters\": {\"type\": \"object\", \"properties\": {\"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "สวัสดี ฉันต้องการแปลงเงิน 500 USD เป็น EUR คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "[\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 500,\n \"from_currency\": \"USD\",\n \"to_currency\": \"EUR\"\n }\n }\n]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! ตอนนี้ คุณสามารถแปลง 1,000 EUR เป็น GBP ได้หรือไม่?", "role": "human" }, { "content": "[\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 1000,\n \"from_currency\": \"EUR\",\n \"to_currency\": \"GBP\"\n }\n }\n]", "role": "gpt" } ]
12
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Convert one currency to another\", \"name\": \"convert_currency\", \"parameters\": {\"properties\": {\"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The original currency\"}, \"to_currency\": {\"description\": \"The desired currency\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการแปลงเงินดอลลาร์สหรัฐฯ 1,000 ดอลลาร์เป็นยูโร คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "[convert_currency(amount=1000, from_currency='USD', to_currency='EUR')]", "role": "gpt" } ]
13
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. Please answer in Thai.\n[TASK INSTRUCTION END]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n### Tools: [{\"function\": {\"description\": \"Calculate the age based on date of birth\", \"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"required\": [\"date_of_birth\"], \"properties\": {\"date_of_birth\": {\"description\": \"The date of birth in YYYY-MM-DD format\", \"type\": \"string\"}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันเกิดเมื่อวันที่ 15/5/2533 คุณบอกฉันได้ไหมว่าวันนี้ฉันอายุเท่าไหร่?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"date_of_birth\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" } ]
14
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n[END OF TASK INSTRUCTION]\n\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"check_palindrome\", \"parameters\": {\"properties\": {\"text\": {\"description\": \"The word or phrase to check\", \"type\": \"string\"}}, \"required\": [\"text\"], \"type\": \"object\"}, \"description\": \"Check if a word or phrase is a palindrome\"}}]\n\n### Format:\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```", "role": "system" }, { "content": "สวัสดี คุณช่วยตรวจสอบว่า \"รถแข่ง\" เป็นพาลินโดรมหรือไม่ เพราะเหตุใด", "role": "human" }, { "content": "[check_palindrome(text='racecar')]", "role": "gpt" }, { "content": "น่าสนใจ! แล้ว \"พาลินโดรม\" ล่ะ?", "role": "human" }, { "content": "[check_palindrome(text='palindrome')]", "role": "gpt" }, { "content": "เอาล่ะ เรามาลองอะไรยุ่งๆ กันดีกว่า “ชายคนหนึ่ง แผนการ ควายก: ปานามา” เป็นพาลินโดรมหรือไม่", "role": "human" }, { "content": "[check_palindrome(text='A man, a plan, a canal: Panama')]", "role": "gpt" } ]
15
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. Please respond in Thai.\n[END OF TASK INSTRUCTION]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\nTools: [{\"function\": {\"name\": \"analyze_stock_trends\", \"parameters\": {\"properties\": {\"symbol\": {\"description\": \"The stock symbol\", \"type\": \"string\"}, \"start_date\": {\"description\": \"The start date for analysis\", \"type\": \"string\"}, \"end_date\": {\"description\": \"The end date for analysis\", \"type\": \"string\"}}, \"required\": [\"symbol\", \"start_date\", \"end_date\"], \"type\": \"object\"}, \"description\": \"Analyze trends in stock market data\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"name\": \"search_book_reviews\", \"parameters\": {\"type\": \"object\", \"required\": [\"query\"], \"properties\": {\"query\": {\"description\": \"The search query\", \"type\": \"string\"}, \"rating\": {\"type\": \"number\", \"description\": \"The minimum rating for the reviews\"}, \"author\": {\"description\": \"The name of the author\", \"type\": \"string\"}}}, \"description\": \"Search for book reviews based on user's query\"}}]", "role": "system" }, { "content": "ฉันกำลังมองหาบทวิจารณ์หนังสือเรื่อง To Kill a Mockingbird คุณช่วยฉันหาได้ไหม?", "role": "human" }, { "content": "[search_book_reviews(query='To Kill a Mockingbird')]", "role": "gpt" }, { "content": "ที่น่ากลัว! คุณสามารถค้นหาบทวิจารณ์ของหนังสือเล่มเดียวกันแต่มีเรตติ้ง 5 เท่านั้นได้หรือไม่", "role": "human" }, { "content": "[search_book_reviews(query='To Kill a Mockingbird', rating=5)]", "role": "gpt" } ]
16
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. Please respond in Thai.\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\": {\"name\": \"calculate_distance\", \"parameters\": {\"type\": \"object\", \"required\": [\"origin\", \"destination\"], \"properties\": {\"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}, \"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}}}, \"description\": \"Calculate the distance between two locations\"}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"origin\": \"New York\",\n \"destination\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "ไกลพอสมควร! แล้วระยะทางจากลอนดอนไปปารีสล่ะ?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"origin\": \"London\",\n \"destination\": \"Paris\"\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
17
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n[TASK INSTRUCTION END]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"create_contact\", \"parameters\": {\"required\": [\"name\"], \"properties\": {\"email\": {\"description\": \"The email address of the contact\", \"type\": \"string\"}, \"phone\": {\"type\": \"string\", \"description\": \"The phone number of the contact\"}, \"name\": {\"description\": \"The name of the contact\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Create a new contact\"}}]", "role": "system" }, { "content": "Can you order a pizza for me?", "role": "human" }, { "content": "ขออภัย ฉันไม่มีความสามารถในการทำงานภายนอก เช่น การสั่งพิซซ่า หน้าที่ปัจจุบันของฉันทำให้ฉันสามารถสร้างผู้ติดต่อใหม่ในสมุดที่อยู่ของคุณได้ มีอะไรอีกไหมที่คุณต้องการความช่วยเหลือซึ่งอยู่ในความสามารถของฉัน?", "role": "gpt" } ]
18
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n</Task>\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Convert one currency to another\", \"parameters\": {\"required\": [\"amount\", \"source_currency\", \"target_currency\"], \"type\": \"object\", \"properties\": {\"source_currency\": {\"description\": \"The source currency\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to convert\", \"type\": \"number\"}, \"target_currency\": {\"type\": \"string\", \"description\": \"The target currency\"}}}, \"name\": \"convert_currency\"}}]\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ", "role": "system" }, { "content": "สวัสดี ฉันต้องการแปลงเงินดอลลาร์สหรัฐฯ 1,000 ดอลลาร์เป็นยูโร คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "[convert_currency(amount=1000, source_currency='USD', target_currency='EUR')]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! ตอนนี้ คุณสามารถแปลง 500 GBP เป็น USD ได้หรือไม่?", "role": "human" }, { "content": "[convert_currency(amount=500, source_currency='GBP', target_currency='USD')]", "role": "gpt" }, { "content": "ขอบคุณสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
19
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\nHere List of functions in JSON format\n[{\"function\": {\"description\": \"Get the current time\", \"parameters\": {}, \"name\": \"get_current_time\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Calculate the Body Mass Index (BMI)\", \"name\": \"calculate_bmi\", \"parameters\": {\"properties\": {\"weight\": {\"type\": \"number\", \"description\": \"The weight in kilograms\"}, \"height\": {\"type\": \"number\", \"description\": \"The height in meters\"}}, \"type\": \"object\", \"required\": [\"weight\", \"height\"]}}}]", "role": "system" }, { "content": "เวลาปัจจุบันคืออะไร?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_current_time\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
20
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. Please respond in Thai.\n\nAPI Function: [{\"function\": {\"description\": \"Search for recipes based on ingredients\", \"parameters\": {\"required\": [\"ingredients\"], \"type\": \"object\", \"properties\": {\"cuisine\": {\"type\": \"string\", \"description\": \"The cuisine type of the recipes\"}, \"ingredients\": {\"items\": {\"type\": \"string\"}, \"description\": \"The ingredients to search for\", \"type\": \"array\"}}}, \"name\": \"search_recipes\"}, \"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": "ฉันมีไก่ มะเขือเทศ และโหระพา คุณช่วยหาสูตรให้ฉันได้ไหม?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'tomatoes', 'basil'])]", "role": "gpt" }, { "content": "นั่นฟังดูอร่อยนะ! คุณช่วยสั่งส่วนผสมให้ฉันจากร้านขายของชำได้ไหม", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยอะไรได้ ความสามารถในปัจจุบันของฉันทำให้ฉันสามารถค้นหาสูตรอาหารตามส่วนผสมที่คุณมีได้ ฉันไม่มีความสามารถในการสั่งซื้อของชำ", "role": "gpt" } ]
21
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the distance between two locations\", \"parameters\": {\"required\": [\"origin\", \"destination\"], \"type\": \"object\", \"properties\": {\"origin\": {\"type\": \"string\", \"description\": \"The starting location\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}}, \"name\": \"calculate_distance\"}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"destination\": {\"description\": \"The destination of the item\", \"type\": \"string\"}, \"weight\": {\"description\": \"The weight of the item in pounds\", \"type\": \"number\"}}, \"type\": \"object\"}, \"description\": \"Calculate the shipping cost of an item\", \"name\": \"calculate_shipping_cost\"}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "นั่นค่อนข้างไกล แล้วระยะทางจากลอนดอนไปปารีสล่ะ?", "role": "human" }, { "content": "[calculate_distance(origin='London', destination='Paris')]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
22
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[TASK INSTRUCTION END]\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 using their coordinates\", \"name\": \"calculate_distance\", \"parameters\": {\"required\": [\"location1\", \"location2\"], \"type\": \"object\", \"properties\": {\"location1\": {\"properties\": {\"longitude\": {\"type\": \"number\", \"description\": \"The longitude of location 1\"}, \"latitude\": {\"type\": \"number\", \"description\": \"The latitude of location 1\"}}, \"type\": \"object\", \"required\": [\"latitude\", \"longitude\"]}, \"location2\": {\"type\": \"object\", \"required\": [\"latitude\", \"longitude\"], \"properties\": {\"latitude\": {\"description\": \"The latitude of location 2\", \"type\": \"number\"}, \"longitude\": {\"description\": \"The longitude of location 2\", \"type\": \"number\"}}}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส ฉันมีพิกัดสำหรับทั้งสอง นิวยอร์กอยู่ที่ 40.7128° เหนือ, 74.0060° ตะวันตก และลอสแอนเจลีสประตูที่ 34.0522° เหนือ, 118.2437° ตะวันตก", "role": "human" }, { "content": "[calculate_distance(location1={'latitude': 40.7128, 'longitude': -74.006}, location2={'latitude': 34.0522, 'longitude': -118.2437})]", "role": "gpt" } ]
23
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"properties\": {\"loan_amount\": {\"description\": \"The amount of the loan\", \"type\": \"number\"}, \"loan_term\": {\"description\": \"The term of the loan in years\", \"type\": \"integer\"}, \"interest_rate\": {\"description\": \"The annual interest rate\", \"type\": \"number\"}}}, \"description\": \"Calculate the monthly mortgage payment\", \"name\": \"calculate_mortgage_payment\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Play a sound\", \"parameters\": {\"properties\": {\"sound_file\": {\"description\": \"The path to the sound file\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"sound_file\"]}, \"name\": \"play_sound\"}}]", "role": "system" }, { "content": "ฉันรู้สึกแย่นิดหน่อย คุณช่วยส่งเสียงร่าเริงให้ฉันได้ไหม?", "role": "human" }, { "content": "[play_sound(sound_file='sounds/cheerful_sound.mp3')]", "role": "gpt" }, { "content": "เป็นความดีใจ คุณสามารถเล่นเสียงที่สงบได้ในขณะนี้หรือไม่?", "role": "human" }, { "content": "[play_sound(sound_file='sounds/calming_sound.mp3')]", "role": "gpt" } ]
24
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n</Task>\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"text\"], \"properties\": {\"text\": {\"description\": \"The text to be analyzed\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"analyze_sentiment\", \"description\": \"Analyze the sentiment of a text\"}}, {\"function\": {\"parameters\": {\"properties\": {\"text\": {\"description\": \"The text to analyze\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"text\"]}, \"name\": \"analyze_sentiment\", \"description\": \"Analyze the sentiment of a given text\"}, \"type\": \"function\"}]\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": "คุณสามารถวิเคราะห์ความรู้สึกของข้อความนี้ให้ฉันได้ไหม “วันนี้ฉันรู้สึกมีความสุขมากเพราะได้เลื่อนตำแหน่งในที่ทำงาน”", "role": "human" }, { "content": "[analyze_sentiment(text='I am feeling really happy today because I got a promotion at work.')]", "role": "gpt" }, { "content": "ถูกต้อง! แล้วเรื่องนี้ล่ะ? “ฉันเสียใจมากเพราะกระเป๋าสตางค์หายไป”", "role": "human" }, { "content": "[analyze_sentiment(text='I am really upset because I lost my wallet.')]", "role": "gpt" }, { "content": "ใช่ มันเป็นวันที่ยากลำบาก ขอบคุณสำหรับความช่วยเหลือของคุณ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการสิ่งอื่นใด โปรดสอบถามได้", "role": "gpt" } ]
25
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a random password\", \"parameters\": {\"required\": [\"length\"], \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"type\": \"object\"}, \"name\": \"generate_password\"}}]\n</tools>\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": "คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ฉันสามารถช่วยคุณในงานที่เกี่ยวข้องกับฟังก์ชันที่ฉันมีได้ เช่น การสร้างรหัสผ่าน", "role": "gpt" } ]
26
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"properties\": {\"size\": {\"description\": \"The size of the QR code image\", \"type\": \"integer\"}, \"text\": {\"description\": \"The text to be encoded in the QR code\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"text\", \"size\"]}, \"description\": \"Generate a QR code for a given text\", \"name\": \"generate_qr_code\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "สวัสดี ฉันต้องการรหัส QR สำหรับเว็บไซต์ของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาระบุ URL ของเว็บไซต์ของคุณและขนาดของรหัส QR ที่ต้องการให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "URL คือ www.mywebsite.com และฉันต้องการให้รหัส QR มีขนาด 500 พิกเซล", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\",\n \"size\": 500\n }\n }\n]}", "role": "gpt" } ]
27
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n\nAPI Function: [{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"word\"], \"properties\": {\"language\": {\"description\": \"The language of the definition\", \"type\": \"string\"}, \"word\": {\"type\": \"string\", \"description\": \"The word to get the definition of\"}}}, \"description\": \"Get the definition of a word\", \"name\": \"get_definition\"}, \"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": "คำว่า 'ความบังเอิญ' คืออะไร?", "role": "human" }, { "content": "[get_definition(word='serendipity')]", "role": "gpt" }, { "content": "คุณช่วยบอกคำจำกัดความของ 'amor fati' ในภาษาละตินให้ฉันฟังได้ไหม", "role": "human" }, { "content": "[get_definition(word='amor fati', language='Latin')]", "role": "gpt" } ]
28
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n</Task>\n\nAPI Function: [{\"function\": {\"parameters\": {\"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}, \"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}}, \"type\": \"object\"}, \"name\": \"convert_currency\", \"description\": \"Convert currency from one unit to another\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Calculate the tip amount based on bill total and desired tip percentage\", \"parameters\": {\"required\": [\"bill_total\", \"tip_percentage\"], \"type\": \"object\", \"properties\": {\"bill_total\": {\"description\": \"The total bill amount\", \"type\": \"number\"}, \"tip_percentage\": {\"description\": \"The desired tip percentage\", \"type\": \"number\"}}}, \"name\": \"calculate_tip\"}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณทิปสำหรับบิลของฉัน จำนวนยอดรวมที่เรียกเก็บคือ $50 และฉันต้องการให้ทิป 20%", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_total\": 50,\n \"tip_percentage\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมมาก! ขอบคุณสำหรับความช่วยเหลือ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
29
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n</Task>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"name\": \"calculate_discounted_price\", \"description\": \"Calculate the discounted price of a product\", \"parameters\": {\"properties\": {\"discount_percentage\": {\"description\": \"The percentage discount\", \"type\": \"number\"}, \"tax_percentage\": {\"type\": \"number\", \"description\": \"The percentage tax\"}, \"original_price\": {\"type\": \"number\", \"description\": \"The original price of the product\"}}, \"required\": [\"original_price\", \"discount_percentage\", \"tax_percentage\"], \"type\": \"object\"}}, \"type\": \"function\"}, {\"function\": {\"description\": \"Get the latest news\", \"parameters\": {\"type\": \"object\", \"properties\": {\"category\": {\"description\": \"The news category, e.g. sports, politics, entertainment\", \"type\": \"string\"}}}, \"name\": \"get_news\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "สวัสดี ฉันกำลังวางแผนจะซื้อแล็ปท็อปราคา 1,500 ดอลลาร์ มีส่วนลด 20% และภาษีคือ 5% คุณช่วยฉันคำนวณราคาสุดท้ายได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discounted_price\",\n \"arguments\": {\n \"original_price\": 1500,\n \"discount_percentage\": 20,\n \"tax_percentage\": 5\n }\n }\n]}", "role": "gpt" } ]
30
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n[TASK INSTRUCTION END]\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the monthly loan payment\", \"parameters\": {\"properties\": {\"term\": {\"description\": \"The term of the loan in years\", \"type\": \"integer\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}, \"principal\": {\"type\": \"number\", \"description\": \"The principal amount of the loan\"}}, \"type\": \"object\", \"required\": [\"principal\", \"interest_rate\", \"term\"]}, \"name\": \"calculate_loan_payment\"}}]\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": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณการชำระเงินกู้รายเดือนของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาระบุจำนวนเงินต้นของเงินกู้ อัตราดอกเบี้ยรายปี และระยะเวลาของเงินกู้เป็นจำนวนปีให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "แน่นอนว่าจำนวนเงินต้นคือ 200,000 ดอลลาร์ อัตราดอกเบี้ยรายปีคือ 3.5% และระยะเวลาคือ 30 ปี", "role": "human" }, { "content": "[calculate_loan_payment(principal=200000, interest_rate=3.5, term=30)]", "role": "gpt" } ]
31
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. Please answer in Thai.\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[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on the birthdate\", \"parameters\": {\"type\": \"object\", \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate of the person\"}}, \"required\": [\"birthdate\"]}, \"name\": \"calculate_age\"}}, {\"function\": {\"name\": \"calculate_tip\", \"description\": \"Calculate the tip amount based on the bill total and percentage\", \"parameters\": {\"required\": [\"bill_total\", \"tip_percentage\"], \"properties\": {\"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage of the tip to be given\"}, \"bill_total\": {\"type\": \"number\", \"description\": \"The total amount of the bill\"}}, \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณทิปสำหรับบิลของฉัน จำนวนเงินทั้งหมดคือ $50 และฉันต้องการให้ทิป 20%", "role": "human" }, { "content": "[calculate_tip(bill_total=50, tip_percentage=20)]", "role": "gpt" } ]
32
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"name\": \"search_recipes\", \"description\": \"Search for recipes based on ingredients\", \"parameters\": {\"type\": \"object\", \"required\": [\"ingredients\"], \"properties\": {\"ingredients\": {\"items\": {\"type\": \"string\"}, \"type\": \"array\", \"description\": \"List of ingredients to search for\"}}}}}, {\"type\": \"function\", \"function\": {\"name\": \"generate_uuid\", \"description\": \"Generate a universally unique identifier\", \"parameters\": {}}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "สวัสดี ฉันต้องการ UUID ใหม่สำหรับโครงการของฉัน คุณช่วยสร้างอันหนึ่งให้ฉันได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_uuid\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
33
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. Please respond in Thai.\n[TASK INSTRUCTION END]\n\n### Format:\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nเครื่องมือ (Tools): [{\"function\": {\"description\": \"Generate a random password\", \"parameters\": {\"type\": \"object\", \"required\": [\"length\"], \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}}, \"name\": \"generate_random_password\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน ในกรณีนี้ ฉันสามารถสร้างรหัสผ่านแบบสุ่มให้กับคุณได้", "role": "gpt" } ]
34
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_random_color\", \"description\": \"Generate a random color in hexadecimal format\", \"parameters\": {}}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"amount\", \"tax_rate\"], \"type\": \"object\", \"properties\": {\"tax_rate\": {\"type\": \"number\", \"description\": \"The tax rate in percentage\"}, \"amount\": {\"type\": \"number\", \"description\": \"The total amount\"}}}, \"description\": \"Calculate tax amount\", \"name\": \"calculate_tax\"}}]\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": "สวัสดี ฉันต้องการคำนวณภาษีสำหรับการซื้อที่ฉันทำ จำนวนเงินทั้งหมดคือ 500 ดอลลาร์ และอัตราภาษีคือ 7%", "role": "human" }, { "content": "[calculate_tax(amount=500, tax_rate=7)]", "role": "gpt" } ]
35
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n[END OF TASK INSTRUCTION]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"properties\": {\"loan_amount\": {\"description\": \"The loan amount\", \"type\": \"number\"}, \"interest_rate\": {\"description\": \"The annual interest rate\", \"type\": \"number\"}, \"loan_term\": {\"description\": \"The loan term in years\", \"type\": \"integer\"}}}, \"description\": \"Calculate the monthly loan payment\", \"name\": \"calculate_loan_payment\"}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถช่วยจองเที่ยวบินได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่ที่การคำนวณการชำระคืนเงินกู้ หากคุณต้องการความช่วยเหลือ โปรดถาม!", "role": "gpt" } ]
36
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. Please answer in Thai.\n[TASK INSTRUCTION END]\n\n[{\"function\": {\"name\": \"get_random_quote\", \"parameters\": {}, \"description\": \"Get a random inspirational quote\"}, \"type\": \"function\"}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "Hi, can you order a pizza for me?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอกได้ เช่น การสั่งพิซซ่า หน้าที่ปัจจุบันของฉันช่วยให้ฉันสามารถให้คำพูดสร้างแรงบันดาลใจแบบสุ่มแก่คุณได้ มีอะไรอีกไหมที่เราสามารถช่วยคุณได้?", "role": "gpt" } ]
37
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\nAPI Function: [{\"function\": {\"name\": \"generate_qr_code\", \"description\": \"Generate a QR code for a given text\", \"parameters\": {\"required\": [\"text\"], \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to encode in the QR code\"}}, \"type\": \"object\"}}, \"type\": \"function\"}]\n\n<format>\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "สวัสดี ฉันต้องการรหัส QR สำหรับเว็บไซต์ของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ URL ของเว็บไซต์ของคุณแก่ฉันได้ไหม?", "role": "gpt" }, { "content": "แน่นอนว่าคือ www.mywebsite.com", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"text\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" } ]
38
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n[TASK INSTRUCTION END]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\n[{\"function\": {\"description\": \"Get a random joke\", \"parameters\": {\"properties\": {\"category\": {\"type\": \"string\", \"description\": \"The joke category\"}}, \"type\": \"object\"}, \"name\": \"get_random_joke\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "เฮ้ คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถของฉันตอนนี้จำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน เช่น การเล่าเรื่องตลกแบบสุ่ม", "role": "gpt" } ]
39
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n</Task>\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n### Tools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"origin\": {\"description\": \"The origin location\", \"type\": \"string\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}, \"type\": \"object\", \"required\": [\"origin\", \"destination\"]}, \"description\": \"Calculate the distance between two locations\", \"name\": \"calculate_distance\"}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"origin\": \"New York\",\n \"destination\": \"Los Angeles\"\n }\n }\n]}", "role": "gpt" }, { "content": "นั่นค่อนข้างไกล แล้วระยะทางจากลอนดอนไปปารีสล่ะ?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"origin\": \"London\",\n \"destination\": \"Paris\"\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
40
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"generate_random_number\", \"description\": \"Generate a random number within a given range\", \"parameters\": {\"required\": [\"min\", \"max\"], \"type\": \"object\", \"properties\": {\"max\": {\"description\": \"The maximum value of the range\", \"type\": \"integer\"}, \"min\": {\"type\": \"integer\", \"description\": \"The minimum value of the range\"}}}}}, {\"function\": {\"name\": \"convert_currency\", \"parameters\": {\"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}, \"from_currency\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}}, \"type\": \"object\"}, \"description\": \"Convert one currency to another\"}, \"type\": \"function\"}]\n\n[BEGIN OF FORMAT INSTRUCTION]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "ฉันต้องการตัวเลขสุ่มระหว่าง 1 ถึง 100", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 1,\n \"max\": 100\n }\n }\n]}", "role": "gpt" }, { "content": "คุณสามารถสร้างหมายเลขสุ่มอีกตัวหนึ่ง แต่คราวนี้ระหว่าง 200 ถึง 300 ได้หรือไม่?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_number\",\n \"arguments\": {\n \"min\": 200,\n \"max\": 300\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณสำหรับความช่วยเหลือ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการสิ่งอื่นใด โปรดสอบถามได้", "role": "gpt" } ]
41
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"origin\", \"destination\"], \"properties\": {\"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}, \"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}}}, \"description\": \"Calculate distance between two locations\", \"name\": \"calculate_distance\"}}, {\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on the birthdate\", \"parameters\": {\"properties\": {\"birthdate\": {\"type\": \"string\", \"format\": \"date\", \"description\": \"The birthdate in YYYY-MM-DD format\"}}, \"type\": \"object\", \"required\": [\"birthdate\"]}, \"name\": \"calculate_age\"}}]", "role": "system" }, { "content": "สวัสดี ฉันเกิดเมื่อวันที่ 15/5/2533 คุณบอกฉันได้ไหมว่าวันนี้ฉันอายุเท่าไหร่?", "role": "human" }, { "content": "[calculate_age(birthdate='1990-05-15')]", "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. Please answer in Thai.\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"description\": \"Send an email to a specified recipient\", \"name\": \"send_email\", \"parameters\": {\"required\": [\"recipient\", \"subject\", \"message\"], \"type\": \"object\", \"properties\": {\"subject\": {\"description\": \"Subject of the email\", \"type\": \"string\"}, \"recipient\": {\"type\": \"string\", \"description\": \"Email address of the recipient\"}, \"message\": {\"description\": \"Content of the email\", \"type\": \"string\"}}}}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "ฉันต้องส่งอีเมลถึงเจ้านายของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ที่อยู่อีเมลของผู้รับ หัวเรื่องของอีเมล และเนื้อหาที่คุณต้องการส่งมาให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "อีเมลของผู้รับคือ BOSS@EXAMPLE.COM หัวข้อ “รายงานรายเดือน” และข้อความ “เรียนท่านผู้บริหาร โปรดดูรายงานประจำเดือนที่แนบมาพร้อมสำหรับการตรวจทานของคุณ ดีที่สุด, [ผู้ใช้]”", "role": "human" }, { "content": "[\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"recipient\": \"boss@example.com\",\n \"subject\": \"Monthly Report\",\n \"message\": \"Dear Boss, Please find attached the monthly report for your review. Best, [User]\"\n }\n }\n]", "role": "gpt" } ]
43
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. Please respond in Thai.\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"type\": \"object\", \"required\": [\"origin\", \"destination\"], \"properties\": {\"origin\": {\"description\": \"The starting location\", \"type\": \"string\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}}, \"description\": \"Calculate the distance between two locations\"}}, {\"function\": {\"name\": \"analyze_sentiment\", \"parameters\": {\"type\": \"object\", \"required\": [\"text\"], \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"Text to analyze the sentiment\"}}}, \"description\": \"Analyze the sentiment of a text\"}, \"type\": \"function\"}]\n</tools>", "role": "system" }, { "content": "คุณช่วยวิเคราะห์ความรู้สึกของข้อความนี้ให้ฉันหน่อยได้ไหม? “วันนี้ฉันรู้สึกมีความสุขมากเพราะได้เลื่อนตำแหน่งในที่ทำงาน!”", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"analyze_sentiment\",\n \"arguments\": {\n \"text\": \"I am feeling really happy today because I got a promotion at work!\"\n }\n }\n]}", "role": "gpt" }, { "content": "ถูกต้อง! แล้วเรื่องนี้ล่ะ? “ฉันเสียใจมากเพราะกระเป๋าสตางค์หายไป”", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"analyze_sentiment\",\n \"arguments\": {\n \"text\": \"I am really upset because I lost my wallet.\"\n }\n }\n]}", "role": "gpt" }, { "content": "ใช่ มันเป็นวันที่ยากลำบาก ขอบคุณสำหรับความช่วยเหลือของคุณ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการสิ่งอื่นใด โปรดสอบถามได้", "role": "gpt" } ]
44
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. Please respond in Thai.\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[{\"type\": \"function\", \"function\": {\"description\": \"Generate a random password\", \"parameters\": {\"type\": \"object\", \"properties\": {\"include_numbers\": {\"description\": \"Include numbers in the password (optional, default is true)\", \"type\": \"boolean\"}, \"include_symbols\": {\"type\": \"boolean\", \"description\": \"Include symbols in the password (optional, default is true)\"}, \"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"required\": [\"length\"]}, \"name\": \"generate_password\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถของฉันปัจจุบันจำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน ในกรณีนี้ ฉันสามารถช่วยสร้างรหัสผ่านแบบสุ่มให้กับคุณได้", "role": "gpt" } ]
45
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n[END OF TASK INSTRUCTION]\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the discounted price after applying a percentage discount\", \"parameters\": {\"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"description\": \"The percentage discount to apply\", \"type\": \"number\"}}, \"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\"}, \"name\": \"calculate_discounted_price\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบว่าจะต้องจ่ายค่าชุดที่ราคา 100 ดอลลาร์สหรัฐฯ หลังจากส่วนลด 20% เท่าไหร่", "role": "human" }, { "content": "[calculate_discounted_price(original_price=100, discount_percentage=20)]", "role": "gpt" }, { "content": "เยี่ยมมาก! คุณช่วยสั่งซื้อชุดนี้ให้ฉันทางออนไลน์ได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอกได้ เช่น ช้อปปิ้งออนไลน์ ฉันขอแนะนำให้คุณสั่งซื้อผ่านร้านค้าปลีกออนไลน์ที่น่าเชื่อถือ", "role": "gpt" } ]
46
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. Please respond in Thai.\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Search for books based on title, author, or genre\", \"parameters\": {\"type\": \"object\", \"properties\": {\"genre\": {\"description\": \"The genre of the book\", \"type\": \"string\"}, \"title\": {\"description\": \"The title of the book\", \"type\": \"string\"}, \"author\": {\"description\": \"The author of the book\", \"type\": \"string\"}}}, \"name\": \"search_books\"}}]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "Can you order a pizza for me?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถสั่งพิซซ่าได้เนื่องจากเป็นงานภายนอก ฟังก์ชันปัจจุบันของฉันช่วยให้ฉันค้นหาหนังสือตามชื่อเรื่อง ผู้แต่ง หรือประเภทได้ หากคุณต้องการความช่วยเหลือ โปรดสอบถามได้เลย!", "role": "gpt" } ]
47
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n\n[FORMAT INSTRUCTION START]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[FORMAT INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {}, \"name\": \"generate_random_fact\", \"description\": \"Generate a random fact\"}}]", "role": "system" }, { "content": "ฉันเบื่อ. คุณช่วยเล่าสิ่งที่น่าสนใจให้ฉันฟังได้ไหม?", "role": "human" }, { "content": "[generate_random_fact()]", "role": "gpt" } ]
48
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. Please answer in Thai.\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"timestamp2\": {\"type\": \"string\", \"description\": \"The second timestamp\"}, \"timestamp1\": {\"type\": \"string\", \"description\": \"The first timestamp\"}}, \"required\": [\"timestamp1\", \"timestamp2\"]}, \"name\": \"calculate_time_difference\", \"description\": \"Calculate the time difference between two timestamps\"}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location2\": {\"type\": \"string\", \"description\": \"The second location\"}, \"location1\": {\"description\": \"The first location\", \"type\": \"string\"}}, \"required\": [\"location1\", \"location2\"]}, \"description\": \"Calculate the distance between two locations\"}}]\n[END OF AVAILABLE TOOLS]\n\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "สวัสดี ฉันต้องคำนวณความแตกต่างของเวลาระหว่างการประทับเวลาสองครั้ง อันแรกคือ \"2022-03-01T12:00:00Z\" และอันที่สองคือ \"2022-03-02T15:00:00Z\"", "role": "human" }, { "content": "[calculate_time_difference(timestamp1='2022-03-01T12:00:00Z', timestamp2='2022-03-02T15:00:00Z')]", "role": "gpt" }, { "content": "ขอบคุณนั่นมีประโยชน์ ตอนนี้ฉันมีการประทับเวลาอีกคู่หนึ่ง อันแรกคือ \"2022-03-05T08:00:00Z\" และอันที่สองคือ \"2022-03-05T18:00:00Z\"", "role": "human" }, { "content": "[calculate_time_difference(timestamp1='2022-03-05T08:00:00Z', timestamp2='2022-03-05T18:00:00Z')]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
49
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\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): [{\"function\": {\"name\": \"calculate_discount\", \"description\": \"Calculate the discounted price\", \"parameters\": {\"type\": \"object\", \"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"type\": \"number\", \"description\": \"The discount percentage\"}}, \"required\": [\"original_price\", \"discount_percentage\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันเห็นชุดที่ฉันชอบ เดิมราคาอยู่ที่ 100 ดอลลาร์ แต่ลดแล้ว 20% ตอนนี้ราคาเท่าไหร่คะ?", "role": "human" }, { "content": "[calculate_discount(original_price=100, discount_percentage=20)]", "role": "gpt" } ]
50
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n[FORMAT INSTRUCTION END]\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"description\": \"Send an email\", \"parameters\": {\"type\": \"object\", \"properties\": {\"subject\": {\"type\": \"string\", \"description\": \"The subject of the email\"}, \"message\": {\"description\": \"The content of the email\", \"type\": \"string\"}, \"recipient\": {\"type\": \"string\", \"description\": \"The email address of the recipient\"}}, \"required\": [\"recipient\", \"subject\", \"message\"]}, \"name\": \"send_email\"}}]\n</tools>", "role": "system" }, { "content": "ฉันต้องส่งอีเมลถึงเจ้านายของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ที่อยู่อีเมลของผู้รับ หัวเรื่องของอีเมล และเนื้อหาที่คุณต้องการส่งมาให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "อีเมลของผู้รับคือ BOSS@COMPANY.COM หัวข้อ “รายงานรายเดือน” และข้อความ “เรียนท่านผู้บริหาร โปรดดูรายงานประจำเดือนที่แนบมาพร้อมสำหรับการตรวจทานของคุณ ดีที่สุด, [ผู้ใช้]”", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Monthly Report', message='Dear Boss, Please find attached the monthly report for your review. Best, [User]')]", "role": "gpt" } ]
51
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. Please answer in Thai.\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the distance between two locations\", \"name\": \"calculate_distance\", \"parameters\": {\"required\": [\"start_location\", \"end_location\"], \"type\": \"object\", \"properties\": {\"end_location\": {\"type\": \"string\", \"description\": \"The ending location\"}, \"start_location\": {\"description\": \"The starting location\", \"type\": \"string\"}}}}}, {\"function\": {\"name\": \"generate_random_password\", \"parameters\": {\"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"type\": \"object\", \"required\": [\"length\"]}, \"description\": \"Generate a random password\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"start_location\": \"New York\",\n \"end_location\": \"Los Angeles\"\n }\n }\n]", "role": "gpt" }, { "content": "นั่นค่อนข้างไกลแล้ว ระยะห่างระหว่างลอนดอนและปารีสถือเป็นเท่าใด", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"start_location\": \"London\",\n \"end_location\": \"Paris\"\n }\n }\n]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
52
glaive-function-calling-v2-extended
[ { "content": "คุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\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\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"properties\": {\"playlist\": {\"type\": \"string\", \"description\": \"The name of the playlist\"}}, \"required\": [\"playlist\"], \"type\": \"object\"}, \"description\": \"Play music from a specified playlist\", \"name\": \"play_music\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "Can you order a pizza for me?", "role": "human" }, { "content": "ขออภัย ฉันไม่มีความสามารถในการสั่งพิซซ่าเนื่องจากเป็นงานภายนอก ฟังก์ชั่นปัจจุบันของฉันอนุญาตให้ฉันเล่นเพลงจากเพลย์ลิสต์ที่ระบุ", "role": "gpt" } ]
53
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n[END OF TASK INSTRUCTION]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"description\": \"Calculate the fuel cost for a trip\", \"parameters\": {\"required\": [\"distance\", \"fuel_efficiency\", \"fuel_price\"], \"properties\": {\"fuel_price\": {\"description\": \"The price of fuel per gallon\", \"type\": \"number\"}, \"fuel_efficiency\": {\"description\": \"The fuel efficiency of the vehicle in miles per gallon\", \"type\": \"number\"}, \"distance\": {\"type\": \"number\", \"description\": \"The distance of the trip in miles\"}}, \"type\": \"object\"}, \"name\": \"calculate_fuel_cost\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี ฉันกำลังวางแผนการเดินทางและฉันต้องคำนวณค่าน้ำมันเชื้อเพลิง ระยะทางคือ 500 ไมล์ ประสิทธิภาพการใช้เชื้อเพลิงของรถของฉันอยู่ที่ 25 ไมล์ต่อแกลลอน และราคาน้ำมันปัจจุบันอยู่ที่ 3 ดอลลาร์ต่อแกลลอน", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_fuel_cost\",\n \"arguments\": {\n \"distance\": 500,\n \"fuel_efficiency\": 25,\n \"fuel_price\": 3\n }\n }\n]}", "role": "gpt" } ]
54
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. Please answer in Thai.\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"type\": \"number\", \"description\": \"The percentage of the discount\"}}, \"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\"}, \"name\": \"calculate_discount\", \"description\": \"Calculate the discounted price\"}, \"type\": \"function\"}, {\"function\": {\"parameters\": {\"required\": [\"bill_amount\", \"tip_percentage\"], \"properties\": {\"bill_amount\": {\"type\": \"number\", \"description\": \"The total amount of the bill\"}, \"tip_percentage\": {\"description\": \"The percentage of tip\", \"type\": \"number\"}}, \"type\": \"object\"}, \"description\": \"Calculate the tip amount\", \"name\": \"calculate_tip\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "ฉันเห็นชุดที่ฉันชอบ เดิมราคาอยู่ที่ 200 เหรียญสหรัฐ แต่ลดแล้ว 20% คุณช่วยบอกฉันได้ไหมว่าหลังจากหักส่วนลดแล้วจะมีค่าใช้จ่ายเท่าไหร่?", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" } ]
55
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. Please answer in Thai.\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Create a strong password\", \"parameters\": {\"properties\": {\"include_lowercase\": {\"type\": \"boolean\", \"description\": \"Include lowercase letters\"}, \"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}, \"include_special_characters\": {\"description\": \"Include special characters\", \"type\": \"boolean\"}, \"include_uppercase\": {\"type\": \"boolean\", \"description\": \"Include uppercase letters\"}, \"include_numbers\": {\"description\": \"Include numbers\", \"type\": \"boolean\"}}, \"type\": \"object\", \"required\": [\"length\"]}, \"name\": \"create_password\"}}]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "ฉันต้องการรหัสผ่านใหม่ คุณช่วยฉันสร้างอันหนึ่งได้ไหม?", "role": "human" }, { "content": "แน่นอน! คุณช่วยระบุความยาวของรหัสผ่านและต้องการให้รวมตัวอักษรพิมพ์เล็ก ตัวอักษรพิมพ์ใหญ่ ตัวเลข และอักขระพิเศษหรือไม่", "role": "gpt" }, { "content": "ฉันต้องการให้มีความยาว 12 ตัวอักษร โดยมีตัวพิมพ์เล็กและตัวพิมพ์ใหญ่ ตัวเลข แต่ไม่มีอักขระพิเศษ", "role": "human" }, { "content": "[\n {\n \"name\": \"create_password\",\n \"arguments\": {\n \"length\": 12,\n \"include_lowercase\": true,\n \"include_uppercase\": true,\n \"include_numbers\": true,\n \"include_special_characters\": false\n }\n }\n]", "role": "gpt" } ]
56
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"birthdate\"], \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate in format 'YYYY-MM-DD'\"}}}, \"name\": \"calculate_age\", \"description\": \"Calculate the age based on a given birthdate\"}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอกได้ เช่น การจองเที่ยวบิน ฟังก์ชันปัจจุบันของฉันช่วยให้ฉันคำนวณอายุตามวันเกิดที่กำหนด มีอะไรอีกไหมที่เราสามารถช่วยคุณได้ภายในความสามารถของฉัน?", "role": "gpt" } ]
57
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. Please respond in Thai.\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_tip\", \"parameters\": {\"properties\": {\"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage of tip to be added\"}, \"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"bill_amount\", \"tip_percentage\"]}, \"description\": \"Calculate the tip amount for a bill\"}}]\n</tools>\n\n[BEGIN OF FORMAT INSTRUCTION]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "ฉันต้องคำนวณทิปสำหรับบิลของฉัน จำนวนเงินทั้งหมดคือ $50 และฉันต้องการให้ทิป 15%", "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" } ]
58
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. Please answer in Thai.\n</Task>\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the discount amount and final price based on original price and discount percentage\", \"parameters\": {\"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\", \"properties\": {\"discount_percentage\": {\"description\": \"The discount percentage\", \"type\": \"number\"}, \"original_price\": {\"description\": \"The original price of the item\", \"type\": \"number\"}}}, \"name\": \"calculate_discount\"}}]\n\n[FORMAT INSTRUCTION START]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "สวัสดี ฉันเห็นชุดที่ฉันชอบในร้านค้า เดิมราคาอยู่ที่ 200 เหรียญสหรัฐ แต่ลดแล้ว 20% คุณช่วยบอกฉันหน่อยได้ไหมว่าฉันจะต้องจ่ายเท่าไหร่หลังหักส่วนลดแล้ว?|", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" } ]
59
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. Please respond in Thai.\n[END OF TASK INSTRUCTION]\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"name\": \"get_movie_details\", \"parameters\": {\"properties\": {\"year\": {\"description\": \"The release year of the movie\", \"type\": \"integer\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the movie\"}}, \"required\": [\"title\"], \"type\": \"object\"}, \"description\": \"Get details about a specific movie\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "คุณช่วยบอกฉันเกี่ยวกับภาพยนตร์เรื่อง Inception ได้ไหม?", "role": "human" }, { "content": "[get_movie_details(title='Inception')]", "role": "gpt" }, { "content": "แล้ว \"เดอะดาร์กไนท์\" ล่ะ?", "role": "human" }, { "content": "[get_movie_details(title='The Dark Knight')]", "role": "gpt" }, { "content": "คุณช่วยเล่าเรื่อง \"ไททานิค\" ในปี 1997 ให้ฉันฟังหน่อยได้ไหม?", "role": "human" }, { "content": "[get_movie_details(title='Titanic', year=1997)]", "role": "gpt" } ]
60
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. Please respond in Thai.\n</Task>\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"generate_random_password\", \"description\": \"Generate a random password with specific criteria\", \"parameters\": {\"properties\": {\"include_numbers\": {\"type\": \"boolean\", \"description\": \"Include numbers in the password\"}, \"include_symbols\": {\"description\": \"Include symbols in the password\", \"type\": \"boolean\"}, \"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"type\": \"object\", \"required\": [\"length\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "Can you order a pizza for me?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอกได้ เช่น สั่งพิซซ่า หน้าที่ปัจจุบันของฉันคือการสร้างรหัสผ่านแบบสุ่มตามเกณฑ์เฉพาะ หากคุณต้องการรหัสผ่านใหม่ เรายินดีที่จะช่วยเหลือในเรื่องนั้น", "role": "gpt" } ]
61
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. Please answer in Thai.\n\nเครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"properties\": {\"subject\": {\"type\": \"string\", \"description\": \"The subject of the email\"}, \"message\": {\"type\": \"string\", \"description\": \"The content of the email\"}, \"to\": {\"description\": \"The email address of the recipient\", \"type\": \"string\"}}, \"required\": [\"to\", \"subject\", \"message\"], \"type\": \"object\"}, \"name\": \"send_email\", \"description\": \"Send an email to a recipient\"}, \"type\": \"function\"}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "ฉันต้องส่งอีเมลถึงเจ้านายของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ที่อยู่อีเมลของผู้รับ หัวเรื่องของอีเมล และเนื้อหาที่คุณต้องการส่งมาให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "แน่นอนว่าที่อยู่อีเมลคือ BOSS@COMPANY.COM หัวข้อคือ \"อัปเดตโครงการ\" และข้อความคือ \"เรียนท่านผู้บริหาร ฉันได้ทำโครงงานให้เสร็จสิ้นตามกำหนดเวลาที่กำหนด โปรดตรวจสอบภายในเวลาที่คุณสะดวกที่สุด ความนับถือ [ชื่อผู้ใช้]\"", "role": "human" }, { "content": "[\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"to\": \"boss@company.com\",\n \"subject\": \"Project Update\",\n \"message\": \"Dear Boss, I have completed the project as per the given deadline. Please review it at your earliest convenience. Regards, [User's Name]\"\n }\n }\n]", "role": "gpt" } ]
62
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. Please answer in Thai.\n\n[FORMAT INSTRUCTION START]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a random interesting fact\", \"parameters\": {}, \"name\": \"generate_random_fact\", \"required\": []}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "ฉันเบื่อ. คุณช่วยเล่าสิ่งที่น่าสนใจให้ฉันฟังได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_fact\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
63
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. Please answer in Thai.\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Send an email to a recipient\", \"name\": \"send_email\", \"parameters\": {\"required\": [\"recipient_email\", \"subject\", \"message\"], \"properties\": {\"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}, \"recipient_email\": {\"description\": \"The email address of the recipient\", \"type\": \"string\"}, \"message\": {\"type\": \"string\", \"description\": \"The content of the email\"}}, \"type\": \"object\"}}}]\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}", "role": "system" }, { "content": "เฮ้ คุณช่วยส่งอีเมลถึงเพื่อนของฉันจอห์นได้ไหม อีเมลของเขาคือ john@example.com หัวเรื่องควรเป็น \"คำเชิญเข้าร่วมงานปาร์ตี้\" และข้อความควรเป็น \"เฮ้ จอห์น ฉันจะจัดงานปาร์ตี้สุดสัปดาห์นี้ อยากร่วมงานกับคุณ เชียร์ อเล็กซ์\"", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"send_email\",\n \"arguments\": {\n \"recipient_email\": \"john@example.com\",\n \"subject\": \"Party Invitation\",\n \"message\": \"Hey John, I am throwing a party this weekend. Would love if you could join us. Cheers, Alex\"\n }\n }\n]}", "role": "gpt" }, { "content": "ยอดเยี่ยม! คุณสามารถสั่งพิซซ่าสำหรับงานปาร์ตี้ได้ไหม?", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยอะไรได้ การสั่งพิซซ่าเป็นงานภายนอก และฉันไม่มีฟังก์ชันใดๆ สำหรับงานนั้น ฉันแนะนำให้ใช้แอปส่งอาหารสำหรับสิ่งนี้", "role": "gpt" } ]
64
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. Please answer in Thai.\n[TASK INSTRUCTION END]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"generate_invoice\", \"description\": \"Generate an invoice for a given customer\", \"parameters\": {\"properties\": {\"items\": {\"items\": {\"required\": [\"name\", \"quantity\", \"price\"], \"properties\": {\"quantity\": {\"type\": \"integer\", \"description\": \"The quantity of the item\"}, \"name\": {\"type\": \"string\", \"description\": \"The name of the item\"}, \"price\": {\"type\": \"number\", \"description\": \"The price of the item\"}}, \"type\": \"object\"}, \"type\": \"array\", \"description\": \"The items to include in the invoice\"}, \"customer_name\": {\"description\": \"The name of the customer\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"customer_name\", \"items\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถช่วยในเรื่องนั้นได้ การจองเที่ยวบินเป็นงานภายนอกและฉันไม่มีฟังก์ชันสำหรับงานนั้น ความสามารถของฉันในปัจจุบันจำกัดอยู่เพียงการออกใบแจ้งหนี้ให้กับลูกค้า", "role": "gpt" } ]
65
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. Please answer in Thai.\n</Task>\n\nเครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"required\": [\"text\"], \"properties\": {\"text\": {\"description\": \"The text to encode in the barcode\", \"type\": \"string\"}, \"format\": {\"description\": \"The format of the barcode\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Generate a barcode for a given text\", \"name\": \"generate_barcode\"}, \"type\": \"function\"}]\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ", "role": "system" }, { "content": "สวัสดี ฉันต้องการบาร์โค้ดสำหรับข้อความ \"Hello World\"", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณมีรูปแบบเฉพาะสำหรับบาร์โค้ดอยู่ในใจหรือไม่?", "role": "gpt" }, { "content": "ใช่ ฉันต้องการมันในรูปแบบ EAN-13", "role": "human" }, { "content": "[generate_barcode(text='Hello World', format='EAN-13')]", "role": "gpt" } ]
66
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n</Task>\n\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"convert_currency\", \"parameters\": {\"properties\": {\"to\": {\"description\": \"The target currency code\", \"type\": \"string\"}, \"amount\": {\"description\": \"The amount to be converted\", \"type\": \"number\"}, \"from\": {\"type\": \"string\", \"description\": \"The source currency code\"}}, \"required\": [\"amount\", \"from\", \"to\"], \"type\": \"object\"}, \"description\": \"Convert currency from one unit to another\"}}]\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": "สวัสดี ฉันต้องการแปลงเงิน 500 USD เป็น EUR คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 500,\n \"from\": \"USD\",\n \"to\": \"EUR\"\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมมาก! ตอนนี้คุณสามารถแปลง 1,000 GBP เป็น USD ได้หรือไม่?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 1000,\n \"from\": \"GBP\",\n \"to\": \"USD\"\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
67
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_tip\", \"description\": \"Calculate the tip amount based on a bill\", \"parameters\": {\"type\": \"object\", \"required\": [\"bill_amount\", \"tip_percentage\"], \"properties\": {\"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}, \"tip_percentage\": {\"description\": \"The percentage of tip to be given\", \"type\": \"number\"}}}}}]\n</tools>", "role": "system" }, { "content": "คุณช่วยฉันจองเที่ยวบินไปนิวยอร์กได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถจองเที่ยวบินได้ ฟังก์ชันปัจจุบันของฉันช่วยให้ฉันสามารถคำนวณจำนวนทิปตามใบแจ้งหนี้ได้ หากคุณต้องการความช่วยเหลือ โปรดสอบถาม", "role": "gpt" } ]
68
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. Please answer in Thai.\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"check_email_availability\", \"parameters\": {\"required\": [\"email\"], \"properties\": {\"email\": {\"description\": \"The email address to be checked\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Check the availability of an email address\"}}]\n</tools>", "role": "system" }, { "content": "สวัสดี ฉันต้องการสร้างที่อยู่อีเมลใหม่ คุณสามารถตรวจสอบว่า john.doe@gmail.com พร้อมใช้งานหรือไม่", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"check_email_availability\",\n \"arguments\": {\n \"email\": \"john.doe@gmail.com\"\n }\n }\n]}", "role": "gpt" }, { "content": "โอเค แล้ว john.doe123@gmail.com ล่ะ?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"check_email_availability\",\n \"arguments\": {\n \"email\": \"john.doe123@gmail.com\"\n }\n }\n]}", "role": "gpt" } ]
69
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_age\", \"parameters\": {\"required\": [\"birthdate\"], \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate in format YYYY-MM-DD\"}}, \"type\": \"object\"}, \"description\": \"Calculate the age based on the birthdate\"}}]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกฉันหน่อยได้ไหมว่าฉันอายุเท่าไหร่ วันเกิดของฉันคือ 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" } ]
70
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n[END OF TASK INSTRUCTION]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}, \"loan_amount\": {\"type\": \"number\", \"description\": \"The total loan amount\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}}, \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"]}, \"name\": \"calculate_loan_payment\", \"description\": \"Calculate the monthly loan payment based on loan amount, interest rate, and loan term\"}}]\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณเงินกู้ของฉัน", "role": "human" }, { "content": "แน่นอน เรายินดีที่จะช่วยเหลือคุณในเรื่องนั้น คุณช่วยกรุณาระบุจำนวนเงินกู้ทั้งหมด อัตราดอกเบี้ยรายปี และระยะเวลาเงินกู้เป็นจำนวนปีให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "แน่นอนว่าจำนวนเงินกู้คือ 50,000 ดอลลาร์ อัตราดอกเบี้ยอยู่ที่ 5% และระยะเวลาการกู้ยืมคือ 10 ปี", "role": "human" }, { "content": "[calculate_loan_payment(loan_amount=50000, interest_rate=5, loan_term=10)]", "role": "gpt" } ]
71
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"properties\": {\"principal\": {\"type\": \"number\", \"description\": \"The initial amount\"}, \"time\": {\"description\": \"The time period in years\", \"type\": \"number\"}, \"rate\": {\"description\": \"The interest rate\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"principal\", \"rate\", \"time\"]}, \"name\": \"calculate_interest\", \"description\": \"Calculate interest on a loan or investment\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "สวัสดี ฉันต้องการคำนวณดอกเบี้ยเงินกู้ที่ฉันกำลังพิจารณา จำนวนเงินต้นคือ 5,000 ดอลลาร์ อัตราดอกเบี้ยอยู่ที่ 3.5% และระยะเวลาการกู้ยืมคือ 5 ปี คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "[calculate_interest(principal=5000, rate=3.5, time=5)]", "role": "gpt" } ]
72
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Get a recipe based on ingredients\", \"parameters\": {\"type\": \"object\", \"required\": [\"ingredients\"], \"properties\": {\"ingredients\": {\"description\": \"The list of ingredients\", \"type\": \"array\", \"items\": {\"type\": \"string\"}}}}, \"name\": \"get_recipe\"}}]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "ฉันมีไก่ มะเขือเทศ และโหระพาอยู่บ้าง ฉันจะทำอาหารด้วยสิ่งเหล่านี้ได้อย่างไร?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_recipe\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"tomatoes\",\n \"basil\"\n ]\n }\n }\n]}", "role": "gpt" } ]
73
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. Please respond in Thai.\n[TASK INSTRUCTION END]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"description\": \"The word to get the definition of\", \"type\": \"string\"}}, \"required\": [\"word\"]}, \"description\": \"Get the definition of a word\", \"name\": \"get_definition\"}, \"type\": \"function\"}, {\"function\": {\"parameters\": {}, \"name\": \"get_random_fact\", \"description\": \"Get a random interesting fact\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "ฉันเบื่อ. คุณช่วยเล่าสิ่งที่น่าสนใจให้ฉันฟังได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_random_fact\",\n \"arguments\": {}\n }\n]}", "role": "gpt" } ]
74
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[TASK INSTRUCTION END]\n\nAPI Function: [{\"function\": {\"name\": \"execute_program\", \"parameters\": {\"properties\": {\"program_name\": {\"description\": \"The name of the program to execute\", \"type\": \"string\"}, \"arguments\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"The arguments to pass to the program\"}}, \"required\": [\"program_name\"], \"type\": \"object\"}, \"description\": \"Execute a program\"}, \"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": "ฉันต้องเรียกใช้โปรแกรมชื่อ \"DataAnalysis\" โดยมีอาร์กิวเมนต์เป็น \"file1.csv\", \"file2.csv\"", "role": "human" }, { "content": "[execute_program(program_name='DataAnalysis', arguments=['file1.csv', 'file2.csv'])]", "role": "gpt" }, { "content": "ยอดเยี่ยม! ตอนนี้ฉันต้องเรียกใช้โปรแกรมอื่นชื่อ \"VisualizeData\" โดยมีไฟล์เอาต์พุตเป็น \"output.csv\"", "role": "human" }, { "content": "[execute_program(program_name='VisualizeData', arguments=['output.csv'])]", "role": "gpt" } ]
75
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. Please answer in Thai.\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"properties\": {\"max\": {\"description\": \"The maximum value of the range\", \"type\": \"number\"}, \"min\": {\"description\": \"The minimum value of the range\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"min\", \"max\"]}, \"name\": \"generate_random_number\", \"description\": \"Generate a random number within a specified range\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการตัวเลขสุ่มระหว่าง 1 ถึง 100", "role": "human" }, { "content": "[generate_random_number(min=1, max=100)]", "role": "gpt" }, { "content": "เยี่ยมเลย ตอนนี้ฉันต้องการตัวเลขสุ่มอีกอัน แต่ครั้งนี้ระหว่าง 500 ถึง 1,000", "role": "human" }, { "content": "[generate_random_number(min=500, max=1000)]", "role": "gpt" }, { "content": "ขอบคุณ นั่นคือทั้งหมดที่ฉันต้องการ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการสิ่งอื่นใด โปรดสอบถามได้", "role": "gpt" } ]
76
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. Please respond in Thai.\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"description\": \"Search for restaurants based on location and cuisine\", \"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The location to search for restaurants\"}, \"cuisine\": {\"type\": \"string\", \"description\": \"The cuisine to filter the results\"}}}, \"name\": \"search_restaurants\"}}]\n</tools>\n\n<format>\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n</format>", "role": "system" }, { "content": "ฉันอยู่ที่นิวยอร์คและอยากทานอาหารอิตาเลียน คุณช่วยฉันหาร้านอาหารได้ไหม?", "role": "human" }, { "content": "[search_restaurants(location='New York', cuisine='Italian')]", "role": "gpt" }, { "content": "เยี่ยมมาก! ขอบคุณสำหรับความช่วยเหลือ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการความช่วยเหลือเพิ่มเติม อย่าลังเลที่จะสอบถาม", "role": "gpt" } ]
77
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n[BEGIN OF FORMAT INSTRUCTION]\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n[END OF FORMAT INSTRUCTION]\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Find nearby restaurants based on location\", \"name\": \"find_nearby_restaurants\", \"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"max_distance\": {\"type\": \"number\", \"description\": \"The maximum distance in kilometers from the location\"}, \"cuisine_type\": {\"type\": \"string\", \"description\": \"The type of cuisine to filter the results\"}, \"location\": {\"description\": \"The location to search for nearby restaurants\", \"type\": \"string\"}}}}}, {\"type\": \"function\", \"function\": {\"description\": \"Find information about a movie\", \"parameters\": {\"type\": \"object\", \"properties\": {\"year\": {\"type\": \"integer\", \"description\": \"The release year of the movie\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of the movie\"}, \"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}}, \"required\": [\"title\"]}, \"name\": \"find_movie\"}}]", "role": "system" }, { "content": "ฉันอยู่ที่นิวยอร์คและอยากทานอาหารอิตาเลียน คุณสามารถหาร้านอาหารอิตาเลียนในบริเวณใกล้เคียงได้ไหม", "role": "human" }, { "content": "[find_nearby_restaurants(location='New York', cuisine_type='Italian', max_distance=5)]", "role": "gpt" }, { "content": "ที่ดี! คุณสามารถหาตัวเลือกเพิ่มเติมได้แต่อยู่ภายในระยะ 2 กม. หรือไม่", "role": "human" }, { "content": "[find_nearby_restaurants(location='New York', cuisine_type='Italian', max_distance=2)]", "role": "gpt" } ]
78
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\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: [{\"function\": {\"description\": \"Calculate the Grade Point Average (GPA) based on grades and credit hours\", \"name\": \"calculate_gpa\", \"parameters\": {\"type\": \"object\", \"required\": [\"grades\", \"credit_hours\"], \"properties\": {\"grades\": {\"type\": \"array\", \"description\": \"The grades achieved in each course\", \"items\": {\"type\": \"string\"}}, \"credit_hours\": {\"items\": {\"type\": \"number\"}, \"type\": \"array\", \"description\": \"The credit hours for each course\"}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถช่วยจองเที่ยวบินได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่ที่การคำนวณเกรดเฉลี่ย (GPA) ตามเกรดและชั่วโมงเครดิต หากคุณต้องการความช่วยเหลือ โปรดถามได้เลย!", "role": "gpt" } ]
79
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"required\": [\"birthdate\"], \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate of the person\"}}}, \"description\": \"Calculate the age based on the birthdate\"}}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่มีความสามารถในการจองเที่ยวบิน ฟังก์ชันปัจจุบันของฉันช่วยให้ฉันคำนวณอายุตามวันเกิดได้ มีอะไรอีกไหมที่เราสามารถช่วยคุณได้?", "role": "gpt" } ]
80
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\n### Tools: [{\"function\": {\"parameters\": {\"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate in format yyyy-mm-dd\"}}, \"required\": [\"birthdate\"], \"type\": \"object\"}, \"name\": \"calculate_age\", \"description\": \"Calculate the age based on the birthdate\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี คุณช่วยฉันคำนวณอายุของฉันได้ไหม ฉันเกิดเมื่อวันที่ 15/5/2533", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birthdate\": \"1990-05-15\"\n }\n }\n]", "role": "gpt" } ]
81
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. Please answer in Thai.\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[END OF FORMAT INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"name\": \"calculate_tip\", \"description\": \"Calculate the tip amount for a bill\", \"parameters\": {\"required\": [\"bill_amount\", \"tip_percentage\"], \"type\": \"object\", \"properties\": {\"bill_amount\": {\"description\": \"The total bill amount\", \"type\": \"number\"}, \"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage of tip to be given\"}}}}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณทิปสำหรับบิลของฉัน จำนวนเงินทั้งหมดคือ $100 และฉันต้องการให้ทิป 15%", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 100,\n \"tip_percentage\": 15\n }\n }\n]}", "role": "gpt" } ]
82
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n[END OF TASK INSTRUCTION]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Get details of a movie\", \"parameters\": {\"type\": \"object\", \"properties\": {\"year\": {\"type\": \"integer\", \"description\": \"The year the movie was released\"}, \"language\": {\"description\": \"The language of the movie\", \"type\": \"string\"}, \"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}}, \"required\": [\"title\"]}, \"name\": \"get_movie_details\"}}]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "คุณช่วยบอกฉันเกี่ยวกับภาพยนตร์เรื่อง Inception ได้ไหม?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Inception\"\n }\n }\n]", "role": "gpt" }, { "content": "แล้วหนังเรื่อง Parasite ล่ะ?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Parasite\"\n }\n }\n]", "role": "gpt" } ]
83
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. Please answer in Thai.\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\nTools: [{\"function\": {\"description\": \"Calculate the discounted price of a product\", \"parameters\": {\"type\": \"object\", \"required\": [\"price\", \"discount_percentage\"], \"properties\": {\"price\": {\"type\": \"number\", \"description\": \"The original price of the product\"}, \"discount_percentage\": {\"description\": \"The discount percentage\", \"type\": \"number\"}}}, \"name\": \"calculate_discount\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันเห็นเสื้อแจ็คเก็ตตัวที่ฉันชอบในร้านค้า ราคาอยู่ที่ 200 เหรียญสหรัฐ แต่มีส่วนลด 20% คุณช่วยฉันคำนวณราคาหลังจากหักส่วนลดได้ไหม", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"price\": 200,\n \"discount_percentage\": 20\n }\n }\n]", "role": "gpt" } ]
84
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on the date of birth\", \"parameters\": {\"required\": [\"date_of_birth\"], \"properties\": {\"date_of_birth\": {\"description\": \"The date of birth in the format 'YYYY-MM-DD'\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"calculate_age\"}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี ฉันเกิดเมื่อวันที่ 15/5/2533 คุณบอกฉันได้ไหมว่าฉันอายุเท่าไหร่?", "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": "โอ้ เวลาผ่านไปเร็ว! ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
85
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. Please answer in Thai.\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Get details of a movie\", \"parameters\": {\"required\": [\"title\"], \"type\": \"object\", \"properties\": {\"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}}}, \"name\": \"get_movie_details\"}}, {\"type\": \"function\", \"function\": {\"name\": \"calculate_interest\", \"parameters\": {\"type\": \"object\", \"required\": [\"principal\", \"rate\", \"time\"], \"properties\": {\"principal\": {\"description\": \"The principal amount\", \"type\": \"number\"}, \"time\": {\"description\": \"The time period in years\", \"type\": \"integer\"}, \"rate\": {\"description\": \"The interest rate in percentage\", \"type\": \"number\"}}}, \"description\": \"Calculate the interest on an amount\"}}]", "role": "system" }, { "content": "คุณช่วยบอกฉันเกี่ยวกับภาพยนตร์เรื่อง Inception ได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"Inception\"\n }\n }\n]}", "role": "gpt" }, { "content": "นั่นฟังดูน่าสนใจ คุณช่วยบอกฉันเกี่ยวกับภาพยนตร์เรื่อง The Dark Knight หน่อยได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_movie_details\",\n \"arguments\": {\n \"title\": \"The Dark Knight\"\n }\n }\n]}", "role": "gpt" } ]
86
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n</Task>\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_tip\", \"parameters\": {\"properties\": {\"tip_percentage\": {\"description\": \"The tip percentage\", \"type\": \"number\"}, \"bill_amount\": {\"type\": \"number\", \"description\": \"The total bill amount\"}}, \"type\": \"object\", \"required\": [\"bill_amount\", \"tip_percentage\"]}, \"description\": \"Calculate the tip amount for a bill\"}}]\n\n[FORMAT INSTRUCTION START]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณทิป บิลของฉันคือ 85 ดอลลาร์ และฉันต้องการให้ทิป 15%", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_tip\",\n \"arguments\": {\n \"bill_amount\": 85,\n \"tip_percentage\": 15\n }\n }\n]}", "role": "gpt" } ]
87
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n[TASK INSTRUCTION END]\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\nAPI Function: [{\"function\": {\"description\": \"Search for recipes based on ingredients\", \"name\": \"search_recipes\", \"parameters\": {\"type\": \"object\", \"required\": [\"ingredients\"], \"properties\": {\"ingredients\": {\"type\": \"array\", \"description\": \"The ingredients to search for\", \"items\": {\"type\": \"string\"}}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันมีไก่ มะเขือเทศ และกระเทียมอยู่บ้าง คุณช่วยหาสูตรให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'tomatoes', 'garlic'])]", "role": "gpt" } ]
88
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. Please respond in Thai.\n</Task>\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\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_discount\", \"description\": \"Calculate the discounted price of an item\", \"parameters\": {\"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"description\": \"The percentage discount to be applied\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"original_price\", \"discount_percentage\"]}}}]", "role": "system" }, { "content": "ฉันเห็นเสื้อแจ็คเก็ตตัวที่ฉันชอบในร้านค้า เดิมราคาอยู่ที่ 200 เหรียญสหรัฐ แต่มีส่วนลด 20% คุณช่วยบอกฉันได้ไหมว่าหลังจากหักส่วนลดแล้วจะมีค่าใช้จ่ายเท่าไหร่?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" } ]
89
glaive-function-calling-v2-extended
[ { "content": "คุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\", \"parameters\": {\"properties\": {\"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}, \"type\": \"object\", \"required\": [\"origin\", \"destination\"]}}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ", "role": "system" }, { "content": "สวัสดี ฉันกำลังวางแผนการเดินทางท่องเที่ยวทางรถยนต์ คุณช่วยบอกระยะห่างระหว่างนิวยอร์กและลอสแองเจลิสให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Los Angeles')]", "role": "gpt" }, { "content": "นั่นค่อนข้างไกล แล้วนิวยอร์กถึงชิคาโกล่ะ?", "role": "human" }, { "content": "[calculate_distance(origin='New York', destination='Chicago')]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
90
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out. Please respond in Thai.\n[END OF TASK INSTRUCTION]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Search for recipes based on ingredients\", \"name\": \"search_recipes\", \"parameters\": {\"type\": \"object\", \"required\": [\"ingredients\"], \"properties\": {\"cuisine\": {\"description\": \"The cuisine type to filter by (e.g. Italian, Mexican)\", \"type\": \"string\"}, \"ingredients\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}, \"description\": \"The ingredients to search for\"}}}}}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "ฉันมีไก่ มะเขือเทศ และโหระพา คุณช่วยหาสูตรอาหารอิตาเลี่ยนให้ฉันได้ไหม", "role": "human" }, { "content": "[\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"tomatoes\",\n \"basil\"\n ],\n \"cuisine\": \"Italian\"\n }\n }\n]", "role": "gpt" } ]
91
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. Please answer in Thai.\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the interest on a loan\", \"parameters\": {\"properties\": {\"principal\": {\"description\": \"The principal amount of the loan\", \"type\": \"number\"}, \"loan_term\": {\"description\": \"The term of the loan in years\", \"type\": \"integer\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}}, \"type\": \"object\", \"required\": [\"principal\", \"interest_rate\", \"loan_term\"]}, \"name\": \"calculate_loan_interest\"}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือเกี่ยวกับเงินกู้ที่ฉันกำลังพิจารณาอยู่", "role": "human" }, { "content": "แน่นอน ฉันยินดีที่จะช่วย คุณช่วยกรุณาแจ้งจำนวนเงินต้นของเงินกู้ อัตราดอกเบี้ยรายปี และระยะเวลาของเงินกู้เป็นจำนวนปีให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "แน่นอนว่าจำนวนเงินต้นคือ 50,000 ดอลลาร์ อัตราดอกเบี้ยอยู่ที่ 5% และระยะเวลาการกู้ยืมคือ 10 ปี", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_loan_interest\",\n \"arguments\": {\n \"principal\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 10\n }\n }\n]", "role": "gpt" } ]
92
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n</Task>\n\n[{\"type\": \"function\", \"function\": {\"name\": \"get_random_joke\", \"description\": \"Get a random joke\", \"parameters\": {}}}]\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": "สวัสดี ฉันรู้สึกแย่นิดหน่อย คุณช่วยเล่าเรื่องตลกให้ฉันฟังเพื่อทำให้ฉันมีกำลังใจได้ไหม?", "role": "human" }, { "content": "[get_random_joke()]", "role": "gpt" }, { "content": "นั่นเป็นสิ่งที่ดี! ตอนนี้คุณสามารถสั่งพิซซ่าให้ฉันได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ฉันสามารถปฏิบัติงานที่เกี่ยวข้องกับฟังก์ชันที่มอบให้ฉันเท่านั้น มีอะไรอีกไหมที่คุณต้องการให้ฉันทำภายในความสามารถของฉัน?", "role": "gpt" } ]
93
glaive-function-calling-v2-extended
[ { "content": "คุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n\nเครื่องมือ (Tools): [{\"function\": {\"name\": \"get_movie_details\", \"parameters\": {\"type\": \"object\", \"required\": [\"movie_title\"], \"properties\": {\"movie_title\": {\"type\": \"string\", \"description\": \"The title of the movie\"}, \"year\": {\"description\": \"The year the movie was released\", \"type\": \"integer\"}}}, \"description\": \"Get details of a movie\"}, \"type\": \"function\"}]\n\n### Format:\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "คุณช่วยจองตั๋วหนังเรื่อง Inception ให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถจองตั๋วหนังได้เนื่องจากเป็นงานภายนอกและฉันไม่มีฟังก์ชันสำหรับงานนั้น อย่างไรก็ตาม เราสามารถให้รายละเอียดเกี่ยวกับภาพยนตร์เรื่อง Inception แก่คุณได้หากต้องการ", "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. Please respond in Thai.\n</Task>\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"convert_currency\", \"parameters\": {\"type\": \"object\", \"properties\": {\"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}, \"from_currency\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}, \"description\": \"Convert currency from one to another\"}}, {\"function\": {\"description\": \"Translate text from one language to another\", \"name\": \"translate_text\", \"parameters\": {\"properties\": {\"source_language\": {\"type\": \"string\", \"description\": \"The source language of the text\"}, \"target_language\": {\"description\": \"The target language for translation\", \"type\": \"string\"}, \"text\": {\"type\": \"string\", \"description\": \"The text to be translated\"}}, \"required\": [\"text\", \"source_language\", \"target_language\"], \"type\": \"object\"}}, \"type\": \"function\"}]\n</tools>\n\n[FORMAT INSTRUCTION START]\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการแปลงเงิน 1,000 USD เป็น EUR คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "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": "เยี่ยมเลย ขอบคุณ! ตอนนี้ คุณสามารถแปลง 500 GBP เป็น USD ได้หรือไม่?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 500,\n \"from_currency\": \"GBP\",\n \"to_currency\": \"USD\"\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
95
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}}}, \"name\": \"convert_currency\", \"description\": \"Convert one currency to another\"}, \"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": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถช่วยจองเที่ยวบินได้เนื่องจากเป็นงานภายนอกและฉันไม่มีฟังก์ชันสำหรับงานนั้น อย่างไรก็ตาม เราสามารถช่วยเหลือในการแปลงสกุลเงินได้หากคุณต้องการ", "role": "gpt" } ]
96
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. Please respond in Thai.\n</Task>\n\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\n[{\"function\": {\"description\": \"Find local restaurants based on user's preferences\", \"parameters\": {\"properties\": {\"location\": {\"description\": \"The location to search for restaurants\", \"type\": \"string\"}, \"cuisine_type\": {\"description\": \"The cuisine type preference\", \"type\": \"string\"}, \"price_range\": {\"description\": \"The price range preference\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"cuisine_type\", \"price_range\", \"location\"]}, \"name\": \"find_local_restaurants\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "เฮ้ ฉันกำลังมองหาร้านอาหารอิตาเลียนดีๆ ในนิวยอร์กในราคาปานกลาง คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"find_local_restaurants\",\n \"arguments\": {\n \"cuisine_type\": \"Italian\",\n \"price_range\": \"moderate\",\n \"location\": \"New York\"\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมมาก! คุณช่วยจองโต๊ะที่ Carbone ให้ฉันคืนนี้ได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น จองโต๊ะได้ ฉันขอแนะนำให้คุณติดต่อร้านอาหารโดยตรงเพื่อทำการจอง", "role": "gpt" } ]
97
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. Please answer in Thai.\n</Task>\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"properties\": {\"birth_date\": {\"format\": \"date\", \"type\": \"string\", \"description\": \"The birth date of the person\"}}, \"required\": [\"birth_date\"]}, \"description\": \"Calculate a person's age\"}}]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันได้ไหม?", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยในเรื่องนั้นได้ ความสามารถในปัจจุบันของฉันทำให้ฉันสามารถคำนวณอายุของคนตามวันเกิดได้ ฉันไม่มีความสามารถที่จะทำงานภายนอก เช่น การสั่งพิซซ่า", "role": "gpt" } ]
98
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. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\nTools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"search_query\"], \"properties\": {\"search_query\": {\"description\": \"The title or author to search for\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Search for books based on title or author\", \"name\": \"search_books\"}}]", "role": "system" }, { "content": "Can you order a pizza for me?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน ในกรณีนี้ ฉันสามารถช่วยคุณค้นหาหนังสือตามชื่อเรื่องหรือผู้แต่งได้", "role": "gpt" } ]
99
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n[TASK INSTRUCTION END]\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"send_email\", \"parameters\": {\"properties\": {\"recipient\": {\"description\": \"The email address of the recipient\", \"type\": \"string\"}, \"message\": {\"description\": \"The content of the email message\", \"type\": \"string\"}, \"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}}, \"required\": [\"recipient\", \"subject\", \"message\"], \"type\": \"object\"}, \"description\": \"Send an email to a recipient\"}}]\n</tools>\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>", "role": "system" }, { "content": "ฉันต้องส่งอีเมลถึงเจ้านายของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ที่อยู่อีเมลของผู้รับ หัวเรื่องของอีเมล และเนื้อหาของข้อความแก่ฉันได้ไหม", "role": "gpt" }, { "content": "อีเมลของผู้รับคือ BOSS@COMPANY.COM หัวข้อ “รายงานรายเดือน” และข้อความ “เรียนท่านผู้บริหาร โปรดดูรายงานประจำเดือนที่แนบมาพร้อมสำหรับการตรวจทานของคุณ ดีที่สุด, [ผู้ใช้]”", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Monthly Report', message='Dear Boss, Please find attached the monthly report for your review. Best, [User]')]", "role": "gpt" } ]
100