langgoap.CSPRefinementStrategy

langgoap.CSPRefinementStrategy#

class CSPRefinementStrategy(candidate)[source]#

Run CSP validation / optimization over an existing candidate plan.

This strategy takes a precomputed candidate plan at construction time and refines it through langgoap.planner.csp.validate_plan(). It does not run A* itself — compose it with AStarStrategy via TwoPhasePipelineStrategy for the common case.

Parameters:

candidate (Plan)

__init__(candidate)[source]#
Parameters:

candidate (Plan)

Return type:

None

Methods

__init__(candidate)

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