Interface SearchStrategy

All Known Implementing Classes:
AStarSearchStrategy, DfsSearchStrategy

public interface SearchStrategy
用于搜索依赖关系图以找到有序的代理执行组的策略。

给定一个图、代理元数据、可用的前提条件以及一个目标输出键,系统会生成一个有序的代理组列表;其中每个组内的代理都是相互独立的,并且可以并行运行。

  • 方法详细信息(Method Details)

    • searchGrouped

      com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<String>> searchGrouped(GoalOrientedSearchGraph graph, List<AgentMetadata> metadata, Collection<String> preconditions, String goal)
      搜索能够实现目标的代理执行组(agent execution groups)。
      Parameters:
      graph - the dependency graph
      metadata - agent metadata
      preconditions - state keys already available
      goal - the target output key
      Returns:
      ordered list of agent groups for parallel execution
      Throws:
      IllegalStateException - if the goal cannot be reached