Class RequestInputRerunWorkflow

java.lang.Object
com.example.workflows.RequestInputRerunWorkflow

public final class RequestInputRerunWorkflow extends Object
A port of adk-python's request_input_rerun workflow sample: the request_input sample with one review node instead of two. The node overrides rerunOnResume(), so when the human answers, it runs again and reads the answer from its context.
  • Method Details

    • create

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

      public static void main(String[] args)
      Runs the workflow on one complaint, asks for a revision, and approves the revised draft, printing each draft and question. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.