类 ToolGroup.Builder
java.lang.Object
io.agentscope.core.tool.ToolGroup.Builder
- 封闭类:
ToolGroup
Builder for constructing ToolGroup instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明active(boolean active) Sets the initial activation state.build()Builds a new ToolGroup with the configured settings.description(String description) Sets the description of the tool group.Sets the name of the tool group.scope(ToolGroupScope scope) Sets the scope of the tool group.Sets the initial set of tools in this group.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
name
Sets the name of the tool group.- 参数:
name- The group name (required)- 返回:
- This builder for method chaining
-
description
Sets the description of the tool group.- 参数:
description- The group description- 返回:
- This builder for method chaining
-
active
Sets the initial activation state.- 参数:
active- true for active (default), false for inactive- 返回:
- This builder for method chaining
-
scope
Sets the scope of the tool group.- 参数:
scope-ToolGroupScope.META(default) for agent-managed,ToolGroupScope.EXTERNALfor developer-managed- 返回:
- This builder for method chaining
-
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
Builds a new ToolGroup with the configured settings.- 返回:
- A new ToolGroup instance
- 抛出:
NullPointerException- if name is null
-