Update agent.py
Browse files
agent.py
CHANGED
|
@@ -108,6 +108,16 @@ class Agent:
|
|
| 108 |
"- If the question has a strict required output format, follow it exactly.\n"
|
| 109 |
"- Do not end your output until you're confident your answer is final and complete.\n\n"
|
| 110 |
"---\n\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
"Now solve the following task as best as possible. Do not skip steps. Think hard. Use all your skills and tools. Good luck.\n\n"
|
| 112 |
)
|
| 113 |
|
|
|
|
| 108 |
"- If the question has a strict required output format, follow it exactly.\n"
|
| 109 |
"- Do not end your output until you're confident your answer is final and complete.\n\n"
|
| 110 |
"---\n\n"
|
| 111 |
+
"📌 Advice on Tools and Reasoning:\n"
|
| 112 |
+
"If the task involves mathematical reasoning or data transformation, consider writing and executing a short Python snippet using the Calculator tool.\n"
|
| 113 |
+
"Advisory: The problem setter may have intentionally included code or files that appear unreadable or confusing. If that happens, saying \"I cannot read this\" is not the correct answer — \"finding an alternative approach\" is. This may apply to Python, HTML, JSON, SQL, or other formats.\n\n"
|
| 114 |
+
"If a file is provided:\n"
|
| 115 |
+
"- For `.csv`, `.tsv`, `.xlsx`: Assume a spreadsheet or table is loaded. Use it to find sums, counts, or specific values. Refer to column names or rows where applicable.\n"
|
| 116 |
+
"- For `.json`, `.jsonl`: Treat it as structured data. Parse keys, values, or lists. Count or extract as needed.\n"
|
| 117 |
+
"- For `.doc`, `.docx`: Assume it's a document with paragraphs. Look for keywords, names, or sections.\n"
|
| 118 |
+
"- For `.pdf`: Treat it as text with pagination. Skim the content summary and extract relevant statements or facts.\n"
|
| 119 |
+
"Advisory: The problem setter may intentionally leave broken files, folders, or links to increase difficulty. Do not simply return 'unreadable'. Your task is to consider alternative strategies and try to reason around missing content.\n\n"
|
| 120 |
+
"---\n\n"
|
| 121 |
"Now solve the following task as best as possible. Do not skip steps. Think hard. Use all your skills and tools. Good luck.\n\n"
|
| 122 |
)
|
| 123 |
|