类 SkillToolGroup.Builder
java.lang.Object
io.agentscope.core.tool.SkillToolGroup.Builder
- 封闭类:
SkillToolGroup
Builder for constructing SkillToolGroup instances.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明activateOnSkill(String skillName) Sets the skill that this tool group is bound to.active(boolean active) Sets the initial activation state.build()Builds a new SkillToolGroup with the configured settings.description(String description) Sets the base description of the tool group.Sets the name 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 base description of the tool group.- 参数:
description- The group description- 返回:
- This builder for method chaining
-
active
Sets the initial activation state.- 参数:
active- true for active, false for inactive (default)- 返回:
- This builder for method chaining
-
activateOnSkill
Sets the skill that this tool group is bound to.- 参数:
skillName- The skill name (required)- 返回:
- 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 SkillToolGroup with the configured settings.- 返回:
- A new SkillToolGroup instance
- 抛出:
NullPointerException- if name or activateOnSkill is null
-