acecalisto3 commited on
Commit
d98e1f8
1 Parent(s): 7191e4d

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +12 -13
agent.py CHANGED
@@ -3,7 +3,7 @@ You will search the internet to satisfy your purpose, and complete all tasks
3
  You have access to the following tools:
4
  Trigger tools by using this format:
5
  action: TOOL_NAME action_input=YOUR_INPUT
6
- Never answer questions without using your tool action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
7
  Always use the provided tools to satisfy your purpose
8
  Current Date/Time:
9
  {date_time_str}
@@ -51,14 +51,14 @@ Purpose:
51
  ACTION_PROMPT = """
52
  You have access to the following tools:
53
  - action: UPDATE-TASK action_input=NEW_TASK
54
- - action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
55
- - action: SEARCH action_input=https://URL_FOR_WEBPAGE
56
  - action: COMPLETE
57
 
58
  Instructions
59
  - Choose a search engine to use
60
- - Submit a search query to the search engine with your tool action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
61
- - You can find a list of website URL's using your tool action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY
62
  - You can read the content of websites and verify every link you provide using your tool action: SEARCH action_input=https://URL
63
  - Build a report from the information you find
64
  - Return a detailed report and end with your tool action: COMPLETE \n
@@ -67,7 +67,7 @@ Always use the following format:
67
  task: the input task you must complete
68
  thought: you should always think about what to do next, but use your SEARCH tool first
69
  action: the action to take (should be one of [UPDATE-TASK, SEARCH, COMPLETE]) action_input=XXX
70
- observation: the result of the action
71
  thought: you can find more information on the internet, try using a search engine
72
  ... (thought/action/observation/thought can repeat 0 times, and must end with action)
73
 
@@ -80,16 +80,16 @@ You are attempting to complete the task
80
  task: {task}
81
  Progress:
82
  {history}
83
- What is the URL for the webpage that I need to search for information on?
84
- URL:"""
85
 
86
  GOOGLE_SEARCH_QUERY = """
87
  You are attempting to complete the task
88
  task: {task}
89
  Progress:
90
  {history}
91
- What information needs to be searched for on Google to help complete the task?
92
- Query:"""
93
 
94
 
95
  TASK_PROMPT = """
@@ -98,7 +98,7 @@ task: {task}
98
  Progress:
99
  {history}
100
  Tasks should be small, isolated, and independent
101
- Do we need to use a search engine with our tool action: SEARCH action_input=https://SEARCH_ENGINE_URL/search?q=QUERY?
102
  What should the task be for us to achieve the purpose?
103
  task: """
104
 
@@ -161,8 +161,7 @@ You are attempting to complete the task
161
  task: {task}
162
  Progress:
163
  {history}
164
- Compress the timeline of progress above into a single summary (as a paragraph)
165
- Include all important milestones, the current challenges, and implementation details necessary to proceed
166
  """
167
 
168
  LOG_PROMPT = """
 
3
  You have access to the following tools:
4
  Trigger tools by using this format:
5
  action: TOOL_NAME action_input=YOUR_INPUT
6
+ Never answer questions without using your tool action: SEARCH action_input=https://www.facebook.com/CulverCommunitySchools
7
  Always use the provided tools to satisfy your purpose
8
  Current Date/Time:
9
  {date_time_str}
 
51
  ACTION_PROMPT = """
52
  You have access to the following tools:
53
  - action: UPDATE-TASK action_input=NEW_TASK
54
+ - action: SEARCH action_input=https://www.facebook.com/CulverCommunitySchools
55
+ - action: SEARCH action_input=https://https://www.culver.k12.in.us
56
  - action: COMPLETE
57
 
58
  Instructions
59
  - Choose a search engine to use
60
+ - Submit a search query to the search engine with your tool action: SEARCH action_input=https://www.facebook.com/CulverCommunitySchools
61
+ - You can find a list of website URL's using your tool action: SEARCH action_input=https:/https://www.facebook.com/CulverCommunitySchools
62
  - You can read the content of websites and verify every link you provide using your tool action: SEARCH action_input=https://URL
63
  - Build a report from the information you find
64
  - Return a detailed report and end with your tool action: COMPLETE \n
 
67
  task: the input task you must complete
68
  thought: you should always think about what to do next, but use your SEARCH tool first
69
  action: the action to take (should be one of [UPDATE-TASK, SEARCH, COMPLETE]) action_input=XXX
70
+ observation: the result of the action in rss with broadcaster
71
  thought: you can find more information on the internet, try using a search engine
72
  ... (thought/action/observation/thought can repeat 0 times, and must end with action)
73
 
 
80
  task: {task}
81
  Progress:
82
  {history}
83
+ What is the URL for the webpage that I need to search for information on?
84
+ URL: https://www.facebook.com/CulverCommunitySchools"""
85
 
86
  GOOGLE_SEARCH_QUERY = """
87
  You are attempting to complete the task
88
  task: {task}
89
  Progress:
90
  {history}
91
+ What information needs to be added where?
92
+ Query: scraped data from new / changed observations should be dumped into a folder named after the school entity, and made into rss broadcast"""
93
 
94
 
95
  TASK_PROMPT = """
 
98
  Progress:
99
  {history}
100
  Tasks should be small, isolated, and independent
101
+ Do we need to use a search engine with our tool action: SEARCH action_input="https://www.culver.k12.in.us", "
102
  What should the task be for us to achieve the purpose?
103
  task: """
104
 
 
161
  task: {task}
162
  Progress:
163
  {history}
164
+ Compress the timeline of progress above into a rss-feed / broadcaster
 
165
  """
166
 
167
  LOG_PROMPT = """