langgoap.EarlyTermination#

class EarlyTermination(policy_name, reason, error=True)[source]#

Termination decision returned by a policy.

Parameters:
  • policy_name (str)

  • reason (str)

  • error (bool)

policy_name#

The policy that triggered termination.

Type:

str

reason#

Human-readable explanation.

Type:

str

error#

Whether the termination is considered a failure. OnStuckPolicy returns False (graceful stop, useful for utility-style agents). Cost / action-count policies return True (the run hit a configured ceiling).

Type:

bool

__init__(policy_name, reason, error=True)#
Parameters:
  • policy_name (str)

  • reason (str)

  • error (bool)

Return type:

None

Methods

__init__(policy_name, reason[, error])

Attributes