ModalityTokenCount
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct ModalityTokenCount : Sendable
extension ModalityTokenCount: Decodable
Represents token counting info for a single modality.
-
The modality associated with this token count.
Declaration
Swift
public let modality: ContentModality
-
The number of tokens counted.
Declaration
Swift
public let tokenCount: Int