Class NodeOutputWorkflow

java.lang.Object
com.example.workflows.NodeOutputWorkflow

public final class NodeOutputWorkflow extends Object
A port of adk-python's node_output workflow sample: a function node's return value becomes its output, a returned Event passes through as is, and an agent with an output schema answers with structured data, which the next node receives decoded into a record.
  • 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 topic 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.