Thanh Vinh Vo commited on
Commit ·
9b9abfe
1
Parent(s): 8b9c665
update
Browse files
app.py
CHANGED
|
@@ -200,6 +200,7 @@ class BasicAgent:
|
|
| 200 |
This agent can reason across audio, vision, and text, a.k.a multimodal agent. """,
|
| 201 |
verbosity_level=0,
|
| 202 |
max_steps=10,
|
|
|
|
| 203 |
)
|
| 204 |
|
| 205 |
self.code_agent = CodeAgent(
|
|
@@ -242,6 +243,7 @@ class BasicAgent:
|
|
| 242 |
""",
|
| 243 |
verbosity_level=0,
|
| 244 |
max_steps=10,
|
|
|
|
| 245 |
)
|
| 246 |
|
| 247 |
self.manager_agent = CodeAgent(
|
|
@@ -275,13 +277,14 @@ class BasicAgent:
|
|
| 275 |
],
|
| 276 |
planning_interval=5,
|
| 277 |
max_steps=15,
|
|
|
|
| 278 |
)
|
| 279 |
|
| 280 |
def __call__(self, question: str, question_id: str, file_name: str) -> str:
|
| 281 |
print(f"Agent received question: {question}")
|
| 282 |
file = f"Mentioned file: {file_name}" if file_name else ""
|
| 283 |
prompt = f"""
|
| 284 |
-
Answer the following question (question_id is {question_id}):
|
| 285 |
"{question}""{file}"
|
| 286 |
Please follow rules below:
|
| 287 |
1. Take the question literally! Do not add any additional information or assumptions.
|
|
|
|
| 200 |
This agent can reason across audio, vision, and text, a.k.a multimodal agent. """,
|
| 201 |
verbosity_level=0,
|
| 202 |
max_steps=10,
|
| 203 |
+
temperature=0.0,
|
| 204 |
)
|
| 205 |
|
| 206 |
self.code_agent = CodeAgent(
|
|
|
|
| 243 |
""",
|
| 244 |
verbosity_level=0,
|
| 245 |
max_steps=10,
|
| 246 |
+
temperature=0.0,
|
| 247 |
)
|
| 248 |
|
| 249 |
self.manager_agent = CodeAgent(
|
|
|
|
| 277 |
],
|
| 278 |
planning_interval=5,
|
| 279 |
max_steps=15,
|
| 280 |
+
temperature=0.0,
|
| 281 |
)
|
| 282 |
|
| 283 |
def __call__(self, question: str, question_id: str, file_name: str) -> str:
|
| 284 |
print(f"Agent received question: {question}")
|
| 285 |
file = f"Mentioned file: {file_name}" if file_name else ""
|
| 286 |
prompt = f"""
|
| 287 |
+
Answer the following question (question_id is {question_id}):
|
| 288 |
"{question}""{file}"
|
| 289 |
Please follow rules below:
|
| 290 |
1. Take the question literally! Do not add any additional information or assumptions.
|