langgoap.TwoPhasePipelineStrategy

langgoap.TwoPhasePipelineStrategy#

class TwoPhasePipelineStrategy(*, max_alternatives=8, tracer=None, record_expansions=False)[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)

  • tracer (Any)

  • record_expansions (bool)

__init__(*, max_alternatives=8, tracer=None, record_expansions=False)[source]#
Parameters:
  • max_alternatives (int)

  • tracer (Any)

  • record_expansions (bool)

Return type:

None

Methods

__init__(*[, max_alternatives, tracer, ...])

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