ActionProjection

Source:

Local role: Serializable result of projecting one Action from one Perception with an explicit resource set.

Big-picture role: Intermediate projection artifact that records explicit assumptions and the projected successor perceived state before later strategy-node construction.

Inheritance:

  • dataclass

Parameters and fields:

Methods:

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

Example:

from ometeotl_core.model.projection import DefaultProjectionTool

tool = DefaultProjectionTool()
projection = tool.project_action(action, perception, resources=[resource])

print(projection.status)           # "projected" | "partial" | "blocked"
print(projection.action_id)
print(projection.actor_id)

if projection.projected_state:
    pps = projection.projected_state
    print(len(pps.changes))        # number of state changes applied

data = projection.to_dict()

See also:

Ometeotl

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