langgoap.OnStuckPolicy

langgoap.OnStuckPolicy#

class OnStuckPolicy(name='OnStuckPolicy')[source]#

Convert a no_plan status into a graceful termination.

Useful for utility-style agents where “no productive next action” is the natural stopping condition rather than a failure. error is False so 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