Class ResearchWorkflow

java.lang.Object
com.example.workflows.ResearchWorkflow

public final class ResearchWorkflow extends Object
A port of ADK Kotlin's research workflow sample. A planner fans out to two researchers that search the web concurrently, a JoinNode waits for both before the writer drafts a brief, and a reviewer sends the brief back for another round until it is complete or the round cap is reached.
  • 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 question and prints each step's text and the published brief. It calls Gemini, so it needs the credentials the README describes; the first argument, if any, overrides the model.