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

Function read_existing_learnings

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

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

(content: &str)

Source from the content-addressed store, hash-verified

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

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