79521748

Date: 2025-03-20 02:23:47
Score: 0.5
Natty:
Report link

I use for-loop to interate all events of graph

def stream_graph_updates(user_input: str):
    for event in graph.stream({"messages": [{"role": "user", "content": user_input}]}, subgraphs=True):
        for value in event:
            print("Assistant:", value)
            print("----")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: happy