Spaces:
Sleeping
Sleeping
clean up
Browse files
app.py
CHANGED
|
@@ -421,35 +421,29 @@ class SlpMultiAgent:
|
|
| 421 |
lambda: manager_agent.run(f"""
|
| 422 |
Question: {short_question}
|
| 423 |
|
| 424 |
-
CRITICAL
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
4. DO NOT write complex code - use tools instead
|
| 429 |
-
5. DO NOT call ResearchAgent() or SolverAgent() in code
|
| 430 |
|
| 431 |
Available tools:
|
| 432 |
-
- google_search(query): Search
|
| 433 |
- math_calculator(expression): Calculate math
|
| 434 |
-
- file_processor(action, data): Handle files
|
| 435 |
- knowledge_base(topic): Get knowledge
|
| 436 |
|
| 437 |
-
|
| 438 |
-
- Call the appropriate tool
|
| 439 |
-
- Get the result
|
| 440 |
-
- Provide final_answer()
|
| 441 |
-
|
| 442 |
-
Example for factual question:
|
| 443 |
-
1. Call google_search("your query")
|
| 444 |
-
2. Extract answer from results
|
| 445 |
-
3. Call final_answer("the answer")
|
| 446 |
-
|
| 447 |
-
NO complex code execution. Use tools directly.
|
| 448 |
-
|
| 449 |
-
ALWAYS end with:
|
| 450 |
<code>
|
|
|
|
| 451 |
final_answer("your answer here")
|
| 452 |
</code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
""")
|
| 454 |
)
|
| 455 |
break # Success, exit retry loop
|
|
|
|
| 421 |
lambda: manager_agent.run(f"""
|
| 422 |
Question: {short_question}
|
| 423 |
|
| 424 |
+
CRITICAL: You MUST use the exact format below. Do NOT use markdown code blocks.
|
| 425 |
+
|
| 426 |
+
Step 1: Use a tool to get information
|
| 427 |
+
Step 2: Provide final answer
|
|
|
|
|
|
|
| 428 |
|
| 429 |
Available tools:
|
| 430 |
+
- google_search(query): Search for information
|
| 431 |
- math_calculator(expression): Calculate math
|
|
|
|
| 432 |
- knowledge_base(topic): Get knowledge
|
| 433 |
|
| 434 |
+
FORMAT EXAMPLE:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 435 |
<code>
|
| 436 |
+
result = google_search("your search query here")
|
| 437 |
final_answer("your answer here")
|
| 438 |
</code>
|
| 439 |
+
|
| 440 |
+
RULES:
|
| 441 |
+
- Always wrap code in <code> tags, never use ```
|
| 442 |
+
- Call tools directly as functions
|
| 443 |
+
- End with final_answer("answer")
|
| 444 |
+
- Be concise
|
| 445 |
+
|
| 446 |
+
Answer the question now using this exact format.
|
| 447 |
""")
|
| 448 |
)
|
| 449 |
break # Success, exit retry loop
|