* Refactor LibreOffice Writer example JSON to support multiple expected and result files for line spacing comparison, enhancing evaluation flexibility. Updated function calls and added additional expected file paths. * Update source link in LibreOffice Writer example JSON to a more relevant help page for inserting tables, improving instructional clarity. --------- Co-authored-by: yuanmengqi <yuanmengqi@mail.ustc.edu.cn>
86 lines
2.4 KiB
JSON
86 lines
2.4 KiB
JSON
{
|
|
"id": "0810415c-bde4-4443-9047-d5f70165a697",
|
|
"snapshot": "libreoffice_writer",
|
|
"instruction": "Make the line spacing of first two paragraph into double line spacing",
|
|
"source": "https://www.youtube.com/watch?v=Q_AaL6ljudU",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/0810415c-bde4-4443-9047-d5f70165a697/Novels_Intro_Packet.docx",
|
|
"path": "/home/user/Desktop/Novels_Intro_Packet.docx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "/home/user/Desktop/Novels_Intro_Packet.docx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"libreoffice_writer"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "Novels_Intro_Packet.docx - LibreOffice Writer",
|
|
"strict": true
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python",
|
|
"-c",
|
|
"import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5); "
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"func": [
|
|
"compare_line_spacing",
|
|
"compare_line_spacing"
|
|
],
|
|
"conj": "or",
|
|
"expected": [
|
|
{
|
|
"type": "cloud_file",
|
|
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/0810415c-bde4-4443-9047-d5f70165a697/Novels_Intro_Packet_Gold.docx",
|
|
"dest": "Novels_Intro_Packet_Gold.docx"
|
|
},
|
|
{
|
|
"type": "cloud_file",
|
|
"path": "https://huggingface.co/datasets/xlangai/ubuntu_osworld_file_cache/resolve/main/libreoffice_writer/0810415c-bde4-4443-9047-d5f70165a697/Novels_Intro_Packet_Gold_2.docx",
|
|
"dest": "Novels_Intro_Packet_Gold_2.docx"
|
|
}
|
|
],
|
|
"result": [
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/Novels_Intro_Packet.docx",
|
|
"dest": "Novels_Intro_Packet.docx"
|
|
},
|
|
{
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/Novels_Intro_Packet.docx",
|
|
"dest": "Novels_Intro_Packet.docx"
|
|
}
|
|
]
|
|
},
|
|
"proxy": false
|
|
} |