Class MessageTriageWorkflow

java.lang.Object
com.example.workflows.MessageTriageWorkflow

public final class MessageTriageWorkflow extends Object
A port of ADK Kotlin's message-triage workflow sample, the graph from the ADK docs: an agent labels a message as a bug, a customer-support request, a logistics question, or several of these, and a function node emits one route per label so each matching handler runs.
  • Method Details

    • create

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

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