ToolParameterDescriptor

该接口表示工具参数的描述信息,包含了参数的名称、描述和类型等信息。

通过此接口可以对工具参数的各项属性进行设置和获取,方便对工具参数进行管理和配置。

Author

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

Functions

Link copied to clipboard
abstract fun getDescription(): String

获取参数的描述信息。

Link copied to clipboard
abstract fun getName(): String

获取参数的名称。

Link copied to clipboard
abstract fun getType(): ToolParameterType

获取参数的类型。

Link copied to clipboard
abstract fun setDescription(description: String)

设置参数的描述信息。

Link copied to clipboard
abstract fun setName(name: String)

设置参数的名称。

Link copied to clipboard
abstract fun setType(builder: (ToolParameterTypes) -> ToolParameterType)

使用类型构建器函数设置参数的类型。