Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudAiplatformV1CountTokensRequest

import type { GoogleCloudAiplatformV1CountTokensRequest } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";

Request message for PredictionService.CountTokens.

interface GoogleCloudAiplatformV1CountTokensRequest {
instances?: any[];
model?: string;
systemInstruction?: GoogleCloudAiplatformV1Content;
}

§Properties

§

Optional. Input content.

§

Optional. Generation config that the model will use to generate the response.

§
instances?: any[]
[src]

Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.

§
model?: string
[src]

Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers/*\/models/*

§

Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.

§

Optional. A list of Tools the model may use to generate the next response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.