✨ (inputs/__init__.py): Add TextInput class to support text input type in langflow inputs

📝 (inputs/inputs.py): Add TextInput class with validation logic for different input types like Data, Message, and Text
📝 (schema/message.py): Add text_key attribute to Message class to specify the key for text data in the message object
This commit is contained in:
ogabrielluiz 2024-06-14 11:52:08 -03:00
commit 6ff8b01e9c
3 changed files with 32 additions and 3 deletions

View file

@ -4,13 +4,14 @@ from .inputs import (
DropdownInput,
FileInput,
FloatInput,
HandleInput,
IntInput,
MultilineInput,
NestedDictInput,
PromptInput,
SecretStrInput,
StrInput,
HandleInput,
TextInput,
)
__all__ = [
@ -26,4 +27,5 @@ __all__ = [
"PromptInput",
"MultilineInput",
"HandleInput",
"TextInput",
]