Thanh Vinh Vo
commited on
Commit
·
d933c73
1
Parent(s):
01431d6
update
Browse files
app.py
CHANGED
|
@@ -233,6 +233,9 @@ class BasicAgent:
|
|
| 233 |
- Writing code to solve problem.
|
| 234 |
- Browse the web to find information.
|
| 235 |
- Solving chess problems.
|
|
|
|
|
|
|
|
|
|
| 236 |
""",
|
| 237 |
verbosity_level=0,
|
| 238 |
max_steps=10,
|
|
@@ -276,8 +279,9 @@ class BasicAgent:
|
|
| 276 |
prompt = f"""
|
| 277 |
Answer the following question (question_id is {question_id}):):
|
| 278 |
"{question}""{file}"
|
| 279 |
-
Please follow
|
| 280 |
-
1.
|
|
|
|
| 281 |
"""
|
| 282 |
result = self.manager_agent.run(prompt)
|
| 283 |
print(f"Agent responded with: {result}")
|
|
|
|
| 233 |
- Writing code to solve problem.
|
| 234 |
- Browse the web to find information.
|
| 235 |
- Solving chess problems.
|
| 236 |
+
This agent follows rules below:
|
| 237 |
+
1. Take the question literally! Do not add any additional information or assumptions.
|
| 238 |
+
2. `wikipedia` Python library is provided that makes it easy to to interact with Wikipedia pages.
|
| 239 |
""",
|
| 240 |
verbosity_level=0,
|
| 241 |
max_steps=10,
|
|
|
|
| 279 |
prompt = f"""
|
| 280 |
Answer the following question (question_id is {question_id}):):
|
| 281 |
"{question}""{file}"
|
| 282 |
+
Please follow rules below:
|
| 283 |
+
1. Take the question literally! Do not add any additional information or assumptions.
|
| 284 |
+
2. `wikipedia` Python library is provided that makes it easy to to interact with Wikipedia pages.
|
| 285 |
"""
|
| 286 |
result = self.manager_agent.run(prompt)
|
| 287 |
print(f"Agent responded with: {result}")
|