Interface CountTokensConfig

Config for the count_tokens method.

interface CountTokensConfig {
    generationConfig?: GenerationConfig;
    httpOptions?: HttpOptions;
    systemInstruction?: ContentUnion;
    tools?: Tool[];
}

Properties

generationConfig?: GenerationConfig

Configuration that the model uses to generate the response. Not supported by the Gemini Developer API.

httpOptions?: HttpOptions

Used to override HTTP request options.

systemInstruction?: ContentUnion

Instructions for the model to steer it toward better performance.

tools?: Tool[]

Code that enables the system to interact with external systems to perform an action outside of the knowledge and scope of the model.

MMNEPVFCICPMFPCPTTAAATR