Source:
Local role: One branch edge leaving a StrategyNode toward an optional child node.
Big-picture role: Strategy tree edge model used to encode labels, probabilities, conditions, and child-node references.
Current note:
- The current implementation keeps projected successor state on the node, not on the branch.
- A future TODO prefers branch-specific projected outcomes here if one action later supports several distinct projected outcomes.
Inheritance:
- dataclass
Parameters and fields:
- branch_id: str
- label: str
- child_node_id: Optional[str]
- probability: Optional[float]
- condition: dict
- metadata: dict
Methods:
to_dict() -> dictfrom_dict(data) -> StrategyOutcomeBranch
See also:
