langgoap.ConstraintBuilder

langgoap.ConstraintBuilder#

class ConstraintBuilder[source]#

Factory and aggregator for ConstraintChain instances.

Chains start from for_plan() (planet-wide aggregate) or for_each_action() (placeholder for future per-action filtering; currently identical to for_plan because all constraints are plan-level). Call build() with the chain outputs to get a BuilderOutput.

__init__()#

Methods

__init__()

build(*outputs)

Collect chain outputs into a BuilderOutput.

for_each_action()

Start a new chain (alias for for_plan() for now).

for_plan()

Start a new chain aggregating over the whole plan.