Spaces:
Sleeping
Sleeping
Commit
·
83a4965
1
Parent(s):
2e1908a
fix code
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ class BasicAgent:
|
|
| 30 |
|
| 31 |
def __call__(self, question: str) -> str:
|
| 32 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 33 |
-
answer = self.agent.invoke(
|
| 34 |
print(f"Agent returning answer: {answer}")
|
| 35 |
return answer
|
| 36 |
|
|
|
|
| 30 |
|
| 31 |
def __call__(self, question: str) -> str:
|
| 32 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 33 |
+
answer = self.agent.invoke({"messages": [("user", question)]})
|
| 34 |
print(f"Agent returning answer: {answer}")
|
| 35 |
return answer
|
| 36 |
|