Interface protos.google.ai.generativelanguage.v1beta.ICountTokensRequest (2.6.0)

Properties of a CountTokensRequest.

Package

@google-ai/generativelanguage

Properties

contents

contents?: (google.ai.generativelanguage.v1beta.IContent[]|null);

CountTokensRequest contents

generateContentRequest

generateContentRequest?: (google.ai.generativelanguage.v1beta.IGenerateContentRequest|null);

CountTokensRequest generateContentRequest

model

model?: (string|null);

CountTokensRequest model