From 498e5b1508f918a6cc254e3840c63ea5678b81e9 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 2 Dec 2023 14:00:50 -0300 Subject: [PATCH] Delete constants.py custom component --- .../langflow/interface/custom/constants.py | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/backend/langflow/interface/custom/constants.py diff --git a/src/backend/langflow/interface/custom/constants.py b/src/backend/langflow/interface/custom/constants.py deleted file mode 100644 index 36ebf420e..000000000 --- a/src/backend/langflow/interface/custom/constants.py +++ /dev/null @@ -1,38 +0,0 @@ -DEFAULT_CUSTOM_COMPONENT_CODE = """from langflow import CustomComponent -from typing import Optional, List, Dict, Union -from langflow.field_typing import ( - AgentExecutor, - BaseChatMemory, - BaseLanguageModel, - BaseLLM, - BaseLoader, - BaseMemory, - BaseOutputParser, - BasePromptTemplate, - BaseRetriever, - Callable, - Chain, - ChatPromptTemplate, - Data, - Document, - Embeddings, - NestedDict, - Object, - PromptTemplate, - TextSplitter, - Tool, - VectorStore, -) - - -class Component(CustomComponent): - display_name: str = "Custom Component" - description: str = "Create any custom component you want!" - - def build_config(self): - return {"param": {"display_name": "Parameter"}} - - def build(self, param: Data) -> Data: - return param - -"""