Class AgentGraphGenerator

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

public class AgentGraphGenerator extends Object
Utility class to generate Graphviz DOT representations of Agent structures.
  • Constructor Details

    • AgentGraphGenerator

      public AgentGraphGenerator()
  • Method Details

    • getAgentGraphDotSource

      public static Optional<String> getAgentGraphDotSource(BaseAgent rootAgent, List<List<String>> highlightPairs)
      Generates the DOT source string for the agent graph.
      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.