Record Class OpenAiApi.ChatCompletionMessage.MediaContent.InputFile
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionMessage.MediaContent.InputFile
- Record Components:
filename
- name of the filefileData
- file data with format "data:{mimetype};base64,{base64-encoded-image-data}".
- Enclosing class:
- OpenAiApi.ChatCompletionMessage.MediaContent
public static record OpenAiApi.ChatCompletionMessage.MediaContent.InputFile(String filename, String fileData)
extends Record
Constructor for base64-encoded file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fileData()
Returns the value of thefileData
record component.filename()
Returns the value of thefilename
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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)
. -
filename
Returns the value of thefilename
record component.- Returns:
- the value of the
filename
record component
-
fileData
Returns the value of thefileData
record component.- Returns:
- the value of the
fileData
record component
-