Files
goose/api_clients/swift/GooseAPI/Classes/OpenAPIs/Models/MessageContentOneOf3.swift
2025-10-02 20:13:20 -04:00

47 lines
1.1 KiB
Swift

//
// MessageContentOneOf3.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
public struct MessageContentOneOf3: Codable, JSONEncodable, Hashable {
public enum ModelType: String, Codable, CaseIterable {
case toolresponse = "toolResponse"
}
public var id: String
public var toolResult: AnyCodable
public var type: ModelType
public init(id: String, toolResult: AnyCodable, type: ModelType) {
self.id = id
self.toolResult = toolResult
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case id
case toolResult
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(id, forKey: .id)
try container.encode(toolResult, forKey: .toolResult)
try container.encode(type, forKey: .type)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension MessageContentOneOf3: Identifiable {}