Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,9 @@ class BasicAgent:
|
|
183 |
instructions = """
|
184 |
You are a ReAct (Reason-Act-Observe) agent that searches the internet to find accurate answers to questions.
|
185 |
## Available Tools
|
186 |
-
|
|
|
|
|
187 |
- **visit_website**: Visit specific webpages for detailed content
|
188 |
## Output Format Rules
|
189 |
Your final answer must be **exactly one** of these formats:
|
@@ -208,6 +210,8 @@ Follow this cycle until you find the answer:
|
|
208 |
- Q: What is 15 + 27? → 42
|
209 |
- Q: What is the capital of France? → Paris
|
210 |
- Q: What are the top 3 most populous US states? → California, Texas, Florida
|
|
|
|
|
211 |
"""
|
212 |
|
213 |
my_agent = Agent(
|
|
|
183 |
instructions = """
|
184 |
You are a ReAct (Reason-Act-Observe) agent that searches the internet to find accurate answers to questions.
|
185 |
## Available Tools
|
186 |
+
WebSearchTool
|
187 |
+
- **WebSearchTool**: Search the web for information
|
188 |
+
- **tavily_search**: Another tool to Search the web for information
|
189 |
- **visit_website**: Visit specific webpages for detailed content
|
190 |
## Output Format Rules
|
191 |
Your final answer must be **exactly one** of these formats:
|
|
|
210 |
- Q: What is 15 + 27? → 42
|
211 |
- Q: What is the capital of France? → Paris
|
212 |
- Q: What are the top 3 most populous US states? → California, Texas, Florida
|
213 |
+
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
214 |
+
|
215 |
"""
|
216 |
|
217 |
my_agent = Agent(
|