GeezerVison is showing adk.dev — Workflow | ADK for TypeScript: API Reference - v2.5.0
A graph-based workflow node. runImpl() IS the orchestration loop:
SETUP (seed START triggers) → LOOP (schedule ready nodes, handle
completions) → FINALIZE (collect the terminal output).
Ported (Phase 2 subset) from google/adk-python workflow/_workflow.py.
Replay/checkpointing, dynamic scheduling, and task/chat isolation scopes are
added in later phases; hook points are marked with TODO(phase-N).
Constructors
Properties
Readonly[BASE_NODE_SIGNATURE_SYMBOL]
"[BASE_NODE_SIGNATURE_SYMBOL]": true
Brand identifying this object as a BaseNode (see isBaseNode).
Readonly[WORKFLOW_SIGNATURE_SYMBOL]
"[WORKFLOW_SIGNATURE_SYMBOL]": true
Brand identifying this object as a Workflow (see isWorkflow).
Readonlydescription
description: string
Optional ReadonlydynamicEntry
Optional ReadonlyinputSchema
Optional ReadonlyisolationScope
isolationScope?: string | true
Optional ReadonlymaxConcurrency
maxConcurrency?: number
Readonlyname
name: string
Optional ReadonlyoutputSchema
Optional ReadonlypreparedRetryConfig
The 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.
ReadonlyrerunOnResume
rerunOnResume: boolean
Optional ReadonlyretryConfig
Optional ReadonlystateSchema
Optional Readonlytimeout
timeout?: number
ReadonlywaitForOutput
waitForOutput: boolean
Accessors
Methods
run
-
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).
Returns AsyncGenerator<Event, void, void>
ProtectedrunImpl
-
runImpl(ctx: NodeContext, nodeInput: unknown): AsyncGenerator<Event, void, void>
Core execution contract. Subclasses yield one of:
- an Event (emitted as-is),
- a raw value (boxed into an event whose
output is that value),
null/undefined (skipped).
Returns AsyncGenerator<Event, void, void>
ProtectedtoEvent
-
Normalizes a single yielded item into an Event (or null to skip).
Subclasses may override for richer coercion (e.g. FunctionNode).
Returns Event | null
ProtectedvalidateInput
-
validateInput(input: unknown): unknown
Validates node input against inputSchema (Content passes through). Only
enforced for Zod schemas; a genai Schema is left unvalidated (see
parseWithSchema).
Returns unknown
ProtectedvalidateOutput
-
validateOutput(output: unknown): unknown
Validates node output against outputSchema (Content passes through). Only
enforced for Zod schemas; a genai Schema is left unvalidated (see
parseWithSchema).
Returns unknown
Constructors
Properties
Accessors
Methods