Class NodeConfig

java.lang.Object
com.google.adk.workflow.NodeConfig

@Experimental public abstract class NodeConfig extends Object
A node's retry policy and execution timeout.
  • Constructor Details

    • NodeConfig

      public NodeConfig()
  • Method Details

    • retryConfig

      public abstract Optional<RetryConfig> 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 with Context.runNode(com.google.adk.workflow.Node) is not retried; give the child a retry policy of its own instead.
    • timeout

      public abstract Optional<Duration> timeout()
      Returns how long an attempt may run before it is canceled and fails with a NodeTimeoutException; empty imposes no limit.
    • builder

      public static NodeConfig.Builder builder()
    • toBuilder

      public abstract NodeConfig.Builder toBuilder()