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

Function item

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

Source from the content-addressed store, hash-verified

843 use atomic_repository::IntentCreateOptions;
844
845 fn item(name: &str, score: f64, body: &str) -> MemoryItem {
846 MemoryItem {
847 memory_id: format!("memory:{name}"),
848 kg_node_id: format!("memory:{name}"),
849 revision_hash: "revision-hash".to_string(),
850 content_hash: "body-hash".to_string(),
851 path: format!("memory/{}.md", name),
852 name: name.to_string(),
853 kind: "project".to_string(),
854 status: "active".to_string(),
855 updated_at: "2026-07-01T00:00:00Z".to_string(),
856 introduced_by: 42,
857 score,
858 body: body.to_string(),
859 truncated: false,
860 }
861 }
862
863 fn request() -> Context {
864 Context {

Calls

no outgoing calls