类的使用
io.agentscope.core.skill.SkillBox.SkillRegistration
-
io.agentscope.core.skill中SkillBox.SkillRegistration的使用
修饰符和类型方法说明Set the AgentTool instance to register.SkillBox.SkillRegistration.disableTools(List<String> disableTools) Set the list of tools to disable from the MCP client.SkillBox.SkillRegistration.enableTools(List<String> enableTools) Set the list of tools to enable from the MCP client.SkillBox.SkillRegistration.extendedModel(ExtendedModel extendedModel) Set the extended model for dynamic schema extension.SkillBox.SkillRegistration.mcpClient(McpClientWrapper mcpClientWrapper) Set the MCP client to register.Set preset parameters that will be automatically injected during tool execution.SkillBox.registration()Create a fluent builder for registering skills with optional configuration.SkillBox.SkillRegistration.skill(AgentSkill skill) Set the skill to register.SkillBox.SkillRegistration.subAgent(SubAgentProvider<?> provider) Register a sub-agent as a tool with default configuration.SkillBox.SkillRegistration.subAgent(SubAgentProvider<?> provider, SubAgentConfig config) Register a sub-agent as a tool with custom configuration.Set the tool object to register (scans for @Tool methods).