Update app.py
Browse files
app.py
CHANGED
|
@@ -122,26 +122,17 @@ class BasicAgent:
|
|
| 122 |
],
|
| 123 |
max_steps=6,
|
| 124 |
name="EvalAgent",
|
| 125 |
-
description=
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
Use
|
| 130 |
-
-
|
| 131 |
-
-
|
| 132 |
-
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
Important:
|
| 137 |
-
- Always respond with a **'Final Answer:'** at the end of your reasoning, summarizing the direct answer to the question.
|
| 138 |
-
- Do not attempt to visit or scrape webpages directly.
|
| 139 |
-
- Do not call undefined tools or repeat steps unnecessarily.
|
| 140 |
-
- If unsure, make your best effort using available tools and answer as clearly as possible.
|
| 141 |
-
|
| 142 |
-
Stay concise and focused.
|
| 143 |
-
"""
|
| 144 |
-
)
|
| 145 |
print("✅ Agent initialized with all tools")
|
| 146 |
|
| 147 |
def __call__(self, question: str) -> str:
|
|
|
|
| 122 |
],
|
| 123 |
max_steps=6,
|
| 124 |
name="EvalAgent",
|
| 125 |
+
description=(
|
| 126 |
+
"You are EvalAgent, a helpful assistant answering questions using the tools provided.\n\n"
|
| 127 |
+
"Use these tools appropriately:\n"
|
| 128 |
+
"- Use 'duckduckgo_search' to search for facts or Wikipedia info. Do not loop multiple search variations.\n"
|
| 129 |
+
"- Use 'describe_image_with_blip' to describe provided images.\n"
|
| 130 |
+
"- Use 'transcribe_audio' when an audio file is involved.\n"
|
| 131 |
+
"- Use 'get_current_time_in_timezone' when asked about the current time or a timezone.\n"
|
| 132 |
+
"- Use 'parse_csv' when a CSV file is provided.\n\n"
|
| 133 |
+
"Always end your response with 'Final Answer: ...'. Do not repeat steps or try undefined functions.\n"
|
| 134 |
+
)
|
| 135 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
print("✅ Agent initialized with all tools")
|
| 137 |
|
| 138 |
def __call__(self, question: str) -> str:
|