diff --git a/src/backend/base/langflow/base/constants.py b/src/backend/base/langflow/base/constants.py index 86bb461ed..a54d6eff5 100644 --- a/src/backend/base/langflow/base/constants.py +++ b/src/backend/base/langflow/base/constants.py @@ -1 +1,27 @@ +""" +This module contains constants used in the Langflow base module. + +Constants: +- STREAM_INFO_TEXT: A string representing the information about streaming the response from the model. +- NODE_FORMAT_ATTRIBUTES: A list of attributes used for formatting nodes. +- FIELD_FORMAT_ATTRIBUTES: A list of attributes used for formatting fields. +""" STREAM_INFO_TEXT = "Stream the response from the model. Streaming works only in Chat." + +NODE_FORMAT_ATTRIBUTES = ["beta", "icon", "display_name", "description"] + + +FIELD_FORMAT_ATTRIBUTES = [ + "info", + "display_name", + "required", + "list", + "multiline", + "fileTypes", + "password", + "input_types", + "title_case", + "real_time_refresh", + "refresh_button", + "refresh_button_text", +]