Package com.google.adk.workflow
Class NodeInfo
java.lang.Object
com.google.adk.workflow.NodeInfo
The identity of the workflow-node activation that emitted an
Event.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeInfo.Builderbuilder()abstract booleanReturnstrueif this event's content is the node's output, so no separate output event follows.name()Returns the emitting node's name: the last segment ofpath()without its run ID, such asaforwf@1/a@2, or empty when the path is empty.abstract com.google.common.collect.ImmutableList<String>Returns the node paths this event's output counts for: the emitting node's path, followed by the paths of the ancestors that use this output as their own, such as the workflow of a terminal node or a node that ran the emitting node withuseAsOutput.Returns the run ID of the emitting node's parent: the part after@in the second-to-last segment ofpath(), such as1forwf@1/a@2.abstract Stringpath()Returns the emitting node's path.runId()Returns the emitting node's run ID: the part after@in the last segment ofpath(), such as2forwf@1/a@2, or empty when the segment has none.abstract NodeInfo.Builder
-
Constructor Details
-
NodeInfo
public NodeInfo()
-
-
Method Details
-
path
Returns the emitting node's path. Segments are/-separated and each isname@runId, so a node of workflowwfreadswf@1/a@1; an empty path means the event did not come from a workflow node. -
outputFor
Returns the node paths this event's output counts for: the emitting node's path, followed by the paths of the ancestors that use this output as their own, such as the workflow of a terminal node or a node that ran the emitting node withuseAsOutput. It is set on an event that carries the node's output, either in itsoutputfield 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()Returnstrueif this event's content is the node's output, so no separate output event follows. -
name
Returns the emitting node's name: the last segment ofpath()without its run ID, such asaforwf@1/a@2, or empty when the path is empty. ADK Python'sNodeInfo.namereturns an empty string instead. -
runId
Returns the emitting node's run ID: the part after@in the last segment ofpath(), such as2forwf@1/a@2, or empty when the segment has none. ADK Python'sNodeInfo.run_idreturns an empty string instead. -
parentRunId
Returns the run ID of the emitting node's parent: the part after@in the second-to-last segment ofpath(), such as1forwf@1/a@2. Empty when the path has no parent segment or that segment has no run ID, as in ADK Python'sNodeInfo.parent_run_id. -
builder
-
toBuilder
-