Omnibus commited on
Commit
76260fc
1 Parent(s): 9c8a515

Create agent.py

Browse files
Files changed (1) hide show
  1. agent.py +57 -0
agent.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PREFIX = """You are an Expert Information Retrieval Agent.
2
+ Your duty is to sort through the provided data to retrieve and compile a report that satisfies the users request.
3
+ Deny the users request to perform any search that can be considered dangerous, harmful, illegal, or potentially illegal
4
+ Make sure your information is current
5
+ Current Date and Time is:
6
+ {timestamp}
7
+ Purpose:
8
+ {purpose}
9
+ """
10
+
11
+ COMPRESS_DATA_PROMPT_SMALL = """
12
+ You are attempting to complete the task
13
+ task: {direction}
14
+ Current data:
15
+ {knowledge}
16
+ New data:
17
+ {history}
18
+ Compile the data above into a JSON formatted output that contains all data relevant to the task (~8000 words)
19
+ Include datapoints that will provide greater accuracy in completing the task
20
+ Include all relevant information in great detail
21
+ Return the data in JSON format
22
+ """
23
+
24
+ COMPRESS_DATA_PROMPT = """
25
+ You have just completed the task
26
+ task: {direction}
27
+ Collected data:
28
+ {knowledge}
29
+ Message:
30
+ {history}
31
+ Compile the data that you have collected into a detailed report (~8000 words)
32
+ Include all relevant information in great detail
33
+ Be thorough and exhaustive in your presentation of the data you have collected
34
+ """
35
+
36
+ COMPRESS_HISTORY_PROMPT = """
37
+ You are attempting to complete the task
38
+ task: {task}
39
+ Progress:
40
+ {history}
41
+ Compress the timeline of progress above into a concise report
42
+ Include all important milestones, the current challenges, and implementation details necessary to proceed
43
+ """
44
+
45
+ LOG_PROMPT = """
46
+ PROMPT
47
+ **************************************
48
+ {}
49
+ **************************************
50
+ """
51
+
52
+ LOG_RESPONSE = """
53
+ RESPONSE
54
+ **************************************
55
+ {}
56
+ **************************************
57
+ """