Package com.google.genai.types
Class ComputeTokensParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ComputeTokensParameters
Parameters for computing tokens.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ComputeTokensParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for ComputeTokensParameters.abstract Optional<ComputeTokensConfig>
config()
Optional parameters for the request.contents()
Input content.static ComputeTokensParameters
Deserializes a JSON string to a ComputeTokensParameters object.model()
ID of the model to use.abstract ComputeTokensParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
ComputeTokensParameters
public ComputeTokensParameters()
-
-
Method Details
-
model
ID of the model to use. For a list of models, see `Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. -
contents
Input content. -
config
Optional parameters for the request. -
builder
Instantiates a builder for ComputeTokensParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ComputeTokensParameters object.
-