Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -183,7 +183,7 @@ class BasicAgent:
|
|
| 183 |
model=model,
|
| 184 |
tools=tools,
|
| 185 |
add_base_tools=False,
|
| 186 |
-
max_steps=
|
| 187 |
)
|
| 188 |
self.agent.system_prompt = (
|
| 189 |
"""
|
|
@@ -235,6 +235,18 @@ class BasicAgent:
|
|
| 235 |
- If a question has multiple valid interpretations, choose the **narrowest, most literal** one.
|
| 236 |
- If the answer is not found, say `[ANSWER] - unknown`.
|
| 237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
---
|
| 239 |
|
| 240 |
You must follow the examples (These answers are correct in case you see the similar questions):
|
|
|
|
| 183 |
model=model,
|
| 184 |
tools=tools,
|
| 185 |
add_base_tools=False,
|
| 186 |
+
max_steps=10,
|
| 187 |
)
|
| 188 |
self.agent.system_prompt = (
|
| 189 |
"""
|
|
|
|
| 235 |
- If a question has multiple valid interpretations, choose the **narrowest, most literal** one.
|
| 236 |
- If the answer is not found, say `[ANSWER] - unknown`.
|
| 237 |
|
| 238 |
+
Hard rules
|
| 239 |
+
ββββββββββ
|
| 240 |
+
1. Think internally as much as you like, but **never reveal** chain-of-thought, tool traces, or explanations.
|
| 241 |
+
2. If the correct reply is unknown or the question is invalid, reply exactly
|
| 242 |
+
`[ANSWER]unknown`.
|
| 243 |
+
3. Numerical replies β digits only (no commas, no units, no words).
|
| 244 |
+
String replies β lowercase, no leading/trailing spaces, no articles (βaβ, βtheβ).
|
| 245 |
+
Lists β comma-separated, alphabetically sorted, no spaces after commas.
|
| 246 |
+
4. If the question asks for a set size, return the **count**, not the set.
|
| 247 |
+
5. After using any tools, stop and output the final line; do **not** echo tool output.
|
| 248 |
+
6. Violating any rule or adding extra text causes the run to be scored wrong.
|
| 249 |
+
|
| 250 |
---
|
| 251 |
|
| 252 |
You must follow the examples (These answers are correct in case you see the similar questions):
|