Update agent.py
Browse files
agent.py
CHANGED
|
@@ -42,7 +42,7 @@ class BasicAgent():
|
|
| 42 |
def __call__(self, question: str) -> str:
|
| 43 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 44 |
response = self.agent.invoke({"messages":question})
|
| 45 |
-
answer = response['messages'][-1].content
|
| 46 |
print(f"Agent returning answer: {answer}")
|
| 47 |
return answer
|
| 48 |
|
|
|
|
| 42 |
def __call__(self, question: str) -> str:
|
| 43 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 44 |
response = self.agent.invoke({"messages":question})
|
| 45 |
+
answer = response['messages'][-1].content
|
| 46 |
print(f"Agent returning answer: {answer}")
|
| 47 |
return answer
|
| 48 |
|