langgoap.TwoPhasePipelineStrategy

langgoap.TwoPhasePipelineStrategy#

class TwoPhasePipelineStrategy(*, max_alternatives=5)[source]#

A* construction + CSP refinement, composed as a single strategy.

This is the default strategy: it is equivalent to calling langgoap.planner.pipeline.plan() directly. The wrapper class exists so GoapPlanner(strategy=...) can accept it via the same Protocol-typed kwarg used for custom strategies.

Parameters:

max_alternatives (int)

__init__(*, max_alternatives=5)[source]#
Parameters:

max_alternatives (int)

Return type:

None

Methods

__init__(*[, max_alternatives])

plan(start, goal, actions, *[, ...])