Class Workflow
java.lang.Object
com.google.adk.workflow.BaseNode
com.google.adk.workflow.Workflow
- All Implemented Interfaces:
Node
A graph of nodes that is itself a node, so a workflow can go wherever a node can, including in
another workflow.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Workflow.Builderbuilder()com.google.common.collect.ImmutableList<Edge> edges()Returns the edges of the workflow's graph.Returns the maximum number of nodes the workflow runs at once, or empty if there is no limit.io.reactivex.rxjava3.core.Flowable<?> Runs the node onnodeInput, the output it receives from its predecessors.Methods inherited from class BaseNode
config, description, inputSchema, name, outputSchema, rerunOnResume, stateSchema, waitForOutputModifier and TypeMethodDescriptionconfig()Returns the node's retry policy and execution timeout.Returns what the node does, for humans and for a model that may call it.Optional<com.google.genai.types.Schema> Returns the schema the node's input must match.final Stringname()Returns the name that identifies the node within its graph.Optional<com.google.genai.types.Schema> Returns the schema that the node's output value must match.booleanReturnstrueif a resumed node runs again from scratch, rather than completing with the resuming answer as its output.Optional<com.google.genai.types.Schema> Returns the schema declaring the state keys the node uses.booleanReturnstrueif the node stays re-triggerable until it produces an output or a route, instead of completing when its run completes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Node
requiresAllPredecessorsModifier and TypeMethodDescriptiondefault booleanReturnstrueif the node runs only once every predecessor has completed, receiving all their outputs keyed by node name, as a fan-in node does.
-
Method Details
-
builder
-
edges
Returns the edges of the workflow's graph. -
maxConcurrency
-
runNode
Description copied from interface:NodeRuns the node onnodeInput, the output it receives from its predecessors.An emitted
Eventpasses through, and any other emitted value becomes the node's output (at most one per run); emit nothing for no output, since RxJava forbids null. The wildcard lets an implementation return aFlowableof its own type.
-