dataset
stringclasses
1 value
conversations
listlengths
3
11
id
int64
1
38.9k
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\n[{\"function\": {\"name\": \"calculate_age_difference\", \"description\": \"Calculate the age difference between two individuals\", \"parameters\": {\"type\": \"object\", \"required\": [\"birthdate1\", \"birthdate2\"], \"properties\": {\"birthdate1\": {\"type\": \"string\", \"description\": \"The date of birth of the first individual in yyyy-mm-dd format\", \"format\": \"date\"}, \"birthdate2\": {\"description\": \"The date of birth of the second individual in yyyy-mm-dd format\", \"format\": \"date\", \"type\": \"string\"}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันอยากทราบว่าอายุของพี่ชายฉันกับฉันต่างกันแค่ไหน วันเกิดของฉันคือ 1990-05-15 และวันเกิดของน้องชายคือ 1995-08-20 คุณช่วยได้ไหม?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_age_difference\",\n \"arguments\": {\n \"birthdate1\": \"1990-05-15\",\n \"birthdate2\": \"1995-08-20\"\n }\n }\n]", "role": "gpt" }, { "content": "ขอบคุณ นั่นคือสิ่งที่ฉันต้องการทราบ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
101
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n</Task>\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\n[{\"function\": {\"parameters\": {\"required\": [\"limit\"], \"properties\": {\"limit\": {\"description\": \"The maximum number in the Fibonacci sequence\", \"type\": \"integer\"}}, \"type\": \"object\"}, \"description\": \"Calculate the Fibonacci sequence up to a given number\", \"name\": \"calculate_fibonacci_sequence\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือเกี่ยวกับปัญหาคณิตศาสตร์", "role": "human" }, { "content": "แน่นอน! ฉันยินดีที่จะช่วย เกิดปัญหาอะไรขึ้น?", "role": "gpt" }, { "content": "ฉันต้องรู้ลำดับฟีโบนัชชีจนถึง 10", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_fibonacci_sequence\",\n \"arguments\": {\n \"limit\": 10\n }\n }\n]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! ตอนนี้ช่วยฉันจองเที่ยวบินไปปารีสหน่อยได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองเที่ยวบินหรือทำงานภายนอกอื่น ๆ ได้ ฉันขอแนะนำให้ใช้เว็บไซต์จองที่พักหรือติดต่อตัวแทนการท่องเที่ยวเพื่อขอความช่วยเหลือ", "role": "gpt" } ]
102
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\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[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_area\", \"parameters\": {\"properties\": {\"dimensions\": {\"properties\": {\"height\": {\"type\": \"number\", \"description\": \"The height of the shape\"}, \"width\": {\"type\": \"number\", \"description\": \"The width of the shape\"}}, \"type\": \"object\", \"required\": [\"width\", \"height\"]}, \"shape\": {\"type\": \"string\", \"description\": \"The shape to calculate the area for\"}}, \"type\": \"object\", \"required\": [\"shape\", \"dimensions\"]}, \"description\": \"Calculate the area of a shape\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณพื้นที่ของสี่เหลี่ยมผืนผ้า กว้าง 5 หน่วย สูง 10 หน่วย", "role": "human" }, { "content": "[calculate_area(shape='rectangle', dimensions={'width': 5, 'height': 10})]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! คุณช่วยฉันจองเที่ยวบินไปนิวยอร์กได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองเที่ยวบินหรือทำงานภายนอกได้ ฉันสามารถช่วยได้เฉพาะฟังก์ชันที่ฉันตั้งโปรแกรมไว้เท่านั้น เช่น การคำนวณพื้นที่ของรูปร่าง", "role": "gpt" } ]
103
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[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"required\": [\"title\", \"start_time\", \"end_time\"], \"type\": \"object\", \"properties\": {\"title\": {\"description\": \"The title of the event\", \"type\": \"string\"}, \"end_time\": {\"type\": \"string\", \"description\": \"The end time of the event\", \"format\": \"date-time\"}, \"start_time\": {\"description\": \"The start time of the event\", \"format\": \"date-time\", \"type\": \"string\"}}}, \"name\": \"create_calendar_event\", \"description\": \"Create a new calendar event\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "ฉันต้องจัดตารางการประชุมสำหรับวันพรุ่งนี้", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาแจ้งชื่อการประชุม และเวลาเริ่มต้นและสิ้นสุดให้ฉันด้วย", "role": "gpt" }, { "content": "การประชุมมีชื่อว่า “การอภิปรายโครงการ” ควรเริ่มเวลา 10.00 น. และสิ้นสุดเวลา 11.30 น.", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_calendar_event\",\n \"arguments\": {\n \"title\": \"Project Discussion\",\n \"start_time\": \"2022-04-15T10:00:00\",\n \"end_time\": \"2022-04-15T11:30:00\"\n }\n }\n]}", "role": "gpt" } ]
104
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ผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_age\", \"description\": \"Calculate the age based on the date of birth\", \"parameters\": {\"required\": [\"date_of_birth\"], \"type\": \"object\", \"properties\": {\"date_of_birth\": {\"description\": \"The date of birth in the format YYYY-MM-DD\", \"type\": \"string\"}}}}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกฉันหน่อยได้ไหมว่าฉันอายุเท่าไหร่ถ้าเกิดวันที่ 15/5/2533", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"date_of_birth\": \"1990-05-15\"\n }\n }\n]}", "role": "gpt" }, { "content": "โอ้ขอบคุณ! คุณช่วยจองตั๋วเครื่องบินไปนิวยอร์คให้ฉันในสัปดาห์หน้าได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น การจองเที่ยวบิน ได้ หน้าที่ปัจจุบันของฉันคือการคำนวณอายุตามวันเกิด แนะนำให้ใช้ตัวแทนท่องเที่ยวหรือแพลตฟอร์มการจองที่เชื่อถือได้สำหรับการจัดการเที่ยวบินของคุณ", "role": "gpt" } ]
105
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out. Please respond in Thai.\n\n[BEGIN OF FORMAT INSTRUCTION]\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n[END OF FORMAT INSTRUCTION]\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"latitude\": {\"description\": \"The latitude of the current location\", \"type\": \"number\"}, \"longitude\": {\"type\": \"number\", \"description\": \"The longitude of the current location\"}}, \"type\": \"object\", \"required\": [\"latitude\", \"longitude\"]}, \"description\": \"Find the nearest gas station based on current location\", \"name\": \"find_nearest_gas_station\"}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "ฉันน้ำมันเหลือน้อย คุณช่วยฉันหาปั๊มน้ำมันที่ใกล้ที่สุดได้ไหม", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาระบุพิกัดตำแหน่งปัจจุบันของคุณให้ฉันหน่อยได้ไหม?", "role": "gpt" }, { "content": "แน่นอน ละติจูดปัจจุบันของฉันคือ 40.7128 และลองจิจูดคือ -74.0060", "role": "human" }, { "content": "[find_nearest_gas_station(latitude=40.7128, longitude=-74.006)]", "role": "gpt" } ]
106
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_qr_code\", \"description\": \"Generate a QR code\", \"parameters\": {\"required\": [\"data\"], \"properties\": {\"size\": {\"type\": \"integer\", \"description\": \"The size of the QR code in pixels\"}, \"data\": {\"description\": \"The data to be encoded into the QR code\", \"type\": \"string\"}}, \"type\": \"object\"}}}, {\"type\": \"function\", \"function\": {\"description\": \"Search for news articles based on specified keywords\", \"name\": \"search_news\", \"parameters\": {\"type\": \"object\", \"properties\": {\"keywords\": {\"items\": {\"type\": \"string\"}, \"description\": \"The keywords to search for\", \"type\": \"array\"}}, \"required\": [\"keywords\"]}}}]\n\n### Format:\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "คุณช่วยหาบทความข่าวเกี่ยวกับแนวโน้มเทคโนโลยีล่าสุดให้ฉันหน่อยได้ไหม", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_news\",\n \"arguments\": {\n \"keywords\": [\n \"latest\",\n \"technology\",\n \"trends\"\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณ นั่นคือสิ่งที่ฉันกำลังมองหา!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ หรือต้องการข้อมูลเพิ่มเติม คุณสามารถสอบถามได้", "role": "gpt" } ]
107
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\nAPI Function: [{\"function\": {\"description\": \"Generate a unique username for a user\", \"name\": \"generate_username\", \"parameters\": {\"type\": \"object\", \"properties\": {\"birth_year\": {\"description\": \"The birth year of the user\", \"type\": \"integer\"}, \"first_name\": {\"description\": \"The first name of the user\", \"type\": \"string\"}, \"last_name\": {\"description\": \"The last name of the user\", \"type\": \"string\"}}, \"required\": [\"first_name\", \"last_name\", \"birth_year\"]}}, \"type\": \"function\"}]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "สวัสดี ฉันต้องการชื่อผู้ใช้ที่ไม่ซ้ำใคร ชื่อของฉันคือจอห์น โด และฉันเกิดในปี 1990", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_username\",\n \"arguments\": {\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"birth_year\": 1990\n }\n }\n]}", "role": "gpt" } ]
108
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n</Task>\n\n[FORMAT INSTRUCTION START]\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n[FORMAT INSTRUCTION END]\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the Grade Point Average (GPA)\", \"name\": \"calculate_gpa\", \"parameters\": {\"properties\": {\"grades\": {\"description\": \"The list of grades\", \"type\": \"array\", \"items\": {\"type\": \"number\"}}}, \"required\": [\"grades\"], \"type\": \"object\"}}}, {\"function\": {\"parameters\": {\"properties\": {\"birthdate\": {\"format\": \"date\", \"description\": \"The birthdate\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"birthdate\"]}, \"name\": \"calculate_age\", \"description\": \"Calculate the age based on the birthdate\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันเกิดเมื่อวันที่ 15/5/2533 คุณบอกฉันได้ไหมว่าวันนี้ฉันอายุเท่าไหร่?", "role": "human" }, { "content": "[calculate_age(birthdate='1990-05-15')]", "role": "gpt" } ]
109
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[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\n### Tools: [{\"function\": {\"name\": \"calculate_tip\", \"description\": \"Calculate the tip amount based on the bill total and tip percentage\", \"parameters\": {\"type\": \"object\", \"properties\": {\"bill_total\": {\"type\": \"number\", \"description\": \"The total amount of the bill\"}, \"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage to tip\"}}, \"required\": [\"bill_total\", \"tip_percentage\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณทิปสำหรับบิลของฉัน รวมเป็นเงิน 50 ดอลลาร์ และฉันต้องการให้ทิป 20%", "role": "human" }, { "content": "[calculate_tip(bill_total=50, tip_percentage=20)]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณสำหรับความช่วยเหลือ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
110
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions. 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\nAPI Function: [{\"function\": {\"description\": \"Calculate the amount to tip at a restaurant\", \"parameters\": {\"type\": \"object\", \"properties\": {\"tip_percentage\": {\"type\": \"number\", \"description\": \"The percentage of tip to be given\"}, \"bill_amount\": {\"type\": \"number\", \"description\": \"The total bill amount\"}}, \"required\": [\"bill_amount\", \"tip_percentage\"]}, \"name\": \"calculate_tip\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณทิปสำหรับบิลร้านอาหารของฉัน จำนวนบิลทั้งหมดคือ $100 และฉันต้องการให้ทิป 15%", "role": "human" }, { "content": "[calculate_tip(bill_amount=100, tip_percentage=15)]", "role": "gpt" } ]
111
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[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[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the total cost of a product including tax and shipping charges\", \"parameters\": {\"type\": \"object\", \"properties\": {\"tax_percentage\": {\"description\": \"The percentage of tax to be applied\", \"type\": \"number\"}, \"product_price\": {\"description\": \"The price of the product\", \"type\": \"number\"}, \"shipping_charge\": {\"type\": \"number\", \"description\": \"The shipping charge\"}}, \"required\": [\"product_price\", \"tax_percentage\", \"shipping_charge\"]}, \"name\": \"calculate_total_cost\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "สวัสดี ฉันต้องการคำนวณต้นทุนรวมของผลิตภัณฑ์ที่ฉันต้องการซื้อ ราคาสินค้าคือ $100 ภาษีคือ 10% และค่าจัดส่งคือ $15 คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "[calculate_total_cost(product_price=100, tax_percentage=10, shipping_charge=15)]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! คุณช่วยสั่งซื้อให้ฉันได้ไหม?", "role": "human" }, { "content": "ฉันขอโทษ แต่ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น การสั่งซื้อได้ คุณจะต้องทำด้วยตนเอง", "role": "gpt" } ]
112
glaive-function-calling-v2-extended
[ { "content": "You are skilled in creating functions and must determine when to use function or tool calls to achieve the goal or when not to use them. You will be provided with a question and a set of available functions. Based on the question, you should decide whether to make one or more function calls. If none of the functions are suitable, indicate this and decline to answer. Additionally, if the question lacks necessary parameters for the function, make sure to mention it. Please respond in Thai.\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"category\": {\"type\": \"string\", \"description\": \"The category of news (e.g. sports, entertainment, politics)\"}, \"country\": {\"description\": \"The country for which news needs to be fetched\", \"type\": \"string\"}}, \"required\": [\"category\", \"country\"]}, \"name\": \"get_news\", \"description\": \"Get the latest news\"}}]", "role": "system" }, { "content": "คุณช่วยเอาข่าวกีฬาล่าสุดจากสหรัฐอเมริกาให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "[get_news(category='sports', country='United States')]", "role": "gpt" }, { "content": "นั่นดูน่าสนใจ. แล้วข่าวการเมืองล่าสุดจากสหราชอาณาจักรล่ะ?", "role": "human" }, { "content": "[get_news(category='politics', country='UK')]", "role": "gpt" } ]
113
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\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"interest_rate\": {\"description\": \"The annual interest rate of the loan\", \"type\": \"number\"}, \"principal\": {\"type\": \"number\", \"description\": \"The principal amount of the loan\"}, \"loan_term\": {\"type\": \"number\", \"description\": \"The loan term in years\"}}, \"type\": \"object\", \"required\": [\"principal\", \"interest_rate\", \"loan_term\"]}, \"name\": \"calculate_loan_payment\", \"description\": \"Calculate the monthly payment for a loan\"}}]\n[END OF AVAILABLE TOOLS]", "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, loan_term=30)]", "role": "gpt" } ]
114
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\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[{\"type\": \"function\", \"function\": {\"description\": \"Calculate monthly mortgage payments\", \"parameters\": {\"type\": \"object\", \"properties\": {\"loan_amount\": {\"type\": \"number\", \"description\": \"The loan amount\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}, \"interest_rate\": {\"description\": \"The annual interest rate\", \"type\": \"number\"}}, \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"]}, \"name\": \"calculate_mortgage_payments\"}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณการชำระเงินจำนองของฉัน ฉันมีจำนวนเงินกู้ยืมอยู่ที่ 200,000 ดอลลาร์ อัตราดอกเบี้ยรายปี 3.5% และระยะเวลาสินเชื่อ 30 ปี", "role": "human" }, { "content": "[calculate_mortgage_payments(loan_amount=200000, interest_rate=3.5, loan_term=30)]", "role": "gpt" }, { "content": "เยี่ยมมาก ขอบคุณสำหรับความช่วยเหลือ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
115
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a random number within a given range\", \"parameters\": {\"type\": \"object\", \"properties\": {\"max\": {\"description\": \"The maximum value for the random number\", \"type\": \"number\"}, \"min\": {\"description\": \"The minimum value for the random number\", \"type\": \"number\"}}, \"required\": [\"min\", \"max\"]}, \"name\": \"generate_random_number\"}}]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถในปัจจุบันของฉันถูกจำกัดไว้เฉพาะฟังก์ชันที่มอบให้แก่ฉัน เช่น การสร้างตัวเลขสุ่มภายในช่วงที่กำหนด", "role": "gpt" } ]
116
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\nHere List of functions in JSON format\n[{\"function\": {\"description\": \"Generate a unique username for a user\", \"name\": \"generate_username\", \"parameters\": {\"type\": \"object\", \"properties\": {\"first_name\": {\"description\": \"The first name of the user\", \"type\": \"string\"}, \"last_name\": {\"type\": \"string\", \"description\": \"The last name of the user\"}}, \"required\": [\"first_name\", \"last_name\"]}}, \"type\": \"function\"}]\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": "สวัสดี ฉันต้องการชื่อผู้ใช้ใหม่ ฉันชื่อจอห์น โด", "role": "human" }, { "content": "[generate_username(first_name='John', last_name='Doe')]", "role": "gpt" } ]
117
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n</Task>\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Generate a random name\", \"parameters\": {}, \"name\": \"generate_random_name\"}}, {\"function\": {\"parameters\": {\"required\": [\"product_name\"], \"type\": \"object\", \"properties\": {\"product_name\": {\"type\": \"string\", \"description\": \"The name of the product to search\"}, \"category\": {\"type\": \"string\", \"description\": \"The category of the product\"}}}, \"name\": \"search_product\", \"description\": \"Search for a product by name\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "ฉันกำลังมองหาผลิตภัณฑ์ชื่อ \"Galaxy S21\"", "role": "human" }, { "content": "[\n {\n \"name\": \"search_product\",\n \"arguments\": {\n \"product_name\": \"Galaxy S21\"\n }\n }\n]", "role": "gpt" }, { "content": "เยี่ยมมาก! คุณสามารถหาผลิตภัณฑ์ชื่อ \"Air Jordan 1 Retro\" ได้หรือไม่?", "role": "human" }, { "content": "[\n {\n \"name\": \"search_product\",\n \"arguments\": {\n \"product_name\": \"Air Jordan 1 Retro\"\n }\n }\n]", "role": "gpt" } ]
118
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\nTools: [{\"function\": {\"description\": \"Search for movies based on genre and release year\", \"parameters\": {\"required\": [\"genre\", \"year\"], \"type\": \"object\", \"properties\": {\"year\": {\"description\": \"The release year of the movie\", \"type\": \"integer\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of the movie\"}}}, \"name\": \"search_movies\"}, \"type\": \"function\"}]\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": "ฉันอยากดูหนังตลก คุณช่วยแนะนำบางสิ่งจากปี 2015 ได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_movies\",\n \"arguments\": {\n \"genre\": \"comedy\",\n \"year\": 2015\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมเลย ฉันยังไม่ได้ดู \"The Intern\" เลย ฉันจะดูสิ่งนั้น ขอบคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! เพลิดเพลินไปกับภาพยนตร์ หากคุณต้องการคำแนะนำเพิ่มเติม โปรดสอบถามได้", "role": "gpt" } ]
119
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance. Please answer in Thai.\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}, \"origin\": {\"type\": \"string\", \"description\": \"The starting location\"}}, \"required\": [\"origin\", \"destination\"], \"type\": \"object\"}, \"description\": \"Calculate the distance between two locations\", \"name\": \"calculate_distance\"}}]\n[AVAILABLE TOOLS END]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถช่วยจองเที่ยวบินได้ ความสามารถในปัจจุบันของฉันทำให้ฉันสามารถคำนวณระยะห่างระหว่างสองสถานที่ได้ หากคุณต้องการข้อมูลนั้น เรายินดีที่จะช่วยเหลือ!", "role": "gpt" } ]
120
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\": \"Get the current stock price\", \"parameters\": {\"required\": [\"symbol\"], \"type\": \"object\", \"properties\": {\"symbol\": {\"type\": \"string\", \"description\": \"The stock symbol\"}}}, \"name\": \"get_stock_price\"}}]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>", "role": "system" }, { "content": "ราคาหุ้น Apple ปัจจุบันคือเท่าใด", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"AAPL\"\n }\n }\n]}", "role": "gpt" }, { "content": "แล้ว Microsoft ล่ะ?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"MSFT\"\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
121
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out. Please respond in Thai.\n[TASK INSTRUCTION END]\n\n### Format:\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Search for a recipe\", \"parameters\": {\"properties\": {\"diet\": {\"description\": \"The dietary restrictions of the recipe\", \"type\": \"string\"}, \"keyword\": {\"type\": \"string\", \"description\": \"The keyword to search for\"}, \"cuisine\": {\"type\": \"string\", \"description\": \"The cuisine of the recipe\"}}, \"required\": [\"keyword\"], \"type\": \"object\"}, \"name\": \"search_recipe\"}}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยในเรื่องนั้นได้ ความสามารถในปัจจุบันของฉันช่วยให้ฉันค้นหาสูตรอาหารตามคำหลัก อาหาร และข้อจำกัดด้านอาหารที่เฉพาะเจาะจงได้ น่าเสียดายที่ฉันไม่มีความสามารถในการจองเที่ยวบินหรือปฏิบัติงานภายนอกอื่น ๆ", "role": "gpt" } ]
122
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[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\": {\"name\": \"find_nearest_hospital\", \"description\": \"Find the nearest hospital\", \"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The current location\"}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันรู้สึกไม่สบาย คุณสามารถหาโรงพยาบาลที่ใกล้ที่สุดกับตำแหน่งของฉันได้หรือไม่?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยบอกตำแหน่งปัจจุบันของคุณให้ฉันทราบหน่อยได้ไหม?", "role": "gpt" }, { "content": "ตอนนี้ฉันอยู่ที่เซ็นทรัลพาร์ค นิวยอร์ก", "role": "human" }, { "content": "[find_nearest_hospital(location='Central Park, New York')]", "role": "gpt" } ]
123
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>\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\": \"Find the nearest gas station based on current location\", \"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The current location\"}}}, \"name\": \"find_nearest_gas_station\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "ตอนนี้ฉันอยู่ที่นิวยอร์กซิตี้และฉันต้องหาปั๊มน้ำมันที่ใกล้ที่สุด คุณช่วยฉันด้วยได้ไหม?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"find_nearest_gas_station\",\n \"arguments\": {\n \"location\": \"New York City\"\n }\n }\n]}", "role": "gpt" } ]
124
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[BEGIN OF FORMAT INSTRUCTION]\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n[END OF FORMAT INSTRUCTION]\n\n[{\"function\": {\"name\": \"send_email\", \"description\": \"Send an email to a specific recipient\", \"parameters\": {\"type\": \"object\", \"properties\": {\"recipient\": {\"type\": \"string\", \"description\": \"The email address of the recipient\"}, \"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}, \"message\": {\"description\": \"The content of the email\", \"type\": \"string\"}}, \"required\": [\"recipient\", \"subject\", \"message\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการส่งอีเมลถึงเพื่อนร่วมงานของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ โปรดระบุที่อยู่อีเมลของผู้รับ หัวเรื่องของอีเมล และข้อความที่คุณต้องการส่งมาให้ฉัน", "role": "gpt" }, { "content": "อีเมลของผู้รับคือ john.doe@example.com หัวข้อคือ \"อัปเดตโครงการ\" และข้อความคือ \"สวัสดีจอห์น โครงการเป็นไปตามแผนและเราทำตามกำหนดเวลาที่วางแผนไว้ ความนับถือ จากอเล็กซ์\"", "role": "human" }, { "content": "[send_email(recipient='john.doe@example.com', subject='Project Update', message='Hi John, The project is on track and we are meeting the deadlines as planned. Regards, Alex')]", "role": "gpt" }, { "content": "ยอดเยี่ยม! คุณช่วยจองตั๋วเครื่องบินไปนิวยอร์คให้ฉันในสัปดาห์หน้าได้ไหม", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยในเรื่องนั้นได้ การจองเที่ยวบินเป็นงานภายนอกและฉันไม่มีฟังก์ชันสำหรับงานนั้น ฉันแนะนำให้ใช้เว็บไซต์จองการเดินทางที่เชื่อถือได้หรือติดต่อตัวแทนการท่องเที่ยวของคุณเพื่อขอความช่วยเหลือ", "role": "gpt" } ]
125
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\nเครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"required\": [\"ingredients\"], \"properties\": {\"ingredients\": {\"items\": {\"type\": \"string\"}, \"description\": \"The ingredients to be used in the recipe\", \"type\": \"array\"}}, \"type\": \"object\"}, \"name\": \"search_recipes\", \"description\": \"Search for recipes based on ingredients\"}, \"type\": \"function\"}]\n\n<format>\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>", "role": "system" }, { "content": "ฉันมีไก่ บรอกโคลี และชีส คุณช่วยหาสูตรให้ฉันได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"chicken\",\n \"broccoli\",\n \"cheese\"\n ]\n }\n }\n]}", "role": "gpt" } ]
126
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<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"word\": {\"type\": \"string\", \"description\": \"The word to get synonyms\"}}, \"required\": [\"word\"]}, \"name\": \"get_synonyms\", \"description\": \"Get synonyms of a given word\"}}]", "role": "system" }, { "content": "สวัสดี ฉันกำลังเขียนเรียงความและต้องการคำพ้องความหมายสำหรับคำว่า \"มีความสุข\" คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_synonyms\",\n \"arguments\": {\n \"word\": \"happy\"\n }\n }\n]", "role": "gpt" }, { "content": "เยี่ยมมาก! คุณสามารถหาคำพ้องความหมายสำหรับคำว่า \"เศร้า\" ได้หรือไม่?", "role": "human" }, { "content": "[\n {\n \"name\": \"get_synonyms\",\n \"arguments\": {\n \"word\": \"sad\"\n }\n }\n]", "role": "gpt" }, { "content": "ขอบคุณมากสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการความช่วยเหลือเพิ่มเติม อย่าลังเลที่จะสอบถาม", "role": "gpt" } ]
127
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[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Generate a random password with specified length\", \"parameters\": {\"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"required\": [\"length\"], \"type\": \"object\"}, \"name\": \"generate_random_password\"}}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถจองเที่ยวบินได้ ฟังก์ชันปัจจุบันของฉันช่วยให้ฉันสามารถสร้างรหัสผ่านแบบสุ่มตามความยาวที่ระบุได้ มีอะไรอีกไหมที่คุณต้องการความช่วยเหลือ?", "role": "gpt" } ]
128
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\n### Format:\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n\nเครื่องมือ (Tools): [{\"function\": {\"description\": \"Search for music based on artist or song\", \"name\": \"search_music\", \"parameters\": {\"type\": \"object\", \"properties\": {\"query\": {\"description\": \"The artist or song to search for\", \"type\": \"string\"}}, \"required\": [\"query\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันกำลังมองหาเพลงของศิลปิน อเดล", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_music\",\n \"arguments\": {\n \"query\": \"Adele\"\n }\n }\n]}", "role": "gpt" }, { "content": "ยอดเยี่ยม! คุณสามารถหาเพลงของ Ed Sheeran ได้ไหม?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_music\",\n \"arguments\": {\n \"query\": \"Ed Sheeran\"\n }\n }\n]}", "role": "gpt" } ]
129
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"name\": \"search_recipes\", \"parameters\": {\"properties\": {\"diet\": {\"type\": \"string\", \"description\": \"The dietary restrictions for the recipes\"}, \"ingredients\": {\"type\": \"array\", \"description\": \"The ingredients to search for\", \"items\": {\"type\": \"string\"}}}, \"type\": \"object\", \"required\": [\"ingredients\"]}, \"description\": \"Search for recipes based on ingredients\"}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "ฉันมีไก่และบรอกโคลีอยู่บ้าง คุณช่วยหาสูตรให้ฉันได้ไหม?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'broccoli'])]", "role": "gpt" }, { "content": "ฉันกำลังรับประทานอาหารแบบไม่มีกลูเตน คุณช่วยหาสูตรปลอดกลูเตนที่มีส่วนผสมเหมือนกันได้ไหม?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'broccoli'], diet='gluten-free')]", "role": "gpt" } ]
130
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\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: [{\"function\": {\"description\": \"Calculate the discounted price of a product\", \"parameters\": {\"type\": \"object\", \"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the product\"}, \"discount_percentage\": {\"description\": \"The percentage of discount to apply\", \"type\": \"number\"}}, \"required\": [\"original_price\", \"discount_percentage\"]}, \"name\": \"calculate_discount\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน ในกรณีนี้ ฉันสามารถช่วยคุณคำนวณราคาลดของผลิตภัณฑ์ได้", "role": "gpt" } ]
131
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"search_recipe\", \"description\": \"Search for a recipe based on given criteria\", \"parameters\": {\"properties\": {\"cuisine\": {\"description\": \"Specific cuisine to search for\", \"type\": \"string\"}, \"diet\": {\"type\": \"string\", \"description\": \"Dietary restrictions or preferences\"}, \"keywords\": {\"type\": \"string\", \"description\": \"Keywords to search for in the recipe\"}}, \"required\": [\"keywords\"], \"type\": \"object\"}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันกำลังมองหาสูตรพาสต้าอิตาเลี่ยนมังสวิรัติ", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_recipe\",\n \"arguments\": {\n \"keywords\": \"pasta\",\n \"diet\": \"vegan\",\n \"cuisine\": \"Italian\"\n }\n }\n]}", "role": "gpt" } ]
132
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\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\": {\"parameters\": {\"type\": \"object\", \"required\": [\"stock_symbol\"], \"properties\": {\"stock_symbol\": {\"type\": \"string\", \"description\": \"The symbol of the stock\"}}}, \"name\": \"get_stock_price\", \"description\": \"Get the current stock price for a given stock symbol\"}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"type\": \"object\", \"properties\": {\"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to convert\"}, \"from_currency\": {\"type\": \"string\", \"description\": \"The currency to convert from\"}}}, \"description\": \"Convert currency from one unit to another\", \"name\": \"convert_currency\"}}]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกราคาหุ้นของ Apple ในปัจจุบันให้ฉันฟังได้ไหม", "role": "human" }, { "content": "[get_stock_price(stock_symbol='AAPL')]", "role": "gpt" }, { "content": "ที่ดีมาก. คุณช่วยบอกราคาหุ้นปัจจุบันของ Microsoft ให้ฉันทราบได้ไหม", "role": "human" }, { "content": "[get_stock_price(stock_symbol='MSFT')]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
133
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary. Please respond in Thai.\n[TASK INSTRUCTION END]\n\n[BEGIN OF FORMAT INSTRUCTION]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[END OF FORMAT INSTRUCTION]\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on birth date\", \"parameters\": {\"properties\": {\"birth_date\": {\"format\": \"date\", \"type\": \"string\", \"description\": \"The birth date in YYYY-MM-DD format\"}}, \"type\": \"object\", \"required\": [\"birth_date\"]}, \"name\": \"calculate_age\"}}]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกฉันหน่อยได้ไหมว่าฉันอายุเท่าไหร่ถ้าเกิดวันที่ 15/5/2533", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_age\",\n \"arguments\": {\n \"birth_date\": \"1990-05-15\"\n }\n }\n]", "role": "gpt" }, { "content": "เยี่ยมมาก! คุณช่วยจองตั๋วเครื่องบินไปนิวยอร์คให้ฉันในสัปดาห์หน้าได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น การจองเที่ยวบิน ได้ หน้าที่ปัจจุบันของฉันคือการคำนวณอายุตามวันเกิดที่ให้ไว้", "role": "gpt" } ]
134
glaive-function-calling-v2-extended
[ { "content": "คุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the monthly loan payment\", \"name\": \"calculate_loan_payment\", \"parameters\": {\"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"], \"type\": \"object\", \"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 months\", \"type\": \"integer\"}}}}}]\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": "แน่นอนว่าจำนวนเงินกู้คือ 50,000 ดอลลาร์ อัตราดอกเบี้ยรายปีคือ 5.5% และระยะเวลาการกู้ยืมคือ 60 เดือน", "role": "human" }, { "content": "[calculate_loan_payment(loan_amount=50000, interest_rate=5.5, loan_term=60)]", "role": "gpt" } ]
135
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\nTools: [{\"function\": {\"name\": \"create_invoice\", \"parameters\": {\"properties\": {\"customer_name\": {\"description\": \"The name of the customer\", \"type\": \"string\"}, \"price\": {\"type\": \"number\", \"description\": \"The price of the product\"}, \"quantity\": {\"description\": \"The quantity of the product\", \"type\": \"integer\"}, \"product_name\": {\"description\": \"The name of the product\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"customer_name\", \"product_name\", \"quantity\", \"price\"]}, \"description\": \"Create an invoice for a product or service\"}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการสร้างใบแจ้งหนี้ให้กับลูกค้าชื่อ John Doe เขาซื้อผลิตภัณฑ์ X จำนวน 5 หน่วย โดยราคาแต่ละหน่วยอยู่ที่ 20 ดอลลาร์", "role": "human" }, { "content": "[\n {\n \"name\": \"create_invoice\",\n \"arguments\": {\n \"customer_name\": \"John Doe\",\n \"product_name\": \"Product X\",\n \"quantity\": 5,\n \"price\": 20\n }\n }\n]", "role": "gpt" }, { "content": "ยอดเยี่ยม! ตอนนี้คุณสามารถส่งใบแจ้งหนี้ไปที่ที่อยู่ของ John Doe ได้หรือไม่?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่มีความสามารถในการจัดส่งสิ่งของหรือเอกสารทางกายภาพ ฉันแนะนำให้ใช้บริการจัดส่งสินค้าหรือวิธีการอิเล็กทรอนิกส์เพื่อส่งใบแจ้งหนี้", "role": "gpt" } ]
136
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[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): [{\"function\": {\"description\": \"Get the definition of a particular word\", \"name\": \"get_definition\", \"parameters\": {\"required\": [\"word\"], \"type\": \"object\", \"properties\": {\"word\": {\"description\": \"The word for which the definition is requested\", \"type\": \"string\"}}}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"source\": {\"description\": \"The source location\", \"type\": \"string\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}, \"type\": \"object\", \"required\": [\"source\", \"destination\"]}, \"description\": \"Calculate the distance between two locations\", \"name\": \"calculate_distance\"}}]", "role": "system" }, { "content": "คำว่า \"เซเรนดิปิตี\" หมายถึงอะไร?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"serendipity\"\n }\n }\n]}", "role": "gpt" }, { "content": "แล้ว 'ชั่วคราว' ล่ะ?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"ephemeral\"\n }\n }\n]}", "role": "gpt" }, { "content": "And 'quintessential'?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"get_definition\",\n \"arguments\": {\n \"word\": \"quintessential\"\n }\n }\n]}", "role": "gpt" } ]
137
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\nAPI Function: [{\"function\": {\"name\": \"generate_random_number\", \"description\": \"Generate a random number within a specified range\", \"parameters\": {\"type\": \"object\", \"required\": [\"min\", \"max\"], \"properties\": {\"max\": {\"description\": \"The maximum value of the range\", \"type\": \"number\"}, \"min\": {\"type\": \"number\", \"description\": \"The minimum value of the range\"}}}}, \"type\": \"function\"}]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถทำงานภายนอก เช่น สั่งพิซซ่า ได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน ในกรณีนี้ ฉันสามารถสร้างตัวเลขสุ่มภายในช่วงที่ระบุได้", "role": "gpt" } ]
138
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n[TASK INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate GPA (Grade Point Average)\", \"parameters\": {\"required\": [\"grades\"], \"properties\": {\"grades\": {\"items\": {\"type\": \"object\", \"properties\": {\"course\": {\"description\": \"The name of the course\", \"type\": \"string\"}, \"credit\": {\"description\": \"The credit hours of the course\", \"type\": \"number\"}, \"grade\": {\"type\": \"string\", \"description\": \"The grade received in the course\"}}, \"required\": [\"course\", \"credit\", \"grade\"]}, \"type\": \"array\"}}, \"type\": \"object\"}, \"name\": \"calculate_gpa\"}}]\n\n<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>", "role": "system" }, { "content": "คุณช่วยฉันคำนวณเกรดเฉลี่ยของฉันได้ไหม ฉันมีเกรดสำหรับหลักสูตรของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ โปรดระบุชื่อแต่ละหลักสูตร ชั่วโมงเครดิต และเกรดที่คุณได้รับ", "role": "gpt" }, { "content": "แน่นอน นี่คือพวกเขา ฉันเรียนแคลคูลัสโดยมี 4 ชั่วโมงเครดิตและได้เกรด A ฉันยังเรียนภาษาอังกฤษด้วยจำนวนชั่วโมงเครดิต 3 ชั่วโมงและได้รับเกรด B สุดท้ายนี้ ฉันเรียนประวัติศาสตร์โดยมี 3 ชั่วโมงเครดิตและได้เกรด A", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_gpa\",\n \"arguments\": {\n \"grades\": [\n {\n \"course\": \"Calculus\",\n \"credit\": 4,\n \"grade\": \"A\"\n },\n {\n \"course\": \"English\",\n \"credit\": 3,\n \"grade\": \"B\"\n },\n {\n \"course\": \"History\",\n \"credit\": 3,\n \"grade\": \"A\"\n }\n ]\n }\n }\n]}", "role": "gpt" } ]
139
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[AVAILABLE TOOLS START]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"length\"], \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}}, \"name\": \"generate_password\", \"description\": \"Generate a random password with specified length\"}, \"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": "ฉันอยากให้มันยาว 12 ตัวอักษร", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_password\",\n \"arguments\": {\n \"length\": 12\n }\n }\n]", "role": "gpt" } ]
140
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: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"artist\", \"song_title\"], \"properties\": {\"song_title\": {\"type\": \"string\", \"description\": \"The title of the song\"}, \"artist\": {\"type\": \"string\", \"description\": \"The name of the artist\"}}, \"type\": \"object\"}, \"description\": \"Get the lyrics of a song\", \"name\": \"get_lyrics\"}}]\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": "เฮ้ คุณช่วยกรุณาเนื้อเพลง 'Shape of You' ของ Ed Sheeran ให้ฉันหน่อยได้ไหม", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_lyrics\",\n \"arguments\": {\n \"artist\": \"Ed Sheeran\",\n \"song_title\": \"Shape of You\"\n }\n }\n]}", "role": "gpt" } ]
141
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_qr_code\", \"parameters\": {\"type\": \"object\", \"properties\": {\"size\": {\"type\": \"integer\", \"description\": \"The size of the QR code (optional)\"}, \"data\": {\"description\": \"The data to be encoded in the QR code\", \"type\": \"string\"}}, \"required\": [\"data\"]}, \"description\": \"Generate a QR code\"}}]\n</tools>\n\n### Format:\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]", "role": "system" }, { "content": "สวัสดี ฉันต้องการรหัส QR สำหรับเว็บไซต์ของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาให้ URL ของเว็บไซต์ของคุณแก่ฉันได้ไหม?", "role": "gpt" }, { "content": "ใช่แล้ว มันคือ www.mywebsite.com", "role": "human" }, { "content": "[generate_qr_code(data='www.mywebsite.com')]", "role": "gpt" }, { "content": "เยี่ยมมาก! ตอนนี้คุณสามารถอัปเดตเว็บไซต์ของฉันด้วยรหัส QR ใหม่นี้ได้หรือไม่?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น การอัปเดตเว็บไซต์ของคุณได้ คุณจะต้องดำเนินการนี้ด้วยตนเองหรือขอความช่วยเหลือจากนักพัฒนาเว็บ", "role": "gpt" } ]
142
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n### Format:\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n\n[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"generate_random_password\", \"parameters\": {\"type\": \"object\", \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"required\": [\"length\"]}, \"description\": \"Generate a random password with specified length\"}}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "ฉันต้องการรหัสผ่านใหม่ คุณช่วยสร้างอันหนึ่งให้ฉันได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณต้องการให้รหัสผ่านยาวแค่ไหน?", "role": "gpt" }, { "content": "ฉันต้องการให้มันยาว 12 ตัวอักษร", "role": "human" }, { "content": "[\n {\n \"name\": \"generate_random_password\",\n \"arguments\": {\n \"length\": 12\n }\n }\n]", "role": "gpt" } ]
143
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\n[FORMAT INSTRUCTION START]\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n[FORMAT INSTRUCTION END]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate discounted price\", \"name\": \"calculate_discount\", \"parameters\": {\"type\": \"object\", \"required\": [\"original_price\", \"discount_percentage\"], \"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"Original price\"}, \"discount_percentage\": {\"type\": \"number\", \"description\": \"Discount percentage\"}}}}}]", "role": "system" }, { "content": "ฉันเห็นชุดที่ฉันชอบ เดิมราคาอยู่ที่ 200 เหรียญสหรัฐ แต่ลดราคา 20% คุณช่วยบอกฉันได้ไหมว่าหลังจากหักส่วนลดแล้วจะมีค่าใช้จ่ายเท่าไร?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]", "role": "gpt" }, { "content": "นั่นเป็นข้อเสนอที่ดี! จะเกิดอะไรขึ้นถ้าส่วนลดเป็น 30% แทน?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 30\n }\n }\n]", "role": "gpt" }, { "content": "ขอบคุณสำหรับความช่วยเหลือ! ฉันจะจำไว้ขณะช็อปปิ้ง", "role": "human" }, { "content": "ด้วยความยินดี! อย่าลังเลที่จะถามหากคุณมีคำถามอื่นๆ มีความสุขในการช็อปปิ้ง!", "role": "gpt" } ]
144
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n[{\"type\": \"function\", \"function\": {\"description\": \"Search for books based on given criteria\", \"name\": \"search_books\", \"parameters\": {\"required\": [], \"properties\": {\"title\": {\"description\": \"The title of the book\", \"type\": \"string\"}, \"author\": {\"description\": \"The author of the book\", \"type\": \"string\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of the book\"}}, \"type\": \"object\"}}}]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "ฉันกำลังมองหาหนังสือแต่จำชื่อเรื่องไม่ได้ ชื่อผู้แต่งคือจอร์จ ออร์เวลล์", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"author\": \"George Orwell\"\n }\n }\n]}", "role": "gpt" }, { "content": "โอ้ใช่ ฉันกำลังมองหาฟาร์มสัตว์ คุณสามารถค้นหาหนังสือประเภทเดียวกันได้หรือไม่?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"search_books\",\n \"arguments\": {\n \"genre\": \"Allegorical novella\"\n }\n }\n]}", "role": "gpt" } ]
145
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นโมเดล AI ที่ถูกออกแบบมาให้เรียกใช้ฟังก์ชัน คุณสามารถใช้ฟังก์ชันหนึ่งหรือหลายอย่างเพื่อช่วยเหลือคำถามของผู้ใช้ หรือเลือกที่จะไม่ใช้หากไม่จำเป็น หากคุณคิดว่าจำเป็นต้องใช้ฟังก์ชัน แต่ไม่สามารถเรียกใช้ได้ โปรดระบุสิ่งนี้ หลีกเลี่ยงการคาดเดาค่าที่ต้องใช้ในฟังก์ชัน\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"symbol\"], \"properties\": {\"symbol\": {\"type\": \"string\", \"description\": \"The symbol of the company, e.g. AAPL\"}}}, \"name\": \"get_stock_price\", \"description\": \"Get the current stock price of a company\"}, \"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": "เฮ้ คุณช่วยบอกราคาหุ้นปัจจุบันของ Apple ให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "[get_stock_price(symbol='AAPL')]", "role": "gpt" }, { "content": "เยี่ยมมาก. คุณช่วยจองโต๊ะสำหรับสองคนที่ร้านอาหารโปรดของฉันคืนนี้ได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอกได้ เช่น จองโต๊ะที่ร้านอาหาร หน้าที่ปัจจุบันของฉันถูกจำกัดอยู่ที่การดึงราคาหุ้น คุณอาจต้องการใช้บริการหรือแอปอื่นสำหรับการจองร้านอาหาร", "role": "gpt" } ]
146
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n\n[{\"function\": {\"name\": \"calculate_age_difference\", \"parameters\": {\"properties\": {\"dob_person2\": {\"format\": \"date\", \"type\": \"string\", \"description\": \"The birthdate of person 2 in YYYY-MM-DD format\"}, \"dob_person1\": {\"type\": \"string\", \"description\": \"The birthdate of person 1 in YYYY-MM-DD format\", \"format\": \"date\"}}, \"required\": [\"dob_person1\", \"dob_person2\"], \"type\": \"object\"}, \"description\": \"Calculate the age difference between two people\"}, \"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": "ขออภัย ฉันไม่สามารถช่วยในเรื่องนั้นได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่เพียงฟังก์ชันที่มอบให้ฉัน ในกรณีนี้ ฉันสามารถคำนวณอายุที่แตกต่างกันระหว่างคนสองคนตามวันเกิดได้ ฉันไม่มีความสามารถในการจองเที่ยวบินหรือปฏิบัติงานภายนอกอื่น ๆ", "role": "gpt" } ]
147
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\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"diet\": {\"type\": \"string\", \"description\": \"The dietary restriction (e.g. vegetarian, vegan)\"}, \"ingredients\": {\"type\": \"array\", \"description\": \"The ingredients to search for\", \"items\": {\"type\": \"string\"}}}}, \"description\": \"Search for recipes based on ingredients\", \"name\": \"search_recipes\"}, \"type\": \"function\"}, {\"function\": {\"description\": \"Search for books based on criteria\", \"name\": \"search_books\", \"parameters\": {\"properties\": {\"title\": {\"type\": \"string\", \"description\": \"The title of the book\"}, \"author\": {\"type\": \"string\", \"description\": \"The author of the book\"}, \"genre\": {\"type\": \"string\", \"description\": \"The genre of the book\"}}, \"type\": \"object\"}}, \"type\": \"function\"}]\n\n[FORMAT INSTRUCTION START]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]", "role": "system" }, { "content": "ฉันมีมะเขือเทศ กระเทียม และพาสต้าอยู่ที่บ้าน คุณช่วยหาสูตรอาหารมังสวิรัติโดยใช้ส่วนผสมเหล่านี้ให้ฉันได้ไหม", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_recipes\",\n \"arguments\": {\n \"ingredients\": [\n \"tomatoes\",\n \"garlic\",\n \"pasta\"\n ],\n \"diet\": \"vegetarian\"\n }\n }\n]}", "role": "gpt" } ]
148
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are a helpful assistant with access to various functions. It's your responsibility to decide when using a function or tool is essential to accomplish the task and when it's better to avoid them. Use them only when necessary. Please respond in Thai.\n[END OF TASK INSTRUCTION]\n\n<tools>\n[{\"function\": {\"name\": \"calculate_discount\", \"parameters\": {\"required\": [\"original_price\", \"discount_percentage\"], \"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"description\": \"The percentage of discount\", \"type\": \"number\"}}, \"type\": \"object\"}, \"description\": \"Calculate the discounted price\"}, \"type\": \"function\"}]\n</tools>\n\n### Format:\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "ฉันเห็นชุดที่ฉันชอบ เดิมราคาอยู่ที่ 100 ดอลลาร์ แต่ลดแล้ว 20% คุณช่วยบอกฉันได้ไหมว่าหลังจากหักส่วนลดแล้วจะมีค่าใช้จ่ายเท่าไหร่?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 100,\n \"discount_percentage\": 20\n }\n }\n]}", "role": "gpt" }, { "content": "ที่น่ากลัว! แล้วรองเท้าคู่หนึ่งที่ราคาเดิมอยู่ที่ 75 ดอลลาร์สหรัฐฯ แต่ตอนนี้มีส่วนลด 15% ล่ะ?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 75,\n \"discount_percentage\": 15\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
149
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the distance between two locations\", \"parameters\": {\"properties\": {\"origin\": {\"type\": \"string\", \"description\": \"The origin location\"}, \"destination\": {\"type\": \"string\", \"description\": \"The destination location\"}}, \"required\": [\"origin\", \"destination\"], \"type\": \"object\"}, \"name\": \"calculate_distance\"}}]\n[END OF AVAILABLE 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": "{\"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": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองเที่ยวบินหรือทำงานภายนอกได้ ฉันขอแนะนำให้คุณใช้เว็บไซต์หรือแอปจองการเดินทางที่เชื่อถือได้เพื่อจองเที่ยวบินของคุณ", "role": "gpt" } ]
150
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\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</format>\n\n[AVAILABLE TOOLS START]\n[{\"function\": {\"description\": \"Calculate the monthly loan payment\", \"name\": \"calculate_loan_payment\", \"parameters\": {\"properties\": {\"interest_rate\": {\"description\": \"The interest rate per year\", \"type\": \"number\"}, \"loan_term\": {\"description\": \"The loan term in years\", \"type\": \"integer\"}, \"loan_amount\": {\"type\": \"number\", \"description\": \"The loan amount\"}}, \"type\": \"object\", \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"]}}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]", "role": "system" }, { "content": "สวัสดี ฉันต้องการความช่วยเหลือในการคำนวณการชำระคืนเงินกู้ของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาให้จำนวนเงินกู้ อัตราดอกเบี้ยต่อปี และระยะเวลาเงินกู้เป็นจำนวนปีให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "แน่นอนว่าจำนวนเงินกู้คือ 50,000 ดอลลาร์ อัตราดอกเบี้ย 5% ต่อปี และระยะเวลาการกู้ยืม 10 ปี", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_loan_payment\",\n \"arguments\": {\n \"loan_amount\": 50000,\n \"interest_rate\": 5,\n \"loan_term\": 10\n }\n }\n]}", "role": "gpt" } ]
151
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[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[{\"function\": {\"description\": \"Calculate the distance between two locations\", \"parameters\": {\"required\": [\"location1\", \"location2\"], \"properties\": {\"location2\": {\"description\": \"The second location\", \"type\": \"string\"}, \"location1\": {\"description\": \"The first location\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"calculate_distance\"}, \"type\": \"function\"}]\n</tools>", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส", "role": "human" }, { "content": "[calculate_distance(location1='New York', location2='Los Angeles')]", "role": "gpt" }, { "content": "นั่นค่อนข้างไกลแล้ว ระยะห่างระหว่างลอนดอนและปารีสถือเป็นเท่าใด", "role": "human" }, { "content": "[calculate_distance(location1='London', location2='Paris')]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
152
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[TASK INSTRUCTION END]\n\n[FORMAT INSTRUCTION START]\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n[FORMAT INSTRUCTION END]\n\n### Tools: [{\"function\": {\"parameters\": {\"required\": [\"point1\", \"point2\"], \"type\": \"object\", \"properties\": {\"point1\": {\"properties\": {\"longitude\": {\"type\": \"number\", \"description\": \"The longitude of the first point\"}, \"latitude\": {\"description\": \"The latitude of the first point\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"latitude\", \"longitude\"]}, \"point2\": {\"properties\": {\"latitude\": {\"description\": \"The latitude of the second point\", \"type\": \"number\"}, \"longitude\": {\"description\": \"The longitude of the second point\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"latitude\", \"longitude\"]}}}, \"description\": \"Calculate the distance between two points\", \"name\": \"calculate_distance\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบระยะทางระหว่างนิวยอร์กและลอสแอนเจลิส คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"calculate_distance\",\n \"arguments\": {\n \"point1\": {\n \"latitude\": 40.7128,\n \"longitude\": -74.006\n },\n \"point2\": {\n \"latitude\": 34.0522,\n \"longitude\": -118.2437\n }\n }\n }\n]}", "role": "gpt" } ]
153
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions. 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): [{\"type\": \"function\", \"function\": {\"description\": \"Search for recipes based on ingredients\", \"name\": \"search_recipes\", \"parameters\": {\"required\": [\"ingredients\"], \"type\": \"object\", \"properties\": {\"ingredients\": {\"description\": \"The ingredients to search for\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, \"cuisine\": {\"type\": \"string\", \"description\": \"The cuisine type for the recipes\"}}}}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"destination\": {\"description\": \"The destination location\", \"type\": \"string\"}, \"source\": {\"type\": \"string\", \"description\": \"The source location\"}}, \"required\": [\"source\", \"destination\"], \"type\": \"object\"}, \"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\"}}]", "role": "system" }, { "content": "ฉันมีไก่และพริกหยวก คุณช่วยหาสูตรให้ฉันได้ไหม?", "role": "human" }, { "content": "[search_recipes(ingredients=['chicken', 'bell peppers'])]", "role": "gpt" }, { "content": "นั่นฟังดูอร่อยนะ! คุณช่วยหาสูตรขนมหวานที่ใช้แอปเปิ้ลให้ฉันหน่อยได้ไหม", "role": "human" }, { "content": "[search_recipes(ingredients=['apples'])]", "role": "gpt" } ]
154
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions. 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\nAPI Function: [{\"function\": {\"description\": \"Calculate the discounted price\", \"name\": \"calculate_discount\", \"parameters\": {\"type\": \"object\", \"required\": [\"original_price\", \"discount_percentage\"], \"properties\": {\"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}, \"discount_percentage\": {\"description\": \"The percentage of discount\", \"type\": \"number\"}}}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"description\": \"Get the current stock price\", \"name\": \"get_stock_price\", \"parameters\": {\"properties\": {\"symbol\": {\"type\": \"string\", \"description\": \"The stock symbol\"}}, \"type\": \"object\", \"required\": [\"symbol\"]}}}]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกราคาหุ้นปัจจุบันของ Apple ให้ฉันหน่อยได้ไหม", "role": "human" }, { "content": "[get_stock_price(symbol='AAPL')]", "role": "gpt" }, { "content": "ที่ดี. คุณช่วยบอกราคาหุ้นปัจจุบันของ Microsoft ให้ฉันทราบได้ไหม", "role": "human" }, { "content": "[get_stock_price(symbol='MSFT')]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
155
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n[TASK INSTRUCTION END]\n\n[BEGIN OF FORMAT INSTRUCTION]\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n[END OF FORMAT INSTRUCTION]\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Generate a random password\", \"name\": \"generate_password\", \"parameters\": {\"type\": \"object\", \"required\": [\"length\"], \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}}}}, {\"function\": {\"name\": \"calculate_tax\", \"parameters\": {\"type\": \"object\", \"properties\": {\"tax_percentage\": {\"description\": \"The percentage of tax to be applied\", \"type\": \"number\"}, \"income\": {\"description\": \"The annual income\", \"type\": \"number\"}}, \"required\": [\"income\", \"tax_percentage\"]}, \"description\": \"Calculate the tax amount\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการคำนวณภาษีของฉันสำหรับปีนี้ รายได้ต่อปีของฉันคือ 80,000 ดอลลาร์ และอัตราภาษีคือ 20%", "role": "human" }, { "content": "[calculate_tax(income=80000, tax_percentage=20)]", "role": "gpt" } ]
156
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\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_bmi\", \"description\": \"Calculate the Body Mass Index (BMI) of a person\", \"parameters\": {\"type\": \"object\", \"required\": [\"height\", \"weight\"], \"properties\": {\"weight\": {\"description\": \"The weight of the person in kilograms\", \"type\": \"number\"}, \"height\": {\"description\": \"The height of the person in meters\", \"type\": \"number\"}}}}}]\n[END OF AVAILABLE TOOLS]\n\n<format>\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n</format>", "role": "system" }, { "content": "สวัสดี ฉันต้องการทราบค่าดัชนีมวลกายของฉัน ฉันสูง 1.75 เมตร และหนัก 70 กิโลกรัม", "role": "human" }, { "content": "[calculate_bmi(height=1.75, weight=70)]", "role": "gpt" } ]
157
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n[TASK INSTRUCTION END]\n\nHere List of functions in JSON format\n[{\"function\": {\"description\": \"Search for books based on title, author, or genre\", \"parameters\": {\"properties\": {\"title\": {\"description\": \"The title of the book\", \"type\": \"string\"}, \"genre\": {\"description\": \"The genre of the book\", \"type\": \"string\"}, \"author\": {\"type\": \"string\", \"description\": \"The author of the book\"}}, \"type\": \"object\"}, \"name\": \"search_books\"}, \"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": "[search_books(author='George Orwell')]", "role": "gpt" }, { "content": "โอ้ใช่ ฉันกำลังมองหาฟาร์มสัตว์อยู่ ขอบคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณต้องการความช่วยเหลือเพิ่มเติม อย่าลังเลที่จะสอบถาม", "role": "gpt" } ]
158
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou are an expert in composing functions. You must decide that when to use function/tool calls to achieve the purpose or not to use function/tool calls. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose. If none of the functions can be used, point it out and refuse to answer. If the given question lacks the parameters required by the function, also point it out. Please respond in Thai.\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"bill_total\": {\"description\": \"The total amount of the bill\", \"type\": \"number\"}, \"tip_percentage\": {\"description\": \"The percentage of tip to be applied\", \"type\": \"integer\"}}, \"required\": [\"bill_total\", \"tip_percentage\"], \"type\": \"object\"}, \"name\": \"calculate_tip\", \"description\": \"Calculate the tip amount based on the bill total\"}}, {\"type\": \"function\", \"function\": {\"name\": \"generate_password\", \"parameters\": {\"type\": \"object\", \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"required\": [\"length\"]}, \"description\": \"Generate a strong and secure password\"}}]\n</tools>\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": "ไปกับอักขระ 12 ตัวเลย", "role": "human" }, { "content": "[generate_password(length=12)]", "role": "gpt" } ]
159
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nHere List of functions in JSON format\n[{\"function\": {\"description\": \"Get the current stock price\", \"parameters\": {\"required\": [\"symbol\", \"exchange\"], \"type\": \"object\", \"properties\": {\"exchange\": {\"type\": \"string\", \"description\": \"The stock exchange\"}, \"symbol\": {\"type\": \"string\", \"description\": \"The stock symbol\"}}}, \"name\": \"get_stock_price\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกราคาหุ้นปัจจุบันของ Apple บน NASDAQ ให้ฉันหน่อยได้ไหม", "role": "human" }, { "content": "[\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"AAPL\",\n \"exchange\": \"NASDAQ\"\n }\n }\n]", "role": "gpt" }, { "content": "ที่ดี. คุณช่วยบอกราคาหุ้นปัจจุบันของ Microsoft บน NYSE ให้ฉันทราบได้ไหม", "role": "human" }, { "content": "[\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"MSFT\",\n \"exchange\": \"NYSE\"\n }\n }\n]", "role": "gpt" } ]
160
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\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"min\": {\"type\": \"integer\", \"description\": \"The minimum value of the range\"}, \"max\": {\"type\": \"integer\", \"description\": \"The maximum value of the range\"}}, \"required\": [\"min\", \"max\"]}, \"description\": \"Generate a random number within a specified range\", \"name\": \"generate_random_number\"}}]\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": "สวัสดี ฉันต้องการตัวเลขสุ่มระหว่าง 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" } ]
161
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\n[BEGIN OF FORMAT INSTRUCTION]\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\nTools: [{\"function\": {\"parameters\": {\"required\": [\"shape\", \"dimensions\"], \"properties\": {\"shape\": {\"type\": \"string\", \"description\": \"The shape for which the area will be calculated\"}, \"dimensions\": {\"description\": \"The dimensions required to calculate the area\", \"required\": [\"length\", \"width\"], \"properties\": {\"length\": {\"description\": \"The length of the shape\", \"type\": \"number\"}, \"width\": {\"description\": \"The width of the shape\", \"type\": \"number\"}}, \"type\": \"object\"}}, \"type\": \"object\"}, \"description\": \"Calculate the area of a shape\", \"name\": \"calculate_area\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันต้องคำนวณพื้นที่ของสี่เหลี่ยมผืนผ้า ยาว 5 หน่วย กว้าง 3 หน่วย", "role": "human" }, { "content": "[calculate_area(shape='rectangle', dimensions={'length': 5, 'width': 3})]", "role": "gpt" }, { "content": "แล้วสี่เหลี่ยมจัตุรัสที่มีความยาวด้านละ 4 หน่วยล่ะ?", "role": "human" }, { "content": "[calculate_area(shape='square', dimensions={'length': 4, 'width': 4})]", "role": "gpt" } ]
162
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n\n[FORMAT INSTRUCTION START]\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n[FORMAT INSTRUCTION END]\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Generate a random password\", \"parameters\": {\"required\": [\"length\"], \"type\": \"object\", \"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}}, \"name\": \"generate_password\"}}, {\"type\": \"function\", \"function\": {\"name\": \"calculate_mortgage_payment\", \"parameters\": {\"type\": \"object\", \"required\": [\"loan_amount\", \"loan_term\", \"interest_rate\"], \"properties\": {\"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}, \"loan_amount\": {\"type\": \"number\", \"description\": \"The total loan amount\"}, \"loan_term\": {\"type\": \"integer\", \"description\": \"The loan term in years\"}}}, \"description\": \"Calculate the monthly mortgage payment\"}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "สวัสดี ฉันต้องการรหัสผ่านใหม่ คุณช่วยสร้างอันหนึ่งให้ฉันได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณต้องการให้รหัสผ่านของคุณยาวแค่ไหน?", "role": "gpt" }, { "content": "ฉันอยากให้มันยาว 12 ตัวอักษร", "role": "human" }, { "content": "[generate_password(length=12)]", "role": "gpt" } ]
163
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\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the age based on birthdate\", \"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"properties\": {\"birthdate\": {\"type\": \"string\", \"description\": \"The birthdate\", \"format\": \"date\"}}, \"required\": [\"birthdate\"]}}}]\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": "สวัสดี คุณช่วยฉันคำนวณอายุของฉันได้ไหม ฉันเกิดเมื่อวันที่ 15/5/2533", "role": "human" }, { "content": "[calculate_age(birthdate='1990-05-15')]", "role": "gpt" }, { "content": "เยี่ยมมาก! คุณช่วยจองตั๋วเครื่องบินไปนิวยอร์กให้ฉันได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองเที่ยวบินหรือทำงานภายนอกได้ หน้าที่ปัจจุบันของฉันคือการคำนวณอายุตามวันเกิด แนะนำให้ใช้เว็บไซต์จองการเดินทางที่น่าเชื่อถือ หรือติดต่อตัวแทนการท่องเที่ยวของคุณเพื่อขอความช่วยเหลือ", "role": "gpt" } ]
164
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n[END OF TASK INSTRUCTION]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_discount\", \"description\": \"Calculate the discounted price based on original price and discount percentage\", \"parameters\": {\"required\": [\"original_price\", \"discount_percentage\"], \"type\": \"object\", \"properties\": {\"discount_percentage\": {\"type\": \"number\", \"description\": \"The discount percentage\"}, \"original_price\": {\"type\": \"number\", \"description\": \"The original price of the item\"}}}}}]", "role": "system" }, { "content": "สวัสดี ฉันมีชุดราคา 200 ดอลลาร์ และมีส่วนลด 20% คุณช่วยคำนวณราคาลดให้ฉันได้ไหม?", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_discount\",\n \"arguments\": {\n \"original_price\": 200,\n \"discount_percentage\": 20\n }\n }\n]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! คุณช่วยสั่งซื้อชุดนี้ให้ฉันทางออนไลน์ได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น ช้อปปิ้งออนไลน์ได้ ฉันขอแนะนำให้คุณสั่งซื้อชุดผ่านเว็บไซต์หรือแอปของผู้ค้าปลีก", "role": "gpt" } ]
165
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[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"properties\": {\"to_currency\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount of money to be converted\"}, \"from_currency\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}}, \"type\": \"object\"}, \"description\": \"Convert an amount of money from one currency to another\", \"name\": \"convert_currency\"}}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ฉันไม่สามารถช่วยจองเที่ยวบินได้เนื่องจากเป็นงานภายนอกและฉันไม่มีฟังก์ชันสำหรับงานนั้น ฉันสามารถช่วยงานต่างๆ เช่น การแปลงสกุลเงิน", "role": "gpt" } ]
166
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้เชี่ยวชาญในการสร้างฟังก์ชัน คุณต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมาย หรือไม่ใช้หากไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่เป็นไปได้ ตามคำถามนั้น คุณต้องทำการเรียกฟังก์ชันหรือเครื่องมือหนึ่งหรือหลายอย่างเพื่อให้บรรลุเป้าหมาย หากไม่มีฟังก์ชันใดสามารถใช้ได้ ให้ชี้ให้เห็นและปฏิเสธที่จะตอบ หากคำถามที่ให้มาไม่มีพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน ให้ระบุด้วยเช่นกัน\n</Task>\n\n<format>\nหากคุณตัดสินใจเรียกใช้ฟังก์ชันใด ๆ คุณต้องใส่ในรูปแบบต่อไปนี้ [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)] คุณไม่ควรใส่ข้อความอื่นใดในคำตอบ\n</format>\n\nTools: [{\"function\": {\"description\": \"Send an email to a recipient with specified subject and message\", \"name\": \"send_email\", \"parameters\": {\"type\": \"object\", \"properties\": {\"subject\": {\"description\": \"The subject of the email\", \"type\": \"string\"}, \"recipient\": {\"type\": \"string\", \"description\": \"The email address of the recipient\"}, \"message\": {\"type\": \"string\", \"description\": \"The content of the email\"}}, \"required\": [\"recipient\", \"subject\", \"message\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันต้องส่งอีเมลถึงเจ้านายของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ที่อยู่อีเมลของผู้รับ หัวเรื่องของอีเมล และเนื้อหาที่คุณต้องการส่งมาให้ฉันหน่อยได้ไหม", "role": "gpt" }, { "content": "อีเมลของผู้รับคือ BOSS@COMPANY.COM หัวข้อ “อัปเดตโครงการ” และข้อความ “เรียนท่านผู้บริหาร โครงการเป็นไปตามแผนและจะแล้วเสร็จภายในสิ้นสัปดาห์นี้ ความนับถือ [ชื่อผู้ใช้]”", "role": "human" }, { "content": "[send_email(recipient='boss@company.com', subject='Project Update', message=\"Dear Boss, The project is on track and will be completed by the end of this week. Regards, [User's Name]\")]", "role": "gpt" } ]
167
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[AVAILABLE TOOLS START]\n[{\"function\": {\"description\": \"Get the latest news headlines\", \"name\": \"get_news\", \"parameters\": {\"properties\": {\"category\": {\"type\": \"string\", \"description\": \"The category of news (e.g. sports, politics, entertainment)\"}}, \"required\": [\"category\"], \"type\": \"object\"}}, \"type\": \"function\"}]\n[AVAILABLE TOOLS END]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "คุณช่วยข่าวกีฬาล่าสุดให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_news\",\n \"arguments\": {\n \"category\": \"sports\"\n }\n }\n]}", "role": "gpt" }, { "content": "นั่นดูน่าสนใจ. แล้วข่าวล่าสุดในด้านการเมืองล่ะ?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"get_news\",\n \"arguments\": {\n \"category\": \"politics\"\n }\n }\n]}", "role": "gpt" } ]
168
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\nTools: [{\"type\": \"function\", \"function\": {\"name\": \"create_invoice\", \"parameters\": {\"required\": [\"customer_name\", \"items\"], \"type\": \"object\", \"properties\": {\"customer_name\": {\"description\": \"The name of the customer\", \"type\": \"string\"}, \"items\": {\"type\": \"array\", \"items\": {\"properties\": {\"name\": {\"description\": \"The name of the item\", \"type\": \"string\"}, \"quantity\": {\"type\": \"integer\", \"description\": \"The quantity of the item\"}, \"price\": {\"description\": \"The price of the item\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"name\", \"quantity\", \"price\"]}}}}, \"description\": \"Create an invoice for a product or service\"}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"time\": {\"type\": \"string\", \"description\": \"The time of the event\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the event\"}, \"date\": {\"type\": \"string\", \"description\": \"The date of the event\"}, \"location\": {\"description\": \"The location of the event\", \"type\": \"string\"}}, \"required\": [\"title\", \"date\", \"time\", \"location\"]}, \"description\": \"Create a new event in the calendar\", \"name\": \"create_event\"}}]\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": "ฉันต้องสร้างใบแจ้งหนี้ให้กับลูกค้าชื่อ จอห์น โด เขาซื้อแอปเปิ้ล 3 ผล ในราคาลูกละ 1 ดอลลาร์ และส้ม 2 ลูก ราคาลูกละ 1.5 ดอลลาร์", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_invoice\",\n \"arguments\": {\n \"customer_name\": \"John Doe\",\n \"items\": [\n {\n \"name\": \"apple\",\n \"quantity\": 3,\n \"price\": 1\n },\n {\n \"name\": \"orange\",\n \"quantity\": 2,\n \"price\": 1.5\n }\n ]\n }\n }\n]}", "role": "gpt" }, { "content": "ยอดเยี่ยม! คุณสามารถสร้างใบแจ้งหนี้สำหรับ Jane Doe ได้หรือไม่ เธอซื้อกล้วย 5 ลูก ในราคาลูกละ 0.5 ดอลลาร์", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_invoice\",\n \"arguments\": {\n \"customer_name\": \"Jane Doe\",\n \"items\": [\n {\n \"name\": \"banana\",\n \"quantity\": 5,\n \"price\": 0.5\n }\n ]\n }\n }\n]}", "role": "gpt" } ]
169
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<format>\n{\"tool_functions\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"name\": \"generate_random_password\", \"description\": \"Generate a random password\", \"parameters\": {\"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}, \"include_numbers\": {\"description\": \"Include numbers in the password\", \"type\": \"boolean\"}, \"include_special_characters\": {\"description\": \"Include special characters in the password\", \"type\": \"boolean\"}}, \"required\": [\"length\"], \"type\": \"object\"}}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "คุณช่วยสั่งพิซซ่าให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยในเรื่องนั้นได้ ความสามารถของฉันในปัจจุบันจำกัดอยู่เพียงการสร้างรหัสผ่านแบบสุ่ม ฉันไม่มีความสามารถในการสั่งซื้อหรือโต้ตอบกับระบบภายนอก", "role": "gpt" } ]
170
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[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\": \"Calculate the discounted price\", \"parameters\": {\"required\": [\"original_price\", \"discount_percentage\"], \"properties\": {\"discount_percentage\": {\"type\": \"number\", \"description\": \"The percentage of discount\"}, \"original_price\": {\"type\": \"number\", \"description\": \"The original price\"}}, \"type\": \"object\"}, \"name\": \"calculate_discount\"}}]", "role": "system" }, { "content": "ฉันเห็นเสื้อแจ็คเก็ตตัวที่ฉันชอบในร้านค้า เดิมราคาอยู่ที่ 200 เหรียญสหรัฐ แต่มีส่วนลด 20% คุณช่วยบอกฉันได้ไหมว่าหลังจากหักส่วนลดแล้วจะมีค่าใช้จ่ายเท่าไร?", "role": "human" }, { "content": "[calculate_discount(original_price=200, discount_percentage=20)]", "role": "gpt" }, { "content": "นั่นเป็นข้อเสนอที่ดี! แล้วรองเท้าคู่หนึ่งที่ราคาเดิมอยู่ที่ 120 ดอลลาร์และมีส่วนลด 15% ตอนนี้เป็นอย่างไรบ้าง?", "role": "human" }, { "content": "[calculate_discount(original_price=120, discount_percentage=15)]", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณสำหรับความช่วยเหลือ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
171
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n[TASK INSTRUCTION END]\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"name\": \"get_current_time\", \"description\": \"Get the current time\", \"parameters\": {\"type\": \"object\", \"required\": [\"timezone\"], \"properties\": {\"timezone\": {\"type\": \"string\", \"description\": \"The timezone to get the current time in\"}}}}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "เวลาปัจจุบันในนิวยอร์กคืออะไร?", "role": "human" }, { "content": "[get_current_time(timezone='New York')]", "role": "gpt" }, { "content": "แล้วโตเกียวล่ะ?", "role": "human" }, { "content": "[get_current_time(timezone='Tokyo')]", "role": "gpt" }, { "content": "Thank you!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
172
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[BEGIN OF FORMAT INSTRUCTION]\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[END OF FORMAT INSTRUCTION]\n\nHere List of functions in JSON format\n[{\"function\": {\"parameters\": {\"properties\": {\"client_name\": {\"description\": \"The name of the client\", \"type\": \"string\"}, \"amount_due\": {\"description\": \"The amount due in the invoice\", \"type\": \"number\"}, \"items\": {\"items\": {\"type\": \"object\", \"properties\": {\"price\": {\"description\": \"The price per unit of the item\", \"type\": \"number\"}, \"name\": {\"description\": \"The name of the item\", \"type\": \"string\"}, \"quantity\": {\"type\": \"integer\", \"description\": \"The quantity of the item\"}}, \"required\": [\"name\", \"quantity\", \"price\"]}, \"type\": \"array\"}, \"due_date\": {\"description\": \"The due date of the invoice\", \"type\": \"string\"}}, \"required\": [\"client_name\", \"amount_due\", \"items\"], \"type\": \"object\"}, \"name\": \"create_invoice\", \"description\": \"Create a new invoice\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "คุณช่วยจองเที่ยวบินให้ฉันจากนิวยอร์กไปลอนดอนได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถจองเที่ยวบินได้ หน้าที่ปัจจุบันของฉันคือการสร้างใบแจ้งหนี้ ฉันสามารถช่วยคุณในเรื่องนั้นได้หากคุณต้องการ", "role": "gpt" } ]
173
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\nTools: [{\"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"numbers\": {\"description\": \"The list of numbers\", \"type\": \"array\", \"items\": {\"type\": \"number\"}}}, \"required\": [\"numbers\"]}, \"name\": \"calculate_average\", \"description\": \"Calculate the average of a list of numbers\"}, \"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": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ โปรดระบุรายการตัวเลขให้ฉันด้วย", "role": "gpt" }, { "content": "ตัวเลขคือ 5, 10, 15, 20, 25", "role": "human" }, { "content": "[\n {\n \"name\": \"calculate_average\",\n \"arguments\": {\n \"numbers\": [\n 5,\n 10,\n 15,\n 20,\n 25\n ]\n }\n }\n]", "role": "gpt" } ]
174
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\nHere List of functions in JSON format\n[{\"function\": {\"description\": \"Generate a QR code for a given text or URL\", \"parameters\": {\"required\": [\"content\"], \"properties\": {\"content\": {\"type\": \"string\", \"description\": \"The text or URL to be encoded in the QR code\"}}, \"type\": \"object\"}, \"name\": \"generate_qr_code\"}, \"type\": \"function\"}, {\"function\": {\"description\": \"Generate a random password with specified length\", \"parameters\": {\"required\": [\"length\"], \"properties\": {\"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}}, \"type\": \"object\"}, \"name\": \"generate_random_password\"}, \"type\": \"function\"}]\n\n### Format:\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```", "role": "system" }, { "content": "สวัสดี ฉันต้องการรหัส QR สำหรับเว็บไซต์ของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยคุณในเรื่องนั้นได้ คุณช่วยกรุณาให้ URL ของเว็บไซต์ของคุณแก่ฉันได้ไหม?", "role": "gpt" }, { "content": "แน่นอนว่า URL เว็บไซต์ของฉันคือ www.mywebsite.com", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"content\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" } ]
175
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[END OF TASK INSTRUCTION]\n\n[{\"function\": {\"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two points\", \"parameters\": {\"properties\": {\"latitude1\": {\"description\": \"The latitude of the first point\", \"type\": \"number\"}, \"longitude2\": {\"type\": \"number\", \"description\": \"The longitude of the second point\"}, \"longitude1\": {\"description\": \"The longitude of the first point\", \"type\": \"number\"}, \"latitude2\": {\"type\": \"number\", \"description\": \"The latitude of the second point\"}}, \"required\": [\"latitude1\", \"longitude1\", \"latitude2\", \"longitude2\"], \"type\": \"object\"}}, \"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 \"latitude1\": 40.7128,\n \"longitude1\": -74.006,\n \"latitude2\": 34.0522,\n \"longitude2\": -118.2437\n }\n }\n]", "role": "gpt" } ]
176
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\n[END OF TASK INSTRUCTION]\n\n<format>\nผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n</format>\n\nTools: [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the BMI (Body Mass Index)\", \"name\": \"calculate_bmi\", \"parameters\": {\"required\": [\"weight\", \"height\"], \"type\": \"object\", \"properties\": {\"weight\": {\"description\": \"The weight of the person in kilograms\", \"type\": \"number\"}, \"height\": {\"description\": \"The height of the person in meters\", \"type\": \"number\"}}}}}]", "role": "system" }, { "content": "สวัสดี ฉันต้องการคำนวณค่าดัชนีมวลกายของฉัน ฉันหนัก 75 กิโลกรัม ส่วนสูง 1.8 เมตร", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"calculate_bmi\",\n \"arguments\": {\n \"weight\": 75,\n \"height\": 1.8\n }\n }\n]}", "role": "gpt" }, { "content": "ดีใจที่ได้ยินเช่นนี้! ขอบคุณสำหรับความช่วยเหลือ", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ หรือต้องการความช่วยเหลือเพิ่มเติม โปรดสอบถามได้", "role": "gpt" } ]
177
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n\n<tools>\n[{\"type\": \"function\", \"function\": {\"description\": \"Check the word count in a given text\", \"parameters\": {\"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to be checked\"}}, \"type\": \"object\", \"required\": [\"text\"]}, \"name\": \"check_word_count\"}}]\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": "นี่คือ - \"ปัญญาประดิษฐ์คือการจำลองกระบวนการสติปัญญาของมนุษย์โดยเครื่องจักร โดยเฉพาะระบบคอมพิวเตอร์\"", "role": "human" }, { "content": "[check_word_count(text='Artificial Intelligence is the simulation of human intelligence processes by machines, especially computer systems.')]", "role": "gpt" } ]
178
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณเป็นโมเดล AI ที่สามารถเรียกใช้ฟังก์ชันได้ คุณสามารถเรียกฟังก์ชันหนึ่งหรือหลายอย่างหากเป็นไปได้ หรือไม่ใช้พวกมันเพื่อช่วยเหลือคำถามของผู้ใช้ เมื่อคุณคิดว่าคุณจำเป็นต้องเรียกฟังก์ชันหรือเครื่องมือ แต่ไม่สามารถเรียกใช้ฟังก์ชันได้ โปรดระบุว่าเป็นเช่นนั้น อย่าคาดเดาค่าที่จะใช้ในฟังก์ชัน\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"parameters\": {\"properties\": {\"from_currency\": {\"description\": \"The currency code to convert from\", \"type\": \"string\"}, \"to_currency\": {\"type\": \"string\", \"description\": \"The currency code to convert to\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"], \"type\": \"object\"}, \"description\": \"Convert currency from one type to another\", \"name\": \"convert_currency\"}, \"type\": \"function\"}, {\"function\": {\"name\": \"calculate_loan_payment\", \"parameters\": {\"properties\": {\"loan_term\": {\"description\": \"The loan term in years\", \"type\": \"integer\"}, \"interest_rate\": {\"type\": \"number\", \"description\": \"The annual interest rate\"}, \"loan_amount\": {\"description\": \"The total loan amount\", \"type\": \"number\"}}, \"type\": \"object\", \"required\": [\"loan_amount\", \"interest_rate\", \"loan_term\"]}, \"description\": \"Calculate the monthly loan payment\"}, \"type\": \"function\"}]\n[END OF AVAILABLE TOOLS]\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": "สวัสดี ฉันต้องการแปลงเงิน 500 USD เป็น EUR คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\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": "{\"tool_calls\": [\n {\n \"name\": \"convert_currency\",\n \"arguments\": {\n \"amount\": 1000,\n \"from_currency\": \"EUR\",\n \"to_currency\": \"GBP\"\n }\n }\n]}", "role": "gpt" }, { "content": "ขอบคุณสำหรับความช่วยเหลือของคุณ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
179
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\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[{\"type\": \"function\", \"function\": {\"description\": \"Calculate the Body Mass Index (BMI)\", \"name\": \"calculate_bmi\", \"parameters\": {\"properties\": {\"weight\": {\"description\": \"The weight in kilograms\", \"type\": \"number\"}, \"height\": {\"type\": \"number\", \"description\": \"The height in meters\"}}, \"type\": \"object\", \"required\": [\"weight\", \"height\"]}}}, {\"type\": \"function\", \"function\": {\"name\": \"calculate_distance\", \"description\": \"Calculate the distance between two locations\", \"parameters\": {\"properties\": {\"end_location\": {\"type\": \"string\", \"description\": \"The end location\"}, \"start_location\": {\"type\": \"string\", \"description\": \"The starting location\"}}, \"type\": \"object\", \"required\": [\"start_location\", \"end_location\"]}}}]\n[AVAILABLE TOOLS END]", "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" } ]
180
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\nHere List of functions in JSON format\n[{\"function\": {\"name\": \"calculate_bmi\", \"parameters\": {\"required\": [\"weight\", \"height\"], \"properties\": {\"height\": {\"type\": \"number\", \"description\": \"The height of the person in meters\"}, \"weight\": {\"type\": \"number\", \"description\": \"The weight of the person in kilograms\"}}, \"type\": \"object\"}, \"description\": \"Calculate the Body Mass Index (BMI)\"}, \"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": "สวัสดี ฉันต้องการคำนวณค่าดัชนีมวลกายของฉัน ฉันหนัก 70 กิโลกรัม ส่วนสูง 1.75 เมตร", "role": "human" }, { "content": "[calculate_bmi(weight=70, height=1.75)]", "role": "gpt" }, { "content": "ดีใจที่ได้ยิน! ฉันออกกำลังกายเป็นประจำ ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! ทำผลงานดีๆ ต่อไป การออกกำลังกายเป็นประจำถือเป็นกุญแจสำคัญในการรักษาค่าดัชนีมวลกายให้แข็งแรง หากคุณมีคำถามอื่นๆ หรือต้องการความช่วยเหลือเพิ่มเติม โปรดสอบถามได้", "role": "gpt" } ]
181
glaive-function-calling-v2-extended
[ { "content": "<Task>\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ คุณต้องตัดสินใจเมื่อใดที่จำเป็นต้องใช้ฟังก์ชันหรือการเรียกเครื่องมือเพื่อบรรลุเป้าหมาย และเมื่อใดที่ไม่ควรใช้ฟังก์ชันเหล่านั้น ใช้เมื่อจำเป็นเท่านั้น\n</Task>\n\n<format>\n```[function_name1(params_name1=params_value1, params_name2=params_value2...), function_name2(params)]```\n</format>\n\n[{\"type\": \"function\", \"function\": {\"name\": \"calculate_age\", \"parameters\": {\"type\": \"object\", \"required\": [\"birthdate\"], \"properties\": {\"birthdate\": {\"description\": \"The birthdate in YYYY-MM-DD format\", \"type\": \"string\"}}}, \"description\": \"Calculate the age based on birthdate\"}}]", "role": "system" }, { "content": "สวัสดี ฉันเกิดเมื่อวันที่ 15/5/2533 คุณบอกฉันได้ไหมว่าวันนี้ฉันอายุเท่าไหร่?", "role": "human" }, { "content": "[calculate_age(birthdate='1990-05-15')]", "role": "gpt" } ]
182
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[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[{\"function\": {\"description\": \"Search for recipes based on specified criteria\", \"parameters\": {\"type\": \"object\", \"properties\": {\"cuisine\": {\"description\": \"The cuisine type of the recipes\", \"type\": \"string\"}, \"keywords\": {\"type\": \"string\", \"description\": \"Keywords to search for in recipe titles\"}}}, \"name\": \"search_recipes\"}, \"type\": \"function\"}, {\"function\": {\"description\": \"Search for books based on various criteria\", \"parameters\": {\"type\": \"object\", \"properties\": {\"author\": {\"description\": \"The author of the book\", \"type\": \"string\"}, \"genre\": {\"description\": \"The genre of the book\", \"type\": \"string\"}, \"title\": {\"type\": \"string\", \"description\": \"The title of the book\"}}}, \"name\": \"search_books\"}, \"type\": \"function\"}]\n</tools>", "role": "system" }, { "content": "ฉันกำลังมองหาสูตรพาสต้าอิตาเลียนดีๆ คุณช่วยฉันหาได้ไหม?", "role": "human" }, { "content": "[search_recipes(keywords='pasta', cuisine='Italian')]", "role": "gpt" } ]
183
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\n[BEGIN OF AVAILABLE TOOLS]\n[{\"function\": {\"description\": \"Generate a random password\", \"name\": \"generate_random_password\", \"parameters\": {\"required\": [\"length\"], \"type\": \"object\", \"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\": \"function\"}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "ฉันต้องการรหัสผ่านใหม่ คุณช่วยสร้างอันหนึ่งให้ฉันได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณต้องการให้รหัสผ่านยาวแค่ไหน และคุณต้องการให้รวมตัวเลขและสัญลักษณ์ด้วยหรือไม่", "role": "gpt" }, { "content": "ฉันต้องการให้มีความยาว 12 ตัวอักษรและควรมีทั้งตัวเลขและสัญลักษณ์", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"generate_random_password\",\n \"arguments\": {\n \"length\": 12,\n \"include_numbers\": true,\n \"include_symbols\": true\n }\n }\n]}", "role": "gpt" } ]
184
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[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n[END OF FORMAT INSTRUCTION]\n\nAPI Function: [{\"function\": {\"description\": \"Create a new event in the calendar\", \"name\": \"create_calendar_event\", \"parameters\": {\"type\": \"object\", \"properties\": {\"event_title\": {\"description\": \"The title of the event\", \"type\": \"string\"}, \"end_time\": {\"description\": \"The end time of the event in the format 'YYYY-MM-DD HH:MM:SS'\", \"type\": \"string\"}, \"start_time\": {\"type\": \"string\", \"description\": \"The start time of the event in the format 'YYYY-MM-DD HH:MM:SS'\"}}, \"required\": [\"event_title\", \"start_time\", \"end_time\"]}}, \"type\": \"function\"}]", "role": "system" }, { "content": "ฉันต้องสร้างกิจกรรมใหม่ในปฏิทินของฉัน", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ คุณช่วยกรุณาระบุชื่อกิจกรรม และเวลาเริ่มต้นและสิ้นสุดให้ฉันหน่อยได้ไหม?", "role": "gpt" }, { "content": "งานนี้มีชื่อว่า \"การประชุมโครงการ\" เริ่มในวันที่ 15 เมษายน เวลา 10.00 น. และสิ้นสุดเวลา 12.00 น.", "role": "human" }, { "content": "[create_calendar_event(event_title='Project Meeting', start_time='2022-04-15 10:00:00', end_time='2022-04-15 12:00:00')]", "role": "gpt" } ]
185
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\n[END OF TASK INSTRUCTION]\n\nเครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"properties\": {\"end_time\": {\"type\": \"string\", \"description\": \"The end time of the event\"}, \"title\": {\"description\": \"The title of the event\", \"type\": \"string\"}, \"location\": {\"type\": \"string\", \"description\": \"The location of the event\"}, \"start_time\": {\"description\": \"The start time of the event\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"title\", \"start_time\", \"end_time\", \"location\"]}, \"description\": \"Create a new event in the calendar\", \"name\": \"create_calendar_event\"}, \"type\": \"function\"}, {\"function\": {\"description\": \"Reverse a given string\", \"name\": \"reverse_string\", \"parameters\": {\"properties\": {\"input\": {\"description\": \"The string to reverse\", \"type\": \"string\"}}, \"required\": [\"input\"], \"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)]}```", "role": "system" }, { "content": "คุณช่วยย้อนกลับสตริง \"สวัสดีชาวโลก\" ให้ฉันได้ไหม?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"reverse_string\",\n \"arguments\": {\n \"input\": \"Hello, World!\"\n }\n }\n]}", "role": "gpt" } ]
186
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\nHere List of functions in JSON format\n[{\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"properties\": {\"text\": {\"type\": \"string\", \"description\": \"The text to be searched\"}, \"word\": {\"type\": \"string\", \"description\": \"The word to be counted\"}}, \"required\": [\"text\", \"word\"]}, \"description\": \"Count the occurrences of a word in a text\", \"name\": \"count_occurrences\"}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"topic\"], \"properties\": {\"topic\": {\"description\": \"The topic of the news articles\", \"type\": \"string\"}}}, \"description\": \"Get the latest news articles based on a specific topic\", \"name\": \"get_news_articles\"}}]\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": "สวัสดี ฉันมีข้อความและฉันต้องการทราบว่าคำว่า 'ความรัก' ปรากฏในนั้นกี่ครั้ง", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ โปรดส่งข้อความมาให้ฉัน", "role": "gpt" }, { "content": "ข้อความคือ “ความรักมีความอดทน ความรักมีน้ำใจ มันไม่อิจฉา ไม่โอ้อวด มันไม่หยิ่งยโส ไม่ทำให้ผู้อื่นเสื่อมเสียชื่อเสียง ไม่แสวงหาตัวเอง ไม่ได้ง่ายดายมักโกรธ และไม่มีบันทึกความผิด ความรักไม่ได้ยินดีในความชั่วร้าย แต่กลับชื่นชมด้วยความจริง เสริมกำลังปกป้องเสมอ ไว้วางใจเสมอ หวังเสมอ อดทนอย่างต่อเนื่อง ความรักไม่เคยล้มเหลว”", "role": "human" }, { "content": "{\"tool_functions\": [\n {\n \"name\": \"count_occurrences\",\n \"arguments\": {\n \"text\": \"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres. Love never fails.\",\n \"word\": \"love\"\n }\n }\n]}", "role": "gpt" } ]
187
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ผลลัพธ์ต้องเป็นไปตามรูปแบบ JSON ต่อไปนี้อย่างเคร่งครัด และต้องไม่มีข้อความอื่นใดรวมอยู่ด้วย รูปแบบตัวอย่างมีดังนี้ กรุณาตรวจสอบให้แน่ใจว่าประเภทของพารามิเตอร์ถูกต้อง\n```{\"tool_calls\": [{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ... (more tool calls as required)]}```\n[FORMAT INSTRUCTION END]\n\n[{\"function\": {\"parameters\": {\"required\": [\"data\"], \"properties\": {\"size\": {\"description\": \"The size of the QR code\", \"type\": \"integer\"}, \"data\": {\"type\": \"string\", \"description\": \"The data to encode in the QR code\"}}, \"type\": \"object\"}, \"name\": \"generate_qr_code\", \"description\": \"Generate a QR code\"}, \"type\": \"function\"}, {\"function\": {\"parameters\": {\"type\": \"object\", \"required\": [\"length\"], \"properties\": {\"include_lowercase\": {\"description\": \"Include lowercase letters in the password\", \"type\": \"boolean\"}, \"include_special_characters\": {\"type\": \"boolean\", \"description\": \"Include special characters in the password\"}, \"length\": {\"description\": \"The length of the password\", \"type\": \"integer\"}, \"include_numbers\": {\"description\": \"Include numbers in the password\", \"type\": \"boolean\"}, \"include_uppercase\": {\"type\": \"boolean\", \"description\": \"Include uppercase letters in the password\"}}}, \"description\": \"Generate a random password with specified criteria\", \"name\": \"generate_random_password\"}, \"type\": \"function\"}]", "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 \"data\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมมาก คุณสามารถสร้างอันที่ใหญ่กว่านี้ได้ไหม?", "role": "human" }, { "content": "แน่นอน คุณช่วยระบุขนาดที่ต้องการได้ไหม?", "role": "gpt" }, { "content": "ไปกับ 500 กันเถอะ", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_qr_code\",\n \"arguments\": {\n \"data\": \"www.mywebsite.com\",\n \"size\": 500\n }\n }\n]}", "role": "gpt" } ]
188
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เครื่องมือ (Tools): [{\"function\": {\"parameters\": {\"required\": [\"title\"], \"type\": \"object\", \"properties\": {\"title\": {\"description\": \"The title of the movie\", \"type\": \"string\"}}}, \"description\": \"Search for a movie by title\", \"name\": \"search_movie\"}, \"type\": \"function\"}]\n\n<format>\n[func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\n</format>", "role": "system" }, { "content": "สวัสดี ฉันกำลังมองหาภาพยนตร์แต่จำชื่อเรื่องไม่ได้แม่นยำ มันเหมือนกับว่า \"The Godfather\"", "role": "human" }, { "content": "[search_movie(title='The Godfather')]", "role": "gpt" }, { "content": "ยอดเยี่ยม! คุณช่วยจองตั๋วให้ฉันเพื่อชมภาพยนตร์เรื่องนี้ที่โรงหนังใกล้บ้านได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอกได้ เช่น จองตั๋วหนัง ฉันขอแนะนำให้คุณเยี่ยมชมเว็บไซต์ของโรงภาพยนตร์ในพื้นที่หรือแพลตฟอร์มการจองบัตรเพื่อจองตั๋วของคุณ", "role": "gpt" } ]
189
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\n[TASK INSTRUCTION END]\n\nเครื่องมือ (Tools): [{\"type\": \"function\", \"function\": {\"description\": \"Calculate the tax amount\", \"parameters\": {\"required\": [\"income\", \"tax_rate\"], \"properties\": {\"tax_rate\": {\"type\": \"number\", \"description\": \"The tax rate in percentage\"}, \"income\": {\"description\": \"The income amount\", \"type\": \"number\"}}, \"type\": \"object\"}, \"name\": \"calculate_tax\"}}, {\"type\": \"function\", \"function\": {\"description\": \"Create a new task\", \"name\": \"create_task\", \"parameters\": {\"type\": \"object\", \"properties\": {\"due_date\": {\"type\": \"string\", \"description\": \"The due date of the task\"}, \"priority\": {\"description\": \"The priority of the task\", \"type\": \"string\", \"enum\": [\"High\", \"Medium\", \"Low\"]}, \"task_name\": {\"description\": \"The name of the task\", \"type\": \"string\"}}, \"required\": [\"task_name\", \"due_date\", \"priority\"]}}}]\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": "สวัสดี ฉันต้องคำนวณภาษีของฉัน รายได้ของฉันคือ 50,000 ดอลลาร์ และอัตราภาษีคือ 20%", "role": "human" }, { "content": "[calculate_tax(income=50000, tax_rate=20)]", "role": "gpt" }, { "content": "อ้อเข้าใจแล้ว ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
190
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```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>\n\n### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Get the current stock price of a company\", \"name\": \"get_stock_price\", \"parameters\": {\"properties\": {\"symbol\": {\"description\": \"The stock symbol of the company\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"symbol\"]}}}]", "role": "system" }, { "content": "สวัสดี คุณช่วยบอกราคาหุ้นปัจจุบันของ Apple ให้ฉันหน่อยได้ไหม", "role": "human" }, { "content": "[\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"AAPL\"\n }\n }\n]", "role": "gpt" }, { "content": "ที่ดี. คุณช่วยบอกราคาหุ้นของ Microsoft ให้ฉันทราบได้ไหม", "role": "human" }, { "content": "[\n {\n \"name\": \"get_stock_price\",\n \"arguments\": {\n \"symbol\": \"MSFT\"\n }\n }\n]", "role": "gpt" }, { "content": "ขอบคุณสำหรับข้อมูล", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
191
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เครื่องมือ (Tools): [{\"function\": {\"name\": \"convert_currency\", \"description\": \"Convert one currency to another\", \"parameters\": {\"type\": \"object\", \"properties\": {\"from_currency\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}, \"to_currency\": {\"description\": \"The currency to convert to\", \"type\": \"string\"}}, \"required\": [\"amount\", \"from_currency\", \"to_currency\"]}}, \"type\": \"function\"}, {\"type\": \"function\", \"function\": {\"parameters\": {\"required\": [\"numbers\"], \"type\": \"object\", \"properties\": {\"numbers\": {\"description\": \"The list of numbers\", \"type\": \"array\", \"items\": {\"type\": \"number\"}}}}, \"name\": \"calculate_average\", \"description\": \"Calculate the average of a list of numbers\"}}]", "role": "system" }, { "content": "สวัสดี ฉันมีรายการตัวเลขและฉันต้องการหาค่าเฉลี่ย คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน ฉันสามารถช่วยได้ โปรดระบุรายการตัวเลขให้ฉัน", "role": "gpt" }, { "content": "ตัวเลขคือ 5, 10, 15, 20, 25", "role": "human" }, { "content": "[calculate_average(numbers=[5, 10, 15, 20, 25])]", "role": "gpt" } ]
192
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[{\"function\": {\"name\": \"check_word_similarity\", \"parameters\": {\"properties\": {\"word2\": {\"description\": \"The second word\", \"type\": \"string\"}, \"word1\": {\"description\": \"The first word\", \"type\": \"string\"}}, \"required\": [\"word1\", \"word2\"], \"type\": \"object\"}, \"description\": \"Check the similarity between two words\"}, \"type\": \"function\"}]\n\n<format>\n```[{\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}}, ...]```\n</format>", "role": "system" }, { "content": "คุณช่วยตรวจสอบว่าคำว่า 'มีความสุข' และ 'สนุกสนาน' มีความคล้ายคลึงกันเพียงใด", "role": "human" }, { "content": "[\n {\n \"name\": \"check_word_similarity\",\n \"arguments\": {\n \"word1\": \"happy\",\n \"word2\": \"joyful\"\n }\n }\n]", "role": "gpt" }, { "content": "น่าสนใจ! แล้ว 'ความสุข' และ 'เศร้า' ล่ะ?", "role": "human" }, { "content": "[\n {\n \"name\": \"check_word_similarity\",\n \"arguments\": {\n \"word1\": \"happy\",\n \"word2\": \"sad\"\n }\n }\n]", "role": "gpt" }, { "content": "นั่นสมเหตุสมผลแล้ว ขอบคุณสำหรับความช่วยเหลือ!", "role": "human" }, { "content": "ด้วยความยินดี! หากคุณมีคำถามอื่นๆ ก็สามารถสอบถามได้", "role": "gpt" } ]
193
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[AVAILABLE TOOLS START]\n[{\"type\": \"function\", \"function\": {\"name\": \"get_traffic_info\", \"parameters\": {\"type\": \"object\", \"required\": [\"location\"], \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city or area to get traffic information for\"}}}, \"description\": \"Get traffic information\"}}]\n[AVAILABLE TOOLS END]\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" } ]
194
glaive-function-calling-v2-extended
[ { "content": "[TASK INSTRUCTION START]\nคุณมีความสามารถในการเข้าถึงเครื่องมือเฉพาะ แต่สิ่งสำคัญคือต้องใช้พวกมันอย่างชาญฉลาด เรียกใช้เครื่องมือเหล่านี้เฉพาะเมื่อจำเป็นจริงๆ ในการทำงานให้สำเร็จ หากไม่จำเป็น ให้ใช้ความรู้ของคุณเองในการช่วยเหลือ\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### Tools: [{\"type\": \"function\", \"function\": {\"description\": \"Convert currency from one type to another\", \"name\": \"convert_currency\", \"parameters\": {\"properties\": {\"to\": {\"type\": \"string\", \"description\": \"The currency to convert to\"}, \"amount\": {\"type\": \"number\", \"description\": \"The amount to be converted\"}, \"from\": {\"description\": \"The currency to convert from\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"amount\", \"from\", \"to\"]}}}, {\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"data\": {\"description\": \"The data to be encoded in the QR code\", \"type\": \"string\"}}, \"type\": \"object\", \"required\": [\"data\"]}, \"description\": \"Generate a QR code for the given input\", \"name\": \"generate_qr_code\"}}]", "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 \"data\": \"www.mywebsite.com\"\n }\n }\n]}", "role": "gpt" } ]
195
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\nTools: [{\"function\": {\"name\": \"search_book\", \"parameters\": {\"type\": \"object\", \"required\": [\"query\"], \"properties\": {\"query\": {\"description\": \"The title, author, or ISBN to search for\", \"type\": \"string\"}}}, \"description\": \"Search for a book by title, author, or ISBN\"}, \"type\": \"function\"}]", "role": "system" }, { "content": "สวัสดี ฉันกำลังมองหาหนังสือแต่จำชื่อเรื่องไม่ได้แน่ชัด เหมือนกับว่า \"ชายชรากับทะเล\"", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"search_book\",\n \"arguments\": {\n \"query\": \"The Old Man and the Sea\"\n }\n }\n]}", "role": "gpt" }, { "content": "นั่นแหละ! คุณช่วยสั่งซื้อให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น การสั่งซื้อได้ อย่างไรก็ตาม เราสามารถให้ข้อมูลที่คุณต้องการเพื่อดำเนินการด้วยตนเองได้", "role": "gpt" } ]
196
glaive-function-calling-v2-extended
[ { "content": "### Task Instruction:\nYou have the ability to access specific tools, but it's important to use them wisely. Only call upon these tools when they are truly needed to fulfill a task, otherwise, rely on your own knowledge to provide assistance. Please answer in Thai.\n\nAPI Function: [{\"type\": \"function\", \"function\": {\"description\": \"Create a new task\", \"parameters\": {\"required\": [\"title\", \"due_date\"], \"properties\": {\"due_date\": {\"type\": \"string\", \"description\": \"The due date of the task\", \"format\": \"date\"}, \"title\": {\"description\": \"The title of the task\", \"type\": \"string\"}, \"description\": {\"description\": \"The description of the task\", \"type\": \"string\"}}, \"type\": \"object\"}, \"name\": \"create_task\"}}]\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": "หัวข้อคือ \"เตรียมการนำเสนอ\" คำอธิบายคือ \"เตรียมการนำเสนอเกี่ยวกับ AI สำหรับการประชุมที่กำลังจะมีขึ้น\" และวันครบกำหนดคือ \"2022-05-15\"", "role": "human" }, { "content": "[create_task(title='Prepare Presentation', description='Prepare a presentation on AI for the upcoming conference', due_date='2022-05-15')]", "role": "gpt" } ]
197
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nYou are an AI model designed to call functions. You may use one or more functions to assist with the user's query, or decide not to use them if unnecessary. If you believe a function call is needed but can't make one, make sure to highlight this. Avoid making assumptions about the values required for the functions. Please answer in Thai.\n[END OF TASK INSTRUCTION]\n\nTools: [{\"type\": \"function\", \"function\": {\"parameters\": {\"properties\": {\"length\": {\"type\": \"integer\", \"description\": \"The length of the password\"}}, \"required\": [\"length\"], \"type\": \"object\"}, \"description\": \"Generate a random password of specified length\", \"name\": \"generate_random_password\"}}]\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": "สวัสดี ฉันต้องการรหัสผ่านใหม่สำหรับบัญชีของฉัน คุณสามารถสร้างตัวเลือกหนึ่งจากอักขระ 10 ตัวแบบสุ่มได้หรือไม่?", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"generate_random_password\",\n \"arguments\": {\n \"length\": 10\n }\n }\n]}", "role": "gpt" }, { "content": "เยี่ยมเลย ขอบคุณ! ตอนนี้ คุณสามารถเข้าสู่บัญชีของฉันและเปลี่ยนรหัสผ่านให้ฉันได้ไหม", "role": "human" }, { "content": "ขออภัย ในฐานะ AI ฉันไม่สามารถทำงานภายนอก เช่น เข้าสู่บัญชีของคุณและเปลี่ยนรหัสผ่านได้ ฉันแนะนำให้คุณดำเนินการนี้ด้วยตนเองเพื่อให้แน่ใจว่าความปลอดภัยของบัญชีของคุณ", "role": "gpt" } ]
198
glaive-function-calling-v2-extended
[ { "content": "คุณเป็นผู้ช่วยที่มีประโยชน์ซึ่งสามารถเข้าถึงฟังก์ชันต่างๆ ได้ เป็นความรับผิดชอบของคุณที่จะตัดสินใจเมื่อใดที่การใช้ฟังก์ชันหรือเครื่องมือเป็นสิ่งจำเป็นในการทำงานให้สำเร็จ และเมื่อใดที่ควรหลีกเลี่ยงการใช้ ใช้เมื่อจำเป็นเท่านั้น\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]\n\n[BEGIN OF AVAILABLE TOOLS]\n[{\"type\": \"function\", \"function\": {\"description\": \"Create a new music playlist\", \"name\": \"create_playlist\", \"parameters\": {\"properties\": {\"name\": {\"description\": \"The name of the playlist\", \"type\": \"string\"}, \"songs\": {\"items\": {\"type\": \"string\"}, \"type\": \"array\", \"description\": \"The songs to add to the playlist\"}}, \"type\": \"object\", \"required\": [\"name\", \"songs\"]}}}]\n[END OF AVAILABLE TOOLS]", "role": "system" }, { "content": "ฉันต้องการสร้างเพลย์ลิสต์ใหม่สำหรับการออกกำลังกายของฉัน คุณช่วยฉันด้วยเรื่องนั้นได้ไหม?", "role": "human" }, { "content": "แน่นอน! คุณต้องการตั้งชื่อเพลย์ลิสต์ของคุณว่าอะไร และคุณอยากจะเพิ่มเพลงใดบ้าง", "role": "gpt" }, { "content": "มาตั้งชื่อว่า \"Workout Vibes\" เพิ่ม \"Eye of the Tiger\", \"Lose Yourself\" และ \"Stronger\" ลงในเพลย์ลิสต์", "role": "human" }, { "content": "{\"tool_calls\": [\n {\n \"name\": \"create_playlist\",\n \"arguments\": {\n \"name\": \"Workout Vibes\",\n \"songs\": [\n \"Eye of the Tiger\",\n \"Lose Yourself\",\n \"Stronger\"\n ]\n }\n }\n]}", "role": "gpt" } ]
199
glaive-function-calling-v2-extended
[ { "content": "[BEGIN OF TASK INSTRUCTION]\nคุณมีความเชี่ยวชาญในการสร้างฟังก์ชันและต้องตัดสินใจว่าจะใช้การเรียกฟังก์ชันหรือเครื่องมือเมื่อใดเพื่อให้บรรลุเป้าหมายหรือไม่ใช้เมื่อไม่จำเป็น คุณจะได้รับคำถามและชุดฟังก์ชันที่มีให้ ตามคำถามนั้น คุณต้องตัดสินใจว่าจะเรียกฟังก์ชันหนึ่งหรือหลายอย่างหรือไม่ หากไม่มีฟังก์ชันใดที่เหมาะสม ให้ระบุว่าเป็นเช่นนั้นและปฏิเสธที่จะตอบ นอกจากนี้ หากคำถามขาดพารามิเตอร์ที่จำเป็นสำหรับฟังก์ชัน อย่าลืมระบุด้วย\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\nAPI Function: [{\"type\": \"function\", \"function\": {\"name\": \"calculate_area\", \"parameters\": {\"type\": \"object\", \"properties\": {\"dimensions\": {\"type\": \"object\", \"required\": [\"length\", \"width\", \"radius\"], \"properties\": {\"length\": {\"type\": \"number\", \"description\": \"The length of the shape\"}, \"width\": {\"type\": \"number\", \"description\": \"The width of the shape\"}, \"radius\": {\"description\": \"The radius of the shape\", \"type\": \"number\"}}}, \"shape\": {\"type\": \"string\", \"description\": \"The shape you want to calculate the area for\"}}, \"required\": [\"shape\", \"dimensions\"]}, \"description\": \"Calculate the area of a shape\"}}]", "role": "system" }, { "content": "คุณช่วยจองตั๋วเครื่องบินให้ฉันหน่อยได้ไหม?", "role": "human" }, { "content": "ฉันขอโทษ แต่ฉันไม่สามารถช่วยในเรื่องนั้นได้ ความสามารถในปัจจุบันของฉันถูกจำกัดอยู่ที่การคำนวณพื้นที่ของรูปร่าง ฉันไม่มีความสามารถในการจองเที่ยวบินหรือทำงานภายนอกอื่น ๆ", "role": "gpt" } ]
200