diff --git a/libs/core/langchain_core/runnables/utils.py b/libs/core/langchain_core/runnables/utils.py index 03edb0c291..cb8f21e29c 100644 --- a/libs/core/langchain_core/runnables/utils.py +++ b/libs/core/langchain_core/runnables/utils.py @@ -254,7 +254,6 @@ def get_function_nonlocals(func: Callable) -> List[Any]: vv = getattr(vv, part) else: values.append(vv) - values.append(vv) return values except (SyntaxError, TypeError, OSError): return []