Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -471,7 +471,7 @@ class EsiAgent:
|
|
| 471 |
final_state = self.graph.invoke(state)
|
| 472 |
print(final_state)
|
| 473 |
# 4) Pull out the final answer
|
| 474 |
-
return final_state
|
| 475 |
# Optional: allow running agent.py directly for quick tests
|
| 476 |
if __name__ == "__main__":
|
| 477 |
agent = EsiAgent()
|
|
|
|
| 471 |
final_state = self.graph.invoke(state)
|
| 472 |
print(final_state)
|
| 473 |
# 4) Pull out the final answer
|
| 474 |
+
return final_state['final_answer']
|
| 475 |
# Optional: allow running agent.py directly for quick tests
|
| 476 |
if __name__ == "__main__":
|
| 477 |
agent = EsiAgent()
|