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 output is a message: its content when the event has no output field, or its output field when that holds aContent, which a stored session holds as its JSON form.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 output is a message: its content when the event has no output field, or its output field when that holds aContent, which a stored session holds as its JSON form. On a final event with content and a non-message output, the live run uses that output while the emitted event drops the output field so resume reads the content instead. -
name
-
runId
-
parentRunId
-
builder
-
toBuilder
-