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

Method count

atomic-agent/src/turn/session.rs:1149–1151  ·  view source on GitHub ↗

Returns the number of stored session files.

(&self)

Source from the content-addressed store, hash-verified

1147
1148 /// Returns the number of stored session files.
1149 pub fn count(&self) -> AgentResult<usize> {
1150 Ok(self.list()?.len())
1151 }
1152
1153 /// Returns the path to a session's JSON file.
1154 fn session_path(&self, session_id: &str) -> PathBuf {

Callers 1

record_turn_outcomeMethod · 0.45

Calls 2

lenMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected