类的使用
io.agentscope.core.tool.Toolkit.ToolRegistration
使用Toolkit.ToolRegistration的程序包
-
io.agentscope.core.tool中Toolkit.ToolRegistration的使用
修饰符和类型方法说明Set the AgentTool instance to register.Toolkit.ToolRegistration.disableTools(List<String> disableTools) Set the list of tools to disable from the MCP client.Toolkit.ToolRegistration.enableTools(List<String> enableTools) Set the list of tools to enable from the MCP client.Toolkit.ToolRegistration.extendedModel(ExtendedModel extendedModel) Set the extended model for dynamic schema extension.Set the tool group name.Toolkit.ToolRegistration.mcpClient(McpClientWrapper mcpClientWrapper) Set the MCP client to register.Set preset parameters that will be automatically injected during tool execution.Toolkit.registration()Create a fluent builder for registering tools with optional configuration.Toolkit.ToolRegistration.subAgent(SubAgentProvider<?> provider) Register a sub-agent as a tool with default configuration.Toolkit.ToolRegistration.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).