类 ToolGroup.Builder

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

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

    • Builder

      public Builder()
  • 方法详细资料

    • name

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

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

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

      public ToolGroup.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 ToolGroup build()
      Builds a new ToolGroup with the configured settings.
      返回:
      A new ToolGroup instance
      抛出:
      NullPointerException - if name is null