langgoap.OnStuckPolicy#
- class OnStuckPolicy(name='OnStuckPolicy')[source]#
Convert a
no_planstatus into a graceful termination.Useful for utility-style agents where “no productive next action” is the natural stopping condition rather than a failure.
errorisFalseso downstream tooling can distinguish from a hit cost / action ceiling.- Parameters:
name (str)
- __init__(name='OnStuckPolicy')#
- Parameters:
name (str)
- Return type:
None
Methods
__init__([name])should_terminate(state)Attributes
name