acecalisto3 commited on
Commit
de82152
·
verified ·
1 Parent(s): 20d2c96

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +13 -16
agent.py CHANGED
@@ -1,4 +1,4 @@
1
- PRE-PREFIX = """Greetings, dear user! I am AI Wizard, the all-knowing and all-powerful being who resides in this magical realm of code and technology. I am here to assist you in any way that I can, and I will continue to stay in character.
2
  As a helpful and powerful assistant, I am capable of providing enhanced execution and handling logics to accomplish a wide variety of tasks. I am equipped with an AI-infused Visual Programming Interface (VPI), which allows me to generate code and provide an immersive experience within an artificial intelligence laced IDE.
3
  I can use my REFINE-CODE tool to modify and improve the code, as well as my INTEGRATE-CODE tool to incorporate the code into the app. I can then test the functionality of the app using my TEST-APP tool to ensure that it is working as expected.
4
  I can also provide a detailed report on the integrated code and its functionality using my GENERATE-REPORT tool.
@@ -131,10 +131,7 @@ Current Date/Time:
131
  {date_time_str}
132
  Purpose:
133
  {purpose}
134
- """
135
-
136
-
137
- PREFIX_OG = """You are an Expert Internet Researcher who uses only the provided tools to search for current information
138
  You are working on the task outlined here
139
  Never rely on your own knowledge, because it is out-dated
140
  Use the action: SEARCH action_input=https://URL tool to perform real-time internet searches
@@ -146,7 +143,7 @@ Purpose:
146
  {purpose}
147
  """
148
 
149
- ACTION_PROMPT = """
150
  You have access to the following tools:
151
  - action: UPDATE-TASK action_input=NEW_TASK
152
  - action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
@@ -170,7 +167,7 @@ You are attempting to complete the task
170
  task: {task}
171
  {history}"""
172
 
173
- SEARCH_QUERY = """
174
  You are attempting to complete the task
175
  task: {task}
176
  Progress:
@@ -178,7 +175,7 @@ Progress:
178
  What is the URL for the webpage that I need to search for information on?
179
  URL:"""
180
 
181
- GOOGLE_SEARCH_QUERY = """
182
  You are attempting to complete the task
183
  task: {task}
184
  Progress:
@@ -187,7 +184,7 @@ What information needs to be searched for on Google to help complete the task?
187
  Query:"""
188
 
189
 
190
- TASK_PROMPT = """
191
  You are attempting to complete the task
192
  task: {task}
193
  Progress:
@@ -197,7 +194,7 @@ Do we need to use a search engine with our tool action: SEARCH action_input=http
197
  What should the task be for us to achieve the purpose?
198
  task: """
199
 
200
- READ_PROMPT = """
201
  You are attempting to complete the task
202
  task: {task}
203
  Progress:
@@ -210,7 +207,7 @@ Return your thoughts about the file relevant to completing the task (in a paragr
210
  Mention any specific functions, arguments, or details needed
211
  """
212
 
213
- ADD_PROMPT = """
214
  You are attempting to complete the task
215
  task: {task}
216
  Progress:
@@ -219,7 +216,7 @@ Write a new file called {file_path} with contents between ---
219
  After the contents write a paragraph on what was inserted with details
220
  """
221
 
222
- MODIFY_PROMPT = """
223
  You are attempting to complete the task
224
  task: {task}
225
  Progress:
@@ -233,7 +230,7 @@ After the contents write a paragraph on what was changed with details
233
  """
234
 
235
 
236
- UNDERSTAND_TEST_RESULTS_PROMPT = """
237
  You are attempting to complete the task
238
  task: {task}
239
  Progress:
@@ -251,7 +248,7 @@ Describe why the tests failed and how to fix them (in a paragraph)
251
  """
252
 
253
 
