Skip to content

The agent engineering platform.

Add comment

Nuno Campos778e7c526ecd
diff --git a/libs/langchain/langchain/schema/runnable/base.py b/libs/langchain/langchain/schema/runnable/base.py
index c053d2f625..0a36467f3f 100644
--- a/libs/langchain/langchain/schema/runnable/base.py
+++ b/libs/langchain/langchain/schema/runnable/base.py
@@ -2305,6 +2305,7 @@ class RunnableBinding(RunnableSerializable[Input, Output]):
**other_kwargs: Any,
) -> None:
config = config or {}
+ # config_specs contains the list of valid `configurable` keys
if configurable := config.get("configurable", None):
allowed_keys = set(s.id for s in bound.config_specs)
for key in configurable: