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

Function why_matched

libatomic/src/daemon/services_agent.rs:204–211  ·  view source on GitHub ↗
(candidate: &CandidateScore)

Source from the content-addressed store, hash-verified

202 }
203
204 fn why_matched(candidate: &CandidateScore) -> &'static str {
205 match (candidate.base > 0.0, candidate.neighbor) {
206 (true, true) => "task terms and knowledge-graph relationship",
207 (true, false) => "task terms",
208 (false, true) => "knowledge-graph relationship",
209 (false, false) => "recent-memory fallback",
210 }
211 }
212
213 /// Read a vault path from KG node metadata; the legacy fallback maps the
214 /// node identity onto ``memory/<name>.md``.

Callers 1

resolve_and_rankFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected