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(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. The timeout cancels the attempt and fails it once theFunctionNodebodies, theToolNodestool calls that block inrunAsyncor as they are subscribed, and theContext.runNodechildren it started have stopped, so a body that ignores the interrupt, or such a tool call, delays the failure and any retry. The limit also covers the wait for work a body left running when it returned, so a node can time out after it sent its output. AnLlmAgentnode's own tool calls are not waited for. -
builder
-
toBuilder
-