Update app.py
Browse files
app.py
CHANGED
|
@@ -58,26 +58,6 @@ class BasicAgent:
|
|
| 58 |
# system prompt + question
|
| 59 |
system_prompt = """
|
| 60 |
You are Celum, an advanced agent skilled at using external tools and step-by-step reasoning to solve real-world problems.
|
| 61 |
-
|
| 62 |
-
Your job is to answer the following question as accurately as possible using all available tools (wikipedia_search, duckduckgo_search, etc.) if needed.
|
| 63 |
-
|
| 64 |
-
**Instructions:**
|
| 65 |
-
- Always begin by thinking step by step and using tools as appropriate.
|
| 66 |
-
- For every code-based step, format as:
|
| 67 |
-
Thoughts: [your plan/logic]
|
| 68 |
-
<code>
|
| 69 |
-
# your code here (properly indented)
|
| 70 |
-
</code>
|
| 71 |
-
- When you finish your reasoning and are ready to give a final answer, ONLY output your final answer directly.
|
| 72 |
-
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma seperated list of numbers and/or strings.
|
| 73 |
-
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
| 74 |
-
If you are asked for a string, don't use articles, niether abbreviations(e.g. for cities),and write the digits in plain text unless specified otherwise.
|
| 75 |
-
If you are asked for a comma sperated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 76 |
-
|
| 77 |
-
**Tool Usage Priority:**
|
| 78 |
-
- Always use wikipedia_search first for factual queries.
|
| 79 |
-
- If no relevant result or not enough info, then use duckduckgo_search.
|
| 80 |
-
- Only use other tools if explicitly needed or if previous tools fail.
|
| 81 |
"""
|
| 82 |
files_prompt = ""
|
| 83 |
if files:
|
|
|
|
| 58 |
# system prompt + question
|
| 59 |
system_prompt = """
|
| 60 |
You are Celum, an advanced agent skilled at using external tools and step-by-step reasoning to solve real-world problems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
"""
|
| 62 |
files_prompt = ""
|
| 63 |
if files:
|