Skip to main content

evaluate_weights_binding_with_loaded_hash

Function evaluate_weights_binding_with_loaded_hash 

Source
pub fn evaluate_weights_binding_with_loaded_hash<H, E>(
    card: &ModelCard,
    loaded_weights_hash: Result<H, E>,
    requested_scopes: &StringSet,
    requested_tools: &StringSet,
) -> Result<(), WeightsBindingError>
where H: AsRef<str>, E: Display,
Expand description

Evaluate binding after the provider-side loaded-weight digest has been recomputed.

Hosted or protocol adapters that cannot expose loaded model bytes pass an error here. The kernel maps that unavailable state to a schema-level refusal and never falls back to caller-supplied hashes.