SkillToolGroup
public class SkillToolGroup extends ToolGroup
io/agentscope/core/tool/SkillToolGroup.java:44–179技能工具组,让智能体以受控方式调用外部能力。位于 io.agentscope.core.tool 包,继承自 ToolGroup。核心成员包括 getActivateOnSkill、getDescription、copy、skillBuilder。
A ToolGroup that is bound to a specific skill. When the associated skill is in use,
this tool group should be activated alongside it.
The #getDescription() method appends a reminder to the base description, informing
the model that this tool group must be activated whenever the bound skill is active.
Scope defaults to ToolGroupScope#META so the agent can manage it via
reset_equipped_tools.
Usage Example:
`SkillToolGroup group = SkillToolGroup.skillBuilder()
.name("data_analysis_tools")
.description("Tools for data analysis")
.activateOnSkill("data_analysis")
.active(false)
.build();
toolkit.registerToolGroup(group);
`
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 Builder for constructing SkillToolGroup instances. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getActivateOnSkill() | 获取 `getActivateOnSkill`。 Returns the name of the skill that this tool group is bound to. |
public String getDescription() | 获取 `getDescription`。 Returns the enhanced description that includes a reminder about the skill binding. |
public ToolGroup copy() | 返回 `copy` 结果。 Returns the copy. |
public static Builder skillBuilder()static | 返回技能构建器。 Creates a new builder for constructing SkillToolGroup instances. |
方法详情Method Detail
getActivateOnSkill
public String getActivateOnSkill()
获取 getActivateOnSkill。
Returns the name of the skill that this tool group is bound to.
Stringio/agentscope/core/tool/SkillToolGroup.java:66–68getDescription
public String getDescription()
获取 getDescription。
Returns the enhanced description that includes a reminder about the skill binding.
Stringio/agentscope/core/tool/SkillToolGroup.java:75–81copy
public ToolGroup copy()
返回 copy 结果。
Returns the copy.
ToolGroupio/agentscope/core/tool/SkillToolGroup.java:83–94skillBuilder
public static Builder skillBuilder()
返回技能构建器。
Creates a new builder for constructing SkillToolGroup instances.
Builderio/agentscope/core/tool/SkillToolGroup.java:101–103嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 io.agentscope.core.tool 包。核心成员包括 name、description、active、activateOnSkill、tools、build。
Builder for constructing SkillToolGroup instances.