Refactor vertex imports in base.py
This commit is contained in:
parent
fe391ffa80
commit
eba4a0c5a9
1 changed files with 3 additions and 8 deletions
|
|
@ -12,13 +12,8 @@ from langflow.graph.graph.state_manager import GraphStateManager
|
||||||
from langflow.graph.graph.utils import process_flow
|
from langflow.graph.graph.utils import process_flow
|
||||||
from langflow.graph.schema import INPUT_FIELD_NAME, InterfaceComponentTypes
|
from langflow.graph.schema import INPUT_FIELD_NAME, InterfaceComponentTypes
|
||||||
from langflow.graph.vertex.base import Vertex
|
from langflow.graph.vertex.base import Vertex
|
||||||
from langflow.graph.vertex.types import (
|
from langflow.graph.vertex.types import (ChatVertex, FileToolVertex, LLMVertex,
|
||||||
ChatVertex,
|
RoutingVertex, ToolkitVertex)
|
||||||
FileToolVertex,
|
|
||||||
LLMVertex,
|
|
||||||
RoutingVertex,
|
|
||||||
ToolkitVertex,
|
|
||||||
)
|
|
||||||
from langflow.interface.tools.constants import FILE_TOOLS
|
from langflow.interface.tools.constants import FILE_TOOLS
|
||||||
from langflow.utils import payload
|
from langflow.utils import payload
|
||||||
|
|
||||||
|
|
@ -783,7 +778,7 @@ class Graph:
|
||||||
self.stop_vertex = stop_component_id
|
self.stop_vertex = stop_component_id
|
||||||
vertices = self.sort_up_to_vertex(stop_component_id)
|
vertices = self.sort_up_to_vertex(stop_component_id)
|
||||||
elif start_component_id:
|
elif start_component_id:
|
||||||
vertices = self.sort_up_to_vertex(start_component_id)
|
vertices = self.sort_up_to_vertex(start_component_id, is_start=True)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
vertices = self.vertices
|
vertices = self.vertices
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue