langgoap.refine_with_csp#
- refine_with_csp(plan, goal)[source]#
Validate
planagainstgoal’s constraints and attach CSP scoring.Runs
langgoap.planner.csp.validate_plan()over an existing plan and returns the plan re-scored with aHardSoftScoreandmetadata.cspfilled in. It does not search: pair it with A* (or useTwoPhasePipelineStrategy, which does both) when you need a plan constructed as well as checked.