Make CallTool.Result.isError optional (#11)
This commit is contained in:
parent
154cf61040
commit
a62e51a61c
1 changed files with 23 additions and 9 deletions
|
|
@ -154,9 +154,9 @@ public enum CallTool: Method {
|
|||
|
||||
public struct Result: Hashable, Codable, Sendable {
|
||||
public let content: [Tool.Content]
|
||||
public let isError: Bool
|
||||
public let isError: Bool?
|
||||
|
||||
public init(content: [Tool.Content], isError: Bool) {
|
||||
public init(content: [Tool.Content], isError: Bool? = nil) {
|
||||
self.content = content
|
||||
self.isError = isError
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue