SwiftclassVisualGeneration

class VisualGeneration.ModelManagerInferenceProvider

Structure

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

Members 8

  1. varstatic var available: Bool { get }
  2. deinitdeinit
  3. fieldlet _imageGenerator: VisualGeneration.AppleDiffusionImageGenerator+0x10
  4. fieldlet _requestsQueue: VisualGeneration.ModelManagerInferenceProvider.ImageGenerationRequestsQueue+0x18
  5. funcrequestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData
  6. funcrequestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> ModelManagerServices.InferenceProviderStream
  7. functransitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) -> ()
  8. initVisualGeneration.ModelManagerInferenceProvider.__allocating_init() -> VisualGeneration.ModelManagerInferenceProvider
class ModelManagerInferenceProvider {
    enum Error {
        enum CodingKeys {
            case unknownInferenceAsset
            case unavailableInferenceAsset
            case unknownRequest
            case invalidImageGeneratorType
            case invalidIPCFormat
            case ownIdentityTokenUnavailable
            case clientIdentityTokenUnavailable
            case failedToAssignSurfaceOwnership
            case taskIDTokenCanOnlyBeSerializedViaXPC
            case missingStyle
        }
        enum UnknownInferenceAssetCodingKeys {
            case identifier
        }
        enum UnavailableInferenceAssetCodingKeys {
            case identifier
        }
        enum UnknownRequestCodingKeys {
            case identifier
        }
        enum InvalidImageGeneratorTypeCodingKeys {
            case generatorType
        }
        enum InvalidIPCFormatCodingKeys {}
        enum OwnIdentityTokenUnavailableCodingKeys {}
        enum ClientIdentityTokenUnavailableCodingKeys {}
        enum FailedToAssignSurfaceOwnershipCodingKeys {}
        enum TaskIDTokenCanOnlyBeSerializedViaXPCCodingKeys {}
        enum MissingStyleCodingKeys {}
        case unknownInferenceAsset(identifier: Swift.String)
        case unavailableInferenceAsset(identifier: Swift.String)
        case unknownRequest(identifier: Swift.String)
        case invalidImageGeneratorType(generatorType: Swift.String)
        case invalidIPCFormat
        case ownIdentityTokenUnavailable
        case clientIdentityTokenUnavailable
        case failedToAssignSurfaceOwnership
        case taskIDTokenCanOnlyBeSerializedViaXPC
        case missingStyle
    }
    class ImageGenerationRequest {
        let uuid: Foundation.UUID
        var continuation: Swift.CheckedContinuation<(), Swift.Never>?
        let _canceller: VisualGeneration.StatefulCanceller
        let _generationID: Foundation.UUID
        let _recipe: VisualGeneration.GenerationRecipe
    }
    actor ImageGenerationRequestsQueue {
        var _requests: [VisualGeneration.ModelManagerInferenceProvider.ImageGenerationRequest]
    }
    struct Input {
        enum CodingKeys {
            case generationID
            case generationRecipe
            case clientAssetVersions
        }
        let generationID: Foundation.UUID
        let generationRecipe: VisualGeneration.GenerationRecipe
        let clientAssetVersions: [Swift.String : Swift.String?]
    }
    struct Output {
        enum CodingKeys {
            case currentStep
            case totalSteps
            case isFinalStep
            case generationResult
        }
        let currentStep: Swift.Int
        let totalSteps: Swift.Int?
        let isFinalStep: Swift.Bool
        let generationResult: VisualGeneration.ImageGenerator.Result?
    }
    let _imageGenerator: VisualGeneration.AppleDiffusionImageGenerator
    let _requestsQueue: VisualGeneration.ModelManagerInferenceProvider.ImageGenerationRequestsQueue

    init()

    final func requestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> any ModelManagerServices.InferenceProviderStream
    final func requestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData
    final func transitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError)

    static var available: Swift.Bool {
        get
    }

    deinit
}