NodeInfo

data class NodeInfo(val path: String = "", val outputFor: List<String>? = null, val messageAsOutput: Boolean = false)

Identifies the workflow-node activation that emitted an com.google.adk.kt.events.Event; null outside a workflow.

Constructors

Link copied to clipboard
constructor(path: String = "", outputFor: List<String>? = null, messageAsOutput: Boolean = false)

Types

Link copied to clipboard
class Builder

Fluent builder for NodeInfo, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

When true this event's content is the node's output, so no separate output event follows.

Link copied to clipboard
val name: String?

The emitting node's name: the last segment of path without its run ID, such as a for wf@1/a@2, or null when path is empty. Mirrors ADK Python's NodeInfo.name, which returns an empty string instead of null.

Link copied to clipboard

The node paths this event's output counts for within its invocation: the emitter's own path, then each ancestor linked to it by useAsOutput (a runNode caller, or the workflow of a terminal node). Set on an event carrying the node's output, in output or as message-as-output content.

Link copied to clipboard

The run ID of the emitting node's parent: the part of path's second-to-last segment after @, such as 1 for wf@1/a@2. Returns null when path has no parent segment or the segment has no run ID. Mirrors ADK Python's NodeInfo.parent_run_id.

Link copied to clipboard

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 denotes the workflow's top-level node.

Link copied to clipboard

The emitting node's run ID: the part of path's last segment after @, such as 2 for wf@1/a@2, or null when the segment has none. Mirrors ADK Python's NodeInfo.run_id, which returns an empty string instead of null.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.