Package com.google.adk.workflow
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. Building a workflow validates its graph and throws
GraphValidationException for a malformed one.-
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 graph from its start node, which handsnodeInputto its successors.Methods inherited from class com.google.adk.workflow.BaseNode
config, description, inputSchema, name, outputSchema, rerunOnResume, stateSchema, waitForOutputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.adk.workflow.Node
requiresAllPredecessors
-
Method Details
-
builder
-
edges
Returns the edges of the workflow's graph. -
maxConcurrency
Returns the maximum number of nodes the workflow runs at once, or empty if there is no limit. -
runNode
Runs the graph from its start node, which handsnodeInputto its successors. The output of the sole terminal node that produces one becomes the workflow's output. If more than one terminal node produces an output, the returnedFlowablefails withWorkflowConfigurationException.
-