`Class AgentGraphGenerator`

java.lang.Object
com.google.adk.web.AgentGraphGenerator

public class AgentGraphGenerator extends Object
这是一个实用类,用于生成表示代理(Agent)结构的 Graphviz DOT 文件。
  • 构造函数详细信息

    • AgentGraphGenerator

      public AgentGraphGenerator()
  • 方法详细信息(Method Details)

    • getAgentGraphDotSource

      public static Optional<String> getAgentGraphDotSource(BaseAgent rootAgent, List<List<String>> highlightPairs)
      生成代理图(agent graph)的 DOT 格式源代码字符串。
      Parameters:
      rootAgent - The root agent of the structure.
      highlightPairs - A list where each inner list contains two strings (fromNode, toNode) representing an edge to highlight. Order matters for direction.
      Returns:
      The DOT source string, or null if graph generation fails.