From 4028554ef6546bfe023fb5979e7ed1ddbfc904bd Mon Sep 17 00:00:00 2001 From: gustavoschaedler Date: Wed, 5 Jul 2023 00:57:16 +0100 Subject: [PATCH] Refactor build method argument name for clarity Previously, the `build` method in the `MyPythonClass` class had an argument named `name`, which could be confusing. This commit changes the argument name to `my_custom_input` to improve readability and clarity. --- src/backend/langflow/interface/importing/utils.py | 2 +- src/backend/langflow/utils/constants.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/interface/importing/utils.py b/src/backend/langflow/interface/importing/utils.py index cf804e67d..1176de07c 100644 --- a/src/backend/langflow/interface/importing/utils.py +++ b/src/backend/langflow/interface/importing/utils.py @@ -181,7 +181,7 @@ class MyPythonClass: llm=llm, verbose=True, memory=ConversationBufferMemory() ) - def build(self, name: str) -> ConversationChain: + def build(self, my_custom_input: str) -> ConversationChain: conversation = self.my_conversation() return conversation diff --git a/src/backend/langflow/utils/constants.py b/src/backend/langflow/utils/constants.py index 8cec38c6e..a7de648b3 100644 --- a/src/backend/langflow/utils/constants.py +++ b/src/backend/langflow/utils/constants.py @@ -62,7 +62,7 @@ class MyPythonClass: llm=llm, verbose=True, memory=ConversationBufferMemory() ) - def build(self, name: str) -> ConversationChain: + def build(self, my_custom_input: str) -> ConversationChain: conversation = self.my_conversation() return conversation