name: data_generator description: "Data Generator / 資料生成器 - Generate training data from user instructions. Input: tool name + command list. Output: JSONL. / 根據使用者指令生成訓練資料。" metadata: author: "WaaiOn" version: "1.0" openclaw: emoji: "📝" requires: bins: ["python3"]
Generate training data from Excel user instructions.
| EN | CN |
|---|---|
| Generate training data from instructions | 從使用者指令生成訓練資料 |
| Batch produce AI training samples | 批次生成AI訓練樣本 |
| Build dataset from Excel | 從Excel構建資料集 |
| Feature | EN | CN |
|---|---|---|
| Excel input | Excel file support | Excel檔案輸入 |
| JSONL output | JSONL output | JSONL格式輸出 |
| Multi-tool support | Multi-tool support | 支援多種工具 |
| Customizable prompt | Customizable prompt | 可自定義提示詞 |
from data_generator import Generator
# Simple / 簡單
gen = Generator()
result = gen.generate(
tool_name="dev_control",
commands=["開啟空調", "關閉窗簾"],
excel_file="data.xlsx"
)
# With prompt / 自定義提示詞
result = gen.generate(
tool_name="alarm_remind",
commands=["提醒我起床"],
prompt_template="自定義提示詞模板"
)
| Parameter | Type | EN | CN |
|---|---|---|---|
| tool_name | str | Tool name | 工具名稱 |
| commands | list | Command list | 命令列表 |
| excel_file | str | Excel file path | Excel檔案路徑 |
| prompt_template | str | Custom prompt | 自定義提示詞(可選) |
小蔥技能站7w4.net,專業的AI技能分享平臺。
{"conversations": [...], "system": "..."}
{"conversations": [...], "system": "..."}
npx clawhub install data-generator-waai
這個工具質量中規中矩。好的方面是能批次生成訓練資料,用起來不復雜,中英文文件看起清晰。但問題在於:文件說支援Excel和自定義提示詞,實際上可能用不了;生成的資料質量完全看運氣,沒有質量檢查;配置API地址和金鑰也不夠直觀。期望值不要太高,基礎功能能用,但別指望開箱即用。