Add constants for Langflow base module

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-04-01 12:18:55 -03:00
commit 7415def0a9

View file

@ -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",
]