Fixed 'str' object is not callable error.
Browse files
app.py
CHANGED
@@ -25,7 +25,8 @@ class BasicAgent:
|
|
25 |
|
26 |
try:
|
27 |
search_result = self.agent.run(question) # CodeAgent typically uses .run()
|
28 |
-
|
|
|
29 |
except Exception as e:
|
30 |
answer = f"Error during search: {e}"
|
31 |
|
|
|
25 |
|
26 |
try:
|
27 |
search_result = self.agent.run(question) # CodeAgent typically uses .run()
|
28 |
+
# Return the search result directly - it's already a string
|
29 |
+
answer = str(search_result)
|
30 |
except Exception as e:
|
31 |
answer = f"Error during search: {e}"
|
32 |
|