StrategyOutcomeBranch

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() -> dict
  • from_dict(data) -> StrategyOutcomeBranch

See also:

Ometeotl

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies