Class NodeInfo

java.lang.Object
com.google.adk.workflow.NodeInfo

@Experimental public abstract class NodeInfo extends Object
The identity of the workflow-node activation that emitted an Event.
  • Constructor Details

    • NodeInfo

      public NodeInfo()
  • Method Details

    • path

      public abstract String path()
      Returns the emitting node's path. Segments are /-separated and each is name@runId, so a node of workflow wf reads wf@1/a@1; an empty path means the event did not come from a workflow node.
    • outputFor

      public abstract com.google.common.collect.ImmutableList<String> outputFor()
      Returns the node paths this event's output counts for: the emitting node's path, followed by the paths of the ancestor workflows that use this event as their output. It is set on an event that carries the node's output, either in its output field or as a message-as-output event whose content is the output; an empty list means the output counts for no node.
    • messageAsOutput

      public abstract boolean messageAsOutput()
      Returns true if this event's content is the node's output, so no separate output event follows.
    • builder

      public static NodeInfo.Builder builder()
    • toBuilder

      public abstract NodeInfo.Builder toBuilder()