Record Class GoogleGenAiChatModel.GeminiRequest
java.lang.Object
java.lang.Record
org.springframework.ai.google.genai.GoogleGenAiChatModel.GeminiRequest
- Enclosing class:
GoogleGenAiChatModel
public static record GoogleGenAiChatModel.GeminiRequest(List<com.google.genai.types.Content> contents, String modelName, com.google.genai.types.GenerateContentConfig config)
extends Record
- Since:
- 0.8.1
- Author:
- Christian Tzolov, Grogdunn, luocongqiu, Chris Turchin, Mark Pollack, Soby Chacko, Jihoon Kim, Alexandros Pappas, Ilayaperumal Gopinathan, Dan Dobrin
-
Constructor Summary
ConstructorsConstructorDescriptionGeminiRequest(List<com.google.genai.types.Content> contents, String modelName, com.google.genai.types.GenerateContentConfig config) Creates an instance of aGeminiRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.genai.types.GenerateContentConfigconfig()Returns the value of theconfigrecord component.List<com.google.genai.types.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.Returns the value of themodelNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeminiRequest
public GeminiRequest(List<com.google.genai.types.Content> contents, String modelName, com.google.genai.types.GenerateContentConfig config) Creates an instance of aGeminiRequestrecord class.- Parameters:
contents- the value for thecontentsrecord componentmodelName- the value for themodelNamerecord componentconfig- the value for theconfigrecord 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
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
config
public com.google.genai.types.GenerateContentConfig config()Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-