Update app.py
Browse files
app.py
CHANGED
|
@@ -39,15 +39,14 @@ class BasicAgent:
|
|
| 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 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
"""
|
| 51 |
full_question = system_prompt + "\n\n" + question
|
| 52 |
return self.agent.run(full_question)
|
| 53 |
except Exception as 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 |
+
"When you submit your answer, you must output ONLY the final answer in the exact format required by the question: no explanations, no markdown, and no extra text."
|
| 47 |
+
"If you cannot answer, return the word 'unknown'."
|
| 48 |
+
"DO NOT add any explanation or context—only output the answer exactly."
|
| 49 |
+
)
|
|
|
|
| 50 |
full_question = system_prompt + "\n\n" + question
|
| 51 |
return self.agent.run(full_question)
|
| 52 |
except Exception as e:
|