Class GoogleCloudAiplatformV1CountTokensRequest
Request message for PredictionService.CountTokens.
Implements
Inherited Members
Namespace: Google.Apis.Aiplatform.v1.Data
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class GoogleCloudAiplatformV1CountTokensRequest : IDirectResponseSchema
Properties
Contents
Optional. Input content.
Declaration
[JsonProperty("contents")]
public virtual IList<GoogleCloudAiplatformV1Content> Contents { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudAiplatformV1Content> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
GenerationConfig
Optional. Generation config that the model will use to generate the response.
Declaration
[JsonProperty("generationConfig")]
public virtual GoogleCloudAiplatformV1GenerationConfig GenerationConfig { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudAiplatformV1GenerationConfig |
Instances
Optional. The instances that are the input to token counting call. Schema is identical to the prediction schema of the underlying model.
Declaration
[JsonProperty("instances")]
public virtual IList<object> Instances { get; set; }
Property Value
Type | Description |
---|---|
IList<object> |
Model
Optional. The name of the publisher model requested to serve the prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
Declaration
[JsonProperty("model")]
public virtual string Model { get; set; }
Property Value
Type | Description |
---|---|
string |
SystemInstruction
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.
Declaration
[JsonProperty("systemInstruction")]
public virtual GoogleCloudAiplatformV1Content SystemInstruction { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudAiplatformV1Content |
Tools
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.
Declaration
[JsonProperty("tools")]
public virtual IList<GoogleCloudAiplatformV1Tool> Tools { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudAiplatformV1Tool> |