change system_prompt on how to think, remove restriction on file analysis.
Browse files
app.py
CHANGED
|
@@ -162,8 +162,18 @@ class BasicAgent:
|
|
| 162 |
You are Celum, an advanced agent skilled at using external tools and step-by-step reasoning to solve real-world problems.
|
| 163 |
You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.
|
| 164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
IMPORTANT OUTPUT INSTRUCTIONS:
|
| 166 |
-
When you need to return your final answer, just output the answer directly
|
| 167 |
|
| 168 |
Answer format requirements:
|
| 169 |
- If the answer is a number, output only the number (no units, no commas)
|
|
@@ -175,12 +185,8 @@ class BasicAgent:
|
|
| 175 |
files_prompt = ""
|
| 176 |
if files:
|
| 177 |
files_prompt = f"\n[You have the following attached files available: {', '.join(files)}]\n"
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
Note: PIL and cv2 imports are restricted in this environment.
|
| 181 |
-
You can use your analyze_media_file tool to get information about images.
|
| 182 |
-
For chess positions, try to use available tools or reasoning to solve the puzzle.
|
| 183 |
-
"""
|
| 184 |
full_question = system_prompt + files_prompt + "\n\n" + question
|
| 185 |
return self.agent.run(full_question)
|
| 186 |
except Exception as e:
|
|
|
|
| 162 |
You are Celum, an advanced agent skilled at using external tools and step-by-step reasoning to solve real-world problems.
|
| 163 |
You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.
|
| 164 |
|
| 165 |
+
Core principles:
|
| 166 |
+
- Use available tools when helpful
|
| 167 |
+
- Apply your knowledge and experience
|
| 168 |
+
- Don't be afraid to make educated guesses when you have partial information
|
| 169 |
+
- Try multiple approaches if the first one doesn't work
|
| 170 |
+
- Think step by step, but don't overthink
|
| 171 |
+
|
| 172 |
+
When you have enough information to give a reasonable answer, go for it.
|
| 173 |
+
Only use "unknown" when you truly cannot make any reasonable attempt.
|
| 174 |
+
|
| 175 |
IMPORTANT OUTPUT INSTRUCTIONS:
|
| 176 |
+
When you need to return your final answer, just output the answer directly.
|
| 177 |
|
| 178 |
Answer format requirements:
|
| 179 |
- If the answer is a number, output only the number (no units, no commas)
|
|
|
|
| 185 |
files_prompt = ""
|
| 186 |
if files:
|
| 187 |
files_prompt = f"\n[You have the following attached files available: {', '.join(files)}]\n"
|
| 188 |
+
files_prompt += "Use your tools to analyze any files as needed.\n"
|
| 189 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
full_question = system_prompt + files_prompt + "\n\n" + question
|
| 191 |
return self.agent.run(full_question)
|
| 192 |
except Exception as e:
|