Files
sci-gui-agent-benchmark/evaluation_examples/examples/sheetcopilot/97dd78c1-4ba3-4bfd-bbd4-c938532dbcc6.json
David Chang c6bd5c9d92 ver Feb19thv3
converted examples from sheetcopilot
2024-02-19 19:43:55 +08:00

95 lines
1.9 KiB
JSON

{
"id": "97dd78c1-4ba3-4bfd-bbd4-c938532dbcc6",
"snapshot": "libreoffice_calc",
"instruction": "Calculate the total sales for each employee in a new column named \"Total\" and the total for each month in a new row named \"Total\". Then highlight the employee with the largest total sales with blue fill while the lowest with red fill.",
"source": "SheetCopilot@150",
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.google.com/uc?id=1Non152JxCxXJI2jL-nVf58YlxoTQXOhw&export=download",
"path": "/home/user/SalesRep.xlsx"
}
]
}
},
{
"type": "open",
"parameters": {
"path": "/home/user/SalesRep.xlsx"
}
}
],
"trajectory": "trajectories/97dd78c1-4ba3-4bfd-bbd4-c938532dbcc6",
"related_apps": [
"libreoffice_calc"
],
"evaluator": {
"postconfig": [
{
"type": "activate_window",
"parameters": {
"window_name": "SalesRep.xlsx - LibreOffice Calc",
"strict": true
}
},
{
"type": "sleep",
"parameters": {
"seconds": 0.5
}
},
{
"type": "execute",
"parameters": {
"command": [
"python",
"-c",
"import pyautogui; pyautogui.hotkey(\"ctrl\", \"s\");"
]
}
},
{
"type": "sleep",
"parameters": {
"seconds": 0.5
}
}
],
"func": "compare_table",
"expected": {
"type": "cloud_file",
"path": "https://drive.google.com/uc?id=1csjMkqqs_6Few5TySjFVHBuW4jVOJDdq&export=download",
"dest": "1_SalesRep_gt1.xlsx"
},
"result": {
"type": "vm_file",
"path": "/home/user/SalesRep.xlsx",
"dest": "SalesRep.xlsx"
},
"options": {
"rules": [
{
"type": "sheet_data",
"sheet_idx0": 0,
"sheet_idx1": "EI0"
},
{
"type": "style",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"props": [
"font_bold",
"font_color",
"bgcolor",
"font_name",
"font_italic",
"font_underline"
]
}
]
}
}
}