`Class GoalOrientedSearchGraph`

java.lang.Object
com.google.adk.planner.goap.GoalOrientedSearchGraph

public final class GoalOrientedSearchGraph extends Object
转换(数据或信息) AgentMetadata 将其转换为一个依赖关系图(dependency graph),其中:
  • 每个输出键都对应生成该输出数据的代理(agent)。
  • 每个输出键都对应于生成该输出所需的输入键(即依赖项)。

被……使用 DependencyGraphSearch 用于实现反向依赖解析(backward-chaining dependency resolution)。

  • 构造函数详细信息

    • GoalOrientedSearchGraph

      public GoalOrientedSearchGraph(List<AgentMetadata> metadata)
  • 方法详细信息(Method Details)

    • getDependencies

      public com.google.common.collect.ImmutableList<String> getDependencies(String outputKey)
      返回生成给定输出结果所需的输入键(即依赖项)。
    • getProducerAgent

      public String getProducerAgent(String outputKey)
      返回生成指定输出键的代理(agent)的名称。
    • contains

      public boolean contains(String outputKey)
      如果给定的输出键存在于该图中,则返回 `true`。