From 3be77968457b9285a9367b0d3108c33b5d687db4 Mon Sep 17 00:00:00 2001 From: Umar Aslam <114845317+CH-Umar-Aslam@users.noreply.github.com> Date: Sun, 7 Dec 2025 18:56:00 +0500 Subject: [PATCH] Capture and print output from graph invocation Store the output of the graph invocation and print it. --- src/oss/langgraph/overview.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oss/langgraph/overview.mdx b/src/oss/langgraph/overview.mdx index d7478ef505..2f979fbaeb 100644 --- a/src/oss/langgraph/overview.mdx +++ b/src/oss/langgraph/overview.mdx @@ -99,7 +99,8 @@ const graph = new StateGraph(MessagesAnnotation) .addEdge("mock_llm", END) .compile(); -await graph.invoke({ messages: [{ role: "user", content: "hi!" }] }); +output = await graph.invoke({ messages: [{ role: "user", content: "hi!" }] }); +print(output) ``` :::