Class SubAgentInterceptor.Builder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.extension.interceptor.SubAgentInterceptor.Builder
- Enclosing class:
- SubAgentInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubAgent(SubAgentSpec spec) Add a subagent from specification.addSubAgent(String name, ReactAgent agent) Add a custom subagent.build()defaultHooks(Hook... hooks) Set the default hooks to apply to subagents.defaultInterceptors(Interceptor... interceptors) defaultModel(org.springframework.ai.chat.model.ChatModel model) Set the default model to use for subagents.defaultTools(List<org.springframework.ai.tool.ToolCallback> tools) Set the default tools available to subagents.includeGeneralPurpose(boolean include) Whether to include the default general-purpose subagent.systemPrompt(String systemPrompt) Set custom system prompt to guide subagent usage.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
systemPrompt
Set custom system prompt to guide subagent usage. -
defaultModel
Set the default model to use for subagents. -
defaultTools
public SubAgentInterceptor.Builder defaultTools(List<org.springframework.ai.tool.ToolCallback> tools) Set the default tools available to subagents. -
defaultInterceptors
-
defaultHooks
Set the default hooks to apply to subagents. -
addSubAgent
Add a custom subagent. -
addSubAgent
Add a subagent from specification. -
includeGeneralPurpose
Whether to include the default general-purpose subagent. -
build
-