Source:
Local role: Recursive builder specification used to describe a strategy tree before it is materialized into StrategyNode objects.
Big-picture role:
Input format for minimal strategy construction APIs, especially build_branching_strategy(...).
Inheritance:
- dataclass
Parameters and fields:
- action: Action
- children: list[StrategyBuildStep]
- branch_label: str
- branch_probability: Optional[float]
- branch_condition: dict
- branch_metadata: dict
- metadata: dict
Methods:
- dataclass validation in
__post_init__()
See also:
