Batch Class
- java.
lang. Object - com.
azure. ai. openai. models. Batch
- com.
Implements
public final class Batch
implements JsonSerializable<Batch>
The Batch object.
Method Summary
Modifier and Type | Method and Description |
---|---|
static Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch from the Json |
Offset |
getCancelledAt()
Get the cancelled |
Offset |
getCancellingAt()
Get the cancelling |
Offset |
getCompletedAt()
Get the completed |
String |
getCompletionWindow()
Get the completion |
Offset |
getCreatedAt()
Get the created |
String |
getEndpoint()
Get the endpoint property: The OpenAI API endpoint used by the batch. |
String |
getErrorFileId()
Get the error |
Batch |
getErrors()
Get the errors property: The list of Batch errors. |
Offset |
getExpiredAt()
Get the expired |
Offset |
getExpiresAt()
Get the expires |
Offset |
getFailedAt()
Get the failed |
Offset |
getFinalizingAt()
Get the finalizing |
String |
getId()
Get the id property: The id assigned to the Batch. |
Offset |
getInProgressAt()
Get the in |
String |
getInputFileId()
Get the input |
Map<String,String> |
getMetadata()
Get the metadata property: A set of key-value pairs that can be attached to the batch. |
String |
getObject()
Get the object property: The object type, which is always `batch`. |
String |
getOutputFileId()
Get the output |
Batch |
getRequestCounts()
Get the request |
Batch |
getStatus()
Get the status property: The current status of the batch. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static Batch fromJson(JsonReader jsonReader)
Reads an instance of Batch from the JsonReader.
Parameters:
Returns:
Throws:
getCancelledAt
public OffsetDateTime getCancelledAt()
Get the cancelledAt property: The Unix timestamp (in seconds) for when the batch was cancelled.
Returns:
getCancellingAt
public OffsetDateTime getCancellingAt()
Get the cancellingAt property: The Unix timestamp (in seconds) for when the batch started cancelling.
Returns:
getCompletedAt
public OffsetDateTime getCompletedAt()
Get the completedAt property: The Unix timestamp (in seconds) for when the batch was completed.
Returns:
getCompletionWindow
public String getCompletionWindow()
Get the completionWindow property: The time frame within which the batch should be processed.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp (in seconds) for when the batch was created.
Returns:
getEndpoint
public String getEndpoint()
Get the endpoint property: The OpenAI API endpoint used by the batch.
Returns:
getErrorFileId
public String getErrorFileId()
Get the errorFileId property: The ID of the file containing the outputs of requests with errors.
Returns:
getErrors
public BatchErrorList getErrors()
Get the errors property: The list of Batch errors.
Returns:
getExpiredAt
public OffsetDateTime getExpiredAt()
Get the expiredAt property: The Unix timestamp (in seconds) for when the batch expired.
Returns:
getExpiresAt
public OffsetDateTime getExpiresAt()
Get the expiresAt property: The Unix timestamp (in seconds) for when the batch will expire.
Returns:
getFailedAt
public OffsetDateTime getFailedAt()
Get the failedAt property: The Unix timestamp (in seconds) for when the batch failed.
Returns:
getFinalizingAt
public OffsetDateTime getFinalizingAt()
Get the finalizingAt property: The Unix timestamp (in seconds) for when the batch started finalizing.
Returns:
getId
public String getId()
Get the id property: The id assigned to the Batch.
Returns:
getInProgressAt
public OffsetDateTime getInProgressAt()
Get the inProgressAt property: The Unix timestamp (in seconds) for when the batch started processing.
Returns:
getInputFileId
public String getInputFileId()
Get the inputFileId property: The ID of the input file for the batch.
Returns:
getMetadata
public Map
Get the metadata property: A set of key-value pairs that can be attached to the batch. This can be useful for storing additional information about the batch in a structured format.
Returns:
getObject
public String getObject()
Get the object property: The object type, which is always `batch`.
Returns:
getOutputFileId
public String getOutputFileId()
Get the outputFileId property: The ID of the file containing the outputs of successfully executed requests.
Returns:
getRequestCounts
public BatchRequestCounts getRequestCounts()
Get the requestCounts property: The request counts for different statuses within the batch.
Returns:
getStatus
public BatchStatus getStatus()
Get the status property: The current status of the batch.
Returns:
toJson
Applies to
Azure SDK for Java