java.lang.Object
com.alibaba.cloud.ai.graph.agent.extension.interceptor.SubAgentSpec

public class SubAgentSpec extends Object
Specification for creating a subagent. This class defines the configuration for a custom subagent that can be used with the SubAgentInterceptor. Each subagent has its own name, description, system prompt, and optionally custom tools and interceptors.
  • Method Details

    • builder

      public static SubAgentSpec.Builder builder()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getSystemPrompt

      public String getSystemPrompt()
    • getModel

      public org.springframework.ai.chat.model.ChatModel getModel()
    • getTools

      public List<org.springframework.ai.tool.ToolCallback> getTools()
    • getInterceptors

      public List<ModelInterceptor> getInterceptors()
    • isEnableLoopingLog

      public boolean isEnableLoopingLog()