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

Function item

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

Source from the content-addressed store, hash-verified

1001 use atomic_repository::IntentCreateOptions;
1002
1003 fn item(name: &str, score: f64, body: &str) -> MemoryItem {
1004 MemoryItem {
1005 memory_id: format!("memory:{name}"),
1006 kg_node_id: format!("memory:{name}"),
1007 revision_hash: "revision-hash".to_string(),
1008 content_hash: "body-hash".to_string(),
1009 path: format!("memory/{}.md", name),
1010 name: name.to_string(),
1011 kind: "project".to_string(),
1012 status: "active".to_string(),
1013 updated_at: "2026-07-01T00:00:00Z".to_string(),
1014 introduced_by: 42,
1015 score,
1016 why_matched: "task terms".to_string(),
1017 body: body.to_string(),
1018 truncated: false,
1019 }
1020 }
1021
1022 fn request() -> Context {
1023 Context {

Calls

no outgoing calls