StrategyNode

Source:

Local role: Strategy node that binds one action id to one input perception and one projected successor perceived state.

Big-picture role: Primary strategy-chain unit. A node says “apply this action from this perceived state, producing this projected successor perceived state.”

Inheritance:

  • dataclass

Parameters and fields:

Properties:

  • successor_perception_id -> Optional[str]

Methods:

  • to_dict() -> dict
  • from_dict(data) -> StrategyNode

Important behavior:

  • if projected_state is present, it must correspond to the node’s action_id
  • if projected_state is present, source_perception_id must match the projected state’s source perception

See also:

Ometeotl

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