Class UnwrapWebhookEvent
-
- All Implemented Interfaces:
public final class UnwrapWebhookEvent
Sent when a batch API request has been cancelled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
UnwrapWebhookEvent.Visitor
An interface that defines how to map each variant of UnwrapWebhookEvent to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<BatchCancelledWebhookEvent>
batchCancelled()
Sent when a batch API request has been cancelled. final Optional<BatchCompletedWebhookEvent>
batchCompleted()
Sent when a batch API request has been completed. final Optional<BatchExpiredWebhookEvent>
batchExpired()
Sent when a batch API request has expired. final Optional<BatchFailedWebhookEvent>
batchFailed()
Sent when a batch API request has failed. final Optional<EvalRunCanceledWebhookEvent>
evalRunCanceled()
Sent when an eval run has been canceled. final Optional<EvalRunFailedWebhookEvent>
evalRunFailed()
Sent when an eval run has failed. final Optional<EvalRunSucceededWebhookEvent>
evalRunSucceeded()
Sent when an eval run has succeeded. final Optional<FineTuningJobCancelledWebhookEvent>
fineTuningJobCancelled()
Sent when a fine-tuning job has been cancelled. final Optional<FineTuningJobFailedWebhookEvent>
fineTuningJobFailed()
Sent when a fine-tuning job has failed. final Optional<FineTuningJobSucceededWebhookEvent>
fineTuningJobSucceeded()
Sent when a fine-tuning job has succeeded. final Optional<ResponseCancelledWebhookEvent>
responseCancelled()
Sent when a background response has been cancelled. final Optional<ResponseCompletedWebhookEvent>
responseCompleted()
Sent when a background response has been completed. final Optional<ResponseFailedWebhookEvent>
responseFailed()
Sent when a background response has failed. final Optional<ResponseIncompleteWebhookEvent>
responseIncomplete()
Sent when a background response has been interrupted. final Boolean
isBatchCancelled()
final Boolean
isBatchCompleted()
final Boolean
isBatchExpired()
final Boolean
isBatchFailed()
final Boolean
isEvalRunCanceled()
final Boolean
isEvalRunFailed()
final Boolean
isEvalRunSucceeded()
final Boolean
isFineTuningJobCancelled()
final Boolean
isFineTuningJobFailed()
final Boolean
isFineTuningJobSucceeded()
final Boolean
isResponseCancelled()
final Boolean
isResponseCompleted()
final Boolean
isResponseFailed()
final Boolean
isResponseIncomplete()
final BatchCancelledWebhookEvent
asBatchCancelled()
Sent when a batch API request has been cancelled. final BatchCompletedWebhookEvent
asBatchCompleted()
Sent when a batch API request has been completed. final BatchExpiredWebhookEvent
asBatchExpired()
Sent when a batch API request has expired. final BatchFailedWebhookEvent
asBatchFailed()
Sent when a batch API request has failed. final EvalRunCanceledWebhookEvent
asEvalRunCanceled()
Sent when an eval run has been canceled. final EvalRunFailedWebhookEvent
asEvalRunFailed()
Sent when an eval run has failed. final EvalRunSucceededWebhookEvent
asEvalRunSucceeded()
Sent when an eval run has succeeded. final FineTuningJobCancelledWebhookEvent
asFineTuningJobCancelled()
Sent when a fine-tuning job has been cancelled. final FineTuningJobFailedWebhookEvent
asFineTuningJobFailed()
Sent when a fine-tuning job has failed. final FineTuningJobSucceededWebhookEvent
asFineTuningJobSucceeded()
Sent when a fine-tuning job has succeeded. final ResponseCancelledWebhookEvent
asResponseCancelled()
Sent when a background response has been cancelled. final ResponseCompletedWebhookEvent
asResponseCompleted()
Sent when a background response has been completed. final ResponseFailedWebhookEvent
asResponseFailed()
Sent when a background response has failed. final ResponseIncompleteWebhookEvent
asResponseIncomplete()
Sent when a background response has been interrupted. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(UnwrapWebhookEvent.Visitor<T> visitor)
final UnwrapWebhookEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static UnwrapWebhookEvent
ofBatchCancelled(BatchCancelledWebhookEvent batchCancelled)
Sent when a batch API request has been cancelled. final static UnwrapWebhookEvent
ofBatchCompleted(BatchCompletedWebhookEvent batchCompleted)
Sent when a batch API request has been completed. final static UnwrapWebhookEvent
ofBatchExpired(BatchExpiredWebhookEvent batchExpired)
Sent when a batch API request has expired. final static UnwrapWebhookEvent
ofBatchFailed(BatchFailedWebhookEvent batchFailed)
Sent when a batch API request has failed. final static UnwrapWebhookEvent
ofEvalRunCanceled(EvalRunCanceledWebhookEvent evalRunCanceled)
Sent when an eval run has been canceled. final static UnwrapWebhookEvent
ofEvalRunFailed(EvalRunFailedWebhookEvent evalRunFailed)
Sent when an eval run has failed. final static UnwrapWebhookEvent
ofEvalRunSucceeded(EvalRunSucceededWebhookEvent evalRunSucceeded)
Sent when an eval run has succeeded. final static UnwrapWebhookEvent
ofFineTuningJobCancelled(FineTuningJobCancelledWebhookEvent fineTuningJobCancelled)
Sent when a fine-tuning job has been cancelled. final static UnwrapWebhookEvent
ofFineTuningJobFailed(FineTuningJobFailedWebhookEvent fineTuningJobFailed)
Sent when a fine-tuning job has failed. final static UnwrapWebhookEvent
ofFineTuningJobSucceeded(FineTuningJobSucceededWebhookEvent fineTuningJobSucceeded)
Sent when a fine-tuning job has succeeded. final static UnwrapWebhookEvent
ofResponseCancelled(ResponseCancelledWebhookEvent responseCancelled)
Sent when a background response has been cancelled. final static UnwrapWebhookEvent
ofResponseCompleted(ResponseCompletedWebhookEvent responseCompleted)
Sent when a background response has been completed. final static UnwrapWebhookEvent
ofResponseFailed(ResponseFailedWebhookEvent responseFailed)
Sent when a background response has failed. final static UnwrapWebhookEvent
ofResponseIncomplete(ResponseIncompleteWebhookEvent responseIncomplete)
Sent when a background response has been interrupted. -
-
Method Detail
-
batchCancelled
final Optional<BatchCancelledWebhookEvent> batchCancelled()
Sent when a batch API request has been cancelled.
-
batchCompleted
final Optional<BatchCompletedWebhookEvent> batchCompleted()
Sent when a batch API request has been completed.
-
batchExpired
final Optional<BatchExpiredWebhookEvent> batchExpired()
Sent when a batch API request has expired.
-
batchFailed
final Optional<BatchFailedWebhookEvent> batchFailed()
Sent when a batch API request has failed.
-
evalRunCanceled
final Optional<EvalRunCanceledWebhookEvent> evalRunCanceled()
Sent when an eval run has been canceled.
-
evalRunFailed
final Optional<EvalRunFailedWebhookEvent> evalRunFailed()
Sent when an eval run has failed.
-
evalRunSucceeded
final Optional<EvalRunSucceededWebhookEvent> evalRunSucceeded()
Sent when an eval run has succeeded.
-
fineTuningJobCancelled
final Optional<FineTuningJobCancelledWebhookEvent> fineTuningJobCancelled()
Sent when a fine-tuning job has been cancelled.
-
fineTuningJobFailed
final Optional<FineTuningJobFailedWebhookEvent> fineTuningJobFailed()
Sent when a fine-tuning job has failed.
-
fineTuningJobSucceeded
final Optional<FineTuningJobSucceededWebhookEvent> fineTuningJobSucceeded()
Sent when a fine-tuning job has succeeded.
-
responseCancelled
final Optional<ResponseCancelledWebhookEvent> responseCancelled()
Sent when a background response has been cancelled.
-
responseCompleted
final Optional<ResponseCompletedWebhookEvent> responseCompleted()
Sent when a background response has been completed.
-
responseFailed
final Optional<ResponseFailedWebhookEvent> responseFailed()
Sent when a background response has failed.
-
responseIncomplete
final Optional<ResponseIncompleteWebhookEvent> responseIncomplete()
Sent when a background response has been interrupted.
-
isBatchCancelled
final Boolean isBatchCancelled()
-
isBatchCompleted
final Boolean isBatchCompleted()
-
isBatchExpired
final Boolean isBatchExpired()
-
isBatchFailed
final Boolean isBatchFailed()
-
isEvalRunCanceled
final Boolean isEvalRunCanceled()
-
isEvalRunFailed
final Boolean isEvalRunFailed()
-
isEvalRunSucceeded
final Boolean isEvalRunSucceeded()
-
isFineTuningJobCancelled
final Boolean isFineTuningJobCancelled()
-
isFineTuningJobFailed
final Boolean isFineTuningJobFailed()
-
isFineTuningJobSucceeded
final Boolean isFineTuningJobSucceeded()
-
isResponseCancelled
final Boolean isResponseCancelled()
-
isResponseCompleted
final Boolean isResponseCompleted()
-
isResponseFailed
final Boolean isResponseFailed()
-
isResponseIncomplete
final Boolean isResponseIncomplete()
-
asBatchCancelled
final BatchCancelledWebhookEvent asBatchCancelled()
Sent when a batch API request has been cancelled.
-
asBatchCompleted
final BatchCompletedWebhookEvent asBatchCompleted()
Sent when a batch API request has been completed.
-
asBatchExpired
final BatchExpiredWebhookEvent asBatchExpired()
Sent when a batch API request has expired.
-
asBatchFailed
final BatchFailedWebhookEvent asBatchFailed()
Sent when a batch API request has failed.
-
asEvalRunCanceled
final EvalRunCanceledWebhookEvent asEvalRunCanceled()
Sent when an eval run has been canceled.
-
asEvalRunFailed
final EvalRunFailedWebhookEvent asEvalRunFailed()
Sent when an eval run has failed.
-
asEvalRunSucceeded
final EvalRunSucceededWebhookEvent asEvalRunSucceeded()
Sent when an eval run has succeeded.
-
asFineTuningJobCancelled
final FineTuningJobCancelledWebhookEvent asFineTuningJobCancelled()
Sent when a fine-tuning job has been cancelled.
-
asFineTuningJobFailed
final FineTuningJobFailedWebhookEvent asFineTuningJobFailed()
Sent when a fine-tuning job has failed.
-
asFineTuningJobSucceeded
final FineTuningJobSucceededWebhookEvent asFineTuningJobSucceeded()
Sent when a fine-tuning job has succeeded.
-
asResponseCancelled
final ResponseCancelledWebhookEvent asResponseCancelled()
Sent when a background response has been cancelled.
-
asResponseCompleted
final ResponseCompletedWebhookEvent asResponseCompleted()
Sent when a background response has been completed.
-
asResponseFailed
final ResponseFailedWebhookEvent asResponseFailed()
Sent when a background response has failed.
-
asResponseIncomplete
final ResponseIncompleteWebhookEvent asResponseIncomplete()
Sent when a background response has been interrupted.
-
accept
final <T extends Any> T accept(UnwrapWebhookEvent.Visitor<T> visitor)
-
validate
final UnwrapWebhookEvent validate()
-
ofBatchCancelled
final static UnwrapWebhookEvent ofBatchCancelled(BatchCancelledWebhookEvent batchCancelled)
Sent when a batch API request has been cancelled.
-
ofBatchCompleted
final static UnwrapWebhookEvent ofBatchCompleted(BatchCompletedWebhookEvent batchCompleted)
Sent when a batch API request has been completed.
-
ofBatchExpired
final static UnwrapWebhookEvent ofBatchExpired(BatchExpiredWebhookEvent batchExpired)
Sent when a batch API request has expired.
-
ofBatchFailed
final static UnwrapWebhookEvent ofBatchFailed(BatchFailedWebhookEvent batchFailed)
Sent when a batch API request has failed.
-
ofEvalRunCanceled
final static UnwrapWebhookEvent ofEvalRunCanceled(EvalRunCanceledWebhookEvent evalRunCanceled)
Sent when an eval run has been canceled.
-
ofEvalRunFailed
final static UnwrapWebhookEvent ofEvalRunFailed(EvalRunFailedWebhookEvent evalRunFailed)
Sent when an eval run has failed.
-
ofEvalRunSucceeded
final static UnwrapWebhookEvent ofEvalRunSucceeded(EvalRunSucceededWebhookEvent evalRunSucceeded)
Sent when an eval run has succeeded.
-
ofFineTuningJobCancelled
final static UnwrapWebhookEvent ofFineTuningJobCancelled(FineTuningJobCancelledWebhookEvent fineTuningJobCancelled)
Sent when a fine-tuning job has been cancelled.
-
ofFineTuningJobFailed
final static UnwrapWebhookEvent ofFineTuningJobFailed(FineTuningJobFailedWebhookEvent fineTuningJobFailed)
Sent when a fine-tuning job has failed.
-
ofFineTuningJobSucceeded
final static UnwrapWebhookEvent ofFineTuningJobSucceeded(FineTuningJobSucceededWebhookEvent fineTuningJobSucceeded)
Sent when a fine-tuning job has succeeded.
-
ofResponseCancelled
final static UnwrapWebhookEvent ofResponseCancelled(ResponseCancelledWebhookEvent responseCancelled)
Sent when a background response has been cancelled.
-
ofResponseCompleted
final static UnwrapWebhookEvent ofResponseCompleted(ResponseCompletedWebhookEvent responseCompleted)
Sent when a background response has been completed.
-
ofResponseFailed
final static UnwrapWebhookEvent ofResponseFailed(ResponseFailedWebhookEvent responseFailed)
Sent when a background response has failed.
-
ofResponseIncomplete
final static UnwrapWebhookEvent ofResponseIncomplete(ResponseIncompleteWebhookEvent responseIncomplete)
Sent when a background response has been interrupted.
-
-
-
-