Skip to main content

resolve_reference

Function resolve_reference 

Source
pub async fn resolve_reference(
    runtime: &KhiveRuntime,
    ring: &ReferenceRing,
    token: &NamespaceToken,
    nl_ref: &str,
    limit: u32,
    entity_kind: Option<&str>,
) -> RuntimeResult<ReferenceResolution>
Expand description

Resolve one natural-language reference for token’s actor.

limit bounds the hybrid-search fallback candidate count (Layer-0 stage 3); it has no effect on the id-string or ring stages, which are always exact-or-nothing / small in-memory scans. entity_kind, if set, restricts stage 3 to that entity kind (e.g. "concept"); the id-string and ring stages are kind-agnostic by construction (a ring entry or an explicit id is not filtered by kind).