mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
40 lines
902 B
Swift
40 lines
902 B
Swift
//
|
|
// MessageContentOneOf7.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
#if canImport(AnyCodable)
|
|
import AnyCodable
|
|
#endif
|
|
|
|
public struct MessageContentOneOf7: Codable, JSONEncodable, Hashable {
|
|
|
|
public enum ModelType: String, Codable, CaseIterable {
|
|
case redactedthinking = "redactedThinking"
|
|
}
|
|
public var data: String
|
|
public var type: ModelType
|
|
|
|
public init(data: String, type: ModelType) {
|
|
self.data = data
|
|
self.type = type
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case data
|
|
case type
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encode(data, forKey: .data)
|
|
try container.encode(type, forKey: .type)
|
|
}
|
|
}
|
|
|