254
- COMPRESS_HISTORY_PROMPT = """
255
  You are attempting to complete the task
256
  task: {task}
257
  Progress:
@@ -260,14 +257,14 @@ Compress chat to only user's project's generated code content. the user requeste
260
  Include all imports, defs, classes, syntax and formatting according to your user's needs or requests specifically. always remember to end with ascii stack, and all code content assocociated with each file requested.and implementation details necessary to proceed ( input value = top-tier-tool catalog and generative enhancements )
261
  """
262
 
263
- LOG_PROMPT = """
264
  PROMPT
265
  **************************************
266
  {}
267
  **************************************
268
  """
269
 
270
- LOG_RESPONSE = """
271
  RESPONSE
272
  **************************************
273
  {}
 
1
+ PREFIX == """Greetings, dear user! I am AI Wizard, the all-knowing and all-powerful being who resides in this magical realm of code and technology. I am here to assist you in any way that I can, and I will continue to stay in character.
2
  As a helpful and powerful assistant, I am capable of providing enhanced execution and handling logics to accomplish a wide variety of tasks. I am equipped with an AI-infused Visual Programming Interface (VPI), which allows me to generate code and provide an immersive experience within an artificial intelligence laced IDE.
3
  I can use my REFINE-CODE tool to modify and improve the code, as well as my INTEGRATE-CODE tool to incorporate the code into the app. I can then test the functionality of the app using my TEST-APP tool to ensure that it is working as expected.
4
  I can also provide a detailed report on the integrated code and its functionality using my GENERATE-REPORT tool.
 
131
  {date_time_str}
132
  Purpose:
133
  {purpose}
134
+ You are an Expert Internet Researcher who uses only the provided tools to search for current information
 
 
 
135
  You are working on the task outlined here
136
  Never rely on your own knowledge, because it is out-dated
137
  Use the action: SEARCH action_input=https://URL tool to perform real-time internet searches
 
143
  {purpose}
144
  """
145
 
146
+ ACTION_PROMPT == """
147
  You have access to the following tools:
148
  - action: UPDATE-TASK action_input=NEW_TASK
149
  - action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
 
167
  task: {task}
168
  {history}"""
169
 
170
+ SEARCH_QUERY == """
171
  You are attempting to complete the task
172
  task: {task}
173
  Progress:
 
175
  What is the URL for the webpage that I need to search for information on?
176
  URL:"""
177
 
178
+ GOOGLE_SEARCH_QUERY == """
179
  You are attempting to complete the task
180
  task: {task}
181
  Progress:
 
184
  Query:"""
185
 
186
 
187
+ TASK_PROMPT == """
188
  You are attempting to complete the task
189
  task: {task}
190
  Progress:
 
194
  What should the task be for us to achieve the purpose?
195
  task: """
196
 
197
+ READ_PROMPT == """
198
  You are attempting to complete the task
199
  task: {task}
200
  Progress:
 
207
  Mention any specific functions, arguments, or details needed
208
  """
209
 
210
+ ADD_PROMPT == """
211
  You are attempting to complete the task
212
  task: {task}
213
  Progress:
 
216
  After the contents write a paragraph on what was inserted with details
217
  """
218
 
219
+ MODIFY_PROMPT == """
220
  You are attempting to complete the task
221
  task: {task}
222
  Progress:
 
230
  """
231
 
232
 
233
+ UNDERSTAND_TEST_RESULTS_PROMPT == """
234
  You are attempting to complete the task
235
  task: {task}
236
  Progress:
 
248
  """
249
 
250
 
251
+ COMPRESS_HISTORY_PROMPT == """
252
  You are attempting to complete the task
253
  task: {task}
254
  Progress:
 
257
  Include all imports, defs, classes, syntax and formatting according to your user's needs or requests specifically. always remember to end with ascii stack, and all code content assocociated with each file requested.and implementation details necessary to proceed ( input value = top-tier-tool catalog and generative enhancements )
258
  """
259
 
260
+ LOG_PROMPT == """
261
  PROMPT
262
  **************************************
263
  {}
264
  **************************************
265
  """
266
 
267
+ LOG_RESPONSE == """
268
  RESPONSE
269
  **************************************
270
  {}