mirror of
https://github.com/langgenius/dify.git
synced 2025-07-04 15:50:19 +00:00
9 lines
234 B
Python
9 lines
234 B
Python
![]() |
from collections.abc import Iterable, Sequence
|
||
|
|
||
|
|
||
|
def to_selector(node_id: str, name: str, paths: Iterable[str] = ()) -> Sequence[str]:
|
||
|
selectors = [node_id, name]
|
||
|
if paths:
|
||
|
selectors.extend(paths)
|
||
|
return selectors
|