Class DfsSearchStrategy
java.lang.Object
com.google.adk.planner.goap.DfsSearchStrategy
- All Implemented Interfaces:
SearchStrategy
Backward-chaining DFS search strategy with parallel grouping.
Delegates to DependencyGraphSearch for the actual algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> searchGrouped(GoalOrientedSearchGraph graph, List<AgentMetadata> metadata, Collection<String> preconditions, String goal) Searches for agent execution groups that produce the goal.
-
Constructor Details
-
DfsSearchStrategy
public DfsSearchStrategy()
-
-
Method Details
-
searchGrouped
public com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> searchGrouped(GoalOrientedSearchGraph graph, List<AgentMetadata> metadata, Collection<String> preconditions, String goal) Description copied from interface:SearchStrategySearches for agent execution groups that produce the goal.- Specified by:
searchGroupedin interfaceSearchStrategy- Parameters:
graph- the dependency graphmetadata- agent metadatapreconditions- state keys already availablegoal- the target output key- Returns:
- ordered list of agent groups for parallel execution
-