Delete constants.py custom component
This commit is contained in:
parent
83a1255448
commit
498e5b1508
1 changed files with 0 additions and 38 deletions
|
|
@ -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
|
|
||||||
|
|
||||||
"""
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue