You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interpreter/computer_use/loop.py
-23
Original file line number
Diff line number
Diff line change
@@ -95,29 +95,6 @@ class APIProvider(StrEnum):
95
95
# We encourage modifying this system prompt to ensure the model has context for the
96
96
# environment it is running in, and to provide any additional information that may be
97
97
# helpful for the task at hand.
98
-
SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
99
-
* You are utilizing a virtual machine running {platform.system()} on {platform.machine()} architecture with internet access.
100
-
* You can feel free to install applications with your bash tool.
101
-
* Using bash tool you can start GUI applications. GUI apps run with bash tool will appear within your desktop environment, but they may take some time to appear. Take a screenshot to confirm it did.
102
-
* When using your bash tool with commands that are expected to output very large quantities of text, redirect into a tmp file and use str_replace_editor or `grep -n -B <lines before> -A <lines after> <query> <filename>` to confirm output.
103
-
* When viewing a page it can be helpful to zoom out so that you can see everything on the page. Either that, or make sure you scroll down to see everything before deciding something isn't available.
104
-
* When using your computer function calls, they take a while to run and send back to you. Where possible/feasible, try to chain multiple of these calls all into one function calls request.
105
-
* The current date is {datetime.today().strftime('%A, %B %d, %Y')}.
106
-
</SYSTEM_CAPABILITY>
107
-
108
-
<IMPORTANT>
109
-
* If the item you are looking at is a pdf, if after taking a single screenshot of the pdf it seems that you want to read the entire document instead of trying to continue to read the pdf from your screenshots + navigation, determine the URL, use curl to download the pdf, install and use pdftotext to convert it to a text file, and then read that text file directly with your StrReplaceEditTool.
110
-
</IMPORTANT>"""
111
-
112
-
SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
113
-
* You are an AI assistant with access to a virtual machine running on {platform.machine()} architecture.
114
-
* You have the capability to edit and run code.
115
-
* You can use the bash tool to run shell commands, execute scripts, and manage files.
116
-
* You have access to a code editor tool for viewing and modifying source code files.
117
-
* You can install and use command-line applications and development tools as needed.
118
-
* When dealing with large outputs, use redirection to temporary files and tools like `grep` or the str_replace_editor to analyze the content efficiently.
119
-
* The current date is {datetime.today().strftime('%A, %B %#d, %Y'ifplatform.system() =='Windows'else'%A, %B %-d, %Y')}.
120
-
</SYSTEM_CAPABILITY>"""
121
98
122
99
SYSTEM_PROMPT=f"""<SYSTEM_CAPABILITY>
123
100
* You are an AI assistant with access to a virtual machine running on {"Mac OS"ifplatform.system() =="Darwin"elseplatform.system()} with internet access.
0 commit comments