langgoap.RepairResult#

class RepairResult(repaired_plan, repair_applied, valid_prefix_length, suffix_replanned, suffix_length)[source]#

Outcome of a plan-repair attempt.

Parameters:
  • repaired_plan (Plan | None)

  • repair_applied (bool)

  • valid_prefix_length (int)

  • suffix_replanned (bool)

  • suffix_length (int)

repaired_plan#

The repaired plan, or None if repair failed (both prefix reuse and suffix replanning were unsuccessful).

Type:

langgoap.planner.types.Plan | None

repair_applied#

True if a valid prefix was found and reused.

Type:

bool

valid_prefix_length#

Number of actions in the reused prefix.

Type:

int

suffix_replanned#

True if A* was invoked to plan the suffix.

Type:

bool

suffix_length#

Number of actions in the newly planned suffix.

Type:

int

__init__(repaired_plan, repair_applied, valid_prefix_length, suffix_replanned, suffix_length)#
Parameters:
  • repaired_plan (Plan | None)

  • repair_applied (bool)

  • valid_prefix_length (int)

  • suffix_replanned (bool)

  • suffix_length (int)

Return type:

None

Methods

__init__(repaired_plan, repair_applied, ...)

Attributes