SwiftenumTokenGenerationCore

enum TokenGenerationCore.GenerationError

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 16

  1. varstatic var errorDomain: String { get }
  2. casecase detokenizationFailed
  3. casecase invalidAttachmentPosition(TokenGeneration.Prompt.Attachment, promptStringSize: Int)
  4. casecase invalidPromptFormat(errorMessage: String)
  5. casecase invalidSpecialTokenPosition(TokenGeneration.Prompt.SpecialToken, tokenPosition: Int, promptStringSize: Int)
  6. casecase tokenizationFailed
  7. casecase unknownSpecialToken(TokenGeneration.Prompt.SpecialToken)
  8. casecase unrecognizedPrefixID(String)
  9. casecase unservicableConfiguration(errorMessage: String)
  10. casecase unsupportedGuide
  11. varvar category: AppleIntelligenceReporting.AppleIntelligenceErrorCategory { get }
  12. varvar code: TokenGenerationCore.GenerationError.Code { get }
  13. varvar descriptionWithoutUnderlying: String { get }
  14. varvar errorDescription: String? { get }
  15. varvar rawCode: Int { get }
  16. varvar underlyingErrors: [AppleIntelligenceReporting.AppleIntelligenceError] { get }
enum GenerationError {
    enum Code {
        case unknownSpecialToken
        case tokenizationFailed
        case detokenizationFailed
        case invalidSpecialTokenPosition
        case invalidAttachmentPosition
        case unsupportedGuide
        case unservicableConfiguration
        case invalidPromptFormat
        case unrecognizedPrefixID
    }
    case unknownSpecialToken(TokenGeneration.Prompt.SpecialToken)
    case invalidSpecialTokenPosition(TokenGeneration.Prompt.SpecialToken, tokenPosition: Swift.Int, promptStringSize: Swift.Int)
    case invalidAttachmentPosition(TokenGeneration.Prompt.Attachment, promptStringSize: Swift.Int)
    case unservicableConfiguration(errorMessage: Swift.String)
    case invalidPromptFormat(errorMessage: Swift.String)
    case unrecognizedPrefixID(Swift.String)
    case tokenizationFailed
    case detokenizationFailed
    case unsupportedGuide

    var category: AppleIntelligenceReporting.AppleIntelligenceErrorCategory {
        get
    }
    var code: TokenGenerationCore.GenerationError.Code {
        get
    }
    var descriptionWithoutUnderlying: Swift.String {
        get
    }
    var errorDescription: Swift.String? {
        get
    }
    var rawCode: Swift.Int {
        get
    }
    var underlyingErrors: [any AppleIntelligenceReporting.AppleIntelligenceError] {
        get
    }

    static var errorDomain: Swift.String {
        get
    }
}