Record Class VertexAiPaLm2Api.Model
java.lang.Object
java.lang.Record
org.springframework.ai.vertexai.palm2.api.VertexAiPaLm2Api.Model
- Record Components:
name
- The resource name of the Model. Format: `models/{model} with a {model} naming convention of:`{baseModelId}-{version}
baseModelId
- The name of the base model, pass this to the generation request.version
- The version of the model. This represents the major version.displayName
- The human-readable name of the model. E.g. "Chat Bison". The name can be up to 128 characters long and can consist of any UTF-8 characters.description
- A short description of the model.inputTokenLimit
- Maximum number of input tokens allowed for this model.outputTokenLimit
- Maximum number of output tokens allowed for this model.supportedGenerationMethods
- List of supported generation methods for this model. The method names are defined as Pascal case strings, such as generateMessage which correspond to API methods.temperature
- Controls the randomness of the output. Values can range over [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied, while a value closer to 0.0 will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.topP
- For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least topP. This value specifies default to be used by the backend while making the call to the model.topK
- For Top-k sampling. Top-k sampling considers the set of topK most probable tokens. This value specifies default to be used by the backend while making the call to the model.
- Enclosing class:
- VertexAiPaLm2Api
public static record VertexAiPaLm2Api.Model(String name, String baseModelId, String version, String displayName, String description, Integer inputTokenLimit, Integer outputTokenLimit, List<String> supportedGenerationMethods, Double temperature, Double topP, Integer topK)
extends Record
Information about a Generative Language Model.
-
Constructor Summary
ConstructorDescriptionModel
(String name, String baseModelId, String version, String displayName, String description, Integer inputTokenLimit, Integer outputTokenLimit, List<String> supportedGenerationMethods, Double temperature, Double topP, Integer topK) Creates an instance of aModel
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseModelId
record component.Returns the value of thedescription
record component.Returns the value of thedisplayName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinputTokenLimit
record component.name()
Returns the value of thename
record component.Returns the value of theoutputTokenLimit
record component.Returns the value of thesupportedGenerationMethods
record component.Returns the value of thetemperature
record component.topK()
Returns the value of thetopK
record component.topP()
Returns the value of thetopP
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
Model
public Model(String name, String baseModelId, String version, String displayName, String description, Integer inputTokenLimit, Integer outputTokenLimit, List<String> supportedGenerationMethods, Double temperature, Double topP, Integer topK) Creates an instance of aModel
record class.- Parameters:
name
- the value for thename
record componentbaseModelId
- the value for thebaseModelId
record componentversion
- the value for theversion
record componentdisplayName
- the value for thedisplayName
record componentdescription
- the value for thedescription
record componentinputTokenLimit
- the value for theinputTokenLimit
record componentoutputTokenLimit
- the value for theoutputTokenLimit
record componentsupportedGenerationMethods
- the value for thesupportedGenerationMethods
record componenttemperature
- the value for thetemperature
record componenttopP
- the value for thetopP
record componenttopK
- the value for thetopK
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
baseModelId
Returns the value of thebaseModelId
record component.- Returns:
- the value of the
baseModelId
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
displayName
Returns the value of thedisplayName
record component.- Returns:
- the value of the
displayName
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
inputTokenLimit
Returns the value of theinputTokenLimit
record component.- Returns:
- the value of the
inputTokenLimit
record component
-
outputTokenLimit
Returns the value of theoutputTokenLimit
record component.- Returns:
- the value of the
outputTokenLimit
record component
-
supportedGenerationMethods
Returns the value of thesupportedGenerationMethods
record component.- Returns:
- the value of the
supportedGenerationMethods
record component
-
temperature
Returns the value of thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
topP
Returns the value of thetopP
record component.- Returns:
- the value of the
topP
record component
-
topK
Returns the value of thetopK
record component.- Returns:
- the value of the
topK
record component
-