Sets a conditional entry point in the graph.
set_conditional_entry_point(
self,
path: Callable[..., Hashable | Sequence[Hashable]] | Callable[..., Awaitable[Hashable | Sequence[Hashable]]] | Runnable[Any, Hashable | Sequence[Hashable]],
path_map: dict[Hashable, str] | list[str] | None = None
) -> Self| Name | Type | Description |
|---|---|---|
path* | Callable[..., Hashable | Sequence[Hashable]] | Callable[..., Awaitable[Hashable | Sequence[Hashable]]] | Runnable[Any, Hashable | Sequence[Hashable]] | The callable that determines the next node or nodes. If not specifying If it returns END, the graph will stop execution. |
path_map | dict[Hashable, str] | list[str] | None | Default: NoneOptional mapping of paths to node names. If omitted the paths returned by |