@google/generative-ai
CountTokensResponse
Interface CountTokensResponse
Response from calling
GenerativeModel.countTokens
.
interface
CountTokensResponse
{
totalTokens
:
number
;
}
Index
Properties
total
Tokens
Properties
total
Tokens
total
Tokens
:
number
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
total
Tokens
Preparing search index...
The search index is not available
@google/generative-ai - v0.7.1
Classes
ChatSession
GenerativeModel
GoogleGenerativeAI
Variables
POSSIBLE_ROLES
Type Aliases
Part
Tool
Interfaces
BaseParams
BatchEmbedContentsRequest
BatchEmbedContentsResponse
CitationMetadata
CitationSource
Content
ContentEmbedding
CountTokensRequest
CountTokensResponse
EmbedContentRequest
EmbedContentResponse
Loading...
Response from calling GenerativeModel.countTokens.