public sealed class ComputeTokensResponse : IMessage<ComputeTokensResponse>, IEquatable<ComputeTokensResponse>, IDeepCloneable<ComputeTokensResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class ComputeTokensResponse.
public RepeatedField<TokensInfo> TokensInfo { get; }
Lists of tokens info from the input. A ComputeTokensRequest could have
multiple instances with a prompt in each instance. We also need to return
lists of tokens info for the request with multiple instances.
[[["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-08-14 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eComputeTokensResponse\u003c/code\u003e class is 1.0.0-beta21, which is part of the Vertex AI v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eComputeTokensResponse\u003c/code\u003e is a response message for the ComputeTokens RPC call, representing a sealed class with various interface implementations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eComputeTokensResponse\u003c/code\u003e class inherits from the base object class, and implements the \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eIt contains a property called \u003ccode\u003eTokensInfo\u003c/code\u003e, which is a \u003ccode\u003eRepeatedField\u003c/code\u003e of \u003ccode\u003eTokensInfo\u003c/code\u003e, and is used to list token information from multiple instances in the input of a compute tokens request.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eComputeTokensResponse\u003c/code\u003e has two constructors, the default one, and another which takes in another \u003ccode\u003eComputeTokensResponse\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]