Readonly[Brand identifying this object as a BaseNode (see isBaseNode).
Optional ReadonlyauthReadonlydescriptionOptional ReadonlyinputOptional ReadonlyisolationReadonlynameOptional ReadonlyoutputOptional ReadonlypreparedThe retry config with its exception filter normalized once, up front (see prepareRetryConfig). Used by the node runner so the retry hot path never re-normalizes or throws on a malformed config mid-retry.
ReadonlyrerunOptional ReadonlyretryOptional ReadonlystateOptional ReadonlytimeoutReadonlywaitWhether this node must wait for ALL of its predecessors to trigger before
it runs (fan-in barrier). Overridden by JoinNode.
Runs the node, normalizing every yielded item into an Event. This
is what the engine (and ctx.runNode()) consumes. Validates the input
against inputSchema once, up front (skipping genai Content, which nodes
coerce themselves).
ProtectedrunCore execution contract. Subclasses yield one of:
output is that value),null/undefined (skipped).ProtectedtoNormalizes a single yielded item into an Event (or null to skip).
Subclasses may override for richer coercion (e.g. FunctionNode).
ProtectedvalidateProtectedvalidateValidates node output against outputSchema (Content passes through). Only
enforced for Zod schemas; a genai Schema is left unvalidated (see
parseWithSchema).
A node that wraps a plain function, async function, or (sync/async) generator.
Ported (TS-idiomatic subset) from
google/adk-python_function_node.py. Return-value handling:Event→ emitted as-is (output validated againstoutputSchema)Content→ emitted as the event contentnull/undefined→ skipped (unless there are pending state deltas)Event(output=value)State written viactx.stateduring execution is attached to emitted events.