96 lines
1.8 KiB
JSON
96 lines
1.8 KiB
JSON
{
|
|
"id": "28047f4a-d877-4bea-95f7-e42b1c919957",
|
|
"snapshot": "libreoffice_calc",
|
|
"instruction": "Summarize the sales for each product and illustrate it with a bar chart in a new sheet.",
|
|
"source": "SheetCopilot@108",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?id=1ydRPxPp5Cy1RIpURMwbgxE0ieAvCgQgC&export=download",
|
|
"path": "/home/user/Invoices.xlsx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/Invoices.xlsx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/28047f4a-d877-4bea-95f7-e42b1c919957",
|
|
"related_apps": [
|
|
"libreoffice_calc"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Invoices.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=1y-MObA1CgcDBM8KLU-9n546E7ZQbouQJ&export=download",
|
|
"dest": "12_Invoices_gt1.xlsx"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Invoices.xlsx",
|
|
"dest": "Invoices.xlsx"
|
|
},
|
|
"options": {
|
|
"rules": [
|
|
{
|
|
"type": "chart",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0",
|
|
"chart_props": [
|
|
"type"
|
|
]
|
|
},
|
|
{
|
|
"type": "pivot_table",
|
|
"sheet_idx0": 0,
|
|
"sheet_idx1": "EI0",
|
|
"pivot_props": [
|
|
"col_fields",
|
|
"filter",
|
|
"row_fields",
|
|
"data_fields"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |