Refactor data and helper components

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-30 17:42:38 -03:00
commit 8651850803
6 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ class DirectoryComponent(CustomComponent):
display_name = "Directory"
description = "Recursively load files from a directory."
icon = "folder"
def build_config(self) -> Dict[str, Any]:
return {
"path": {"display_name": "Path"},

View file

@ -10,7 +10,7 @@ class FileComponent(CustomComponent):
display_name = "File"
description = "A generic file loader."
icon = "file-text"
def build_config(self) -> Dict[str, Any]:
return {
"paths": {

View file

@ -10,7 +10,7 @@ class URLComponent(CustomComponent):
display_name = "URL"
description = "Fetch content from one or more URLs."
icon = "layout-template"
def build_config(self) -> Dict[str, Any]:
return {
"urls": {"display_name": "URL"},

View file

@ -1,6 +1,7 @@
from langflow.interface.custom.custom_component import CustomComponent
from langflow.field_typing import Text
class CombineTextComponent(CustomComponent):
display_name = "Combine Text"
description = "Concatenate two text sources into a single text chunk using a specified delimiter."

View file

@ -7,7 +7,6 @@ from langflow.schema import Record
class RecordsToTextComponent(CustomComponent):
display_name = "Records To Text"
description = "Convert Records into plain text following a specified template."
def build_config(self):
return {