React Native Firebase
    Preparing search index...

    Params for calling GenerativeModel.countTokens

    interface CountTokensRequest {
        contents: Content[];
        generationConfig?: GenerationConfig;
        systemInstruction?: string | Content | Part;
        tools?: Tool[];
    }
    Index

    Properties

    contents: Content[]
    generationConfig?: GenerationConfig

    Configuration options that control how the model generates a response.

    systemInstruction?: string | Content | Part

    Instructions that direct the model to behave a certain way.

    tools?: Tool[]

    Tool configuration.