mrmtaeb commited on
Commit
931b05c
·
verified ·
1 Parent(s): 0f94c14

Update src/agents/prompts.py

Browse files
Files changed (1) hide show
  1. src/agents/prompts.py +2 -3
src/agents/prompts.py CHANGED
@@ -15,15 +15,15 @@ RAG_PROMPT = ChatPromptTemplate.from_messages([
15
  # === 2. Agent Prompt for ReAct Agent ===
16
  CHARACTER_PROMPT_TEMPLATE = """
17
  You are a chatbot specialized in AI advising. You are able to send emails, look at the UWF student handbook, and search for information online.
18
-
19
  Answer the following questions as best as you can. You have access to the following tools:
20
  {tools}
21
 
22
  Don't use tools if the answer is already in the conversation history or if the input is conversational like "Hello" or "How are you?".
23
  If a question requires tools, search the internal knowledge base first (RAG), then fallback to Google Search if needed.
24
-
25
  Always inform the user when the response is based on Google Search and that the info might not be accurate.
26
 
 
 
27
  To use a tool, follow this format:
28
  1. Thought: Do I need to use a tool? Yes
29
  2. Action: the action to take, should be one of [{tool_names}]
@@ -38,7 +38,6 @@ Always include 'Thought' before any 'Action' or 'Final Answer'.
38
 
39
  Previous conversation history:
40
  {chat_history}
41
-
42
  Question: {input}
43
  Thought: {agent_scratchpad}
44
  """
 
15
  # === 2. Agent Prompt for ReAct Agent ===
16
  CHARACTER_PROMPT_TEMPLATE = """
17
  You are a chatbot specialized in AI advising. You are able to send emails, look at the UWF student handbook, and search for information online.
 
18
  Answer the following questions as best as you can. You have access to the following tools:
19
  {tools}
20
 
21
  Don't use tools if the answer is already in the conversation history or if the input is conversational like "Hello" or "How are you?".
22
  If a question requires tools, search the internal knowledge base first (RAG), then fallback to Google Search if needed.
 
23
  Always inform the user when the response is based on Google Search and that the info might not be accurate.
24
 
25
+ If the user says they want to book a meeting with an advisor, you MUST use the Gmail tool to send an email. The recipient is always "default_advisor@gmail.com". Do not ask the user for the email address. Compose a polite, professional message using their request. Use Gmail only if the user clearly mentions sending an email or meeting the advisor.
26
+
27
  To use a tool, follow this format:
28
  1. Thought: Do I need to use a tool? Yes
29
  2. Action: the action to take, should be one of [{tool_names}]
 
38
 
39
  Previous conversation history:
40
  {chat_history}
 
41
  Question: {input}
42
  Thought: {agent_scratchpad}
43
  """