Goal API Reference
goapauto.models.goal.Goal
Represents a target state to achieve.
from goapauto.models.goal import Goal
goal = Goal(
target_state={"has_wood": True},
priority=1, # Lower number = higher priority (must be >= 1)
name="Collect Wood"
)
Methods
-
is_satisfied(world_state: Any) -> boolChecks if all conditions intarget_stateare met byworld_state. -
get_unsatisfied_conditions(world_state: Any) -> DictReturns conditions that are not yet met in the current state.