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 — Graph | ADK for TypeScript: API Reference - v2.5.0

  • Graph

Class Graph

A compiled workflow graph. Nodes are inferred (deduped by identity) from the edges.

Mirrors google/adk-python workflow/_graph.py::Graph.

  • Defined in core/src/workflow/graph.ts:120

Constructors

constructor

  • new Graph(edges: Edge[]): Graph

    Parameters

    • edges: Edge[]

    Returns Graph

    • Defined in core/src/workflow/graph.ts:125

Properties

Readonlyedges

edges: Edge[]
  • Defined in core/src/workflow/graph.ts:122

Readonlynodes

nodes: BaseNode<unknown, unknown>[]
  • Defined in core/src/workflow/graph.ts:121

Accessors

terminalNodeNames

  • get terminalNodeNames(): ReadonlySet<string>

    Terminal node names (no outgoing edges); populated by validate.

    Returns ReadonlySet<string>

    • Defined in core/src/workflow/graph.ts:141

Methods

getNextPendingNodes

  • getNextPendingNodes(
        nodeName: string,
        routesToMatch: RouteValue | RouteValue[] | null | undefined,
    ): string[]

    Determines the next nodes to transition to PENDING based on the route(s) emitted by a completed node. Ported from Python get_next_pending_nodes.

    Logs at debug when the node emitted a route, has conditional outgoing edges, and none of them (nor a DEFAULT_ROUTE edge) matched — the branch stops there, which is easy to mistake for a bug. Behaviour is unchanged.

    Parameters

    • nodeName: string
    • routesToMatch: RouteValue | RouteValue[] | null | undefined

    Returns string[]

    • Defined in core/src/workflow/graph.ts:153

validate

  • validate(): void

    Validates the graph and computes terminal node names.

    Returns void

    • Defined in core/src/workflow/graph.ts:250
Constructors
constructor
Properties
edgesnodes
Accessors
terminalNodeNames
Methods
getNextPendingNodesvalidate
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.