conversationTokenCount function

Future<int?> conversationTokenCount(
  1. Conversation conversation,
  2. String text
)

How many tokens text is, by conversation's model's own tokenizer; null when the engine cannot tell (closed, or the native call failed).

Implementation

Future<int?> conversationTokenCount(Conversation conversation, String text) =>
    conversation._handle.tokenCount(text);