langgoap.NoPlanExplanation#
- class NoPlanExplanation(unreachable_conditions, missing_preconditions, suggestion)[source]#
Explanation of why A* could not find a valid plan.
- Parameters:
unreachable_conditions (tuple[str, ...])
missing_preconditions (tuple[str, ...])
suggestion (str)
- unreachable_conditions#
Goal conditions that no available action can produce as an effect. These keys can never be set regardless of action ordering.
- Type:
tuple[str, …]
- missing_preconditions#
Preconditions required by available actions that neither appear in the start state nor can be produced by any other action. These create unsatisfiable prerequisite chains.
- Type:
tuple[str, …]
- suggestion#
Human-readable explanation and corrective advice.
- Type:
str
- __init__(unreachable_conditions, missing_preconditions, suggestion)#
- Parameters:
unreachable_conditions (tuple[str, ...])
missing_preconditions (tuple[str, ...])
suggestion (str)
- Return type:
None
Methods
__init__(unreachable_conditions, ...)from_dict(data)Reconstruct from the dict produced by
to_dict().to_dict()Serialise to a plain dict safe for storage in
GoapState.Attributes