Class NestedWorkflow

java.lang.Object
com.example.workflows.NestedWorkflow

public final class NestedWorkflow extends Object
A port of adk-python's nested_workflow sample: for the year the user names, a nested workflow finds a famous person born that year and writes their bio while an agent describes an event from that year, and a JoinNode waits for both branches before one message combines them.
  • Method Details

    • create

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

      public static void main(String[] args)
      Runs the workflow on one year and prints each reply. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.