🔀 chore(constants.py): reorganize imports in constants.py for better readability and maintainability

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-22 11:00:49 -03:00
commit b633afba8d

View file

@ -1,23 +1,27 @@
DEFAULT_CUSTOM_COMPONENT_CODE = """from langflow import CustomComponent DEFAULT_CUSTOM_COMPONENT_CODE = """from langflow import CustomComponent
from langflow.field_typing import ( from langflow.field_typing import (
Tool, AgentExecutor,
PromptTemplate,
Chain,
BaseChatMemory, BaseChatMemory,
BaseLanguageModel,
BaseLLM, BaseLLM,
BaseLoader, BaseLoader,
BaseMemory, BaseMemory,
BaseOutputParser, BaseOutputParser,
BasePromptTemplate,
BaseRetriever, BaseRetriever,
VectorStore, Callable,
Embeddings, Chain,
TextSplitter, ChatPromptTemplate,
Document,
AgentExecutor,
NestedDict,
Data, Data,
Document,
Embeddings,
NestedDict,
Object, Object,
PromptTemplate,
TextSplitter,
Tool,
VectorStore,
) )