ModalityTokenCount
public struct ModalityTokenCount : Sendableextension ModalityTokenCount: DecodableRepresents 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
-
Declaration
Swift
public init(from decoder: any Decoder) throws