Class SubAgentSpec.Builder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.extension.interceptor.SubAgentSpec.Builder
- Enclosing class:
- SubAgentSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()description(String description) Set the description of the subagent (required).enableLoopingLog(boolean enableLoopingLog) interceptors(List<ModelInterceptor> interceptors) Set custom interceptors for this subagent.model(org.springframework.ai.chat.model.ChatModel model) Set a custom model for this subagent.Set the name of the subagent (required).systemPrompt(String systemPrompt) Set the system prompt for the subagent (required).Set custom tools for this subagent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Set the name of the subagent (required). -
description
Set the description of the subagent (required). This is used by the main agent to decide whether to call the subagent. -
systemPrompt
Set the system prompt for the subagent (required). This is used as the instruction when the subagent is invoked. -
model
Set a custom model for this subagent. If not set, the default model from SubAgentInterceptor will be used. -
tools
Set custom tools for this subagent. If not set, the default tools from SubAgentInterceptor will be used. -
interceptors
Set custom interceptors for this subagent. These will be applied after the default interceptors from SubAgentInterceptor. -
enableLoopingLog
-
build
-