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

55 lines
1.5 KiB
Swift

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