Update veryfinal.py
Browse files- veryfinal.py +5 -5
veryfinal.py
CHANGED
@@ -312,8 +312,8 @@ def build_graph(provider: str="hybrid"):
|
|
312 |
raise ValueError("Only 'hybrid' supported")
|
313 |
|
314 |
if __name__ == "__main__":
|
315 |
-
graph=build_graph()
|
316 |
-
|
317 |
-
res=graph.invoke({"messages":msgs},{"configurable":{"thread_id":"test"}})
|
318 |
-
|
319 |
-
m.pretty_print()
|
|
|
312 |
raise ValueError("Only 'hybrid' supported")
|
313 |
|
314 |
if __name__ == "__main__":
|
315 |
+
graph=build_graph()
|
316 |
+
msgs=[HumanMessage(content="What are the names of the US presidents who were assassinated?")]
|
317 |
+
res=graph.invoke({"messages":msgs},{"configurable":{"thread_id":"test"}})
|
318 |
+
for m in res["messages"]:
|
319 |
+
m.pretty_print()
|