countTokens abstract method

Future<CountTokensResponse> countTokens(
  1. List<Content> prompt
)

Counts the number of tokens used in a prompt.

prompt is a group of Contents to count tokens of.

Implementation

Future<CountTokensResponse> countTokens(List<Content> prompt);