langgoap.PlanQualityMetric

langgoap.PlanQualityMetric#

class PlanQualityMetric(*args, **kwargs)[source]#

Quality metric evaluated against a Plan’s trajectory.

Concrete metrics are minimisation-oriented: lower is better. The contribution to soft is -weight * evaluate(plan).

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

evaluate(plan)

Return the metric value for plan.

Attributes

name

Human-readable metric label, surfaced in tracing / diagnostics.

weight

Linear combination weight.