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

Function item

atomic-cli/src/commands/vault/context.rs:949–966  ·  view source on GitHub ↗
(name: &str, score: f64, body: &str)

Source from the content-addressed store, hash-verified

947 use atomic_repository::IntentCreateOptions;
948
949 fn item(name: &str, score: f64, body: &str) -> MemoryItem {
950 MemoryItem {
951 memory_id: format!("memory:{name}"),
952 kg_node_id: format!("memory:{name}"),
953 revision_hash: "revision-hash".to_string(),
954 content_hash: "body-hash".to_string(),
955 path: format!("memory/{}.md", name),
956 name: name.to_string(),
957 kind: "project".to_string(),
958 status: "active".to_string(),
959 updated_at: "2026-07-01T00:00:00Z".to_string(),
960 introduced_by: 42,
961 score,
962 why_matched: "task terms".to_string(),
963 body: body.to_string(),
964 truncated: false,
965 }
966 }
967
968 fn request() -> Context {
969 Context {

Calls

no outgoing calls