pub async fn assert_embedding_provider<P: EmbeddingProviderV1 + ?Sized>(
provider: &P,
)Expand description
Assert that provider honours EmbeddingProviderV1.
Panics with a message naming the broken clause. Written as assertions rather than a returned report because a provider that fails any of these cannot be deployed at all: there is nothing to triage.
ยงPanics
Whenever the provider violates the contract.