🔀 refactor(run.py): refactor build_sorted_vertices function signature to include optional user_id parameter for improved flexibility and type hinting
This commit is contained in:
parent
47e5d49c8f
commit
4e147b0852
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ from langflow.graph import Graph
|
|||
from loguru import logger
|
||||
|
||||
|
||||
def build_sorted_vertices(data_graph, user_id) -> Tuple[Graph, Dict]:
|
||||
def build_sorted_vertices(
|
||||
data_graph, user_id: Optional[Union[str, UUID]] = None
|
||||
) -> Tuple[Graph, Dict]:
|
||||
"""
|
||||
Build langchain object from data_graph.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue