Dulsara/glaive-function-calling-v2
收藏数据集概述
基本信息
- 许可证: Apache-2.0
- 任务类别: 文本生成
- 语言: 英语
- 数据集大小: 10万<n<100万
数据集内容
-
该数据集是glaiveai/glaive-function-calling-v2的修改版本。
-
所有样本已转换为以下格式以提高互操作性: json [ { "role":"system", "content":"You are a helpful assistant with access to the functions.", "functions":[ { "name":"generate_password", "description":"Generate a random password with specified criteria", "parameters":{ "type":"object", "properties":{ "length":{ "type":"integer", "description":"The length of the password" }, "include_numbers":{ "type":"boolean", "description":"Include numbers in the password" }, "include_special_characters":{ "type":"boolean", "description":"Include special characters in the password" } }, "required":[ "length" ] } } ] }, { "role":"user", "content":"I need a new password. Can you generate one for me?" }, { "role":"assistant", "content":"Of course! How long would you like your password to be? And do you want it to include numbers and special characters?" }, { "role":"user", "content":"I want it to be 12 characters long and yes, it should include both numbers and special characters." }, { "role":"function call", "content":{ "name":"generate_password", "arguments":{ "length": 12, "include_numbers": true, "include_special_characters": true } } }, { "role":"function response", "content":{ "password":"4#7gB6&9L1!0" } }, { "role":"assistant", "content":"Here is your new password: 4#7gB6&9L1!0. Please make sure to save it in a secure place." } ]
- 包含系统、用户、助手和函数调用的交互样本。
- 函数
generate_password用于生成符合特定条件的随机密码。



