Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ class BasicAgent:
|
|
| 26 |
max_steps=15,
|
| 27 |
planning_interval=3 # Enable planning every 3 steps
|
| 28 |
)
|
| 29 |
-
|
| 30 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 31 |
fixed_answer = self.agent.run(question)
|
| 32 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
|
|
|
| 26 |
max_steps=15,
|
| 27 |
planning_interval=3 # Enable planning every 3 steps
|
| 28 |
)
|
| 29 |
+
def __call__(self, question: str) -> str:
|
| 30 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 31 |
fixed_answer = self.agent.run(question)
|
| 32 |
print(f"Agent returning fixed answer: {fixed_answer}")
|