Code BetaResponseErrorCode

The error code for the response.

One of the following:
const BetaResponseErrorCodeServerError BetaResponseErrorCode = "server_error"
const BetaResponseErrorCodeRateLimitExceeded BetaResponseErrorCode = "rate_limit_exceeded"
const BetaResponseErrorCodeInvalidPrompt BetaResponseErrorCode = "invalid_prompt"
const BetaResponseErrorCodeDataResidencyMismatch BetaResponseErrorCode = "data_residency_mismatch"
const BetaResponseErrorCodeBioPolicy BetaResponseErrorCode = "bio_policy"
const BetaResponseErrorCodeMisalignmentPolicyViolation BetaResponseErrorCode = "misalignment_policy_violation"
const BetaResponseErrorCodeVectorStoreTimeout BetaResponseErrorCode = "vector_store_timeout"
const BetaResponseErrorCodeInvalidImage BetaResponseErrorCode = "invalid_image"
const BetaResponseErrorCodeInvalidImageFormat BetaResponseErrorCode = "invalid_image_format"
const BetaResponseErrorCodeInvalidBase64Image BetaResponseErrorCode = "invalid_base64_image"
const BetaResponseErrorCodeInvalidImageURL BetaResponseErrorCode = "invalid_image_url"
const BetaResponseErrorCodeImageTooLarge BetaResponseErrorCode = "image_too_large"
const BetaResponseErrorCodeImageTooSmall BetaResponseErrorCode = "image_too_small"
const BetaResponseErrorCodeImageParseError BetaResponseErrorCode = "image_parse_error"
const BetaResponseErrorCodeImageContentPolicyViolation BetaResponseErrorCode = "image_content_policy_violation"
const BetaResponseErrorCodeInvalidImageMode BetaResponseErrorCode = "invalid_image_mode"
const BetaResponseErrorCodeImageFileTooLarge BetaResponseErrorCode = "image_file_too_large"
const BetaResponseErrorCodeUnsupportedImageMediaType BetaResponseErrorCode = "unsupported_image_media_type"
const BetaResponseErrorCodeEmptyImageFile BetaResponseErrorCode = "empty_image_file"
const BetaResponseErrorCodeFailedToDownloadImage BetaResponseErrorCode = "failed_to_download_image"
const BetaResponseErrorCodeImageFileNotFound BetaResponseErrorCode = "image_file_not_found"
Message string

A human-readable description of the error.

Misalignment BetaResponseErrorMisalignmentOptional
DetailedExplanation stringOptional

The public explanation for this block.

ErrorType stringOptional

An optional classification; clients must accept additional values.

One of the following:
string
string
One of the following:
const BetaResponseErrorMisalignmentErrorTypePotentiallyUnintendedDataTransfer BetaResponseErrorMisalignmentErrorType = "potentially_unintended_data_transfer"
const BetaResponseErrorMisalignmentErrorTypePotentiallyUnintendedDataAccess BetaResponseErrorMisalignmentErrorType = "potentially_unintended_data_access"
const BetaResponseErrorMisalignmentErrorTypePotentiallyUnintendedDestructiveActivity BetaResponseErrorMisalignmentErrorType = "potentially_unintended_destructive_activity"
const BetaResponseErrorMisalignmentErrorTypeOther BetaResponseErrorMisalignmentErrorType = "other"
Steer BetaResponseErrorMisalignmentSteerOptional

An optional public continuation instruction.

Message string

The public continuation instruction.