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

Function item

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls