Class LoopAgent.Builder

Enclosing class:
LoopAgent

public static class LoopAgent.Builder extends BaseAgent.Builder<LoopAgent.Builder>
Builder for LoopAgent.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maxIterations

      @CanIgnoreReturnValue public LoopAgent.Builder maxIterations(@Nullable Integer maxIterations)
      Sets the maximum number of loop iterations. If not set, the loop runs until a sub-agent escalates. A value of zero or less runs the sub-agents no times at all.
    • build

      public LoopAgent build()
      Specified by:
      build in class BaseAgent.Builder<LoopAgent.Builder>