SwiftstructModelManagerServices
InferenceProviderAdapter
struct ModelManagerServices.InferenceProviderAdapter
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 9
- field
let underlying: ModelManagerServices.InferenceProvider+0x0 - func
inputStreamEnded(requestID: Foundation.UUID) async throws -> () - func
requestInputStreamStep(clientDataArray: [ModelManagerServices.ClientData], configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws -> ModelManagerServices.InferenceProviderStream - func
requestOneShot(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) async throws(ModelManagerServices.InferenceError) -> ModelManagerServices.ClientData - func
requestStream(clientData: ModelManagerServices.ClientData, configuration: ModelManagerServices.InferenceProviderRequestConfiguration) -> ModelManagerServices.InferenceProviderStream - func
transitionAsset(withIdentifier: String, to: ModelManagerServices.LoadState, from: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) -> () - func
transitionAsset(_: ModelManagerServices.InferenceProviderAssetDescriptor, to: ModelManagerServices.LoadState) async throws(ModelManagerServices.InferenceError) -> () - init
init() -> ModelManagerServices.InferenceProviderAdapter - init
init(ModelManagerServices.InferenceProvider) -> ModelManagerServices.InferenceProviderAdapter
Header
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 }