langgoap.NirvanaGoal#
- class NirvanaGoal(**kwargs)[source]#
Marker goal that is never satisfied.
Useful with
UtilityStrategyfor always-on agents that react to state changes opportunistically rather than aiming at a fixed completion criterion. The observer’s_is_goal_satisfied()check returnsFalsefor anyNirvanaGoalinstance, so the run only ends when the utility planner runs out of applicable actions (semantically: STUCK without error).Subclasses
GoalSpecso the existing planner / observer type signatures continue to accept it; the only behavioural difference is the never-satisfied semantics enforced by_is_goal_satisfiedandis_nirvana().- Parameters:
kwargs (Any)
Methods
__init__(**kwargs)from_builder([conditions, builder_output])Construct a GoalSpec from a
BuilderOutput.from_dict(data)Reconstruct from
to_dict()output (conditions stay empty).per_entity(entity_ids, conditions, *[, mode])to_dict()Serialise with
kind="nirvana"so rehydration keeps the marker type.Attributes
conditionspolicyobjectivesconstraintssoft_goalsmetricsvalueUtility weight consulted by
MultiGoal(mode='best_value').