public sealed class CountTokensResponse : IMessage<CountTokensResponse>, IEquatable<CountTokensResponse>, IDeepCloneable<CountTokensResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class CountTokensResponse.
Response message for
[PredictionService.CountTokens][google.cloud.aiplatform.v1beta1.PredictionService.CountTokens].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `CountTokensResponse` class is part of the Vertex AI v1beta1 API, specifically used in the `PredictionService.CountTokens` method, and is the response message returned by it."],["This class inherits from `object` and implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, offering capabilities like deep cloning and message handling."],["The class includes properties such as `PromptTokensDetails`, which provides a list of modalities processed in the request input, `TotalBillableCharacters`, which indicates the total billable characters, and `TotalTokens`, representing the total number of tokens counted."],["There are two versions available in this document, `1.0.0-beta21` being the most recent, with a previous version of `1.0.0-beta20`."],["The `CountTokensResponse` class is found in the `Google.Cloud.AIPlatform.V1Beta1` namespace, within the `Google.Cloud.AIPlatform.V1Beta1.dll` assembly."]]],[]]