Class StateWorkflow

java.lang.Object
com.example.workflows.StateWorkflow

public final class StateWorkflow extends Object
A port of adk-python's state workflow sample: nodes write session state through the context and through an event, and read it back through the context. A Node implementation gets only the context and its input, so read_state_via_param reads its key through the context too.
  • Method Details

    • create

      public static Workflow create()
      Builds the workflow. It calls no model.
    • main

      public static void main(String[] args)
      Runs the workflow on one message and prints each node's state changes and output.