Configure alternatives for Runnable objects that can be set at runtime.
Runnable that selects which branch to run based on a condition.
The Runnable is initialized with a list of (condition, Runnable) pairs and
a default branch.
When operating on an input, the first condition that evaluates to True is
selected, and the corresponding Runnable is run on the input.
If no condition evaluates to True, the default branch is run on the input.
The type of config this Runnable accepts specified as a Pydantic model.
A list of (condition, Runnable) pairs.
Defaults a Runnable to run if no condition is met.