Make CallTool.Result.isError optional (#11)
This commit is contained in:
parent
154cf61040
commit
a62e51a61c
1 changed files with 23 additions and 9 deletions
|
|
@ -344,7 +344,7 @@ public actor Client {
|
|||
}
|
||||
|
||||
public func callTool(name: String, arguments: [String: Value]? = nil) async throws -> (
|
||||
content: [Tool.Content], isError: Bool
|
||||
content: [Tool.Content], isError: Bool?
|
||||
) {
|
||||
_ = try checkCapability(\.tools, "Tools")
|
||||
let request = CallTool.request(.init(name: name, arguments: arguments))
|
||||
|
|
|
|||
Loading…
Reference in a new issue