Class SupportTriageWorkflow

java.lang.Object
com.example.workflows.SupportTriageWorkflow

public final class SupportTriageWorkflow extends Object
A port of ADK Kotlin's support-triage workflow sample. A classifier labels the request, a routing map sends it to a billing or tech specialist who looks up the facts with a tool, and a summarizer writes the reply. Any other request goes straight to the summarizer through otherwise.
  • Method Details

    • create

      public static Workflow create(String model)
      Builds the workflow, with every agent on model. The billing specialist reads the customer's account ID from the account_id session state key, so pass it with each request.
    • main

      public static void main(String[] args)
      Runs the workflow on one request from a signed-in customer and prints what each node said. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.