Record Class VertexAiGeminiChatModel.GeminiRequest
java.lang.Object
java.lang.Record
org.springframework.ai.vertexai.gemini.VertexAiGeminiChatModel.GeminiRequest
- Enclosing class:
VertexAiGeminiChatModel
public static record VertexAiGeminiChatModel.GeminiRequest(List<com.google.cloud.vertexai.api.Content> contents, com.google.cloud.vertexai.generativeai.GenerativeModel model)
extends Record
- Since:
- 0.8.1
- Author:
- Christian Tzolov, Grogdunn, luocongqiu, Chris Turchin, Mark Pollack, Soby Chacko, Jihoon Kim, Alexandros Pappas, Ilayaperumal Gopinathan
-
Constructor Summary
ConstructorsConstructorDescriptionGeminiRequest(List<com.google.cloud.vertexai.api.Content> contents, com.google.cloud.vertexai.generativeai.GenerativeModel model) Creates an instance of aGeminiRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<com.google.cloud.vertexai.api.Content> contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.cloud.vertexai.generativeai.GenerativeModelmodel()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeminiRequest
public GeminiRequest(List<com.google.cloud.vertexai.api.Content> contents, com.google.cloud.vertexai.generativeai.GenerativeModel model) Creates an instance of aGeminiRequestrecord class.- Parameters:
contents- the value for thecontentsrecord componentmodel- the value for themodelrecord 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). -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-
model
public com.google.cloud.vertexai.generativeai.GenerativeModel model()Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-