Class UseAsOutputWorkflow

java.lang.Object
com.example.workflows.UseAsOutputWorkflow

public final class UseAsOutputWorkflow extends Object
A port of adk-python's use_as_output workflow sample. A node runs an agent with runNode and useAsOutput, so the agent's summary becomes the node's own output and flows on to the next node.
  • 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 one sentence and prints what each node produced. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.