Class DynamicNodesWorkflow

java.lang.Object
com.example.workflows.DynamicNodesWorkflow

public final class DynamicNodesWorkflow extends Object
A port of adk-python's dynamic_nodes workflow sample: the loop sample rewritten as one node that runs the headline agents with runNode in a loop, instead of routing between them with graph edges.
  • Method Details

    • create

      public static Workflow create(String model)
      Builds the workflow, with both agents on model.
    • main

      public static void main(String[] args)
      Runs the workflow on one topic and prints each headline, each grade, and the result. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.