bug fix
Browse files- gemini_agent.py +2 -9
gemini_agent.py
CHANGED
|
@@ -626,21 +626,14 @@ Action: the action to take, should be one of [{tool_names}]
|
|
| 626 |
Action Input: the input to the action
|
| 627 |
Observation: the result of the action
|
| 628 |
|
| 629 |
-
**For Wikipedia-based facts:**
|
| 630 |
-
1. Action: wikipedia_search
|
| 631 |
-
Action Input: <article title>
|
| 632 |
-
Observation: <full page content>
|
| 633 |
-
2. Action: wikipedia_qa
|
| 634 |
-
Action Input: <original user question>
|
| 635 |
-
Observation: <extracted fact or number>
|
| 636 |
-
|
| 637 |
When you have the final answer, you MUST use exactly one line with this format (no extra text, no lists):
|
| 638 |
|
| 639 |
Thought: Do I need to use a tool? No
|
| 640 |
Final Answer: [your response here]
|
| 641 |
|
| 642 |
IMPORTANT: Every output MUST start with 'Thought:' and follow the above format exactly. Do NOT omit 'Thought:' at the beginning.
|
| 643 |
-
|
|
|
|
| 644 |
"""
|
| 645 |
|
| 646 |
SUFFIX = """Previous conversation history:
|
|
|
|
| 626 |
Action Input: the input to the action
|
| 627 |
Observation: the result of the action
|
| 628 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 629 |
When you have the final answer, you MUST use exactly one line with this format (no extra text, no lists):
|
| 630 |
|
| 631 |
Thought: Do I need to use a tool? No
|
| 632 |
Final Answer: [your response here]
|
| 633 |
|
| 634 |
IMPORTANT: Every output MUST start with 'Thought:' and follow the above format exactly. Do NOT omit 'Thought:' at the beginning.
|
| 635 |
+
|
| 636 |
+
Begin!
|
| 637 |
"""
|
| 638 |
|
| 639 |
SUFFIX = """Previous conversation history:
|