yera.runtime.blocks.tree_selector
Tree selector block implementation.
Symbols
request_input_tree_selector
request_input_tree_selector(
tree: Mapping[str, object],
label: str | None = None,
min_selections: int = 1,
max_selections: int | None = None,
) → strRequest selections from the leaves of a nested tree.
Parameters
tree
type: Mapping[str, object]
Normalized nested branches and canonical leaf values.
label
type: str | None = None
Optional prompt shown above the tree.
min_selections
type: int = 1
Minimum number of leaves that must be selected.
max_selections
type: int | None = None
Optional maximum number of leaves that may be selected.
Returns
type: str
Block ID identifying the input request.