Class RequestInputWorkflow

java.lang.Object
com.example.workflows.RequestInputWorkflow

public final class RequestInputWorkflow extends Object
A port of adk-python's request_input workflow sample: an agent drafts a reply to a customer complaint, a node pauses the workflow to ask a human to review the draft, and the next node receives the answer and sends the draft, drops it, or has the agent revise it with the feedback.
  • 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.