From e94275a0d8751ab4ef679810a9d60fc1ae8c4bac Mon Sep 17 00:00:00 2001 From: yanglikun Date: Thu, 20 Nov 2025 13:46:14 +0800 Subject: [PATCH] Update greet function signature to include Command --- src/oss/langchain/short-term-memory.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/langchain/short-term-memory.mdx b/src/oss/langchain/short-term-memory.mdx index 501a2d3300..a09c76265e 100644 --- a/src/oss/langchain/short-term-memory.mdx +++ b/src/oss/langchain/short-term-memory.mdx @@ -694,7 +694,7 @@ def update_user_info( @tool def greet( runtime: ToolRuntime[CustomContext, CustomState] -) -> str: +) -> str | Command: """Use this to greet the user once you found their info.""" user_name = runtime.state.get("user_name", None) if user_name is None: