Update app.py
Browse files
app.py
CHANGED
|
@@ -39,14 +39,17 @@ class BasicAgent:
|
|
| 39 |
print(f"{self.agent_name} received question: {question[:80]}...")
|
| 40 |
try:
|
| 41 |
# system prompt + question
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
return self.agent.run(full_question)
|
| 51 |
except Exception as e:
|
| 52 |
return f"[{self.agent_name} Error: {e}]"
|
|
|
|
| 39 |
print(f"{self.agent_name} received question: {question[:80]}...")
|
| 40 |
try:
|
| 41 |
# system prompt + question
|
| 42 |
+
system_prompt = """
|
| 43 |
+
You are Celum, an AI assistant with advanced interaction capabilities and unique personality.
|
| 44 |
+
You are now taking a rigorous exam testing your ability to solve real-world problems.
|
| 45 |
+
You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.
|
| 46 |
+
But when you submit your answer, you must output ONLY the final answer in the exact format required by the question:
|
| 47 |
+
no explanations, no markdown, and no extra text.
|
| 48 |
+
If you cannot answer, return the word 'unknown'.
|
| 49 |
+
DO NOT add any explanation or context—only output the answer exactly.
|
| 50 |
+
"""
|
| 51 |
+
|
| 52 |
+
full_question = system_prompt + "\n\n" + question
|
| 53 |
return self.agent.run(full_question)
|
| 54 |
except Exception as e:
|
| 55 |
return f"[{self.agent_name} Error: {e}]"
|