Skip to content

The agent engineering platform.

core[patch]: Fix f-string formatting in error message for configurable_fields (#16411)

Chase VanSteenburg1011b681dc54
diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.py
index cdaab4015b..280ecd25eb 100644
--- a/libs/core/langchain_core/runnables/base.py
+++ b/libs/core/langchain_core/runnables/base.py
@@ -1646,7 +1646,7 @@ class RunnableSerializable(Serializable, Runnable[Input, Output]):
if key not in self.__fields__:
raise ValueError(
f"Configuration key {key} not found in {self}: "
- "available keys are {self.__fields__.keys()}"
+ f"available keys are {self.__fields__.keys()}"
)
return RunnableConfigurableFields(default=self, fields=kwargs)