tokenCount
TypeScriptget tokenCount(): numberSwift declarationvar tokenCount: Intstruct · iOS 27.0+ · SDK 27.1
struct TextSegmentReplacementA replacement for a streaming entry's current text segment. The `tokenCount` is the producer's count of tokens carried by `content` and is used by safety or usage accounting to credit the replacement against
get tokenCount(): numberSwift declarationvar tokenCount: Intset tokenCount(value: number)Swift declarationvar tokenCount: Intget content(): stringSwift declarationvar content: Stringset content(value: string)Swift declarationvar content: Stringget segmentID(): (string) | nullSwift declarationvar segmentID: String?set segmentID(value: (string) | null)Swift declarationvar segmentID: String?No declarations were skipped in this snapshot.