SafetyAlert

@Serializable
data class SafetyAlert(val id: String, val createdAt: Long, val errorType: String, val model: String, val requestId: String, val requestPaused: Boolean, val responseId: String, val reason: String? = null, val detailedExplanation: String? = null, val objectType: String = "safety.alert")

A project alert about potentially unintended data access, transfer or destructive activity.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Long, errorType: String, model: String, requestId: String, requestPaused: Boolean, responseId: String, reason: String? = null, detailedExplanation: String? = null, objectType: String = "safety.alert")

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long

Creation time in Unix seconds.

Link copied to clipboard
@SerialName(value = "detailed_explanation")
val detailedExplanation: String? = null

Explanation available temporarily for eligible alerts.

Link copied to clipboard
@SerialName(value = "error_type")
val errorType: String

Category such as potentially_unintended_data_access or other.

Link copied to clipboard
val id: String

Alert identifier.

Link copied to clipboard

Model associated with the alert.

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

Resource discriminator.

Link copied to clipboard
val reason: String? = null

Customer-safe reason, or null for zero data retention requests.

Link copied to clipboard
@SerialName(value = "request_id")
val requestId: String

Request identifier.

Link copied to clipboard
@SerialName(value = "request_paused")
val requestPaused: Boolean

Successful block registration; this does not confirm response execution stopped.

Link copied to clipboard
@SerialName(value = "response_id")
val responseId: String

Response identifier.