Package com.google.adk.agents
Class LoopAgent.Builder
- Enclosing class:
- LoopAgent
Builder for
LoopAgent.-
Field Summary
Fields inherited from class com.google.adk.agents.BaseAgent.Builder
afterAgentCallback, beforeAgentCallback, description, name, subAgents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()maxIterations(@Nullable Integer maxIterations) Sets the maximum number of loop iterations.Methods inherited from class com.google.adk.agents.BaseAgent.Builder
afterAgentCallback, afterAgentCallback, beforeAgentCallback, beforeAgentCallback, description, name, self, subAgents, subAgents
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
- Specified by:
buildin classBaseAgent.Builder<LoopAgent.Builder>
-