Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -177,7 +177,7 @@ if __name__ == "__main__":
|
|
| 177 |
print(f"\n--- Testing Question {i+1}: {question}")
|
| 178 |
try:
|
| 179 |
# LangGraph returns the final state after execution completes or hits recursion limit
|
| 180 |
-
final_state = graph.invoke({"messages": [HumanMessage(content=question)]})
|
| 181 |
print("\n--- Final State Messages ---")
|
| 182 |
for m in final_state["messages"]:
|
| 183 |
m.pretty_print()
|
|
|
|
| 177 |
print(f"\n--- Testing Question {i+1}: {question}")
|
| 178 |
try:
|
| 179 |
# LangGraph returns the final state after execution completes or hits recursion limit
|
| 180 |
+
final_state = graph.invoke({"messages": [SystemMessage(content=system_prompt), HumanMessage(content=question)]})
|
| 181 |
print("\n--- Final State Messages ---")
|
| 182 |
for m in final_state["messages"]:
|
| 183 |
m.pretty_print()
|