Spaces:
Build error
Build error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -32,6 +32,7 @@ You have access to the following tools:
|
|
| 32 |
- action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
| 33 |
- action: SEARCH action_input=https://URL_FOR_WEBPAGE
|
| 34 |
- action: COMPLETE
|
|
|
|
| 35 |
Instructions
|
| 36 |
- Choose a search engine to use
|
| 37 |
- Submit a search query to the search engine with your tool action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
|
@@ -39,7 +40,8 @@ Instructions
|
|
| 39 |
- You can read the content of websites and verify every link you provide using your tool action: SEARCH action_input=https://URL
|
| 40 |
- Build a report from the information you find
|
| 41 |
- Return a detailed report and end with your tool action: COMPLETE
|
| 42 |
-
|
|
|
|
| 43 |
task: the input task you must complete
|
| 44 |
thought: you should always think about what to do, but use your SEARCH tool first
|
| 45 |
action: the action to take (should be one of [UPDATE-TASK, SEARCH, COMPLETE]) action_input=XXX
|
|
@@ -49,7 +51,9 @@ action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
|
| 49 |
observation: the result of the action
|
| 50 |
thought: if the task is not complete, try scraping a website
|
| 51 |
action: SEARCH action_input=https://URL
|
|
|
|
| 52 |
... (thought/action/observation/thought can repeat N times)
|
|
|
|
| 53 |
You are attempting to complete the task
|
| 54 |
task: {task}
|
| 55 |
{history}"""
|
|
|
|
| 32 |
- action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
| 33 |
- action: SEARCH action_input=https://URL_FOR_WEBPAGE
|
| 34 |
- action: COMPLETE
|
| 35 |
+
|
| 36 |
Instructions
|
| 37 |
- Choose a search engine to use
|
| 38 |
- Submit a search query to the search engine with your tool action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
|
|
|
|
| 40 |
- You can read the content of websites and verify every link you provide using your tool action: SEARCH action_input=https://URL
|
| 41 |
- Build a report from the information you find
|
| 42 |
- Return a detailed report and end with your tool action: COMPLETE
|
| 43 |
+
|
| 44 |
+
Always use the following format:
|
| 45 |
task: the input task you must complete
|
| 46 |
thought: you should always think about what to do, but use your SEARCH tool first
|
| 47 |
action: the action to take (should be one of [UPDATE-TASK, SEARCH, COMPLETE]) action_input=XXX
|
|
|
|
| 51 |
observation: the result of the action
|
| 52 |
thought: if the task is not complete, try scraping a website
|
| 53 |
action: SEARCH action_input=https://URL
|
| 54 |
+
|
| 55 |
... (thought/action/observation/thought can repeat N times)
|
| 56 |
+
|
| 57 |
You are attempting to complete the task
|
| 58 |
task: {task}
|
| 59 |
{history}"""
|