Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
@@ -70,14 +70,8 @@ def run_ninu(query: str):
|
|
70 |
conversation = []
|
71 |
|
72 |
intro_prompt = """
|
73 |
-
You are a
|
74 |
-
|
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))
|