Skip to main content

authored_node_projection

Function authored_node_projection 

Source
pub fn authored_node_projection(
    kind: AuthoredNodeKind,
    text: &str,
    anchor_handle: &str,
    confidence: f64,
    observed_at_unix: i64,
    session_id: Option<&str>,
) -> GraphProjection
Expand description

Build a GraphProjection for an authored finding/decision/note node (#trt1), anchored to a stable symbol handle (graph node id / tagpath — NOT a line number) via an annotates edge. confidence is clamped to 0..=1; observed_at_unix is the freshness stamp. The node id is content-stable, so re-authoring the same text on the same anchor dedupes instead of duplicating.