Record Class ContentObject.ContentObjectFile.ContentObjectFileFields

java.lang.Object
java.lang.Record
org.elasticsearch.inference.completion.ContentObject.ContentObjectFile.ContentObjectFileFields
Record Components:
fileData - the data of the file
fileId - the ID of the file
filename - the name of the file
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject
Enclosing class:
ContentObject.ContentObjectFile

public static record ContentObject.ContentObjectFile.ContentObjectFileFields(String fileData, String fileId, String filename) extends Record implements Writeable, ToXContentObject
Represents the fields of a file content object in a unified completion request. Includes the file data, file ID, and filename. The file_id field is not currently supported, but is part of the OpenAI schema, so it is treated as optional for serialization. Since file_id is not supported, file_data and filename are effectively required, even though they are optional in the OpenAI schema. They are also treated as optional for serialization, to allow future support for file_id without needing a new transport version or worrying about backward compatibility.