refac: align with the module structure

This commit is contained in:
Gabriel Almeida 2023-03-31 07:49:50 -03:00
commit 4b96a3f221
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,9 @@
from typing import Any, Union
from pydantic import BaseModel
from typing import Any, Union
class Field(BaseModel):
field_type: str = "str"
required: bool = False

View file

@ -1,4 +1,5 @@
from langflow.template.template import Field, FrontendNode, Template
from langflow.template.base import Field, Template
from langflow.template.base import FrontendNode
from langchain.agents.mrkl import prompt
from langflow.utils.constants import DEFAULT_PYTHON_FUNCTION