Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,6 +29,11 @@ class BasicAgent:
|
|
| 29 |
"get_files_task_id_tool": lambda task_id: get_files_task_id_tool(task_id),
|
| 30 |
"image_processing_tool": lambda file_content: image_processing_tool(file_content)
|
| 31 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
def web_search_tool(search_terms: str) -> str:
|
| 34 |
"""
|
|
|
|
| 29 |
"get_files_task_id_tool": lambda task_id: get_files_task_id_tool(task_id),
|
| 30 |
"image_processing_tool": lambda file_content: image_processing_tool(file_content)
|
| 31 |
}
|
| 32 |
+
def __call__(self, question: str) -> str:
|
| 33 |
+
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 34 |
+
fixed_answer = "This is a default answer."
|
| 35 |
+
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 36 |
+
return fixed_answer
|
| 37 |
|
| 38 |
def web_search_tool(search_terms: str) -> str:
|
| 39 |
"""
|