ToolRegistry

interface ToolRegistry

该接口用于工具的注册和注销操作。

通过此接口可以将工具注册到系统中,或者从系统中注销工具,方便对工具进行管理。

Author

M8Test, [email protected], https://m8test.com

Inheritors

Functions

Link copied to clipboard
abstract fun getTools(): Set<Tool>

获取当前已注册的所有工具集合。

Link copied to clipboard
abstract fun registerTool(builder: Tool.() -> Unit): Result

注册一个工具,使用传入的配置函数对工具进行配置。

Link copied to clipboard
abstract fun unregisterTool(tool: Tool): Result

注销一个工具。