Class RequestInputAdvancedWorkflow

java.lang.Object
com.example.workflows.RequestInputAdvancedWorkflow

public final class RequestInputAdvancedWorkflow extends Object
A port of adk-python's request_input_advanced workflow sample: an agent extracts a time-off request from the user's message, a node approves one day on its own and otherwise asks a manager, sending the request as the payload and asking for an answer that matches a schema, and the last node reports the decision.
  • Method Details

    • create

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

      public static void main(String[] args)
      Runs the workflow on a one-day request, then on a five-day request that a manager approves for four days, and prints each decision. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.