Rejected

data class Rejected(val reason: String, val presentation: ToolPresentation) : Tool.ResolveResult(source)

参数存在问题,驳回工具调用并使用 reason 作为工具消息。

工具不应该自行实现鉴权,可以在参数错误、目标不可访问等场景驳回调用。

Parameters

presentation

为用户显示的工具执行消息,例如 '读取文件失败,找不到 README.md'。

Constructors

Link copied to clipboard
constructor(reason: String, presentation: ToolPresentation)

Properties

Link copied to clipboard
Link copied to clipboard