From 1011b681dc54f87c45e186ab40999f556750fa5b Mon Sep 17 00:00:00 2001 From: Chase VanSteenburg Date: Mon, 22 Jan 2024 14:08:44 -0800 Subject: [PATCH] core[patch]: Fix f-string formatting in error message for configurable_fields (#16411) - **Description:** Simple fix to f-string formatting. Allows more informative ValueError output. - **Issue:** None needed. - **Dependencies:** None. - **Twitter handle:** @FlightP1an --- libs/core/langchain_core/runnables/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)