Params for calling [GenerativeModel.countTokens()](https://firebase.google.com/docs/reference/js/ai.generativemodel#generativemodelcounttokens)

**Signature:**

    export interface CountTokensRequest 

## Properties

| Property | Type | Description |
|---|---|---|
| [contents](https://firebase.google.com/docs/reference/js/ai.counttokensrequest#counttokensrequestcontents) | [Content](https://firebase.google.com/docs/reference/js/ai.content#content_interface)\[\] |   |
| [generationConfig](https://firebase.google.com/docs/reference/js/ai.counttokensrequest#counttokensrequestgenerationconfig) | [GenerationConfig](https://firebase.google.com/docs/reference/js/ai.generationconfig#generationconfig_interface) | Configuration options that control how the model generates a response. |
| [systemInstruction](https://firebase.google.com/docs/reference/js/ai.counttokensrequest#counttokensrequestsysteminstruction) | string \| [Part](https://firebase.google.com/docs/reference/js/ai#part) \| [Content](https://firebase.google.com/docs/reference/js/ai.content#content_interface) | Instructions that direct the model to behave a certain way. |
| [tools](https://firebase.google.com/docs/reference/js/ai.counttokensrequest#counttokensrequesttools) | [Tool](https://firebase.google.com/docs/reference/js/ai#tool)\[\] | [Tool](https://firebase.google.com/docs/reference/js/ai#tool) configuration. |

## CountTokensRequest.contents

**Signature:**

    contents: Content[];

## CountTokensRequest.generationConfig

Configuration options that control how the model generates a response.

**Signature:**

    generationConfig?: GenerationConfig;

## CountTokensRequest.systemInstruction

Instructions that direct the model to behave a certain way.

**Signature:**

    systemInstruction?: string | Part | Content;

## CountTokensRequest.tools

[Tool](https://firebase.google.com/docs/reference/js/ai#tool) configuration.

**Signature:**

    tools?: Tool[];