Interface NaturalActionPlanner
- All Known Implementing Classes:
DeterministicNaturalActionPlanner
public interface NaturalActionPlanner
Provider-neutral natural-language action planner.
Planners may inspect the current page and return structured SHAFT action steps, but must never execute browser, element, or touch actions.
-
Method Summary
Modifier and TypeMethodDescriptionid()plan(NaturalActionRequest request) Plans a natural-language action without executing it.default intpriority()default booleansupports(NaturalActionRequest request) Returns whether this planner can attempt the supplied request.
-
Method Details
-
id
String id()- Returns:
- stable planner identifier
-
priority
default int priority()- Returns:
- planner priority; higher values are tried first for auto planning
-
supports
Returns whether this planner can attempt the supplied request.- Parameters:
request- natural-action request- Returns:
- true if this planner can plan the request
-
plan
Plans a natural-language action without executing it.- Parameters:
request- natural-action request- Returns:
- structured plan, or an unsupported zero-trust plan
-