Package com.google.adk.workflow
Class NodeConfig
java.lang.Object
com.google.adk.workflow.NodeConfig
A node's retry policy and execution timeout.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeConfig.Builderbuilder()abstract Optional<RetryConfig>Returns how the node is retried when it fails; empty does not retry.timeout()Returns how long an attempt may run before it is canceled and fails with aNodeTimeoutException; empty imposes no limit.abstract NodeConfig.Builder
-
Constructor Details
-
NodeConfig
public NodeConfig()
-
-
Method Details
-
retryConfig
Returns how the node is retried when it fails; empty does not retry. A retried workflow replays its nodes that finished and left an event in the session, and reruns the others. A failure that a node passes on unchanged from a child it runs withContext.runNode(com.google.adk.workflow.Node)is not retried; give the child a retry policy of its own instead. -
timeout
Returns how long an attempt may run before it is canceled and fails with aNodeTimeoutException; empty imposes no limit. -
builder
-
toBuilder
-