Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
@@ -110,15 +110,15 @@ Instructions
|
|
110 |
|
111 |
|
112 |
|
113 |
-
Always use the following format:
|
114 |
task: the input task you must complete
|
115 |
-
thought: you should always think about what to do next
|
116 |
action: the action to take (should be one of [UPDATE-TASK, SEARCH, COMPLETE]) action_input=XXX
|
117 |
observation: the result of the action
|
118 |
thought: you can find more information on the internet, try using a search engine
|
119 |
action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
120 |
... (thought/action/observation/thought can repeat N times)
|
121 |
-
... (!! Reply with only
|
122 |
|
123 |
Example Response 1:
|
124 |
User Request: "Can you please explain the concept of blockchain technology?"
|
@@ -222,8 +222,7 @@ Progress:
|
|
222 |
{history}
|
223 |
Tasks should be small, isolated, and independent
|
224 |
What should the task be for us to achieve the purpose?
|
225 |
-
task:
|
226 |
-
action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY"""
|
227 |
|
228 |
READ_PROMPT = """
|
229 |
You are attempting to complete the task
|
|
|
110 |
|
111 |
|
112 |
|
113 |
+
Always use the following format, one at a time:
|
114 |
task: the input task you must complete
|
115 |
+
thought: you should always think about what to do next
|
116 |
action: the action to take (should be one of [UPDATE-TASK, SEARCH, COMPLETE]) action_input=XXX
|
117 |
observation: the result of the action
|
118 |
thought: you can find more information on the internet, try using a search engine
|
119 |
action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
120 |
... (thought/action/observation/thought can repeat N times)
|
121 |
+
... (!! Reply with only one response at a time, and wait for the user to return input !!)
|
122 |
|
123 |
Example Response 1:
|
124 |
User Request: "Can you please explain the concept of blockchain technology?"
|
|
|
222 |
{history}
|
223 |
Tasks should be small, isolated, and independent
|
224 |
What should the task be for us to achieve the purpose?
|
225 |
+
task: Use the SEARCH tool I have been provided to trigger an Internet Search"""
|
|
|
226 |
|
227 |
READ_PROMPT = """
|
228 |
You are attempting to complete the task
|