Record Class VertexAiGeminiApi.LogProbs
java.lang.Object
java.lang.Record
org.springframework.ai.vertexai.gemini.api.VertexAiGeminiApi.LogProbs
- Enclosing class:
VertexAiGeminiApi
public static record VertexAiGeminiApi.LogProbs(Double avgLogprobs, List<VertexAiGeminiApi.LogProbs.TopContent> topCandidates, List<VertexAiGeminiApi.LogProbs.Content> chosenCandidates)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionLogProbs(Double avgLogprobs, List<VertexAiGeminiApi.LogProbs.TopContent> topCandidates, List<VertexAiGeminiApi.LogProbs.Content> chosenCandidates) Creates an instance of aLogProbsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgLogprobsrecord component.Returns the value of thechosenCandidatesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetopCandidatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogProbs
public LogProbs(Double avgLogprobs, List<VertexAiGeminiApi.LogProbs.TopContent> topCandidates, List<VertexAiGeminiApi.LogProbs.Content> chosenCandidates) Creates an instance of aLogProbsrecord class.- Parameters:
avgLogprobs- the value for theavgLogprobsrecord componenttopCandidates- the value for thetopCandidatesrecord componentchosenCandidates- the value for thechosenCandidatesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
avgLogprobs
Returns the value of theavgLogprobsrecord component.- Returns:
- the value of the
avgLogprobsrecord component
-
topCandidates
Returns the value of thetopCandidatesrecord component.- Returns:
- the value of the
topCandidatesrecord component
-
chosenCandidates
Returns the value of thechosenCandidatesrecord component.- Returns:
- the value of the
chosenCandidatesrecord component
-