OpenAIFile Class
- java.
lang. Object - com.
azure. ai. openai. models. OpenAIFile
- com.
Implements
public final class OpenAIFile
implements JsonSerializable<OpenAIFile>
Represents an assistant that can call the model and use tools.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Open |
fromJson(JsonReader jsonReader)
Reads an instance of Open |
int |
getBytes()
Get the bytes property: The size of the file, in bytes. |
Offset |
getCreatedAt()
Get the created |
String |
getFilename()
Get the filename property: The name of the file. |
String |
getId()
Get the id property: The identifier, which can be referenced in API endpoints. |
String |
getObject()
Get the object property: The object type, which is always 'file'. |
File |
getPurpose()
Get the purpose property: The intended purpose of a file. |
File |
getStatus()
Get the status property: The state of the file. |
String |
getStatusDetails()
Get the status |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static OpenAIFile fromJson(JsonReader jsonReader)
Reads an instance of OpenAIFile from the JsonReader.
Parameters:
Returns:
Throws:
getBytes
public int getBytes()
Get the bytes property: The size of the file, in bytes.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp, in seconds, representing when this object was created.
Returns:
getFilename
public String getFilename()
Get the filename property: The name of the file.
Returns:
getId
public String getId()
Get the id property: The identifier, which can be referenced in API endpoints.
Returns:
getObject
public String getObject()
Get the object property: The object type, which is always 'file'.
Returns:
getPurpose
public FilePurpose getPurpose()
Get the purpose property: The intended purpose of a file.
Returns:
getStatus
public FileState getStatus()
Get the status property: The state of the file. This field is available in Azure OpenAI only.
Returns:
getStatusDetails
public String getStatusDetails()
Get the statusDetails property: The error message with details in case processing of this file failed. This field is available in Azure OpenAI only.
Returns: