josondev commited on
Commit
6c0b312
·
verified ·
1 Parent(s): 0ab2059

Update veryfinal.py

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