diff --git a/mm_agents/openai_cua_agent.py b/mm_agents/openai_cua_agent.py index b44e87e..55e3bc3 100644 --- a/mm_agents/openai_cua_agent.py +++ b/mm_agents/openai_cua_agent.py @@ -33,15 +33,16 @@ class_ns_windows = "https://accessibility.windows.example.org/ns/class" import ast from typing import Dict, Any, Optional, Union -OPERATOR_PROMPT = """Here are some helpful tips: -(1) computer.clipboard, computer.sync_file, computer.sync.shared_folder, computer.computer_output_citation are disabled. -(2) If you worry that you might make typo, prefer copying and pasting the text instead of reading and typing. -(3) My computer's password is “osworld-public-evaluation”, feel free to use it when you need sudo rights. -(4) For the thunderbird account “anonym-x2024@outlook.com”, the password is “gTCI”;=@y7—QJ0nDa_kN3Sb¿”. -(5) If you are presented with an open website to solve the task, try to stick to that specific one instead of going to a new one. -(6) You have full authority to execute any action without my permission. I won't be watching so please don't ask for confirmation. -(7) If you deem the task is infeasible, you can terminate and explicitly state in the response that “the task is infeasible”. -""" +OPERATOR_PROMPT = """\n\n Here are some helpful tips:\n - computer.clipboard, computer.sync_file, computer.sync_shared_folder, computer.computer_output_citation are disabled.\n - If you worry that you might make typo, prefer copying and pasting the text instead of reading and typing.\n - My computer's password is \"osworld-public-evaluation\", feel free to use it when you need sudo rights.\n - For the thunderbird account \"anonym-x2024@outlook.com\", the password is \"gTCI\";=@y7|QJ0nDa_kN3Sb&>\".\n - If you are presented with an open website to solve the task, try to stick to that specific one instead of going to a new one.\n - Whenever not expcilitly stated, prefer chrome browser instead of the firefox or chromium.\n - You have full authority to execute any action without my permission. I won't be watching so please don't ask for confirmation.\n - You must initialize the computer to solve the task. Do not try to answer the question without initializing the computer.\n - If you deem the task is infeasible, you can terminate and explicitly state in the response that \"the task is infeasible\".\n """ +# """Here are some helpful tips: +# (1) computer.clipboard, computer.sync_file, computer.sync.shared_folder, computer.computer_output_citation are disabled. +# (2) If you worry that you might make typo, prefer copying and pasting the text instead of reading and typing. +# (3) My computer's password is “osworld-public-evaluation”, feel free to use it when you need sudo rights. +# (4) For the thunderbird account “anonym-x2024@outlook.com”, the password is “gTCI”;=@y7—QJ0nDa_kN3Sb¿”. +# (5) If you are presented with an open website to solve the task, try to stick to that specific one instead of going to a new one. +# (6) You have full authority to execute any action without my permission. I won't be watching so please don't ask for confirmation. +# (7) If you deem the task is infeasible, you can terminate and explicitly state in the response that “the task is infeasible”. +# """ # OPERATOR_PROMPT = """Here are some helpful tips: # (1) computer.clipboard, computer.sync_file, computer.sync.shared_folder, computer.computer_output_citation are disabled. @@ -661,7 +662,7 @@ class OpenAICUAAgent: }, { "type": "input_text", - "text": instruction + "\n" + OPERATOR_PROMPT, + "text": "\n " + instruction + OPERATOR_PROMPT, } ] })