Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.95 KB

vertexai.counttokensrequest.md

File metadata and controls

66 lines (45 loc) · 1.95 KB

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[];