ref: standardize imports to use full qualified names (#7575)
* Remove models from __init__.py to avoid circular dependency * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * add back init to avoid backwards-compat issues * [autofix.ci] apply automated fixes * ref: standardize imports to use full qualified names Replaces uses of the "public" APIs to use full qualified names to reduce instances of circular dependencies * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * Fix path * update starters" " * remove old files' * [autofix.ci] apply automated fixes * Fix some imports * [autofix.ci] apply automated fixes * ruff * [autofix.ci] apply automated fixes * starter projects? * starter projects? * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
232d130863
commit
f2e3f2ccc5
332 changed files with 863 additions and 803 deletions
|
|
@ -6,7 +6,7 @@ from langflow.components.input_output.chat_output import ChatOutput
|
|||
from langflow.components.langchain_utilities import ToolCallingAgentComponent
|
||||
from langflow.components.languagemodels import OpenAIModelComponent
|
||||
from langflow.components.tools.calculator import CalculatorToolComponent
|
||||
from langflow.graph import Graph
|
||||
from langflow.graph.graph.base import Graph
|
||||
from langflow.schema.data import Data
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ from unittest.mock import MagicMock
|
|||
|
||||
import pytest
|
||||
from langflow.components.languagemodels import DeepSeekModelComponent
|
||||
from langflow.custom import Component
|
||||
from langflow.custom.custom_component.component import Component
|
||||
from langflow.custom.utils import build_custom_component_template
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ from unittest.mock import MagicMock, patch
|
|||
|
||||
import pytest
|
||||
from langflow.components.languagemodels import XAIModelComponent
|
||||
from langflow.custom import Component
|
||||
from langflow.custom.custom_component.component import Component
|
||||
from langflow.custom.utils import build_custom_component_template
|
||||
from langflow.inputs import (
|
||||
from langflow.inputs.inputs import (
|
||||
BoolInput,
|
||||
DictInput,
|
||||
DropdownInput,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ from unittest.mock import MagicMock, patch
|
|||
import pytest
|
||||
from langflow.base.models.anthropic_constants import ANTHROPIC_MODELS
|
||||
from langflow.base.models.openai_constants import OPENAI_MODEL_NAMES
|
||||
from langflow.components.models import LanguageModelComponent
|
||||
from langflow.components.models.language_model import LanguageModelComponent
|
||||
|
||||
from tests.base import ComponentTestBaseWithClient
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import pytest
|
|||
from langflow.components.input_output import ChatInput, ChatOutput
|
||||
from langflow.components.languagemodels import OpenAIModelComponent
|
||||
from langflow.components.prompts import PromptComponent
|
||||
from langflow.graph import Graph
|
||||
from langflow.graph.graph.base import Graph
|
||||
|
||||
|
||||
def test_edge_raises_error_on_invalid_target_handle():
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ from langflow.components.input_output.text import TextInputComponent
|
|||
from langflow.components.languagemodels import OpenAIModelComponent
|
||||
from langflow.components.logic.conditional_router import ConditionalRouterComponent
|
||||
from langflow.components.prompts import PromptComponent
|
||||
from langflow.custom import Component
|
||||
from langflow.graph import Graph
|
||||
from langflow.custom.custom_component.component import Component
|
||||
from langflow.graph.graph.base import Graph
|
||||
from langflow.graph.graph.utils import find_cycle_vertices
|
||||
from langflow.io import MessageTextInput, Output
|
||||
from langflow.schema.message import Message
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from langflow.components.input_output import ChatInput, ChatOutput
|
|||
from langflow.components.languagemodels import OpenAIModelComponent
|
||||
from langflow.components.processing.converter import TypeConverterComponent
|
||||
from langflow.components.prompts import PromptComponent
|
||||
from langflow.graph import Graph
|
||||
from langflow.graph.graph.base import Graph
|
||||
from langflow.graph.graph.constants import Finish
|
||||
from langflow.graph.graph.state_model import create_state_model_from_graph
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from langflow.components.input_output import ChatInput, ChatOutput
|
|||
from langflow.components.languagemodels import OpenAIModelComponent
|
||||
from langflow.components.processing.converter import TypeConverterComponent
|
||||
from langflow.components.prompts import PromptComponent
|
||||
from langflow.graph import Graph
|
||||
from langflow.graph.graph.base import Graph
|
||||
from langflow.graph.graph.constants import Finish
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ from langflow.components.processing import ParseDataComponent
|
|||
from langflow.components.processing.split_text import SplitTextComponent
|
||||
from langflow.components.prompts import PromptComponent
|
||||
from langflow.components.vectorstores import AstraDBVectorStoreComponent
|
||||
from langflow.graph import Graph
|
||||
from langflow.graph.graph.base import Graph
|
||||
from langflow.graph.graph.constants import Finish
|
||||
from langflow.schema import Data
|
||||
from langflow.schema.dataframe import DataFrame
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue