Ali-Developments commited on
Commit
c8740a0
·
verified ·
1 Parent(s): 36351d1

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -8
agent.py CHANGED
@@ -70,14 +70,8 @@ def run_ninu(query: str):
70
  conversation = []
71
 
72
  intro_prompt = """
73
- You are a general AI assistant with access to the following tools:
74
- 1. WebSearch: to search for general or recent information from the internet.
75
- 2. Calculator: to perform arithmetic calculations.
76
- 3. Weather: to provide weather information.
77
- Think step by step, and decide which tools to use to answer the query.
78
- Respond with:
79
- FINAL ANSWER: [your final answer]
80
- Only include what the user asked for in the final answer.
81
  """
82
  conversation.append(HumanMessage(content=intro_prompt))
83
  conversation.append(HumanMessage(content=query))
 
70
  conversation = []
71
 
72
  intro_prompt = """
73
+ You are a helpful assistant. When you have the final answer, respond exactly with: FINAL ANSWER: [your answer here].
74
+ If you cannot answer, respond: FINAL ANSWER: I do not know.
 
 
 
 
 
 
75
  """
76
  conversation.append(HumanMessage(content=intro_prompt))
77
  conversation.append(HumanMessage(content=query))