Spaces:
Sleeping
Sleeping
graph test
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ Double-check that the synthesized answer directly addresses the original questio
|
|
| 57 |
4. Format Output:
|
| 58 |
Last sentence should of your response shoule either:
|
| 59 |
- start **EXACTLY** with `FINAL ANSWER: ` followed by the answer.
|
| 60 |
-
- OR start **EXACTLY** with `TOOL: ` followed by the tool name and the request to the tool, example `TOOL:
|
| 61 |
|
| 62 |
"""
|
| 63 |
|
|
@@ -164,7 +164,7 @@ class BasicAgent:
|
|
| 164 |
return "EXCEEDED_ATTEMPTS"
|
| 165 |
|
| 166 |
if state["search_request"]:
|
| 167 |
-
return "
|
| 168 |
|
| 169 |
return "FINAL_ANSWER"
|
| 170 |
|
|
|
|
| 57 |
4. Format Output:
|
| 58 |
Last sentence should of your response shoule either:
|
| 59 |
- start **EXACTLY** with `FINAL ANSWER: ` followed by the answer.
|
| 60 |
+
- OR start **EXACTLY** with `TOOL: ` followed by the tool name and the request to the tool, example `TOOL: DuckDuckGoSearchAgent(request='search query')`
|
| 61 |
|
| 62 |
"""
|
| 63 |
|
|
|
|
| 164 |
return "EXCEEDED_ATTEMPTS"
|
| 165 |
|
| 166 |
if state["search_request"]:
|
| 167 |
+
return "WEB_SEARCH"
|
| 168 |
|
| 169 |
return "FINAL_ANSWER"
|
| 170 |
|