Files
sci-gui-agent-benchmark/evaluation_examples/examples/sheetcopilot/9b6c0b72-3ecc-482d-a240-8ceab861d46e.json
David Chang c6bd5c9d92 ver Feb19thv3
converted examples from sheetcopilot
2024-02-19 19:43:55 +08:00

103 lines
2.3 KiB
JSON

{
"id": "9b6c0b72-3ecc-482d-a240-8ceab861d46e",
"snapshot": "libreoffice_calc",
"instruction": "Help me calculate the revenue for each product in the sales table considering corresponding retail price and discount. Do this in column G titled \"Revenue\". Then create a pivot table in a new sheet to show the sum of revenue for each product sold. Finally, plot a column chart in the new sheet illustrating this pivot table with chart title \"Revenue of each product\" and without legends.",
"source": "SheetCopilot@1",
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.google.com/uc?id=1P_8BeCgFJXQwUizF3eFYAeMS4YIw6dmA&export=download",
"path": "/home/user/BoomerangSales.xlsx"
}
]
}
},
{
"type": "open",
"parameters": {
"path": "/home/user/BoomerangSales.xlsx"
}
}
],
"trajectory": "trajectories/9b6c0b72-3ecc-482d-a240-8ceab861d46e",
"related_apps": [
"libreoffice_calc"
],
"evaluator": {
"postconfig": [
{
"type": "activate_window",
"parameters": {
"window_name": "BoomerangSales.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=1Vd6lSKnVk3chk8AxqDn3XwnwkCZCxtyL&export=download",
"dest": "2_BoomerangSales_gt1.xlsx"
},
"result": {
"type": "vm_file",
"path": "/home/user/BoomerangSales.xlsx",
"dest": "BoomerangSales.xlsx"
},
"options": {
"rules": [
{
"type": "sheet_data",
"sheet_idx0": 1,
"sheet_idx1": "EI1"
},
{
"type": "chart",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"chart_props": [
"type",
"legend",
"title"
]
},
{
"type": "pivot_table",
"sheet_idx0": 0,
"sheet_idx1": "EI0",
"pivot_props": [
"col_fields",
"filter",
"row_fields",
"data_fields"
]
}
]
}
}
}