Package com.google.adk.workflow
package com.google.adk.workflow
-
ClassDescriptionBase class for nodes in a workflow graph.An exception that
Context.runNode(com.google.adk.workflow.Node)signals when the child node fails.A connection between two nodes in a workflow graph.A builder for the edges of a workflow graph, declared as chains of calls that start atEdgesBuilder.from(com.google.adk.workflow.Node)orEdgesBuilder.fromStart().A chain of edges positioned at a node, started byEdgesBuilder.from(Node),EdgesBuilder.fromStart()orEdgesBuilder.NodeGroupChain.joinTo(com.google.adk.workflow.JoinNode).A chain of edges positioned at a node group from a fan-out,EdgesBuilder.from(Node, Node, Node...), orEdgesBuilder.from(Collection), whichEdgesBuilder.NodeGroupChain.joinTo(com.google.adk.workflow.JoinNode)connects to aJoinNode.A routing map configured inEdgesBuilder.EdgeChain.route(java.util.function.Consumer<? super com.google.adk.workflow.EdgesBuilder.RouteMap>)that maps each route the source node may emit to the nodes it leads to, writtenr.on("billing").then(billing).A routing-map entry started byEdgesBuilder.RouteMap.on(java.lang.String)whose routes have no target yet;EdgesBuilder.RouteMapEntry.then(com.google.adk.workflow.Node, com.google.adk.workflow.Node...)completes it.A set of routes that select a single edge, which fires once when its source emits any of them; separate edges to the same target would fire once each.Thrown when a workflow graph is malformed, such as whenStartcannot reach a node or a cycle has no routed edge.A node that waits for every predecessor to complete, then outputs their outputs keyed by predecessor name.Builder forJoinNode.A unit of work in a workflow graph.A node's retry policy and execution timeout.Builder forNodeConfig.Base class for node failures raised by the workflow runtime, such asNodeTimeoutException.The state of one workflow node run, held by the run'sContext.The identity of the workflow-node activation that emitted anEvent.Builder forNodeInfo.The runner for one workflow node, which times out an attempt that exceeds the node's optional timeout and retries the node as its retry policy allows.Thrown when a node's attempt outlasts the timeout thatNodeConfig.timeout()sets.Static factories for workflow nodes that run a node once per item of a list input.A node's request for user input, which pauses the workflow until the user answers it.Builder forRequestInput.How a node is retried when it fails.Builder forRetryConfig.A value on a workflow edge, and the value a node emits to select which of its outgoing edges are followed.The fallback edge, followed when no other routed edge of the node matches what it emitted, including when it emitted no route.A route identified by a boolean, for a two-way branch.A route identified by an integer.A route identified by a string, which is the common case.Configuration for running a child node withContext.runNode(com.google.adk.workflow.Node).Builder forRunNodeConfig.The node that marks where a workflow graph starts.Static factories for workflow nodes that run aBaseTool, such as an MCP tool or an agent wrapped as a tool.A graph of nodes that is itself a node, so a workflow can go wherever a node can, including in another workflow.Builder forWorkflow.Thrown when a workflow or one of its nodes is declared in a way that cannot run.