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

Function context_file_learning_count

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

Count how many learnings would be written to the context file. Only counts Repo and Workflow — Code learnings are excluded.

(learnings: &Learnings)

Source from the content-addressed store, hash-verified

186///
187/// Only counts Repo and Workflow — Code learnings are excluded.
188pub fn context_file_learning_count(learnings: &Learnings) -> usize {
189 learnings.repo.len() + learnings.workflow.len()
190}
191
192/// Format a single code learning as a markdown list item.
193///

Callers 1

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected