langgoap.StuckHandler#
- class StuckHandler(*args, **kwargs)[source]#
Recovery hook fired when the planner cannot find a plan.
Implementations inspect the current
state(typically theGoapStatedict at the moment of failure) and the optionalreason(aNoPlanExplanationfromexplain_no_plan()) and return aStuckHandlerResultthat either resolves the situation (REPLAN) or declines (NO_RESOLUTION).- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)handle_stuck(state, reason)Try to recover from a stuck situation.
Attributes
nameStable identifier for this handler.