From 06a74bdffd13940ec4490d7840213c2e8f57e227 Mon Sep 17 00:00:00 2001 From: Lucas Democh Date: Fri, 9 May 2025 18:36:19 -0300 Subject: [PATCH] feat: Add multiline input to python REPL component (#7712) * Update python_repl_core.py Changed the input type to MultilineInput to allow code to be received from another component. * [autofix.ci] apply automated fixes * Update python_repl_core.py * Update python_repl_core.py --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose --- src/backend/base/langflow/components/tools/python_repl_core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/base/langflow/components/tools/python_repl_core.py b/src/backend/base/langflow/components/tools/python_repl_core.py index ea88f55e8..bfc7703d0 100644 --- a/src/backend/base/langflow/components/tools/python_repl_core.py +++ b/src/backend/base/langflow/components/tools/python_repl_core.py @@ -28,6 +28,7 @@ class PythonREPLComponent(Component): display_name="Python Code", info="The Python code to execute. Only modules specified in Global Imports can be used.", value="print('Hello, World!')", + input_types=["Message"], tool_mode=True, required=True, ),