mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.9 KiB
1.9 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
CountTokensRequest interface
Params for calling GenerativeModel.countTokens()
Signature:
export interface CountTokensRequest
Properties
| Property | Type | Description |
|---|---|---|
| contents | Content[] | |
| generationConfig | GenerationConfig | Configuration options that control how the model generates a response. |
| systemInstruction | string | Part | Content | Instructions that direct the model to behave a certain way. |
| tools | Tool[] | 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 configuration.
Signature:
tools?: Tool[];