MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / make_node

Function make_node

atomic-agent/src/export.rs:485–505  ·  view source on GitHub ↗
(
        id: &str,
        kind: ProvenanceNodeKind,
        summary: &str,
        detail: Option<&str>,
    )

Source from the content-addressed store, hash-verified

483 };
484
485 fn make_node(
486 id: &str,
487 kind: ProvenanceNodeKind,
488 summary: &str,
489 detail: Option<&str>,
490 ) -> ProvenanceNode {
491 ProvenanceNode {
492 id: id.to_string(),
493 kind,
494 timestamp: 1_700_000_000_000,
495 summary: summary.to_string(),
496 detail: detail.map(|s| s.to_string()),
497 change_hash: None,
498 tool_name: None,
499 tool_call_id: None,
500 duration_ms: None,
501 classified: false,
502 confidence: None,
503 consolidated_from: Vec::new(),
504 }
505 }
506
507 fn sherpa_graph() -> ProvenanceGraph {
508 let goal_detail = serde_json::json!({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected