Class ClassifierNodeWorkflow

java.lang.Object
com.example.workflows.ClassifierNodeWorkflow

public final class ClassifierNodeWorkflow extends Object
A port of adk-python's classifier_node workflow sample. A ClassifierNode asks which team should handle a support ticket and routes it to that team. Technical tickets go to a second classifier node, which asks whether the ticket is urgent and either pages the on-call engineer or files it in the engineering queue.
  • Method Details

    • create

      public static Workflow create(String model)
      Builds the workflow using model for the classifier and both agents.
    • main

      public static void main(String[] args)
      Runs the workflow on four tickets, each in its own session, and prints each reply. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.