From 5a3fbfe82d2ac3b9e767f5340851a6ec6af70770 Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:02:00 -0700 Subject: [PATCH] [Docs] Fixup stream mode values (#589) --- docs/docs/index.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/docs/index.md b/docs/docs/index.md index 8b627a016..154b23ea3 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -79,16 +79,14 @@ Now, run the graph: # Run the graph thread = {"configurable": {"thread_id": "4"}} for event in app.stream("what is the weather in sf currently", thread, stream_mode="values"): - for v in event.values(): - print(v) + event[-1].pretty_print() ``` We configured the graph to **wait** before executing the `action`. The `SqliteSaver` persists the state. Resume at any time. ```python for event in app.stream(None, thread, stream_mode="values"): - for v in event.values(): - print(v) + event[-1].pretty_print() ``` The graph orchestrates everything: