aboutsummaryrefslogtreecommitdiff
path: root/tools/email_tool.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-14 14:47:49 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2023-10-14 14:47:49 -0600
commit42e54a2cb29943b793bf9a47dd7e0121e1c0c87d (patch)
treed5570585dc0bfccdab3ec3f9aaa79a9e4290470e /tools/email_tool.py
parent704b6407b4e51800376e73fe934a762e94b30d9d (diff)
Diffstat (limited to 'tools/email_tool.py')
-rw-r--r--tools/email_tool.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/email_tool.py b/tools/email_tool.py
index 932a7e5..da2f072 100644
--- a/tools/email_tool.py
+++ b/tools/email_tool.py
@@ -14,6 +14,9 @@ toolkit = GmailToolkit()
tools = toolkit.get_tools()
+my_information = "Use this information whenever needed User information " + open("info.txt").read() + " . Your task "
+
+
@tool("email tasks")
def email_tasks(input: str) -> bool:
"""draft/send/search/get email and return whatever you get.
@@ -27,7 +30,8 @@ def email_tasks(input: str) -> bool:
for example, `send an email to grsi2038@colorado.edu asking him if he is still looking for a job and that he should continue doing whatever he his doing because he will eventually find it` will email grsi2038@colorado.edu
"""
- prompt = input
+ prompt = my_information + input
+ #print(input)
llm = OpenAI(temperature=0)
agent = initialize_agent(