SwiftstructModelManagerServices

struct ModelManagerServices.InferenceProviderAdapter

Structure

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

Members 9

  1. fieldlet underlying: ModelManagerServices.InferenceProvider+0x0
  2. funcinputStreamEnded(requestID: Foundation.UUID) async throws -> ()
  3. funcrequestInputStreamStep(clientDataArray: [ModelManagerServices.ClientData], configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws -> ModelManagerServices.InferenceProviderStream
  4. funcrequestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData
  5. funcrequestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> ModelManagerServices.InferenceProviderStream
  6. functransitionAsset(withIdentifier: String, to: ModelManagerServices.LoadState, from: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) -> ()
  7. functransitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) -> ()
  8. initinit() -> ModelManagerServices.InferenceProviderAdapter
  9. initinit(ModelManagerServices.InferenceProvider) -> ModelManagerServices.InferenceProviderAdapter
struct InferenceProviderAdapter {
    actor StreamAdapter {
        var underlyingIterator: any Swift.AsyncIteratorProtocol
    }
    let underlying: any ModelManagerServices.InferenceProvider

    init()
    init(_: any ModelManagerServices.InferenceProvider)

    func requestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> any ModelManagerServices.InferenceProviderStream
    func requestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData
    func transitionAsset(withIdentifier: Swift.String, to: ModelManagerServices.LoadState, from: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError)
    func transitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError)
    func inputStreamEnded(requestID: Foundation.UUID) async throws
    func requestInputStreamStep(clientDataArray: [ModelManagerServices.ClientData], configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws -> any ModelManagerServices.InferenceProviderStream
}