Resolver that selects a transport based on model specs, capability gating, and optional platform detection.
API
getMetadata
ModelSelectionMetadata@returnsModelSelectionMetadataselect
RequestedFeatures): Promise<ResolvedModelSpec | undefined>Attempts to select the next compatible spec. Specs that previously failed capability checks or platform detection are skipped. A TransportError with FEATURE_UNSUPPORTED or PLATFORM_UNSUPPORTED can be fed back into {@link ModelResolver.skipFromError} to advance the resolver.
@paramfeatures:RequestedFeatures@returnsPromise<ResolvedModelSpec | undefined>skipFromError
ModelSpec, error: unknown): voidMark the provided spec as skipped after a send failure.
@paramspec:ModelSpec@paramerror:unknown@returnsvoid