While#
- class council.runners.While(predicate: Callable[[ChainContext], bool], runner: RunnerBase)[source]#
Bases:
RunnerBase
Runner that executes while the given predicate returns True
- __init__(predicate: Callable[[ChainContext], bool], runner: RunnerBase) None [source]#
- Parameters:
predicate – a predicate function evaluated in the while loop
runner – a runner to be executed while the predicate returns True
- render_as_dict(include_children: bool = True) Dict[str, Any] #
returns the graph of operation as a dictionary
- render_as_json() str #
returns the graph of operation as a JSON string