giulia-fontanella commited on
Commit
3ddb88f
·
verified ·
1 Parent(s): bf011fb

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
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