id
string | tools
list | messages
list | label_kind
string |
|---|---|---|---|
ex_0000001_788bbff81e20
|
[
{
"type": "function",
"function": {
"name": "get_news_headlines",
"description": "Get the latest news headlines",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"country\":{\"type\":\"string\",\"description\":\"The country for which to fetch news\"}},\"required\":[\"country\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你能告訴我美國的最新新聞頭條嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_news_headlines",
"parameters_json": "{\"country\":\"美國\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"headlines\":[\"拜登宣布新的疫苗接種強制令\",\"颶風艾達重創路易斯安那州\",\"蘋果發表新款 iPhone\",\"NASA 的毅力號火星車採集到首個火星岩石樣本\"]}"
]
},
{
"role": "assistant",
"content_text": "以下是美國的最新新聞頭條:\n1. 拜登宣布新的疫苗強制措施\n2. 颶風艾達重創路易斯安那州\n3. 蘋果發表新款 iPhone\n4. NASA 的毅力號火星探測車採集到首顆火星岩石樣本",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那很有趣。法國的新聞怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_news_headlines",
"parameters_json": "{\"country\":\"法國\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"headlines\":[\"法國召回駐美及駐澳洲大使\",\"法國選舉: 馬克龍所屬政黨準備迎接艱苦對決\",\"羅浮宮將進行大規模改造\",\"法國將為所有25歲以下女性提供免費避孕服務\"]}"
]
},
{
"role": "assistant",
"content_text": "以下是法國的最新新聞頭條:\n1. 法國召回駐美和駐澳大使\n2. 法國大選:馬克龍的政黨準備迎戰\n3. 羅浮宮將進行重大改造\n4. 法國將向所有25歲以下的女性提供免費避孕措施",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000002_6e45d6040958
|
[
{
"type": "function",
"function": {
"name": "calculate_median",
"description": "Calculate the median of a list of numbers",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"numbers\":{\"type\":\"array\",\"items\":{\"type\":\"number\"},\"description\":\"A list of numbers\"}},\"required\":[\"numbers\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我有一個數字清單,需要找出中位數。你可以幫我嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫你處理這件事。請提供給我那份數字清單。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "數字是 5、2、9、1、7、4、6、3、8。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_median",
"parameters_json": "{\"numbers\":[5,2,9,1,7,4,6,3,8]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"median\":5}"
]
},
{
"role": "assistant",
"content_text": "所提供的數字列表的中位數是 5。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000003_7c8475e83264
|
[
{
"type": "function",
"function": {
"name": "create_contact",
"description": "Create a new contact",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"The name of the contact\"},\"email\":{\"type\":\"string\",\"description\":\"The email address of the contact\"}},\"required\":[\"name\",\"email\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要為我的朋友 John Doe 建立一個新的聯絡人。他的電子郵件是 johndoe@example.com。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.create_contact",
"parameters_json": "{\"name\":\"John Doe\",\"email\":\"johndoe@example.com\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"已成功建立 John Doe 的聯絡人,電子郵件為 johndoe@example.com。\"}"
]
},
{
"role": "assistant",
"content_text": "我已成功為您的朋友 John Doe 建立新的聯絡人,電子郵件為 johndoe@example.com。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000004_04141c1cc479
|
[
{
"type": "function",
"function": {
"name": "search_movie",
"description": "Search for a movie by title",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the movie\"}},\"required\":[\"title\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你能找到有關電影《全面啟動》(Inception)的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movie",
"parameters_json": "{\"title\":\"Inception\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"開始\",\"director\":\"克里斯多夫·諾蘭\",\"release_date\":\"2010\",\"genre\":\"科幻小說\",\"rating\":\"8.8/10\"}"
]
},
{
"role": "assistant",
"content_text": "電影 \"Inception\" 由 Christopher Nolan 執導,於2010年上映。屬於科幻片,評分為8.8/10。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那很有趣。你能找到有關電影「教父」的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movie",
"parameters_json": "{\"title\":\"The Godfather\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"教父\",\"director\":\"法蘭西斯·福特·科波拉\",\"release_date\":\"1972\",\"genre\":\"犯罪、劇情\",\"rating\":\"9.2/10\"}"
]
},
{
"role": "assistant",
"content_text": "電影《教父》(The Godfather)由法蘭西斯·福特·科波拉執導,於1972年上映。它屬於犯罪與劇情類型,評分為9.2/10。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000005_ea14ad6b9647
|
[
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current stock price",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"stock_symbol\":{\"type\":\"string\",\"description\":\"The symbol of the stock, e.g. AAPL\"}},\"required\":[\"stock_symbol\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age of a person",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birth_date\":{\"type\":\"string\",\"description\":\"The birth date of the person\"}},\"required\":[\"birth_date\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以告訴我 Apple 目前的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"stock_symbol\":\"AAPL\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":\"$150.75\"}"
]
},
{
"role": "assistant",
"content_text": "目前蘋果公司的股價 (AAPL) 為 $150.75。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太棒了!你也可以告訴我微軟目前的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"stock_symbol\":\"MSFT\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":\"$210.22\"}"
]
},
{
"role": "assistant",
"content_text": "微軟的股票(MSFT)目前價格為 $210.22。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000006_d68a220ada81
|
[
{
"type": "function",
"function": {
"name": "calculate_loan_payment",
"description": "Calculate the monthly payment amount for a loan",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"loan_amount\":{\"type\":\"number\",\"description\":\"The total loan amount\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The duration of the loan in months\"}},\"required\":[\"loan_amount\",\"interest_rate\",\"loan_term\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_discounted_price",
"description": "Calculate the discounted price based on a given original price and discount percentage",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price before discount\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The percentage of the discount\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一些幫助,關於我正在考慮的一筆貸款。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我很樂意幫忙。請問您能提供貸款總額、年利率,以及貸款期限(以月為單位)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "當然,貸款金額是 $200,000,年利率為 3.5%,貸款期限為 30 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_loan_payment",
"parameters_json": "{\"loan_amount\":200000,\"interest_rate\":3.5,\"loan_term\":360}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":898.09}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您這筆貸款的估計每月還款金額約為 $898.09。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000007_3664f5d72d08
|
[
{
"type": "function",
"function": {
"name": "get_news",
"description": "Get the latest news headlines",
"parameters_json": "{\"type\":\"object\",\"properties\":{},\"required\":[]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以幫我訂一個披薩嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "很抱歉,我無法執行像幫你訂披薩等外部任務。我目前可以為你擷取最新的新聞頭條。如果你需要任何相關資訊,請隨時詢問。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000008_a797232a2ce3
|
[
{
"type": "function",
"function": {
"name": "calculate_tip",
"description": "Calculate the tip amount",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_amount\":{\"type\":\"number\",\"description\":\"The total bill amount\"},\"tip_percentage\":{\"type\":\"number\",\"description\":\"The percentage of tip to give\"}},\"required\":[\"bill_amount\",\"tip_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算小費。我的帳單金額是 $50,我想給 15% 的小費。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip",
"parameters_json": "{\"bill_amount\":50,\"tip_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tip_amount\":7.5}"
]
},
{
"role": "assistant",
"content_text": "根據你提供的帳單金額與小費百分比,你應支付的小費金額為 $7.5。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000009_a4cdb088b7d2
|
[
{
"type": "function",
"function": {
"name": "generate_random_number",
"description": "Generate a random number within a given range",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"min\":{\"type\":\"number\",\"description\":\"The minimum value of the range\"},\"max\":{\"type\":\"number\",\"description\":\"The maximum value of the range\"}},\"required\":[\"min\",\"max\"]}"
}
},
{
"type": "function",
"function": {
"name": "encrypt_text",
"description": "Encrypt the given text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to be encrypted\"},\"encryption_algorithm\":{\"type\":\"string\",\"description\":\"The encryption algorithm to be used\"}},\"required\":[\"text\",\"encryption_algorithm\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要一個介於 1 到 100 之間的隨機數。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_random_number",
"parameters_json": "{\"min\":1,\"max\":100}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"result\":42}"
]
},
{
"role": "assistant",
"content_text": "在 1 到 100 之間產生的隨機數是 42.",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "你能再產生一個隨機數,但這次範圍在 200 到 300 之間嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_random_number",
"parameters_json": "{\"min\":200,\"max\":300}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"result\":278}"
]
},
{
"role": "assistant",
"content_text": "在 200 到 300 之間產生的隨機數是 278。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000010_e5691f8d6814
|
[
{
"type": "function",
"function": {
"name": "search_books",
"description": "Search for books based on title, author, or genre",
"parameters_json": "{\"type\":\"object\",\"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\"}},\"required\":[]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在找一本書,但我想不起書名。作者的名字是喬治·奧威爾。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"author\":\"George Orwell\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"books\":[{\"title\":\"1984\",\"author\":\"喬治·奧威爾\",\"genre\":\"反烏托邦\"},{\"title\":\"動物農莊\",\"author\":\"喬治·奧威爾\",\"genre\":\"政治諷刺\"}]}"
]
},
{
"role": "assistant",
"content_text": "我找到喬治·奧威爾的兩本書。第一本是「1984」,是一部反烏托邦小說。第二本是「動物農莊」,是一部政治諷刺作品。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "喔對,我在找《動物農場》。你也可以幫我找同類型的書嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"genre\":\"Political Satire\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"books\":[{\"title\":\"第二十二條軍規\",\"author\":\"約瑟夫·海勒\",\"genre\":\"政治諷刺\"},{\"title\":\"第五號屠宰場\",\"author\":\"柯特·馮內古特\",\"genre\":\"政治諷刺\"}]}"
]
},
{
"role": "assistant",
"content_text": "當然,這裡還有兩本政治諷刺類的書:Joseph Heller 的《第22條軍規》(Catch-22)和 Kurt Vonnegut 的《第五號屠宰場》(Slaughterhouse-Five)。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000011_5110b44e2109
|
[
{
"type": "function",
"function": {
"name": "generate_password",
"description": "Generate a random password",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"length\":{\"type\":\"integer\",\"description\":\"The length of the password\"},\"include_numbers\":{\"type\":\"boolean\",\"description\":\"Include numbers in the password\"},\"include_symbols\":{\"type\":\"boolean\",\"description\":\"Include symbols in the password\"}},\"required\":[\"length\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一個新的密碼。你可以幫我產生一個嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然可以!請問您希望密碼的長度是多少?以及是否要包含數字與符號?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "我希望它長度為12個字元,包含數字和符號。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_password",
"parameters_json": "{\"length\":12,\"include_numbers\":true,\"include_symbols\":true}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"password\":\"3#fG7&9L1!0Z\"}"
]
},
{
"role": "assistant",
"content_text": "這是您的新密碼:3#fG7&9L1!0Z。請務必將其保存在安全的地方。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000012_3aa61f791f79
|
[
{
"type": "function",
"function": {
"name": "search_books",
"description": "Search for books based on title or author",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"string\",\"description\":\"The title or author to search for\"}},\"required\":[\"query\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我在找J.K. Rowling的書。你可以幫我找到這些書嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"query\":\"J·K·羅琳\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"data\":[{\"title\":\"哈利·波特與賢者之石\",\"author\":\"J.K. 羅琳\"},{\"title\":\"哈利·波特與密室\",\"author\":\"J.K. 羅琳\"},{\"title\":\"哈利波特與阿茲卡班的囚徒\",\"author\":\"J.K. 羅琳\"}]}"
]
},
{
"role": "assistant",
"content_text": "我為你找到了一些 J.K. Rowling 的書。以下是:\n1. 哈利波特:神秘的魔法石\n2. 哈利波特:消失的密室\n3. 哈利波特:阿茲卡班的逃犯",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!你也能幫我找喬治·R·R·馬丁的書籍嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"query\":\"喬治 R.R. 馬丁\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"data\":[{\"title\":\"權力的遊戲\",\"author\":\"喬治 R.R. 馬丁\"},{\"title\":\"列王的紛爭\",\"author\":\"喬治·R·R·馬丁\"},{\"title\":\"劍之風暴\",\"author\":\"喬治 R.R. 馬丁\"}]}"
]
},
{
"role": "assistant",
"content_text": "我為你找到了幾本喬治·R·R·馬丁的書。它們是:\n1. 權力的遊戲\n2. 列王的紛爭\n3. 劍之風暴",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000013_b434e1cb6f08
|
[
{
"type": "function",
"function": {
"name": "check_email_availability",
"description": "Check if an email address is available or already taken",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"email\":{\"type\":\"string\",\"description\":\"The email address to be checked\"}},\"required\":[\"email\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我想建立一個新的電子郵件帳號。你可以幫我檢查電子郵件地址 john.doe@gmail.com 是否可用嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.check_email_availability",
"parameters_json": "{\"email\":\"john.doe@gmail.com\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"不可用\",\"message\":\"電子郵件地址 john.doe@gmail.com 已被使用。\"}"
]
},
{
"role": "assistant",
"content_text": "很抱歉,但電子郵件地址 john.doe@gmail.com 已經被使用。請您提供另一個電子郵件地址,以便我們檢查其可用性嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好,那 john.doe123@gmail.com 呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.check_email_availability",
"parameters_json": "{\"email\":\"john.doe123@gmail.com\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"可用\",\"message\":\"電子郵件地址 john.doe123@gmail.com 可用。\"}"
]
},
{
"role": "assistant",
"content_text": "好消息!電子郵件地址 john.doe123@gmail.com 可用。您可以使用它來註冊新的電子郵件帳戶。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000014_f38e8edd4e88
|
[
{
"type": "function",
"function": {
"name": "search_movies",
"description": "Search for movies based on title or genre",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"The keyword to search for\"},\"genre\":{\"type\":\"string\",\"description\":\"The genre to filter by\"}},\"required\":[\"keyword\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_gpa",
"description": "Calculate the GPA (Grade Point Average)",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"grades\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"course\":{\"type\":\"string\",\"description\":\"The name of the course\"},\"grade\":{\"type\":\"string\",\"description\":\"The grade received in the course\"},\"credit_hours\":{\"type\":\"number\",\"description\":\"The number of credit hours for the course\"}},\"required\":[\"course\",\"grade\",\"credit_hours\"]}}},\"required\":[\"grades\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在找今晚要看的電影。你可以幫我找一部嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然可以!請問您可以提供一個關鍵字或您有興趣的特定類型嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "我現在想看喜劇。也許找一些關鍵字為「holiday」的?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"keyword\":\"holiday\",\"genre\":\"comedy\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"movies\":[{\"title\":\"荒野假期\",\"genre\":\"喜劇\",\"year\":2019},{\"title\":\"假期\",\"genre\":\"喜劇\",\"year\":2006},{\"title\":\"最後的假期\",\"genre\":\"喜劇\",\"year\":2006}]}"
]
},
{
"role": "assistant",
"content_text": "以下是一些包含關鍵字「holiday」的喜劇電影,你可能會喜歡:\n1. \"Holiday in the Wild\"(2019)\n2. \"The Holiday\"(2006)\n3. \"Last Holiday\"(2006)\n你想要我提供其中任何一部的更多資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "你可以告訴我更多關於《The Holiday》的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"title\":\"The Holiday\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"movie\":{\"title\":\"假期\",\"genre\":\"喜劇\",\"year\":2006,\"description\":\"兩名有男人困擾的女性互換彼此所在國家的住所,在那裡各自遇到當地的男子並墜入愛河。\"}}"
]
},
{
"role": "assistant",
"content_text": "\"The Holiday\" 是2006年的喜劇片。故事圍繞兩位因感情問題而苦惱的女性,她們互換彼此在對方國家的住所,在那裡各自遇到當地男子並墜入愛河。這是一部溫馨又好笑的電影。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000015_e2ce11220aaa
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on date of birth",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"date_of_birth\":{\"type\":\"string\",\"description\":\"The date of birth\"}},\"required\":[\"date_of_birth\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我出生於1990-05-15。你可以告訴我我現在幾歲嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"date_of_birth\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的出生日期,您目前 31 歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000016_bc15176b2e82
|
[
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the discounted price of a product",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the product\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The discount percentage to apply\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在一家店看到一件我喜歡的外套。標價是 $100,但有 20% 的折扣。你能告訴我折扣後要多少錢嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":100,\"discount_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":80}"
]
},
{
"role": "assistant",
"content_text": "這件外套在 20% 折扣後要價 $80。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那真劃算。那雙原價$75、現在有15%折扣的鞋子怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":75,\"discount_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":63.75}"
]
},
{
"role": "assistant",
"content_text": "這雙鞋在打完15%折扣後,你要付$63.75。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000017_1046a4f0763f
|
[
{
"type": "function",
"function": {
"name": "get_movie_info",
"description": "Get detailed information about a movie",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the movie\"},\"year\":{\"type\":\"integer\",\"description\":\"The release year of the movie\"}},\"required\":[\"title\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以告訴我更多關於電影《Inception》的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_info",
"parameters_json": "{\"title\":\"Inception\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"全面啟動\",\"year\":2010,\"director\":\"克里斯多福·諾蘭\",\"genre\":\"---\\n科幻小說\\n---\",\"plot\":\"一名熟練的竊賊,透過夢境共享技術竊取企業機密,被賦予相反的任務:在一位執行長的腦海中植入一個念頭。\"}"
]
},
{
"role": "assistant",
"content_text": "電影《Inception》於2010年上映。由克里斯托弗·諾蘭執導,屬於科幻片。劇情圍繞一名技藝高超的小偷,他利用夢境共享技術竊取企業機密,並被賦予相反的任務:將一個想法植入一位執行長的腦中。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那部電影《黑暗騎士》怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_info",
"parameters_json": "{\"title\":\"The Dark Knight\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"黑暗騎士\",\"year\":2008,\"director\":\"克里斯托弗·諾蘭\",\"genre\":\"動作, 犯罪, 劇情\",\"plot\":\"當名為小丑的惡棍在高譚市對人民肆虐、製造混亂時,蝙蝠俠必須接受他對抗不義能力上最嚴峻的心理與身體考驗之一。\"}"
]
},
{
"role": "assistant",
"content_text": "《黑暗騎士》於2008年上映。由克里斯多福·諾蘭執導,屬於動作、犯罪與劇情類型。故事講述當名為小丑的威脅對哥譚市民造成破壞與混亂時,蝙蝠俠面臨他打擊不義能力上最嚴峻的心理與體能考驗之一。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000018_56b5056b611b
|
[
{
"type": "function",
"function": {
"name": "search_recipe",
"description": "Search for a recipe based on ingredients",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"ingredients\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The ingredients available\"},\"cuisine\":{\"type\":\"string\",\"description\":\"The cuisine type\"},\"diet\":{\"type\":\"string\",\"description\":\"The dietary restrictions\"},\"time\":{\"type\":\"integer\",\"description\":\"The maximum cooking time in minutes\"}},\"required\":[\"ingredients\"]}"
}
},
{
"type": "function",
"function": {
"name": "convert_currency",
"description": "Convert one currency to another",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"amount\":{\"type\":\"number\",\"description\":\"The amount to convert\"},\"from_currency\":{\"type\":\"string\",\"description\":\"The currency to convert from\"},\"to_currency\":{\"type\":\"string\",\"description\":\"The currency to convert to\"}},\"required\":[\"amount\",\"from_currency\",\"to_currency\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我有雞肉、番茄和大蒜。你可以幫我找個食譜嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_recipe",
"parameters_json": "{\"ingredients\":[\"chicken\",\"tomatoes\",\"garlic\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"name\":\"蒜香番茄雞肉快炒\",\"ingredients\":[\"雞\",\"番茄\",\"大蒜\"],\"cuisine\":\"亞洲人\",\"diet\":\"葷食\",\"time\":30,\"instructions\":\"將雞肉切成小塊. 在鍋中加熱油. 加入大蒜並煸炒至金黃. 加入雞肉煮至變白. 加入番茄並翻炒至變軟. 趁熱上桌.\"}"
]
},
{
"role": "assistant",
"content_text": "我為你找到了一道食譜。它叫做「雞肉番茄蒜味快炒」。這是一道亞洲料理,屬於葷食。烹飪時間約為30分鐘。以下是做法:將雞肉切成小塊。熱鍋加入油。加入蒜頭並炒至金黃色。加入雞肉,煮至變白。加入番茄,翻炒至變軟。趁熱享用。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "聽起來好美味!你可以用相同的食材幫我找一個素食食譜嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_recipe",
"parameters_json": "{\"ingredients\":[\"tomatoes\",\"garlic\"],\"diet\":\"Vegetarian\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"name\":\"蒜香番茄義大利麵\",\"ingredients\":[\"番茄\",\"大蒜\",\"義大利麵\"],\"cuisine\":\"義大利語\",\"diet\":\"素食者\",\"time\":20,\"instructions\":\"將義大利麵煮至略帶嚼勁(al dente)。\\n在另一個平底鍋中,將大蒜炒至金黃色。\\n加入番茄,煮至軟化。\\n拌入已煮好的義大利麵。\\n趁熱上桌。\"}"
]
},
{
"role": "assistant",
"content_text": "我為你找到了一道素食食譜。它叫做「蒜香番茄義大利麵(Garlic Tomato Pasta)」。這是一道義大利料理。烹調時間約為20分鐘。做法如下:\n將義大利麵煮至略帶嚼勁(al dente)。\n在另一個鍋中,將大蒜炒至金黃。\n加入番茄,煮至軟爛。\n拌入煮熟的義大利麵。\n趁熱享用。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000019_f80501694201
|
[
{
"type": "function",
"function": {
"name": "search_movies",
"description": "Search for movies based on title, actor, or genre",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"search_query\":{\"type\":\"string\",\"description\":\"The search query for movies\"}},\"required\":[\"search_query\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以幫我找一些有湯姆·漢克斯演出的電影嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"search_query\":\"Tom Hanks\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"movies\":[\"阿甘正傳\",\"搶救雷恩大兵\",\"荒島餘生\",\"綠色奇蹟\",\"玩具總動員\"]}"
]
},
{
"role": "assistant",
"content_text": "以下是一些由湯姆·漢克斯主演的電影: \"阿甘正傳\", \"搶救雷恩大兵\", \"荒島餘生\", \"綠色奇蹟\", \"玩具總動員\".",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "關於恐怖類型的電影呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"search_query\":\"horror\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"movies\":[\"厲陰宅\",\"陰險的\",\"寂靜之地\",\"遺傳的\",\"離開\"]}"
]
},
{
"role": "assistant",
"content_text": "以下是一些恐怖片: \"The Conjuring\", \"Insidious\", \"A Quiet Place\", \"Hereditary\", \"Get Out\".",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000020_ca121e88e28f
|
[
{
"type": "function",
"function": {
"name": "get_definition",
"description": "Get the definition of a word",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"word\":{\"type\":\"string\",\"description\":\"The word to get the definition of\"}},\"required\":[\"word\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "'serendipity' 這個字是什麼意思?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_definition",
"parameters_json": "{\"word\":\"serendipity\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"definition\":\"Serendipity 是指事件以幸運或有益的方式偶然發生並發展。\"}"
]
},
{
"role": "assistant",
"content_text": "單字 'serendipity' 的意思是指事件以幸運或有利的方式偶然發生與發展。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "有趣!那「短暫的」怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_definition",
"parameters_json": "{\"word\":\"ephemeral\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"definition\":\"Ephemeral 是指只持續很短時間的事物。\"}"
]
},
{
"role": "assistant",
"content_text": "單字 'ephemeral' 的意思是指持續很短時間的事物。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000021_57531a05bdbc
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on the date of birth",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"dob\":{\"type\":\"string\",\"description\":\"The date of birth in YYYY-MM-DD format\"}},\"required\":[\"dob\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我出生於1990年5月15日。你可以告訴我今天我幾歲了嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"dob\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的出生日期,您今天是31歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000022_4201d8234070
|
[
{
"type": "function",
"function": {
"name": "calculate_loan_payment",
"description": "Calculate the monthly loan payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"principal\":{\"type\":\"number\",\"description\":\"The principal amount of the loan\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate of the loan\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The loan term in years\"}},\"required\":[\"principal\",\"interest_rate\",\"loan_term\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算我的貸款還款金額。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請您提供貸款本金、年利率,以及貸款期限(以年為單位)?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,本金為 $50000,年利率為 5%,貸款期限為 10 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_loan_payment",
"parameters_json": "{\"principal\":50000,\"interest_rate\":5,\"loan_term\":10}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":\"$530.33\"}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的每月貸款還款金額將為 $530.33.",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000023_94471d717e89
|
[
{
"type": "function",
"function": {
"name": "analyze_website",
"description": "Analyze the content and performance of a website",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"website_url\":{\"type\":\"string\",\"description\":\"The URL of the website to analyze\"},\"metrics\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The metrics to analyze for the website\"}},\"required\":[\"website_url\",\"metrics\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要分析我的網站。你可以幫我嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然可以!請問您可以提供網站的網址(URL)以及您想要分析的具體指標嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,網址是 www.mywebsite.com,我想分析流量、跳出率和頁面載入時間等指標。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.analyze_website",
"parameters_json": "{\"website_url\":\"www.mywebsite.com\",\"metrics\":[\"traffic\",\"bounce rate\",\"page load time\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"traffic\":5000,\"bounce rate\":40,\"page load time\":2}"
]
},
{
"role": "assistant",
"content_text": "以下是對您網站 www.mywebsite.com 的分析結果: \n- 流量:5000 位訪客\n- 跳出率:40% \n- 頁面載入時間:2 秒。 \n\n這些指標可以幫助您了解網站的效能以及可能需要改進的部分。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000024_0a61e6d5184a
|
[
{
"type": "function",
"function": {
"name": "calculate_mortgage_payment",
"description": "Calculate the monthly mortgage payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"loan_amount\":{\"type\":\"number\",\"description\":\"The loan amount\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The interest rate\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The loan term in years\"}},\"required\":[\"loan_amount\",\"interest_rate\",\"loan_term\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算我的房貸每月應付金額。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請提供貸款金額、利率,以及貸款年期(以年為單位)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,貸款金額是 $200,000,利率是 3.5%,貸款期限是 30 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_mortgage_payment",
"parameters_json": "{\"loan_amount\":200000,\"interest_rate\":3.5,\"loan_term\":30}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":898.09}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的每月房貸付款約為 $898.09。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000025_a1d415bd40a9
|
[
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current stock price",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"stock_symbol\":{\"type\":\"string\",\"description\":\"The symbol of the stock\"}},\"required\":[\"stock_symbol\"]}"
}
},
{
"type": "function",
"function": {
"name": "create_task",
"description": "Create a new task in a to-do list",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"task_name\":{\"type\":\"string\",\"description\":\"The name of the task\"},\"due_date\":{\"type\":\"string\",\"description\":\"The due date of the task\"},\"priority\":{\"type\":\"string\",\"description\":\"The priority level of the task\"}},\"required\":[\"task_name\",\"due_date\",\"priority\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以告訴我蘋果(Apple)目前的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"stock_symbol\":\"AAPL\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":145.09}"
]
},
{
"role": "assistant",
"content_text": "蘋果公司的股票 (AAPL) 目前價格為 $145.09。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那太好了。你也可以告訴我微軟目前的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"stock_symbol\":\"MSFT\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":204.62}"
]
},
{
"role": "assistant",
"content_text": "目前微軟(MSFT)的股價為 $204.62。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000026_d8b4608a959f
|
[
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current price of a stock",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"stock_symbol\":{\"type\":\"string\",\"description\":\"The symbol of the stock\"}},\"required\":[\"stock_symbol\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以告訴我蘋果公司目前的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"stock_symbol\":\"AAPL\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":145.09}"
]
},
{
"role": "assistant",
"content_text": "目前 Apple(AAPL)的股價為 $145.09。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了。你也可以告訴我微軟的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"stock_symbol\":\"MSFT\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":216.54}"
]
},
{
"role": "assistant",
"content_text": "目前微軟(MSFT)股價為 $216.54。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000027_fc58c7059309
|
[
{
"type": "function",
"function": {
"name": "generate_username",
"description": "Generate a unique username for a user",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"first_name\":{\"type\":\"string\",\"description\":\"The first name of the user\"},\"last_name\":{\"type\":\"string\",\"description\":\"The last name of the user\"},\"birth_year\":{\"type\":\"integer\",\"description\":\"The birth year of the user\"}},\"required\":[\"first_name\",\"last_name\",\"birth_year\"]}"
}
},
{
"type": "function",
"function": {
"name": "get_news",
"description": "Get the latest news headlines",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"category\":{\"type\":\"string\",\"description\":\"The category of news, e.g. sports, politics\"}},\"required\":[\"category\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一個新的使用者名稱。我的名字是 John Doe,我出生於1990年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_username",
"parameters_json": "{\"first_name\":\"John\",\"last_name\":\"Doe\",\"birth_year\":1990}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"username\":\"JohnDoe1990\"}"
]
},
{
"role": "assistant",
"content_text": "您的新使用者名稱是 JohnDoe1990.",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000028_a959f63cf8cf
|
[
{
"type": "function",
"function": {
"name": "search_recipe",
"description": "Search for a recipe by ingredients",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"ingredients\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The ingredients to search for\"}},\"required\":[\"ingredients\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我冰箱裡有一些食材,但我不知道可以用它們做什麼料理。你可以幫我找個食譜嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我很樂意幫你。請告訴我你有哪些食材。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "我有雞肉、甜椒和洋蔥。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_recipe",
"parameters_json": "{\"ingredients\":[\"chicken\",\"bell peppers\",\"onions\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"recipes\":[{\"name\":\"雞肉快炒\",\"ingredients\":[\"雞\",\"甜椒\",\"洋蔥\"],\"instructions\":\"將雞肉和蔬菜切成條狀。在鍋中加熱油,加入雞肉並煮至不再呈粉紅色。加入蔬菜並快炒至變軟嫩。搭配白飯或麵條一起享用。\"}]}"
]
},
{
"role": "assistant",
"content_text": "我找到一個食譜給你。你可以做雞肉快炒。做法如下:把雞肉和蔬菜切成條狀。把油在鍋中加熱,加入雞肉,炒至不再帶粉紅色。加入蔬菜,拌炒至軟嫩。可搭配白飯或麵條享用。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000029_6f0ec40993bf
|
[
{
"type": "function",
"function": {
"name": "generate_random_number",
"description": "Generate a random number",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"min\":{\"type\":\"number\",\"description\":\"The minimum value of the random number\"},\"max\":{\"type\":\"number\",\"description\":\"The maximum value of the random number\"}},\"required\":[\"min\",\"max\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以幫我訂一個披薩嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "很抱歉,但我無法執行像訂披薩這類的外部任務。我目前的能力僅限於提供給我的功能,例如產生隨機數字。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000030_83d3815da8b1
|
[
{
"type": "function",
"function": {
"name": "calculate_tip",
"description": "Calculate the tip amount for a given bill",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_amount\":{\"type\":\"number\",\"description\":\"The total bill amount\"},\"tip_percentage\":{\"type\":\"number\",\"description\":\"The percentage of tip to be given\"}},\"required\":[\"bill_amount\",\"tip_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算小費。我的帳單金額是 $50,我想給 15% 的小費。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip",
"parameters_json": "{\"bill_amount\":50,\"tip_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tip_amount\":7.5}"
]
},
{
"role": "assistant",
"content_text": "帳單金額為 $50,給 15% 小費時,小費金額為 $7.5。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000031_2c5f740150c8
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on date of birth",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"date_of_birth\":{\"type\":\"string\",\"description\":\"The date of birth in YYYY-MM-DD format\"}},\"required\":[\"date_of_birth\"]}"
}
},
{
"type": "function",
"function": {
"name": "check_text_sentiment",
"description": "Check the sentiment of a text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to analyze the sentiment of\"}},\"required\":[\"text\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我出生於1990-05-15。你能告訴我我今天幾歲了嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"date_of_birth\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的出生日期,您今天 31 歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000032_7b1de78a3c71
|
[
{
"type": "function",
"function": {
"name": "calculate_tax",
"description": "Calculate the tax amount based on income and tax rate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"income\":{\"type\":\"number\",\"description\":\"The income amount\"},\"tax_rate\":{\"type\":\"number\",\"description\":\"The tax rate in percentage\"}},\"required\":[\"income\",\"tax_rate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要計算我的稅額。我的收入是 $50000,稅率是 20%。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tax",
"parameters_json": "{\"income\":50000,\"tax_rate\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tax_amount\":10000}"
]
},
{
"role": "assistant",
"content_text": "根據您的收入與稅率,您的應繳稅額為 $10000.",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "哦,那真的不少。如果我的收入是 $40000,且稅率相同,會怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tax",
"parameters_json": "{\"income\":40000,\"tax_rate\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tax_amount\":8000}"
]
},
{
"role": "assistant",
"content_text": "如果你的收入是 $40000,且稅率相同,你的稅額將會是 $8000。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000033_8ec6c6c12c99
|
[
{
"type": "function",
"function": {
"name": "calculate_loan_payment",
"description": "Calculate the monthly loan payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"principal\":{\"type\":\"number\",\"description\":\"The loan principal amount\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The loan term in years\"}},\"required\":[\"principal\",\"interest_rate\",\"loan_term\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一些關於我的貸款計算的幫助。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然可以!我可以幫你。請問你可以提供本金、年利率和貸款年限(以年計)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,本金為 $200,000,年利率為 5%,貸款期限為 30 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_loan_payment",
"parameters_json": "{\"principal\":200000,\"interest_rate\":5,\"loan_term\":30}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":1073.64}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的每月貸款還款金額約為 $1073.64.",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000034_04d4fef3889b
|
[
{
"type": "function",
"function": {
"name": "get_random_quote",
"description": "Get a random quote",
"parameters_json": "{}"
}
},
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current stock price",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"symbol\":{\"type\":\"string\",\"description\":\"The stock symbol\"}},\"required\":[\"symbol\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要一些靈感。你可以給我一句名言嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_random_quote",
"parameters_json": "{}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"quote\":\"做好偉大工作的唯一方法,就是熱愛你所做的事。 - 史蒂夫·賈伯斯\"}"
]
},
{
"role": "assistant",
"content_text": "這裡有句名言給你: \"成就偉大工作的唯一方法是熱愛你所做的事。\" - Steve Jobs",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那句名言很棒。你能再給我一句嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_random_quote",
"parameters_json": "{}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"quote\":\"只要你相信自己,就已經成功一半。 - 西奧多·羅斯福\"}"
]
},
{
"role": "assistant",
"content_text": "這裡有另一句名言給你: \"相信自己可以,你就已經完成了一半。\" - 西奧多·羅斯福",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000035_39bfeded8550
|
[
{
"type": "function",
"function": {
"name": "search_books",
"description": "Search for books based on keywords",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"keywords\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The keywords to search for\"}},\"required\":[\"keywords\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在尋找一些關於人工智慧的書籍。你可以幫我找一些嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"keywords\":[\"artificial intelligence\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"results\":[{\"title\":\"人工智慧:現代方法\",\"author\":\"Stuart Russell 與 Peter Norvig\"},{\"title\":\"生命3.0:在人工智慧時代做人的意義\",\"author\":\"馬克斯·泰格馬克\"},{\"title\":\"超級智慧:路徑、危險與策略\",\"author\":\"尼克·博斯特羅姆\"}]}"
]
},
{
"role": "assistant",
"content_text": "我幫你找了幾本關於人工智慧的書。以下是幾個選擇:\n1. \"人工智慧:現代方法\" — 作者:Stuart Russell 和 Peter Norvig\n2. \"生命 3.0:人工智慧時代的人類\" — 作者:Max Tegmark\n3. \"超級智慧:路徑、危險與策略\" — 作者:Nick Bostrom",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!你也可以幫我找一些關於機器學習的書籍嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"keywords\":[\"machine learning\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"results\":[{\"title\":\"---\\n一百頁機器學習書\\n---\",\"author\":\"安德里·布爾科夫\"},{\"title\":\"機器學習: 機率觀點\",\"author\":\"凱文 P. 墨菲\"},{\"title\":\"深度學習\",\"author\":\"Ian Goodfellow, Yoshua Bengio, and Aaron Courville\"}]}"
]
},
{
"role": "assistant",
"content_text": "以下是一些你可能會感興趣的機器學習書籍:\n1. \"The Hundred-Page Machine Learning Book\" 由 Andriy Burkov 著\n2. \"Machine Learning: A Probabilistic Perspective\" 由 Kevin P. Murphy 著\n3. \"Deep Learning\" 由 Ian Goodfellow、Yoshua Bengio 和 Aaron Courville 著",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000036_1428e8a155e0
|
[
{
"type": "function",
"function": {
"name": "calculate_bmi",
"description": "Calculate the Body Mass Index (BMI)",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"weight\":{\"type\":\"number\",\"description\":\"The weight in kilograms\"},\"height\":{\"type\":\"number\",\"description\":\"The height in meters\"}},\"required\":[\"weight\",\"height\"]}"
}
},
{
"type": "function",
"function": {
"name": "check_word_count",
"description": "Check the word count of a given text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to count the words\"}},\"required\":[\"text\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我想計算我的 BMI。我體重 70 公斤,身高 1.75 公尺。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_bmi",
"parameters_json": "{\"weight\":70,\"height\":1.75}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"bmi\":22.86}"
]
},
{
"role": "assistant",
"content_text": "你的身體質量指數(BMI)為 22.86。這被視為在健康體重範圍內。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "很高興聽到這個!我的朋友呢?他體重85公斤,身高1.8公尺。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_bmi",
"parameters_json": "{\"weight\":85,\"height\":1.8}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"bmi\":26.23}"
]
},
{
"role": "assistant",
"content_text": "你朋友的身體質量指數(BMI)為 26.23。這被視為輕度超重。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000037_2d2935e4bf57
|
[
{
"type": "function",
"function": {
"name": "calculate_distance",
"description": "Calculate the distance between two locations",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"origin\":{\"type\":\"string\",\"description\":\"The starting location\"},\"destination\":{\"type\":\"string\",\"description\":\"The destination location\"}},\"required\":[\"origin\",\"destination\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要知道紐約和洛杉磯之間的距離。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_distance",
"parameters_json": "{\"origin\":\"New York\",\"destination\":\"Los Angeles\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"distance\":2448.5,\"units\":\"英里\"}"
]
},
{
"role": "assistant",
"content_text": "紐約與洛杉磯之間的距離約為2448.5英里。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那真是相當遙遠的距離!從倫敦到巴黎的距離呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_distance",
"parameters_json": "{\"origin\":\"London\",\"destination\":\"Paris\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"distance\":214.4,\"units\":\"英里\"}"
]
},
{
"role": "assistant",
"content_text": "倫敦和巴黎之間的距離約為214.4英里。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000038_f9a3669814ea
|
[
{
"type": "function",
"function": {
"name": "calculate_bmi",
"description": "Calculate BMI (Body Mass Index)",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"height\":{\"type\":\"number\",\"description\":\"The height in meters\"},\"weight\":{\"type\":\"number\",\"description\":\"The weight in kilograms\"}},\"required\":[\"height\",\"weight\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要計算我的 BMI。我身高 1.75 公尺,體重 70 公斤。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_bmi",
"parameters_json": "{\"height\":1.75,\"weight\":70}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"bmi\":22.86}"
]
},
{
"role": "assistant",
"content_text": "您的身體質量指數(BMI)為22.86。以您的身高來看,這屬於健康體重。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000039_acfefa0bf0c6
|
[
{
"type": "function",
"function": {
"name": "calculate_area",
"description": "Calculate the area of a shape",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"shape\":{\"type\":\"string\",\"description\":\"The shape to calculate the area for\"},\"measurements\":{\"type\":\"object\",\"properties\":{\"length\":{\"type\":\"number\",\"description\":\"The length of the shape\"},\"width\":{\"type\":\"number\",\"description\":\"The width of the shape\"}},\"required\":[\"length\",\"width\"]}},\"required\":[\"shape\",\"measurements\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要計算一個矩形的面積。長度是 5 單位,寬度是 3 單位。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"rectangle\",\"measurements\":{\"length\":5,\"width\":3}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":15}"
]
},
{
"role": "assistant",
"content_text": "長為 5 單位、寬為 3 單位的矩形面積是 15 平方單位.",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "邊長為4單位的正方形呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"square\",\"measurements\":{\"length\":4,\"width\":4}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":16}"
]
},
{
"role": "assistant",
"content_text": "邊長為4單位的正方形面積是16平方單位。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000040_5223036ec9c0
|
[
{
"type": "function",
"function": {
"name": "search_movie",
"description": "Search for information about a movie",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the movie\"}},\"required\":[\"title\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你能找到關於電影《Inception》的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movie",
"parameters_json": "{\"title\":\"Inception\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"開始\",\"director\":\"克里斯多夫·諾蘭\",\"release_date\":\"2010\",\"genre\":\"科幻/驚悚\",\"rating\":\"8.8/10\"}"
]
},
{
"role": "assistant",
"content_text": "電影 \"Inception\" 是一部由克里斯多福·諾蘭執導的科幻/驚悚片。它於2010年上映,評分為8.8/10。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "真有趣。你可以找到有關電影《黑暗騎士》的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movie",
"parameters_json": "{\"title\":\"The Dark Knight\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"黑暗騎士\",\"director\":\"克里斯多夫·諾蘭\",\"release_date\":\"2008\",\"genre\":\"超級英雄/驚悚\",\"rating\":\"9.0/10\"}"
]
},
{
"role": "assistant",
"content_text": "這部電影 \"The Dark Knight\" 是一部由 Christopher Nolan 執導的超級英雄/驚悚片。它於2008年上映,評分為9.0/10。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000041_0fc264ca1269
|
[
{
"type": "function",
"function": {
"name": "find_restaurants",
"description": "Find nearby restaurants",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The location to search for restaurants\"},\"cuisine\":{\"type\":\"string\",\"description\":\"The type of cuisine\"},\"price_range\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The price range of the restaurants\"}},\"required\":[\"location\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在紐約,現在很想吃義大利料理。你可以幫我找一家餐廳嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.find_restaurants",
"parameters_json": "{\"location\":\"New York\",\"cuisine\":\"Italian\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"restaurants\":[{\"name\":\"碳\",\"address\":\"181 Thompson 街, 紐約, 紐約州 10012\",\"price_range\":\"昂貴\"},{\"name\":\"L'Artusi\",\"address\":\"228 西第10街, 紐約, 紐約州 10014\",\"price_range\":\"中等\"}]}"
]
},
{
"role": "assistant",
"content_text": "我在紐約為你找到兩家義大利餐廳。一家是 Carbone,位於 181 Thompson St, New York, NY 10012,但有點貴。另一個選擇是 L'Artusi,位於 228 W 10th St, New York, NY 10014,價位屬於中等。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了,你能幫我找更便宜的選擇嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.find_restaurants",
"parameters_json": "{\"location\":\"New York\",\"cuisine\":\"Italian\",\"price_range\":[\"Cheap\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"restaurants\":[{\"name\":\"義大利麵愛好者小館\",\"address\":\"西49街142號, 紐約市, 紐約州 10019\",\"price_range\":\"便宜\"}]}"
]
},
{
"role": "assistant",
"content_text": "我幫你找到一家比較便宜的義大利餐廳。Pasta Lovers Trattoria 位於 142 W 49th St, New York, NY 10019。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000042_d24d1c5a8fd9
|
[
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current stock price of a company",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"company_name\":{\"type\":\"string\",\"description\":\"The name of the company\"},\"stock_exchange\":{\"type\":\"string\",\"description\":\"The stock exchange where the company is listed\"}},\"required\":[\"company_name\",\"stock_exchange\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我想知道 Apple 在 NASDAQ(納斯達克)股票交易所的即時股價。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"company_name\":\"Apple\",\"stock_exchange\":\"NASDAQ\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":\"$150.75\"}"
]
},
{
"role": "assistant",
"content_text": "Apple 在 NASDAQ 股票交易所的目前股價為 $150.75。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了。你也能告訴我同一個交易所裡微軟的股價嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"company_name\":\"Microsoft\",\"stock_exchange\":\"NASDAQ\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"stock_price\":\"$210.22\"}"
]
},
{
"role": "assistant",
"content_text": "微軟在納斯達克股票交易所的目前股價為 $210.22。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000043_ce5772769896
|
[
{
"type": "function",
"function": {
"name": "calculate_bmi",
"description": "Calculate the Body Mass Index (BMI) of a person",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"weight\":{\"type\":\"number\",\"description\":\"The weight of the person in kilograms\"},\"height\":{\"type\":\"number\",\"description\":\"The height of the person in meters\"}},\"required\":[\"weight\",\"height\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我想計算我的 BMI。我體重 70 公斤,身高 1.75 公尺。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_bmi",
"parameters_json": "{\"weight\":70,\"height\":1.75}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"bmi\":22.86}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的身體質量指數 (BMI) 為 22.86。這被視為健康的體重範圍。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000044_95c75bcc501f
|
[
{
"type": "function",
"function": {
"name": "get_movie_details",
"description": "Get details of a movie",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"movie_id\":{\"type\":\"string\",\"description\":\"ID of the movie\"}},\"required\":[\"movie_id\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以告訴我更多關於 ID 為 12345 的電影的資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"movie_id\":\"12345\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"開始\",\"director\":\"克里斯多夫·諾蘭\",\"release_year\":\"2010\",\"genre\":\"科幻\",\"rating\":\"8.8/10\"}"
]
},
{
"role": "assistant",
"content_text": "ID 為 12345 的電影是「Inception」。它由克里斯托弗·諾蘭執導,並於 2010 年上映。該片的類型是科幻,評分為 8.8/10。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "聽起來很有趣。你能告訴我另一部編號為 67890 的電影的相關資訊嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"movie_id\":\"67890\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"黑暗騎士\",\"director\":\"克里斯托弗·諾蘭\",\"release_year\":\"2008\",\"genre\":\"動作、犯罪、劇情\",\"rating\":\"9.0/10\"}"
]
},
{
"role": "assistant",
"content_text": "ID 為 67890 的電影是《黑暗騎士》。它由克里斯多福·諾蘭執導,於 2008 年上映。這部電影的類型為動作、犯罪、劇情,評分為 9.0/10。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000045_662a87704635
|
[
{
"type": "function",
"function": {
"name": "search_recipes",
"description": "Search for recipes based on ingredients",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"ingredients\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The ingredients to search for\"}},\"required\":[\"ingredients\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我有一些雞肉、花椰菜和起司。你可以幫我找一個食譜嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_recipes",
"parameters_json": "{\"ingredients\":[\"chicken\",\"broccoli\",\"cheese\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"recipes\":[{\"name\":\"雞肉與花椰菜焗烤\",\"ingredients\":[\"雞肉\",\"花椰菜\",\"起司\"],\"instructions\":\"將烤箱預熱至華氏350度(攝氏175度)。在一個大碗中,將雞肉、青花菜和起司拌勻。放入已預熱的烤箱烘烤25-30分鐘,或直到起司融化並冒泡為止。\"}]}"
]
},
{
"role": "assistant",
"content_text": "我為你找到了一道食譜!它叫做「雞肉與西蘭花焗烤」。將烤箱預熱至華氏350度(攝氏175度)。在一個大碗中,將雞肉、西蘭花和起司混合在一起。放入預熱的烤箱,烘烤25到30分鐘,或直到起司融化並冒泡為止。祝你用餐愉快!",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000046_52442e551183
|
[
{
"type": "function",
"function": {
"name": "analyze_sentiment",
"description": "Analyze the sentiment of a text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to be analyzed\"}},\"required\":[\"text\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以幫我分析這段文字的情感嗎? \"我今天感到非常開心,因為我在工作上獲得了升遷。\"",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.analyze_sentiment",
"parameters_json": "{\"text\":\"我今天感到非常高興,因為我在工作上獲得了升遷。\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"sentiment\":\"正面\",\"confidence\":0.98}"
]
},
{
"role": "assistant",
"content_text": "該文字的情感為正面,信心為98%。看起來你今天過得很愉快!",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "沒錯!那這句呢?「我真的很難過,因為我最喜歡的球隊輸了比賽。」",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.analyze_sentiment",
"parameters_json": "{\"text\":\"我真的很難過,因為我最喜歡的球隊輸掉了比賽。\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"sentiment\":\"負面\",\"confidence\":0.95}"
]
},
{
"role": "assistant",
"content_text": "這段文字的情緒為負面,置信度為95%。看起來你對這場比賽感到失望。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000047_07bfdf24e560
|
[
{
"type": "function",
"function": {
"name": "get_news_headlines",
"description": "Get the latest news headlines",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"country\":{\"type\":\"string\",\"description\":\"The country for which news headlines are required\"}},\"required\":[\"country\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以幫我取得美國的最新新聞頭條嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_news_headlines",
"parameters_json": "{\"country\":\"美國\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"headlines\":[\"美國總統簽署新法案成為法律\",\"加州發生重大地震\",\"NASA 宣布新的火星任務\",\"科技巨頭推出新智慧型手機\",\"美國經濟出現復甦跡象\"]}"
]
},
{
"role": "assistant",
"content_text": "---\n以下是美國的最新新聞標題:\n1. 美國總統簽署新法案成為法律\n2. 加州發生重大地震\n3. NASA 宣布新的火星任務\n4. 科技巨頭推出新款智慧型手機\n5. 美國經濟出現復甦跡象\n---",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "這很有趣。你現在可以幫我取得法國的新聞嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_news_headlines",
"parameters_json": "{\"country\":\"法國\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"headlines\":[\"法國總統宣佈新的經濟改革\",\"巴黎時裝週以盛大壓軸活動圓滿落幕\",\"法國贏得世界盃\",\"法國南部的新考古發現\",\"一家法國科技新創公司募得數百萬資金\"]}"
]
},
{
"role": "assistant",
"content_text": "---\n以下是法國的最新新聞標題:\n1. 法國總統宣布新的經濟改革\n2. 巴黎時裝週以盛大壓軸落幕\n3. 法國贏得世界盃\n4. 法國南部有新的考古發現\n5. 法國科技新創公司獲得數百萬資金\n---",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000048_df453f6309fe
|
[
{
"type": "function",
"function": {
"name": "search_recipes",
"description": "Search for recipes based on given ingredients",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"ingredients\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The ingredients to be used in the recipe search\"},\"diet\":{\"type\":\"string\",\"description\":\"The dietary restriction for the recipes (e.g. vegetarian, vegan)\"},\"cuisine\":{\"type\":\"string\",\"description\":\"The cuisine type for the recipes (e.g. Italian, Mexican)\"}},\"required\":[\"ingredients\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我有一些番茄、洋蔥和大蒜。你可以幫我找一份食譜嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_recipes",
"parameters_json": "{\"ingredients\":[\"tomatoes\",\"onions\",\"garlic\"]}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"recipes\":[{\"name\":\"番茄與大蒜義大利麵\",\"ingredients\":[\"番茄\",\"大蒜\",\"洋蔥\",\"義大利麵\"],\"cuisine\":\"義大利語\",\"diet\":\"素食者\"},{\"name\":\"蒜味番茄湯\",\"ingredients\":[\"番茄\",\"大蒜\",\"洋蔥\"],\"cuisine\":\"美國人\",\"diet\":\"純素\"}]}"
]
},
{
"role": "assistant",
"content_text": "我為你找到幾道食譜。其中一道是番茄蒜香義大利麵,屬於義大利的素食料理。另一道是蒜味番茄湯,是美式的純素料理。你想試哪一道?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "番茄蒜香義大利麵聽起來不錯。你可以多跟我說一些嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,製作番茄蒜香義大利麵,你需要番茄、蒜頭、洋蔥和義大利麵。這是一道素食料理,屬於義大利料理。祝你烹飪愉快!",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000049_74543e7ec2a4
|
[
{
"type": "function",
"function": {
"name": "calculate_tip_split",
"description": "Calculate the individual tip amount for a bill split",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_amount\":{\"type\":\"number\",\"description\":\"The total amount of the bill\"},\"number_of_people\":{\"type\":\"integer\",\"description\":\"The number of people splitting the bill\"}},\"required\":[\"bill_amount\",\"number_of_people\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙分攤帳單。總金額是 $150,我們有 5 個人。如果我們要給 20% 的小費,你能算出每人應該給多少小費嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip_split",
"parameters_json": "{\"bill_amount\":150,\"number_of_people\":5}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"individual_tip_amount\":6}"
]
},
{
"role": "assistant",
"content_text": "每人應該付6美元作為小費,才能使帳單的小費總額達到20%。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000050_c9adf0e2d4cb
|
[
{
"type": "function",
"function": {
"name": "calculate_tip",
"description": "Calculate the tip amount based on the bill total and tip percentage",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_total\":{\"type\":\"number\",\"description\":\"The total amount of the bill\"},\"tip_percentage\":{\"type\":\"number\",\"description\":\"The percentage of the tip\"}},\"required\":[\"bill_total\",\"tip_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以幫我從紐約訂一張飛往倫敦的機票嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "很抱歉,但我無法協助預訂機票,因為那屬於外部任務,且我沒有為該任務提供相應的功能。我可以協助像計算帳單小費之類的任務。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000051_34f1e6336f9a
|
[
{
"type": "function",
"function": {
"name": "search_books",
"description": "Search for books based on title or author",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"string\",\"description\":\"The search query (title or author)\"}},\"required\":[\"query\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on the birthdate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birthdate\":{\"type\":\"string\",\"format\":\"date\",\"description\":\"The birthdate of the person\"}},\"required\":[\"birthdate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我正在尋找 J.K. Rowling 的書。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"query\":\"J.K. 羅琳\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"results\":[{\"title\":\"哈利·波特與賢者之石\",\"author\":\"J·K·羅琳\"},{\"title\":\"哈利波特與密室\",\"author\":\"J·K·羅琳\"},{\"title\":\"哈利波特與阿茲卡班的囚徒\",\"author\":\"J.K. 羅琳\"}]}"
]
},
{
"role": "assistant",
"content_text": "我找到幾本 J.K. 羅琳 的書。這裡有幾本:「哈利波特:神祕的魔法石」、「哈利波特:消失的密室」和「哈利波特:阿茲卡班的逃犯」。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!你也可以幫我找喬治 R.R. 馬丁的書嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_books",
"parameters_json": "{\"query\":\"喬治 R.R. 馬丁\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"results\":[{\"title\":\"冰與火之歌:權力遊戲\",\"author\":\"喬治 R.R. 馬丁\"},{\"title\":\"列王的紛爭\",\"author\":\"喬治 R.R. 馬丁\"},{\"title\":\"劍之風暴\",\"author\":\"喬治·R·R·馬丁\"}]}"
]
},
{
"role": "assistant",
"content_text": "我找到幾本 George R.R. Martin 的書。這裡有幾本:「A Game of Thrones」、「A Clash of Kings」以及「A Storm of Swords」。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000052_a33119d4d2dc
|
[
{
"type": "function",
"function": {
"name": "get_movie_details",
"description": "Get details about a movie",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the movie\"},\"year\":{\"type\":\"integer\",\"description\":\"The release year of the movie\"}},\"required\":[\"title\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the discount for a product",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the product\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The percentage discount to be applied\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以告訴我關於電影「Inception」的事嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"title\":\"Inception\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"---\\n全面啟動\\n---\",\"year\":2010,\"director\":\"克里斯多夫·諾蘭\",\"genre\":\"科幻\",\"rating\":8.8}"
]
},
{
"role": "assistant",
"content_text": "電影「Inception」於2010年上映。由Christopher Nolan執導,屬於科幻類型。評分為8.8。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "「The Dark Knight」怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"title\":\"The Dark Knight\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"黑暗騎士\",\"year\":2008,\"director\":\"克里斯多福·諾蘭\",\"genre\":\"動作、犯罪、劇情\",\"rating\":9.0}"
]
},
{
"role": "assistant",
"content_text": "《黑暗騎士》於2008年上映。由克里斯托弗·諾蘭執導,屬於動作、犯罪、劇情電影。評分為9.0。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "你可以告訴我1997年的《鐵達尼號》嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"title\":\"Titanic\",\"year\":1997}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"鐵達尼號\",\"year\":1997,\"director\":\"詹姆斯·卡麥隆\",\"genre\":\"劇情, 愛情\",\"rating\":7.8}"
]
},
{
"role": "assistant",
"content_text": "電影「鐵達尼號」於1997年上映。由詹姆斯·卡麥隆執導,是一部劇情、愛情電影。評分為7.8。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000053_c92cbc079039
|
[
{
"type": "function",
"function": {
"name": "calculate_mortgage",
"description": "Calculate the monthly mortgage payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"loan_amount\":{\"type\":\"number\",\"description\":\"The total amount of the loan\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The loan term in years\"}},\"required\":[\"loan_amount\",\"interest_rate\",\"loan_term\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算我的房貸付款。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請問您能提供貸款總金額、年利率,以及貸款年期(以年為單位)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,總貸款金額為 $300,000,年利率為 3.5%,貸款期限為 30 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_mortgage",
"parameters_json": "{\"loan_amount\":300000,\"interest_rate\":3.5,\"loan_term\":30}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":1342.05}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,估計您的每月房貸付款為 $1342.05。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000054_02e5361577f2
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on the birthdate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birthdate\":{\"type\":\"string\",\"format\":\"date\",\"description\":\"The birthdate of the person\"}},\"required\":[\"birthdate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以告訴我我幾歲嗎?我的出生日期是 1990-05-15。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"birthdate\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據你的出生日期,你是31歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000055_126f5543d9a1
|
[
{
"type": "function",
"function": {
"name": "calculate_mortgage",
"description": "Calculate the monthly mortgage payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"loan_amount\":{\"type\":\"number\",\"description\":\"The loan amount\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate\"},\"loan_term\":{\"type\":\"number\",\"description\":\"The loan term in years\"}},\"required\":[\"loan_amount\",\"interest_rate\",\"loan_term\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一些關於房貸計算的幫助。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫你。請問你可以提供貸款金額、年利率和貸款年限(以年為單位)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,貸款金額為 $200,000,年利率為 5%,貸款期限為 30 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_mortgage",
"parameters_json": "{\"loan_amount\":200000,\"interest_rate\":5,\"loan_term\":30}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":1073.64}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的每月房貸還款約為 $1073.64。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000056_74d16d904cef
|
[
{
"type": "function",
"function": {
"name": "calculate_bmi",
"description": "Calculate the Body Mass Index (BMI)",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"weight\":{\"type\":\"number\",\"description\":\"The weight in kilograms\"},\"height\":{\"type\":\"number\",\"description\":\"The height in meters\"}},\"required\":[\"weight\",\"height\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要計算我的 BMI。我的體重是 75 公斤,身高是 1.8 公尺。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_bmi",
"parameters_json": "{\"weight\":75,\"height\":1.8}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"bmi\":23.15}"
]
},
{
"role": "assistant",
"content_text": "你的身體質量指數(BMI)為 23.15。以你的身高來看,這屬於健康體重。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000057_1f32e0f94d4c
|
[
{
"type": "function",
"function": {
"name": "calculate BMI",
"description": "Calculate the body mass index",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"weight\":{\"type\":\"number\",\"description\":\"The weight of the person in kg\"},\"height\":{\"type\":\"number\",\"description\":\"The height of the person in meters\"}},\"required\":[\"weight\",\"height\"]}"
}
},
{
"type": "function",
"function": {
"name": "create_calendar_event",
"description": "Create a new calendar event",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the event\"},\"start_time\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The start time of the event\"},\"end_time\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"The end time of the event\"}},\"required\":[\"title\",\"start_time\",\"end_time\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我想計算我的 BMI。我體重 70 公斤,身高 1.75 公尺。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate BMI",
"parameters_json": "{\"weight\":70,\"height\":1.75}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"BMI\":22.86}"
]
},
{
"role": "assistant",
"content_text": "你的身體質量指數(BMI)為22.86。以你的身高來看,這屬於健康的體重。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000058_568d02d51513
|
[
{
"type": "function",
"function": {
"name": "get_current_time",
"description": "Get the current time in a specific time zone",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"time_zone\":{\"type\":\"string\",\"description\":\"The time zone to fetch the current time from\"}},\"required\":[\"time_zone\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_distance",
"description": "Calculate the distance between two locations",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"location1\":{\"type\":\"string\",\"description\":\"The first location\"},\"location2\":{\"type\":\"string\",\"description\":\"The second location\"}},\"required\":[\"location1\",\"location2\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "紐約現在是幾點?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_current_time",
"parameters_json": "{\"time_zone\":\"New York\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"current_time\":\"上午10:30\"}"
]
},
{
"role": "assistant",
"content_text": "紐約現在的時間是上午10:30。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那東京呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_current_time",
"parameters_json": "{\"time_zone\":\"Tokyo\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"current_time\":\"晚上11:30\"}"
]
},
{
"role": "assistant",
"content_text": "目前東京時間為晚上11:30。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000059_14b53f60ac3c
|
[
{
"type": "function",
"function": {
"name": "check_word_count",
"description": "Check the word count of a given text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to be checked\"}},\"required\":[\"text\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以告訴我這段文字有多少個單詞嗎? \"敏捷的棕色狐狸跳過懶惰的狗。\"",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.check_word_count",
"parameters_json": "{\"text\":\"那隻敏捷的棕色狐狸跳過那隻懶惰的狗。\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"word_count\":9}"
]
},
{
"role": "assistant",
"content_text": "您提供的文字包含 9 個單字。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那這個呢? \"人工智慧是未來.\"",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.check_word_count",
"parameters_json": "{\"text\":\"人工智慧是未來。\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"word_count\":5}"
]
},
{
"role": "assistant",
"content_text": "您提供的文字包含 5 個詞語。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那這個呢? \"哈囉,世界!\"",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.check_word_count",
"parameters_json": "{\"text\":\"哈囉,世界!\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"word_count\":2}"
]
},
{
"role": "assistant",
"content_text": "您提供的文字包含 2 個單字。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000060_f332e891d4f6
|
[
{
"type": "function",
"function": {
"name": "generate_random_color",
"description": "Generate a random color",
"parameters_json": "{}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以幫我一個忙嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然!我在這裡協助你。你需要什麼幫助?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "我需要你幫我預訂一張從紐約飛往倫敦的機票。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "抱歉,我無法執行像預訂機票等外部任務。我目前的功能僅限於生成隨機顏色。還有其他我可以幫忙的嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "喔,我懂了。那麼,你可以幫我產生一個隨機顏色嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_random_color",
"parameters_json": "{}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"color\":\"#a3c2f2\"}"
]
},
{
"role": "assistant",
"content_text": "好的,我已為你產生了一個隨機顏色。顏色代碼是 #a3c2f2。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000061_7b97c0d435c9
|
[
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the discount amount",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the item\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The discount percentage\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
},
{
"type": "function",
"function": {
"name": "generate_random_number",
"description": "Generate a random number within a specified range",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"min_value\":{\"type\":\"integer\",\"description\":\"The minimum value of the range\"},\"max_value\":{\"type\":\"integer\",\"description\":\"The maximum value of the range\"}},\"required\":[\"min_value\",\"max_value\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我看到一件我喜歡的洋裝。原價是 $200,但現在有 20% 的折扣。我可以省多少錢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":200,\"discount_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discount_amount\":40}"
]
},
{
"role": "assistant",
"content_text": "以目前的折扣,您在這件洋裝上將節省 $40。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000062_23452f979b22
|
[
{
"type": "function",
"function": {
"name": "calculate_distance",
"description": "Calculate the distance between two locations",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"origin\":{\"type\":\"string\",\"description\":\"The origin location\"},\"destination\":{\"type\":\"string\",\"description\":\"The destination location\"}},\"required\":[\"origin\",\"destination\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你能告訴我紐約和洛杉磯之間的距離嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_distance",
"parameters_json": "{\"origin\":\"New York\",\"destination\":\"Los Angeles\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"distance\":2448.5,\"units\":\"英里\"}"
]
},
{
"role": "assistant",
"content_text": "紐約和洛杉磯之間的距離約為2448.5英里。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那相當遠。倫敦到巴黎的距離是多少?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_distance",
"parameters_json": "{\"origin\":\"London\",\"destination\":\"Paris\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"distance\":214,\"units\":\"英里\"}"
]
},
{
"role": "assistant",
"content_text": "倫敦和巴黎之間的距離約為214英里。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000063_24faeb0f2a00
|
[
{
"type": "function",
"function": {
"name": "update_calendar",
"description": "Update a calendar with an event",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"event_title\":{\"type\":\"string\",\"description\":\"The title of the event\"},\"start_time\":{\"type\":\"string\",\"description\":\"The start time of the event\"},\"end_time\":{\"type\":\"string\",\"description\":\"The end time of the event\"}},\"required\":[\"event_title\",\"start_time\",\"end_time\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on date of birth",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"date_of_birth\":{\"type\":\"string\",\"description\":\"The date of birth in the format 'YYYY-MM-DD'\"}},\"required\":[\"date_of_birth\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要把一個活動加入我的行事曆。這是一場與團隊的會議,日期是3月15日,時間從上午10點到中午12點。標題應為 \"團隊會議\"。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.update_calendar",
"parameters_json": "{\"event_title\":\"Team Meeting\",\"start_time\":\"15th March, 10 AM\",\"end_time\":\"15th March, 12 PM\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"活動「團隊會議」已於3月15日上午10點至中午12點成功新增至您的行事曆。\"}"
]
},
{
"role": "assistant",
"content_text": "活動「Team Meeting」已成功新增至您的行事曆,日期為3月15日,時間為上午10點至中午12點。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000064_c8502e2cb8b4
|
[
{
"type": "function",
"function": {
"name": "calculate_tip",
"description": "Calculate the tip amount based on the bill amount and tip percentage",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_amount\":{\"type\":\"number\",\"description\":\"The total bill amount\"},\"tip_percentage\":{\"type\":\"number\",\"description\":\"The tip percentage\"}},\"required\":[\"bill_amount\",\"tip_percentage\"]}"
}
},
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on birthdate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birthdate\":{\"type\":\"string\",\"description\":\"The birthdate of the person\"}},\"required\":[\"birthdate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算帳單的小費。總帳單金額是 $100,我想給 15% 的小費。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip",
"parameters_json": "{\"bill_amount\":100,\"tip_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tip_amount\":15}"
]
},
{
"role": "assistant",
"content_text": "您的帳單小費金額為 $15。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000065_ca6d91256f99
|
[
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the discounted price of a product",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the product\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The percentage discount to be applied\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我看到一件我很喜歡的洋裝。原價是 $200,但現在有 20% 的折扣。你可以告訴我折扣後多少錢嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":200,\"discount_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":160}"
]
},
{
"role": "assistant",
"content_text": "套用20%折扣後,這件洋裝將花費你 $160。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000066_a2abe05e6e5c
|
[
{
"type": "function",
"function": {
"name": "get_random_joke",
"description": "Get a random joke",
"parameters_json": "{}"
}
}
] |
[
{
"role": "user",
"content_text": "我有點情緒低落。你可以講個笑話來逗我開心嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_random_joke",
"parameters_json": "{}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"joke\":\"為什麼科學家不相信原子? 因為它們構成一切!\"}"
]
},
{
"role": "assistant",
"content_text": "當然,這裡有個笑話給你:「為什麼科學家不信任原子?因為它們會編造一切!」希望這能讓你會心一笑。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000067_857fd442ed6f
|
[
{
"type": "function",
"function": {
"name": "generate_qrcode",
"description": "Generate a QR code for a given input",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"string\",\"description\":\"The data to encode in the QR code\"}},\"required\":[\"data\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要為我的網站製作一個 QR 碼。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請問可以提供您網站的 URL 嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "是的,這是 www.mywebsite.com。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_qrcode",
"parameters_json": "{\"data\":\"www.mywebsite.com\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"QR 碼已成功產生\",\"data\":{\"qrcode\":\"base64_encoded_qrcode\"}}"
]
},
{
"role": "assistant",
"content_text": "您的 QR 碼已成功產生。您可以從所提供的連結下載。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000068_5e0e68aa0689
|
[
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current stock price",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"symbol\":{\"type\":\"string\",\"description\":\"The stock symbol, e.g. AAPL\"}},\"required\":[\"symbol\"]}"
}
},
{
"type": "function",
"function": {
"name": "convert_currency",
"description": "Convert one currency to another",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"amount\":{\"type\":\"number\",\"description\":\"The amount to convert\"},\"from\":{\"type\":\"string\",\"description\":\"The currency to convert from\"},\"to\":{\"type\":\"string\",\"description\":\"The currency to convert to\"}},\"required\":[\"amount\",\"from\",\"to\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "AAPL 目前的股價是多少?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"symbol\":\"AAPL\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"price\":150.75}"
]
},
{
"role": "assistant",
"content_text": "目前 AAPL 的股價是 $150.75。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那 MSFT 呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"symbol\":\"MSFT\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"price\":210.22}"
]
},
{
"role": "assistant",
"content_text": "MSFT 目前的股價為 $210.22。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那 GOOGL 呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_stock_price",
"parameters_json": "{\"symbol\":\"GOOGL\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"price\":2800.12}"
]
},
{
"role": "assistant",
"content_text": "目前 GOOGL 的股價為 $2800.12。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000069_3b225fa13891
|
[
{
"type": "function",
"function": {
"name": "create_task",
"description": "Create a new task or to-do item",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the task\"},\"description\":{\"type\":\"string\",\"description\":\"The description of the task\"},\"due_date\":{\"type\":\"string\",\"format\":\"date\",\"description\":\"The due date of the task\"}},\"required\":[\"title\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要建立一個新任務。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請問你可以提供該任務的標題、描述和截止日期嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "標題是「準備簡報」,描述是「為即將到來的會議準備一場關於人工智慧的簡報」,到期日是「2022-05-15」。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.create_task",
"parameters_json": "{\"title\":\"Prepare Presentation\",\"description\":\"Prepare a presentation on AI for the upcoming conference\",\"due_date\":\"2022-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"任務「準備簡報」已成功建立,截止日期為 2022-05-15\"}"
]
},
{
"role": "assistant",
"content_text": "任務「準備簡報」已成功建立,截止日期設定為 2022 年 5 月 15 日。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000070_b9370f86de13
|
[
{
"type": "function",
"function": {
"name": "calculate_sales_tax",
"description": "Calculate the sales tax on a purchase",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"purchase_amount\":{\"type\":\"number\",\"description\":\"The total amount of the purchase\"},\"tax_rate\":{\"type\":\"number\",\"description\":\"The tax rate as a percentage\"}},\"required\":[\"purchase_amount\",\"tax_rate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我剛買了一台新的筆記型電腦,價格為 $1500。如果稅率是 7%,你可以幫我算出我需要支付多少銷售稅嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_sales_tax",
"parameters_json": "{\"purchase_amount\":1500,\"tax_rate\":7}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"sales_tax\":105}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的購買金額和稅率,您需要支付的銷售稅為 $105。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000071_70298f3c623b
|
[
{
"type": "function",
"function": {
"name": "encrypt_text",
"description": "Encrypt a text using a specified encryption algorithm",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to encrypt\"},\"algorithm\":{\"type\":\"string\",\"description\":\"The encryption algorithm to use\"}},\"required\":[\"text\",\"algorithm\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要加密一段文字。你可以幫我嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫你處理這件事。你能提供想要加密的文字以及想使用的加密演算法嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "該文字是 \"Hello World\",我想使用 AES 加密演算法。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.encrypt_text",
"parameters_json": "{\"text\":\"哈囉 世界\",\"algorithm\":\"AES\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"encrypted_text\":\"U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=\"}"
]
},
{
"role": "assistant",
"content_text": "使用 AES 加密演算法加密的文字是 \"U2FsdGVkX1+vupppZksvRf5pq5g5XjFRIipRkwB0K1Y=\".",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000072_a266a3181baa
|
[
{
"type": "function",
"function": {
"name": "calculate_tax",
"description": "Calculate tax amount based on income",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"income\":{\"type\":\"number\",\"description\":\"The annual income\"},\"tax_rate\":{\"type\":\"number\",\"description\":\"The tax rate in percentage\"}},\"required\":[\"income\",\"tax_rate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算我的稅。我的年收入是 $70,000,稅率是 20%。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tax",
"parameters_json": "{\"income\":70000,\"tax_rate\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tax_amount\":14000}"
]
},
{
"role": "assistant",
"content_text": "根據你每年 $70,000 的收入與 20% 的稅率,你計算出的稅額為 $14,000。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000073_79282a5e163a
|
[
{
"type": "function",
"function": {
"name": "calculate_area",
"description": "Calculate the area of a shape",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"shape\":{\"type\":\"string\",\"description\":\"The name of the shape (e.g. circle, square, triangle)\"},\"dimensions\":{\"type\":\"object\",\"properties\":{\"radius\":{\"type\":\"number\",\"description\":\"The radius of the circle\"},\"side_length\":{\"type\":\"number\",\"description\":\"The side length of the square\"},\"base\":{\"type\":\"number\",\"description\":\"The base of the triangle\"},\"height\":{\"type\":\"number\",\"description\":\"The height of the triangle\"}},\"required\":[\"radius\",\"side_length\",\"base\",\"height\"]}},\"required\":[\"shape\",\"dimensions\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我有一個半徑為 5 的圓。你可以幫我算出面積嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"circle\",\"dimensions\":{\"radius\":5}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":78.54}"
]
},
{
"role": "assistant",
"content_text": "半徑為 5 的圓的面積約為 78.54 平方單位。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!現在我還有一個邊長為4的正方形。你能算出這個正方形的面積嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"square\",\"dimensions\":{\"side_length\":4}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":16}"
]
},
{
"role": "assistant",
"content_text": "邊長為 4 的正方形面積為 16 平方單位。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!最後,我有一個底為 6、高為 3 的三角形。你可以幫我計算這個三角形的面積嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"triangle\",\"dimensions\":{\"base\":6,\"height\":3}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":9}"
]
},
{
"role": "assistant",
"content_text": "底為6、高為3的三角形面積為9平方單位。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000074_7d0ebb7d4398
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on the birthdate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birthdate\":{\"type\":\"string\",\"description\":\"The birthdate in YYYY-MM-DD format\"}},\"required\":[\"birthdate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我出生於1990-05-15。你可以告訴我今天我幾歲嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"birthdate\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據你提供的出生日期,你今天已滿31歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000075_f27f69ec5fe1
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on birthdate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birthdate\":{\"type\":\"string\",\"format\":\"date\",\"description\":\"The birthdate of the person\"}},\"required\":[\"birthdate\"]}"
}
},
{
"type": "function",
"function": {
"name": "get_stock_price",
"description": "Get the current stock price of a company",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"company\":{\"type\":\"string\",\"description\":\"The name of the company\"}},\"required\":[\"company\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我出生於1990-05-15。你可以告訴我我今天幾歲嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"birthdate\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據我的計算,你今天31歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000076_2b42d81e44b9
|
[
{
"type": "function",
"function": {
"name": "generate_random_number",
"description": "Generate a random number within a range",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"min\":{\"type\":\"number\",\"description\":\"The minimum value of the range\"},\"max\":{\"type\":\"number\",\"description\":\"The maximum value of the range\"}},\"required\":[\"min\",\"max\"]}"
}
},
{
"type": "function",
"function": {
"name": "get_recipe",
"description": "Get a recipe based on given ingredients",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"ingredients\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The list of ingredients available\"}},\"required\":[\"ingredients\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要一個介於 1 到 100 之間的隨機數字。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_random_number",
"parameters_json": "{\"min\":1,\"max\":100}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"result\":42}"
]
},
{
"role": "assistant",
"content_text": "在 1 到 100 之間產生的隨機數是 42。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "你能再產生一個隨機數字,但這次介於 500 到 1000 之間嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_random_number",
"parameters_json": "{\"min\":500,\"max\":1000}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"result\":789}"
]
},
{
"role": "assistant",
"content_text": "在 500 到 1000 之間隨機產生的數字是 789.",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000077_7ae78999ba6e
|
[
{
"type": "function",
"function": {
"name": "search_movies",
"description": "Search for movies by title",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the movie\"},\"year\":{\"type\":\"integer\",\"description\":\"The year of release of the movie\"}},\"required\":[\"title\"]}"
}
},
{
"type": "function",
"function": {
"name": "analyze_customer_sentiment",
"description": "Analyze the sentiment of customer reviews for a product",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"product_name\":{\"type\":\"string\",\"description\":\"The name of the product\"}},\"required\":[\"product_name\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你能找到一部名為《全面啟動》(Inception)的電影嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"title\":\"Inception\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"data\":{\"title\":\"開端\",\"year\":2010,\"director\":\"克里斯多福·諾蘭\",\"genre\":\"科幻, 驚悚\"}}"
]
},
{
"role": "assistant",
"content_text": "電影「Inception」於2010年上映。它是一部由克里斯多福·諾蘭執導的科幻、驚悚片。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那《黑暗騎士》呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"title\":\"The Dark Knight\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"data\":{\"title\":\"黑暗騎士\",\"year\":2008,\"director\":\"克里斯多福·諾蘭\",\"genre\":\"動作, 犯罪, 劇情\"}}"
]
},
{
"role": "assistant",
"content_text": "\"黑暗騎士\" 是一部2008年上映的動作、犯罪、劇情電影,由克里斯托弗·諾蘭執導。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "你能找到一部於1997年上映、名為《鐵達尼號》的電影嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"title\":\"Titanic\",\"year\":1997}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"data\":{\"title\":\"鐵達尼號\",\"year\":1997,\"director\":\"詹姆斯·卡麥隆\",\"genre\":\"劇情, 愛情\"}}"
]
},
{
"role": "assistant",
"content_text": "是的,電影《鐵達尼號》於1997年上映。這是一部由詹姆斯·卡麥隆執導的劇情、愛情片。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000078_e9909bdcac31
|
[
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the discounted price given the original price and discount percentage",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The discount percentage\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我看到一件我喜歡的外套,標價 $200,但現在有 15% 的折扣。折扣後要多少錢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":200,\"discount_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":170}"
]
},
{
"role": "assistant",
"content_text": "這件夾克在享有15%折扣後要價$170。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那真划算!如果折扣是25%呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":200,\"discount_percentage\":25}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":150}"
]
},
{
"role": "assistant",
"content_text": "如果折扣為25%,這件夾克將花費你150美元。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000079_0b96813b1ff4
|
[
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the final price after applying a discount",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the item\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The percentage discount to be applied\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在一家店看到一件我喜歡的洋裝。標價為 $100,他們提供 20% 的折扣。你可以告訴我折扣後我需要付多少嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":100,\"discount_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"final_price\":80}"
]
},
{
"role": "assistant",
"content_text": "套用20%折扣後,這件洋裝的最終價格為 $80。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000080_a1dcb0931c39
|
[
{
"type": "function",
"function": {
"name": "calculate_distance",
"description": "Calculate the distance between two locations",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"origin\":{\"type\":\"string\",\"description\":\"The starting location\"},\"destination\":{\"type\":\"string\",\"description\":\"The destination location\"}},\"required\":[\"origin\",\"destination\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要知道紐約和洛杉磯之間的距離。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_distance",
"parameters_json": "{\"origin\":\"New York\",\"destination\":\"Los Angeles\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"distance\":2448.2,\"units\":\"英里\"}"
]
},
{
"role": "assistant",
"content_text": "紐約與洛杉磯之間的距離約為2448.2英里。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那相當遠。紐約到芝加哥的距離呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_distance",
"parameters_json": "{\"origin\":\"New York\",\"destination\":\"Chicago\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"distance\":791.8,\"units\":\"英里\"}"
]
},
{
"role": "assistant",
"content_text": "紐約與芝加哥之間的距離約為 791.8 英里。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000081_78d4c48aac1f
|
[
{
"type": "function",
"function": {
"name": "calculate_loan_payment",
"description": "Calculate the monthly loan payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"loan_amount\":{\"type\":\"number\",\"description\":\"The loan amount\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The loan term in years\"}},\"required\":[\"loan_amount\",\"interest_rate\",\"loan_term\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一些關於我的貸款的幫助。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然可以!我可以幫你計算每月的貸款還款金額。請問可以提供貸款金額、年利率和貸款年限(以年為單位)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,貸款金額為 $50000,年利率為 5%,貸款期限為 10 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_loan_payment",
"parameters_json": "{\"loan_amount\":50000,\"interest_rate\":5,\"loan_term\":10}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":530.33}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的每月貸款應付金額約為 $530.33。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000082_071c19df04c7
|
[
{
"type": "function",
"function": {
"name": "get_news_headlines",
"description": "Get the latest news headlines",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"country\":{\"type\":\"string\",\"description\":\"The country for which to fetch news headlines\"}},\"required\":[\"country\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,你可以幫我取得美國的最新新聞頭條嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_news_headlines",
"parameters_json": "{\"country\":\"美國\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"headlines\":[\"總統簽署新法案成為法律\",\"股市大幅上漲\",\"東海岸預計將有強烈風暴\",\"新創科技公司募集數百萬資金\"]}"
]
},
{
"role": "assistant",
"content_text": "---\n以下是美國的最新新聞標題:\n1. 總統簽署新法案成為法律\n2. 股市出現顯著漲幅\n3. 東海岸預計有重大風暴\n4. 新創科技公司募得數百萬資金\n---",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那很有趣。你現在可以幫我取得加拿大的新聞嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_news_headlines",
"parameters_json": "{\"country\":\"加拿大\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"headlines\":[\"首相宣布新的環境政策\",\"冰球隊贏得全國冠軍\",\"加幣對美元走強\",\"知名藝術家將在多倫多舉辦展覽\"]}"
]
},
{
"role": "assistant",
"content_text": "以下是加拿大的最新新聞標題:\n1. 總理宣布新的環境政策\n2. 冰球隊贏得全國冠軍\n3. 加拿大元兌美元走強\n4. 知名藝術家將在多倫多舉辦展覽",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000083_51a851a03e55
|
[
{
"type": "function",
"function": {
"name": "calculate_bmi",
"description": "Calculate the Body Mass Index (BMI) of an individual",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"weight\":{\"type\":\"number\",\"description\":\"The weight of the individual in kilograms\"},\"height\":{\"type\":\"number\",\"description\":\"The height of the individual in meters\"}},\"required\":[\"weight\",\"height\"]}"
}
},
{
"type": "function",
"function": {
"name": "get_recipe",
"description": "Get a recipe based on user's preferences",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"cuisine\":{\"type\":\"string\",\"description\":\"The cuisine type, e.g. Italian, Chinese\"},\"diet\":{\"type\":\"string\",\"description\":\"The dietary restrictions, e.g. vegetarian, gluten-free\"},\"ingredients\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"The ingredients available\"}},\"required\":[\"cuisine\",\"ingredients\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我想計算我的BMI。我體重70公斤,身高1.75公尺。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_bmi",
"parameters_json": "{\"weight\":70,\"height\":1.75}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"bmi\":22.86}"
]
},
{
"role": "assistant",
"content_text": "你的身體質量指數(BMI)為 22.86。這對你的身高而言屬於健康體重。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000084_aff355413d93
|
[
{
"type": "function",
"function": {
"name": "search_movies",
"description": "Search for movies based on title or keywords",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"string\",\"description\":\"The title or keywords to search for\"}},\"required\":[\"query\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在找今晚要看的電影。你能根據關鍵字「冒險」推薦幾部嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"query\":\"冒險\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"results\":[{\"title\":\"印第安納·瓊斯:奪寶奇兵\",\"year\":1981},{\"title\":\"魔戒首部曲:魔戒現身\",\"year\":2001},{\"title\":\"神鬼奇航:鬼盜船的詛咒\",\"year\":2003}]}"
]
},
{
"role": "assistant",
"content_text": "根據你對「冒險」類型的偏好,這裡有一些建議: \n1. \"Indiana Jones: Raiders of the Lost Ark\" 來自1981年\n2. \"The Lord of the Rings: The Fellowship of the Ring\" 來自2001年\n3. \"Pirates of the Caribbean: The Curse of the Black Pearl\" 來自2003年",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!你能幫我找更多像《魔戒》(The Lord of the Rings)這樣的電影嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_movies",
"parameters_json": "{\"query\":\"魔戒\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"results\":[{\"title\":\"---\\n魔戒二部曲:雙城奇謀\\n---\",\"year\":2002},{\"title\":\"魔戒:王者再臨\",\"year\":2003},{\"title\":\"---\\n哈比人: 意外旅程\\n---\",\"year\":2012}]}"
]
},
{
"role": "assistant",
"content_text": "如果你喜歡 \"魔戒首部曲:魔戒現身\",你也可能會喜歡:\n1. \"魔戒二部曲:雙城奇謀\"(2002年)\n2. \"魔戒三部曲:王者再臨\"(2003年)\n3. \"哈比人:意外旅程\"(2012年)",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000085_ced9358ed324
|
[
{
"type": "function",
"function": {
"name": "get_movie_details",
"description": "Get details of a movie",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the movie\"},\"year\":{\"type\":\"integer\",\"description\":\"The year of release\"}},\"required\":[\"title\",\"year\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以告訴我關於2010年上映的電影 \"Inception\" 嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.get_movie_details",
"parameters_json": "{\"title\":\"Inception\",\"year\":2010}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"title\":\"開端\",\"year\":2010,\"director\":\"克里斯多福·諾蘭\",\"genre\":\"科幻小說\",\"rating\":8.8,\"cast\":[\"李奧納多·迪卡普里奧\",\"Joseph Gordon-Levitt\",\"艾倫·佩吉\"],\"plot\":\"一名透過夢境共享技術竊取企業機密的小偷,被賦予了相反的任務:在一位執行長的腦海中植入一個想法。\"}"
]
},
{
"role": "assistant",
"content_text": "電影 \"全面啟動\" 於2010年上映。由克里斯托弗·諾蘭執導,屬於科幻類型。評分為8.8。主要演員包括李奧納多·狄卡皮歐、約瑟夫·高登-萊維特和艾倫·佩姬。劇情圍繞一名利用共享夢境科技竊取企業機密的竊賊展開,他被賦予相反的任務──向一位執行長的腦中植入一個想法。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000086_6d51ea8456af
|
[
{
"type": "function",
"function": {
"name": "calculate_area",
"description": "Calculate the area of a shape",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"shape\":{\"type\":\"string\",\"description\":\"The type of shape (circle, square, rectangle, triangle)\"},\"dimensions\":{\"type\":\"object\",\"properties\":{\"radius\":{\"type\":\"number\",\"description\":\"The radius of the circle\"},\"side\":{\"type\":\"number\",\"description\":\"The length of a side (for square)\"},\"length\":{\"type\":\"number\",\"description\":\"The length of the rectangle\"},\"width\":{\"type\":\"number\",\"description\":\"The width of the rectangle\"},\"base\":{\"type\":\"number\",\"description\":\"The base of the triangle\"},\"height\":{\"type\":\"number\",\"description\":\"The height of the triangle\"}}}},\"required\":[\"shape\",\"dimensions\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要計算半徑為 5 單位的圓的面積。你可以幫我嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"circle\",\"dimensions\":{\"radius\":5}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":78.54}"
]
},
{
"role": "assistant",
"content_text": "半徑為 5 單位的圓的面積約為 78.54 平方單位。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太好了!現在我有一個長為 10 單位、寬為 6 單位的矩形。它的面積是多少?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_area",
"parameters_json": "{\"shape\":\"rectangle\",\"dimensions\":{\"length\":10,\"width\":6}}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"area\":60}"
]
},
{
"role": "assistant",
"content_text": "長為10單位、寬為6單位的矩形面積是60平方單位。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000087_033735766810
|
[
{
"type": "function",
"function": {
"name": "generate_random_password",
"description": "Generate a random password",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"length\":{\"type\":\"integer\",\"minimum\":8,\"description\":\"The length of the password\"},\"include_symbols\":{\"type\":\"boolean\",\"description\":\"Include symbols in the password\"}},\"required\":[\"length\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "你可以幫我訂一個披薩嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "很抱歉,但我無法協助那件事。我目前的功能僅限於產生隨機密碼。我沒有辦法執行像訂披薩這類的外部任務。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000088_b6fa96fa9d06
|
[
{
"type": "function",
"function": {
"name": "search_files",
"description": "Search for files based on name or extension",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"The name of the file\"},\"extension\":{\"type\":\"string\",\"description\":\"The extension of the file\"},\"size\":{\"type\":\"integer\",\"description\":\"The size of the file in bytes\"}},\"required\":[]}"
}
}
] |
[
{
"role": "user",
"content_text": "我正在尋找名為 \"project\" 的檔案。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_files",
"parameters_json": "{\"name\":\"project\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"files\":[{\"name\":\"專案.docx\",\"extension\":\"docx\",\"size\":102400},{\"name\":\"專案.pdf\",\"extension\":\"PDF 檔案\",\"size\":204800}]}"
]
},
{
"role": "assistant",
"content_text": "我找到兩個名為 \"project\" 的檔案。一個是 .docx 檔案,大小為 102400 位元組,另一個是 .pdf 檔案,大小為 204800 位元組。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "你能找到任何 .ppt 檔案嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_files",
"parameters_json": "{\"extension\":\"ppt\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"files\":[{\"name\":\"簡報.ppt\",\"extension\":\"簡報\",\"size\":307200}]}"
]
},
{
"role": "assistant",
"content_text": "我找到一個名為 \"presentation.ppt\" 的 .ppt 檔案,大小為 307200 位元組。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "超過 500000 位元組的檔案怎麼辦?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.search_files",
"parameters_json": "{\"size\":500000}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"files\":[{\"name\":\"大檔案.mp4\",\"extension\":\"mp4\",\"size\":1048576}]}"
]
},
{
"role": "assistant",
"content_text": "我發現一個大於 500000 位元組的檔案。它是一個 .mp4 檔案,名稱為 \"bigfile.mp4\",大小為 1048576 位元組。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000089_dcd20f4d259d
|
[
{
"type": "function",
"function": {
"name": "calculate_shipping_cost",
"description": "Calculate the shipping cost for a package",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"weight\":{\"type\":\"number\",\"description\":\"The weight of the package in kilograms\"},\"destination\":{\"type\":\"string\",\"description\":\"The destination address\"}},\"required\":[\"weight\",\"destination\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要把一個包裹寄到紐約。它大約重 5 公斤。你可以告訴我這樣要多少運費嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_shipping_cost",
"parameters_json": "{\"weight\":5,\"destination\":\"New York\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"cost\":25.0}"
]
},
{
"role": "assistant",
"content_text": "將您的包裹寄到紐約的運費為 $25.00。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "這很合理。如果包裹重10公斤呢?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_shipping_cost",
"parameters_json": "{\"weight\":10,\"destination\":\"New York\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"cost\":45.0}"
]
},
{
"role": "assistant",
"content_text": "將一個10公斤的包裹寄往紐約的運費為$45.00。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000090_559bbc69b63b
|
[
{
"type": "function",
"function": {
"name": "create_todo",
"description": "Create a new todo item",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"task\":{\"type\":\"string\",\"description\":\"The task description\"},\"priority\":{\"type\":\"string\",\"description\":\"The priority of the task (e.g. high, medium, low)\"}},\"required\":[\"task\",\"priority\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要在我的待辦清單中建立一個新任務。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請問你可以告訴我任務描述以及它的優先等級嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "這項任務是購買雜貨,且優先級很高。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.create_todo",
"parameters_json": "{\"task\":\"buy groceries\",\"priority\":\"high\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"優先權為 '高' 的任務 '買雜貨' 已成功新增到你的待辦清單。\"}"
]
},
{
"role": "assistant",
"content_text": "任務 'buy groceries',優先級 'high' 已成功加入您的待辦清單。還有其他您想要新增的事項嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "是的,我也需要新增另一個任務,打電話叫水管工。這是一個中等優先的任務。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.create_todo",
"parameters_json": "{\"task\":\"call the plumber\",\"priority\":\"medium\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"具有 'medium' 優先順序的任務 'call the plumber' 已成功新增至您的待辦清單。\"}"
]
},
{
"role": "assistant",
"content_text": "任務 'call the plumber',優先級 'medium',已成功新增到您的待辦清單。您還有其他要新增的任務嗎?",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000091_c0a503ddb9be
|
[
{
"type": "function",
"function": {
"name": "calculate_tip",
"description": "Calculate the amount to tip at a restaurant",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_amount\":{\"type\":\"number\",\"description\":\"The total bill amount\"},\"tip_percentage\":{\"type\":\"number\",\"description\":\"The tip percentage to apply\"}},\"required\":[\"bill_amount\",\"tip_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算小費。我的帳單金額是 $85,我想要留下 15% 的小費。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip",
"parameters_json": "{\"bill_amount\":85,\"tip_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tip_amount\":12.75}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的帳單金額與小費百分比,您應留下的小費金額為 $12.75。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000092_55577b1ef9a3
|
[
{
"type": "function",
"function": {
"name": "generate_qr_code",
"description": "Generate a QR code for a given text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to be encoded in the QR code\"}},\"required\":[\"text\"]}"
}
},
{
"type": "function",
"function": {
"name": "get_news",
"description": "Get the latest news",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"category\":{\"type\":\"string\",\"description\":\"The category of news to fetch\"},\"country\":{\"type\":\"string\",\"description\":\"The country from which to fetch news\"}},\"required\":[\"category\",\"country\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要一個用於我的網站的 QR 碼。你可以幫我嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫你。請問你可以提供你網站的網址嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "當然,我的網站網址是 www.mywebsite.com.",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_qr_code",
"parameters_json": "{\"text\":\"www.mywebsite.com\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"qr_code\":\"QR_CODE_IMAGE_DATA\"}"
]
},
{
"role": "assistant",
"content_text": "我已為您的網站產生了 QR 碼。您可以使用此連結下載: [QR_CODE_IMAGE_DATA].",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000093_4e73e0975aa7
|
[
{
"type": "function",
"function": {
"name": "create_note",
"description": "Create a new note",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"The title of the note\"},\"content\":{\"type\":\"string\",\"description\":\"The content of the note\"}},\"required\":[\"title\",\"content\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我需要為明天的會議建立一份筆記。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。你想要這則筆記的標題是什麼?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "讓我們把標題定為「團隊會議議程」。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "太好了!您想在筆記中包含哪些內容?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "討論第一季銷售表現、規劃第二季、檢視行銷策略",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.create_note",
"parameters_json": "{\"title\":\"Team Meeting Agenda\",\"content\":\"Discuss Q1 sales performance, Plan for Q2, Review marketing strategies\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"成功\",\"message\":\"筆記已成功建立\"}"
]
},
{
"role": "assistant",
"content_text": "您標題為「團隊會議議程」的筆記已成功建立。該筆記的內容為「討論第一季銷售績效、規劃第二季、檢視行銷策略」。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000094_b3385c6d8a17
|
[
{
"type": "function",
"function": {
"name": "calculate_discount",
"description": "Calculate the discounted price",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the item\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The discount percentage\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
},
{
"type": "function",
"function": {
"name": "play_music",
"description": "Play music based on user's preferences",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"genre\":{\"type\":\"string\",\"description\":\"The preferred genre of music\"},\"mood\":{\"type\":\"string\",\"description\":\"The user's current mood\"}},\"required\":[\"genre\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我看到一件我喜歡的洋裝。原價是 $100,但現在有 20% 的折扣。你可以告訴我折扣後會是多少錢嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":100,\"discount_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":80}"
]
},
{
"role": "assistant",
"content_text": "這件洋裝在20%折扣後要價$80。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "那是個不錯的交易。那雙原價 $75 現在有 15% 的折扣,怎麼樣?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discount",
"parameters_json": "{\"original_price\":75,\"discount_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":63.75}"
]
},
{
"role": "assistant",
"content_text": "這雙鞋在 15% 折扣後的價格為 $63.75。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000095_f66ad64bb30f
|
[
{
"type": "function",
"function": {
"name": "calculate_discounted_price",
"description": "Calculate the discounted price of a product",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"original_price\":{\"type\":\"number\",\"description\":\"The original price of the product\"},\"discount_percentage\":{\"type\":\"number\",\"description\":\"The percentage of discount on the product\"}},\"required\":[\"original_price\",\"discount_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "我在一家店看到一件我喜歡的洋裝。原價是 $200,但有 20% 的折扣。你可以告訴我折扣後會是多少嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_discounted_price",
"parameters_json": "{\"original_price\":200,\"discount_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"discounted_price\":160}"
]
},
{
"role": "assistant",
"content_text": "你喜歡的洋裝在享有 20% 折扣後會花你 $160。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000096_ad0fadd6c86b
|
[
{
"type": "function",
"function": {
"name": "calculate_loan_payment",
"description": "Calculate the monthly loan payment",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"loan_amount\":{\"type\":\"number\",\"description\":\"The amount of the loan\"},\"interest_rate\":{\"type\":\"number\",\"description\":\"The annual interest rate\"},\"loan_term\":{\"type\":\"integer\",\"description\":\"The term of the loan in years\"}},\"required\":[\"loan_amount\",\"interest_rate\",\"loan_term\"]}"
}
},
{
"type": "function",
"function": {
"name": "analyze_sentiment",
"description": "Analyze the sentiment of a text",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"The text to be analyzed\"},\"language\":{\"type\":\"string\",\"description\":\"The language of the text\"}},\"required\":[\"text\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要協助計算我的貸款還款金額。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,我可以幫忙。請問您可以提供貸款金額、年利率,以及貸款期限(以年為單位)嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "好的,貸款金額為 $200,000,利率為 3.5%,貸款年限為 30 年。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_loan_payment",
"parameters_json": "{\"loan_amount\":200000,\"interest_rate\":3.5,\"loan_term\":30}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"monthly_payment\":\"$898.09\"}"
]
},
{
"role": "assistant",
"content_text": "根據您提供的資訊,您的每月貸款還款金額為 $898.09。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000097_b80357d58e28
|
[
{
"type": "function",
"function": {
"name": "play_music",
"description": "Play music based on user's preferences",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"genre\":{\"type\":\"string\",\"description\":\"The genre of music to play\"},\"mood\":{\"type\":\"string\",\"description\":\"The mood for the music\"}}}"
}
}
] |
[
{
"role": "user",
"content_text": "我今天有點心情低落。你可以為我播放一些振奮人心的音樂嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.play_music",
"parameters_json": "{\"genre\":\"pop\",\"mood\":\"uplifting\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"status\":\"---\\n成功\\n---\",\"message\":\"---\\n現在播放振奮人心的流行音樂\\n---\"}"
]
},
{
"role": "assistant",
"content_text": "我正好有個適合你的東西。現在播放一些令人振奮的流行音樂。希望它能讓你的一天變得更加美好!",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "太完美了,謝謝你!",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "不客氣!如果你還需要其他協助,請告訴我。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000098_0b8792d3ef69
|
[
{
"type": "function",
"function": {
"name": "calculate_tip",
"description": "Calculate the tip amount",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"bill_amount\":{\"type\":\"number\",\"description\":\"The total bill amount\"},\"tip_percentage\":{\"type\":\"number\",\"description\":\"The tip percentage\"}},\"required\":[\"bill_amount\",\"tip_percentage\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要幫忙計算小費。我的帳單金額是 $50,我想留下 15% 的小費。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip",
"parameters_json": "{\"bill_amount\":50,\"tip_percentage\":15}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tip_amount\":7.5}"
]
},
{
"role": "assistant",
"content_text": "一張 $50 的帳單,在 15% 的小費率下,小費金額是 $7.5。",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "謝謝!那很有幫助。現在我有另一筆 $120 的帳單,我想留下 20% 的小費。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_tip",
"parameters_json": "{\"bill_amount\":120,\"tip_percentage\":20}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"tip_amount\":24}"
]
},
{
"role": "assistant",
"content_text": "當帳單為 $120 且小費率為 20% 時,小費為 $24。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000099_13133bbd0c88
|
[
{
"type": "function",
"function": {
"name": "generate_qr_code",
"description": "Generate a QR code for a given input",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"input\":{\"type\":\"string\",\"description\":\"The input for which the QR code needs to be generated\"}},\"required\":[\"input\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我需要為我的網站製作一個 QR 碼。",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "當然,請問您可以提供您網站的網址嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "user",
"content_text": "是的,這是 www.mywebsite.com.",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.generate_qr_code",
"parameters_json": "{\"input\":\"www.mywebsite.com\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"output\":\"QR code generated successfully. You can download it from www.qr-code-generator.com/qr-code/mywebsite.com\"}"
]
},
{
"role": "assistant",
"content_text": "您的 QR 碼已成功產生。您可以從 [此連結](www.qr-code-generator.com/qr-code/mywebsite.com) 下載它。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
ex_0000100_9b4ad2b8a8fe
|
[
{
"type": "function",
"function": {
"name": "calculate_age",
"description": "Calculate the age based on birthdate",
"parameters_json": "{\"type\":\"object\",\"properties\":{\"birthdate\":{\"type\":\"string\",\"format\":\"date\",\"description\":\"The birthdate of the person\"}},\"required\":[\"birthdate\"]}"
}
}
] |
[
{
"role": "user",
"content_text": "嗨,我出生於1990年5月15日。你能告訴我我現在幾歲嗎?",
"tool_uses": [],
"tool_results": []
},
{
"role": "assistant",
"content_text": "",
"tool_uses": [
{
"recipient_name": "functions.calculate_age",
"parameters_json": "{\"birthdate\":\"1990-05-15\"}"
}
],
"tool_results": []
},
{
"role": "tool",
"content_text": "",
"tool_uses": [],
"tool_results": [
"{\"age\":31}"
]
},
{
"role": "assistant",
"content_text": "根據你的出生日期,你是31歲。",
"tool_uses": [],
"tool_results": []
}
] |
full
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.