Class LoopAgent.LoopAgentBuilder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.builder.FlowAgentBuilder<LoopAgent,LoopAgent.LoopAgentBuilder>
com.alibaba.cloud.ai.graph.agent.flow.agent.LoopAgent.LoopAgentBuilder
- Enclosing class:
- LoopAgent
public static class LoopAgent.LoopAgentBuilder
extends FlowAgentBuilder<LoopAgent,LoopAgent.LoopAgentBuilder>
-
Field Summary
Fields inherited from class com.alibaba.cloud.ai.graph.agent.flow.builder.FlowAgentBuilder
compileConfig, description, executor, name, saver, stateSerializer, subAgents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoBuild()loopStrategy(LoopStrategy loopStrategy) protected LoopAgent.LoopAgentBuilderself()Returns the concrete builder instance.Sets the list of sub-agents.protected voidvalidate()Validates the builder state before creating the agent.Methods inherited from class com.alibaba.cloud.ai.graph.agent.flow.builder.FlowAgentBuilder
build, compileConfig, description, executor, name, saver, stateSerializer
-
Constructor Details
-
LoopAgentBuilder
public LoopAgentBuilder()
-
-
Method Details
-
self
Description copied from class:FlowAgentBuilderReturns the concrete builder instance. This method enables fluent interface support in subclasses.- Specified by:
selfin classFlowAgentBuilder<LoopAgent,LoopAgent.LoopAgentBuilder> - Returns:
- this builder instance
-
subAgent
-
subAgents
Description copied from class:FlowAgentBuilderSets the list of sub-agents.- Overrides:
subAgentsin classFlowAgentBuilder<LoopAgent,LoopAgent.LoopAgentBuilder> - Parameters:
subAgents- the list of sub-agents- Returns:
- this builder instance for method chaining
-
loopStrategy
-
validate
protected void validate()Description copied from class:FlowAgentBuilderValidates the builder state before creating the agent. Subclasses can override this method to add specific validation logic.- Overrides:
validatein classFlowAgentBuilder<LoopAgent,LoopAgent.LoopAgentBuilder>
-
doBuild
- Specified by:
doBuildin classFlowAgentBuilder<LoopAgent,LoopAgent.LoopAgentBuilder>
-