Refactor data and helper components
This commit is contained in:
parent
5e55f33c6f
commit
8651850803
6 changed files with 4 additions and 4 deletions
|
|
@ -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"},
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue