类 SkillToolGroup.Builder

java.lang.Object
io.agentscope.core.tool.SkillToolGroup.Builder
封闭类:
SkillToolGroup

public static class SkillToolGroup.Builder extends Object
Builder for constructing SkillToolGroup instances.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • name

      public SkillToolGroup.Builder name(String name)
      Sets the name of the tool group.
      参数:
      name - The group name (required)
      返回:
      This builder for method chaining
    • description

      public SkillToolGroup.Builder description(String description)
      Sets the base description of the tool group.
      参数:
      description - The group description
      返回:
      This builder for method chaining
    • active

      public SkillToolGroup.Builder active(boolean active)
      Sets the initial activation state.
      参数:
      active - true for active, false for inactive (default)
      返回:
      This builder for method chaining
    • activateOnSkill

      public SkillToolGroup.Builder activateOnSkill(String skillName)
      Sets the skill that this tool group is bound to.
      参数:
      skillName - The skill name (required)
      返回:
      This builder for method chaining
    • tools

      public SkillToolGroup.Builder tools(Set<String> tools)
      Sets the initial set of tools in this group.
      参数:
      tools - The tool names (a defensive copy will be made)
      返回:
      This builder for method chaining
    • build

      public SkillToolGroup build()
      Builds a new SkillToolGroup with the configured settings.
      返回:
      A new SkillToolGroup instance
      抛出:
      NullPointerException - if name or activateOnSkill is null