From d6bd8a1a1b4b62a3e21b32c7759b636db1127918 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 29 Jun 2023 19:30:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(utils.py):=20add=20support?= =?UTF-8?q?=20for=20handle=5Fkeys=20in=20build=5Finput=5Fkeys=5Fresponse?= =?UTF-8?q?=20function=20The=20build=5Finput=5Fkeys=5Fresponse=20function?= =?UTF-8?q?=20now=20includes=20support=20for=20handle=5Fkeys=20in=20the=20?= =?UTF-8?q?response.=20This=20allows=20the=20function=20to=20populate=20th?= =?UTF-8?q?e=20handle=5Fkeys=20field=20in=20the=20response=20with=20the=20?= =?UTF-8?q?values=20from=20the=20artifacts=20dictionary,=20if=20available.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/langflow/api/utils.py b/src/backend/langflow/api/utils.py index 2df86eb7f..aa9598814 100644 --- a/src/backend/langflow/api/utils.py +++ b/src/backend/langflow/api/utils.py @@ -30,6 +30,7 @@ def build_input_keys_response(langchain_object, artifacts): input_keys_response = { "input_keys": {key: "" for key in langchain_object.input_keys}, "memory_keys": [], + "handle_keys": artifacts.get("handle_keys", []), } # Set the input keys values from artifacts