tokenCount
TypeScriptget tokenCount(): numberSwift declarationvar tokenCount: Intstruct · iOS 27.0+ · SDK 27.1
struct TextFragmentText appended to a streaming entry's current text segment. Use this type when appending text with ``Response`` and ``Reasoning`` actions.
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.