Thanh Vinh Vo
commited on
Commit
·
f1472a1
1
Parent(s):
51d9598
update
Browse files
app.py
CHANGED
|
@@ -124,7 +124,13 @@ class BasicAgent:
|
|
| 124 |
I am strong at:
|
| 125 |
- Writing code to solve problem.
|
| 126 |
- Browse the web to find information.
|
| 127 |
-
- Solving chess problems
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
""",
|
| 129 |
verbosity_level=0,
|
| 130 |
max_steps=10,
|
|
@@ -164,12 +170,6 @@ class BasicAgent:
|
|
| 164 |
prompt = f"""
|
| 165 |
Answer the following question:
|
| 166 |
"{question} {"The file name for this question is: " if has_file else ""} {question_id if has_file else ""}".
|
| 167 |
-
|
| 168 |
-
Please follow hints below:
|
| 169 |
-
1. `wikipedia` Python package is provided to interact with Wikipedia.
|
| 170 |
-
2. `pandas` Python package is provided. Please use it when there is need to extract structured data (such as tables) from HTML content.
|
| 171 |
-
3. `chess` Python package is provided. Please use it when there is need to solve chess problems.
|
| 172 |
-
4. Please take the question literally! Do not add any additional information or assumptions.
|
| 173 |
"""
|
| 174 |
result = self.manager_agent.run(prompt)
|
| 175 |
print(f"Agent responded with: {result}")
|
|
|
|
| 124 |
I am strong at:
|
| 125 |
- Writing code to solve problem.
|
| 126 |
- Browse the web to find information.
|
| 127 |
+
- Solving chess problems.
|
| 128 |
+
|
| 129 |
+
Please follow hints below:
|
| 130 |
+
1. `wikipedia` Python package is provided to interact with Wikipedia.
|
| 131 |
+
2. `pandas` Python package is provided. Please use it when there is need to extract structured data (such as tables) from HTML content.
|
| 132 |
+
3. `chess` Python package is provided. Please use it when there is need to solve chess problems.
|
| 133 |
+
4. Please take the question literally! Do not add any additional information or assumptions.
|
| 134 |
""",
|
| 135 |
verbosity_level=0,
|
| 136 |
max_steps=10,
|
|
|
|
| 170 |
prompt = f"""
|
| 171 |
Answer the following question:
|
| 172 |
"{question} {"The file name for this question is: " if has_file else ""} {question_id if has_file else ""}".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
"""
|
| 174 |
result = self.manager_agent.run(prompt)
|
| 175 |
print(f"Agent responded with: {result}")
|