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

Function read_existing_learnings

atomic-agent/src/learnings.rs:261–266  ·  view source on GitHub ↗

Collect all existing learning lines (flat list) for dedup checking.

(content: &str)

Source from the content-addressed store, hash-verified

259
260/// Collect all existing learning lines (flat list) for dedup checking.
261fn read_existing_learnings(content: &str) -> Vec<String> {
262 parse_existing_section(content)
263 .into_values()
264 .flatten()
265 .collect()
266}
267
268/// Check if a learning line is already present in the existing learnings.
269///

Callers 3

dedup_learningsFunction · 0.85
test_read_with_learningsFunction · 0.85

Calls 1

parse_existing_sectionFunction · 0.85

Tested by 2

test_read_with_learningsFunction · 0.68