GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — BaseNode | ADK for TypeScript: API Reference - v2.5.0

  • BaseNode

Class BaseNode<TInput, TOutput>Abstract

Abstract base class for all nodes in an ADK workflow.

A node is a discrete unit of execution. Subclasses implement runImpl, which may yield Events, raw values (boxed into an event), or null/undefined (skipped). run normalizes those into a stream of Events consumed by the engine.

Type Parameters

  • TInput = unknown
  • TOutput = unknown

Hierarchy (View Summary)

  • BaseNode
    • BaseAgent
    • FunctionNode
    • JoinNode
    • ParallelWorker
    • ToolNode
    • Workflow
    • WorkflowNode
  • Defined in core/src/workflow/base_node.ts:86

Constructors

constructor

  • new BaseNode<TInput = unknown, TOutput = unknown>(
        config: BaseNodeConfig,
    ): BaseNode<TInput, TOutput>

    Type Parameters

    • TInput = unknown
    • TOutput = unknown

    Parameters

    • config: BaseNodeConfig

    Returns BaseNode<TInput, TOutput>

    • Defined in core/src/workflow/base_node.ts:107

Properties

Readonly[BASE_NODE_SIGNATURE_SYMBOL]

"[BASE_NODE_SIGNATURE_SYMBOL]": true

Brand identifying this object as a BaseNode (see isBaseNode).

  • Defined in core/src/workflow/base_node.ts:88

Readonlydescription

description: string
  • Defined in core/src/workflow/base_node.ts:91

Optional ReadonlyinputSchema

inputSchema?: SchemaLike
  • Defined in core/src/workflow/base_node.ts:102

Optional ReadonlyisolationScope

isolationScope?: string | true
  • Defined in core/src/workflow/base_node.ts:105

Readonlyname

name: string
  • Defined in core/src/workflow/base_node.ts:90

Optional ReadonlyoutputSchema

outputSchema?: SchemaLike
  • Defined in core/src/workflow/base_node.ts:103

Optional ReadonlypreparedRetryConfig

preparedRetryConfig?: PreparedRetryConfig

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.

  • Defined in core/src/workflow/base_node.ts:100

ReadonlyrerunOnResume

rerunOnResume: boolean
  • Defined in core/src/workflow/base_node.ts:92

Optional ReadonlyretryConfig

retryConfig?: RetryConfig
  • Defined in core/src/workflow/base_node.ts:94

Optional ReadonlystateSchema

stateSchema?: SchemaLike
  • Defined in core/src/workflow/base_node.ts:104

Optional Readonlytimeout

timeout?: number
  • Defined in core/src/workflow/base_node.ts:101

ReadonlywaitForOutput

waitForOutput: boolean
  • Defined in core/src/workflow/base_node.ts:93

Accessors

requiresAllPredecessors

  • get requiresAllPredecessors(): boolean

    Whether this node must wait for ALL of its predecessors to trigger before it runs (fan-in barrier). Overridden by JoinNode.

    Returns boolean

    • Defined in core/src/workflow/base_node.ts:134

Methods

run

  • run(ctx: NodeContext, input: TInput): AsyncGenerator<Event, void, void>

    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).

    Parameters

    • ctx: NodeContext
    • input: TInput

    Returns AsyncGenerator<Event, void, void>

    • Defined in core/src/workflow/base_node.ts:155

Protected AbstractrunImpl

  • runImpl(ctx: NodeContext, input: TInput): AsyncGenerator<unknown, 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).

    Parameters

    • ctx: NodeContext
    • input: TInput

    Returns AsyncGenerator<unknown, void, void>

    • Defined in core/src/workflow/base_node.ts:144

ProtectedtoEvent

  • toEvent(ctx: NodeContext, data: unknown): Event | null

    Normalizes a single yielded item into an Event (or null to skip). Subclasses may override for richer coercion (e.g. FunctionNode).

    Parameters

    • ctx: NodeContext
    • data: unknown

    Returns Event | null

    • Defined in core/src/workflow/base_node.ts:217

ProtectedvalidateInput

  • validateInput(input: TInput): TInput

    Validates node input against inputSchema (Content passes through). Only enforced for Zod schemas; a genai Schema is left unvalidated (see parseWithSchema).

    Parameters

    • input: TInput

    Returns TInput

    • Defined in core/src/workflow/base_node.ts:178

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).

    Parameters

    • output: unknown

    Returns unknown

    • Defined in core/src/workflow/base_node.ts:198
Constructors
constructor
Properties
[BASE_NODE_SIGNATURE_SYMBOL]descriptioninputSchemaisolationScopenameoutputSchemapreparedRetryConfigrerunOnResumeretryConfigstateSchematimeoutwaitForOutput
Accessors
requiresAllPredecessors
Methods
runrunImpltoEventvalidateInputvalidateOutput
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.