// // MessageMetadata.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation #if canImport(AnyCodable) import AnyCodable #endif /** Metadata for message visibility */ public struct MessageMetadata: Codable, JSONEncodable, Hashable { /** Whether the message should be included in the agent's context window */ public var agentVisible: Bool? /** Whether the message should be visible to the user in the UI */ public var userVisible: Bool? public init(agentVisible: Bool? = nil, userVisible: Bool? = nil) { self.agentVisible = agentVisible self.userVisible = userVisible } public enum CodingKeys: String, CodingKey, CaseIterable { case agentVisible case userVisible } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(agentVisible, forKey: .agentVisible) try container.encodeIfPresent(userVisible, forKey: .userVisible) } }